/* Single product styling. Loaded through WordPress's dependency system. */
.product-page-wrapper {
    font-family: 'PeydaWeb', Tahoma, Arial, sans-serif;
    background-color: #fffaf5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f97316' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: relative;
}

.product-content-wrapper { padding-bottom: 90px; position: relative; z-index: 10; }
@media (min-width: 768px) { .product-content-wrapper { padding-bottom: 40px; } }

.product-page-wrapper ::-webkit-scrollbar { width: 12px; }
.product-page-wrapper ::-webkit-scrollbar-track { background: #fff7ed; border-radius: 12px; }
.product-page-wrapper ::-webkit-scrollbar-thumb { background: #fbd38d; border-radius: 12px; border: 3px solid #fff7ed; }
.product-page-wrapper ::-webkit-scrollbar-thumb:hover { background: #f6ad55; }

.product-page-wrapper .btn-3d { position: relative; transition: background-color .15s, border-color .15s, transform .15s; border-bottom-width: 5px; }
.product-page-wrapper .btn-3d:active:not(:disabled) { transform: translateY(3px); }

.product-page-wrapper .tab-button { background-color: #ffffff; border: 2px solid #fed7aa; color: #c2410c; border-radius: 2rem; transition: background-color .15s, color .15s, box-shadow .15s; box-shadow: 0 4px 0 #fed7aa; }
.product-page-wrapper .tab-button.active { background-color: #f97316; border-color: #ea580c; color: white; box-shadow: 0 0 0 #ea580c; transform: translateY(4px); font-weight: 900; }

.faq-item { background: #ffffff; border-radius: 1.5rem; margin-bottom: 1rem; border: 2px solid #f1f5f9; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.faq-item:hover { transform: scale(1.02); border-color: #99f6e4; box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.1); }
.faq-item input:checked ~ .faq-content { max-height: 500px; opacity: 1; padding: 0.5rem 1.25rem 1.25rem 1.25rem; }
.faq-item input:checked ~ label i { transform: rotate(180deg) scale(1.2); color: #0d9488; }
.faq-item input:checked ~ label { color: #0f766e; }

#sticky-buy-bar { transition: transform .2s, opacity .2s, visibility .2s; transform: translateY(100%); opacity: 0; visibility: hidden; pointer-events: none; border-top-left-radius: 1.5rem; border-top-right-radius: 1.5rem; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
#sticky-buy-bar.visible { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }

.custom-variation-btn { background-color: #ffffff; border: 2px solid #e2e8f0; border-bottom-width: 4px; border-radius: 1rem; transition: all 0.1s; }
.custom-variation-btn:active:not(:disabled) { transform: translateY(2px); }
.custom-variation-btn.selected { background-color: #f0fdf4; border-color: #22c55e; border-bottom-color: #16a34a; color: #15803d; font-weight: 900; }

.product-page-wrapper [hidden] { display: none !important; }

#custom-price-container .current-price del, .sticky-price-container del { color: #94a3b8; text-decoration: line-through; text-decoration-color: #ef4444; font-size: 0.9rem; display: block; font-weight: 700; }
#custom-price-container .current-price ins, .sticky-price-container ins { text-decoration: none !important; font-weight: 900; color: #f97316; background: transparent; }
#custom-price-container .current-price ins { font-size: 1.65rem; }

.product-page-wrapper .no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.cursor-grabbing { cursor: grabbing !important; }

@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.trust-badge:hover i { animation: heartbeat 0.8s ease-in-out infinite; }

.product-page-wrapper .hapomeo-product-title-desktop {
    font-size: clamp(1.35rem, 1.8vw, 1.65rem);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.product-page-wrapper .hapomeo-rating-stars,
.product-page-wrapper .hapomeo-rating-stars i {
    color: #b45309;
}

.product-page-wrapper .hapomeo-rating-stars {
    direction: ltr;
    gap: .25rem;
    font-size: 1rem;
}

.product-page-wrapper .hapomeo-price-row { gap: 1rem; }
.product-page-wrapper .hapomeo-price-row > * { min-width: 0; }
.product-page-wrapper .hapomeo-price-row #custom-price-container { flex: 1 1 auto; }
.product-page-wrapper .hapomeo-quantity-control { flex-shrink: 0; }
.product-page-wrapper .qty-btn { min-width: 2.5rem; min-height: 2.5rem; touch-action: manipulation; }
.product-page-wrapper button,
.product-page-wrapper .gallery-thumb { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.product-page-wrapper button:disabled { cursor: not-allowed; opacity: .5; }
.product-page-wrapper .custom-variation-btn:disabled { text-decoration: line-through; background: #f1f5f9; }
.product-page-wrapper button:focus-visible,
.product-page-wrapper a:focus-visible,
.product-page-wrapper input:focus-visible,
.product-page-wrapper textarea:focus-visible,
.product-page-wrapper select:focus-visible { outline: 3px solid #0d9488; outline-offset: 3px; }
.product-page-wrapper .main-product-img { transition: opacity .15s; }
.product-page-wrapper .hapomeo-product-decoration { overflow: hidden; contain: paint; }
.product-page-wrapper .gallery-thumb.active { border-color: #fb923c; opacity: 1; }
.product-page-wrapper .hapomeo-related-slider { width: 100%; max-width: 100%; min-width: 0; margin-inline: 0; overscroll-behavior-inline: contain; scroll-padding-inline: .25rem; }
.product-page-wrapper .tab-content { scroll-margin-top: 1.5rem; }
.product-page-wrapper:not(.hapomeo-tabs-ready) .tab-content + .tab-content { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; }
.product-page-wrapper .hapomeo-reset-variations { margin-top: .75rem; padding: .4rem .25rem; color: #0f766e; font-size: .8125rem; font-weight: 700; text-decoration: underline; text-underline-offset: .25rem; }
.product-page-wrapper .variation-alert { max-width: 100%; line-height: 1.9; overflow-wrap: anywhere; }
.product-page-wrapper #custom-add-to-cart-btn[aria-busy="true"] { cursor: progress; }
.product-page-wrapper #custom-add-to-cart-btn[aria-busy="true"] i { animation: hapomeo-cart-pulse .8s ease-in-out infinite alternate; }

/* Native WooCommerce forms remain usable until enhancement is ready, and for
   product addons, external/grouped products, or extra required plugin fields. */
.product-page-wrapper .hapomeo-native-cart { margin-top: 1.25rem; }
.product-page-wrapper .hapomeo-native-cart form.cart { margin: 0; }
.product-page-wrapper .hapomeo-native-cart .single_add_to_cart_button,
body.single-product #review_form #respond .form-submit #submit {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: .8rem 1.4rem;
    border: 0;
    border-bottom: 4px solid #c2410c;
    border-radius: 1rem;
    background: #f97316;
    color: #fff;
    font-family: var(--hapomeo-font-family, 'PeydaWeb', Tahoma, sans-serif) !important;
    font-size: .9375rem;
    font-weight: 800;
    line-height: 1.7;
    text-shadow: none;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .15s, transform .15s;
}
.product-page-wrapper .hapomeo-native-cart .single_add_to_cart_button { width: 100%; margin-top: 1rem; }
.product-page-wrapper .hapomeo-native-cart .single_add_to_cart_button:hover,
body.single-product #review_form #respond .form-submit #submit:hover { background: #ea580c; color: #fff; }
.product-page-wrapper .hapomeo-native-cart .quantity { float: none; margin: .75rem 0; }
.product-page-wrapper .hapomeo-native-cart .quantity .qty { width: 5rem; }
.product-page-wrapper .hapomeo-native-cart .variations { border-collapse: separate; border-spacing: 0 .65rem; }
.product-page-wrapper .hapomeo-native-cart input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.product-page-wrapper .hapomeo-native-cart select,
.product-page-wrapper .hapomeo-native-cart textarea { max-width: 100%; min-height: 2.75rem; padding: .65rem .85rem; border: 2px solid #e2e8f0; border-radius: .85rem; background: #f8fafc; color: #1e293b; font-size: 1rem; }

/* Product reviews use WooCommerce's native fields, moderation and verification. */
.product-page-wrapper .hapomeo-product-attributes table.shop_attributes { display: table; width: 100%; margin: 0; border: 0; border-spacing: 0 .65rem; border-collapse: separate; table-layout: fixed; font-size: .875rem; }
.product-page-wrapper .hapomeo-product-attributes table.shop_attributes tbody { display: table-row-group; }
.product-page-wrapper .hapomeo-product-attributes table.shop_attributes tr { display: table-row; }
.product-page-wrapper .hapomeo-product-attributes table.shop_attributes th,
.product-page-wrapper .hapomeo-product-attributes table.shop_attributes td { display: table-cell; padding: .9rem 1rem; border: 1px solid #e2e8f0; background: #f8fafc; text-align: start; vertical-align: top; line-height: 1.9; font-style: normal; overflow-wrap: anywhere; }
.product-page-wrapper .hapomeo-product-attributes table.shop_attributes th { width: 36%; border-inline-end: 0; border-radius: 0 .85rem .85rem 0; color: #475569; font-weight: 800; }
.product-page-wrapper .hapomeo-product-attributes table.shop_attributes td { border-inline-start: 0; border-radius: .85rem 0 0 .85rem; color: #0f766e; font-weight: 650; }
.product-page-wrapper .hapomeo-product-attributes table.shop_attributes td p { margin: 0; padding: 0; }
.product-page-wrapper .hapomeo-product-attributes table.shop_attributes a { text-decoration: underline; text-underline-offset: .2rem; }
body.single-product #reviews,
body.single-product #reviews label,
body.single-product #reviews input,
body.single-product #reviews textarea,
body.single-product #reviews select,
body.single-product #reviews button {
    font-family: var(--hapomeo-font-family, 'PeydaWeb', Tahoma, sans-serif) !important;
}
body.single-product #reviews { color: #475569; font-size: .9375rem; line-height: 2; overflow-wrap: anywhere; }
body.single-product #reviews #comments .woocommerce-Reviews-title { margin: 0 0 1.25rem; color: #1e293b; font-size: 1.1rem; font-weight: 800; line-height: 1.9; }
body.single-product #reviews .woocommerce-noreviews,
body.single-product #reviews .woocommerce-verification-required,
body.single-product #reviews .must-log-in { margin: 0 0 1.25rem; padding: 1rem 1.15rem; border: 1px solid #ccfbf1; border-radius: 1rem; background: #f0fdfa; color: #0f766e; }
body.single-product #reviews .must-log-in a { color: #0f766e; font-weight: 800; text-decoration: underline; text-underline-offset: .2rem; }
body.single-product #reviews #comments ol.commentlist { margin: 0; padding: 0; list-style: none; }
body.single-product #reviews #comments ol.commentlist li { margin: 0 0 1rem; padding: 0; }
body.single-product #reviews #comments ol.commentlist li .comment_container { position: relative; padding: 1.15rem; border: 1px solid #e2e8f0; border-radius: 1.25rem; background: #f8fafc; }
body.single-product #reviews #comments ol.commentlist li img.avatar { position: static; float: right; width: 2.75rem; height: 2.75rem; margin: 0 0 .5rem .85rem; padding: .15rem; border: 1px solid #fed7aa; border-radius: 50%; background: #fff; object-fit: cover; }
body.single-product #reviews #comments ol.commentlist li .comment-text { margin: 0; padding: 0; border: 0; border-radius: 0; }
body.single-product #reviews #comments ol.commentlist li .comment-text p.meta { margin-bottom: .75rem; color: #64748b; font-size: .8125rem; }
body.single-product #reviews .woocommerce-review__author { color: #1e293b; font-weight: 800; }
body.single-product #reviews .woocommerce-review__published-date { font-size: .75rem; }
body.single-product #reviews .woocommerce-review__verified { display: inline-block; margin-inline: .2rem; color: #0f766e; font-size: .75rem; font-style: normal; }
body.single-product #reviews #comments ol.commentlist li .description { clear: both; }
body.single-product #reviews #comments ol.commentlist li .description p { margin: .4rem 0 0; }
body.single-product #reviews #comments ol.commentlist ul.children { margin: 1rem 1rem 0 0; padding: 0; }
body.single-product #reviews .star-rating { color: #b45309; font-family: star !important; }
body.single-product #reviews .star-rating::before { color: #a16207; }
body.single-product #reviews .star-rating span { color: #b45309; }
body.single-product #reviews .comment-text .star-rating { float: left; margin: .25rem 0 .75rem .5rem; }
body.single-product #reviews #review_form_wrapper { margin-top: 1.5rem; padding: 1.4rem; border: 2px solid #ffedd5; border-radius: 1.5rem; background: #fffaf5; }
body.single-product #review_form #respond { margin: 0; }
body.single-product #review_form #reply-title { display: block; margin: 0 0 1rem; color: #1e293b; font-size: 1.1rem; font-weight: 800; line-height: 1.9; }
body.single-product #review_form .comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
body.single-product #review_form .comment-form > * { min-width: 0; grid-column: 1 / -1; }
body.single-product #review_form .comment-form > .comment-form-author,
body.single-product #review_form .comment-form > .comment-form-email { grid-column: span 1; }
body.single-product #review_form #respond p { margin: 0; }
body.single-product #review_form .comment-form label { display: block; margin-bottom: .4rem; color: #334155; font-size: .875rem; font-weight: 700; }
body.single-product #review_form .comment-form .required { color: #c2410c; }
body.single-product #review_form .comment-notes { color: #64748b; font-size: .8125rem; line-height: 1.9; }
body.single-product #review_form #respond input[type="text"],
body.single-product #review_form #respond input[type="email"],
body.single-product #review_form #respond input[type="url"],
body.single-product #review_form #respond textarea,
body.single-product #review_form #respond select {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    padding: .7rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.9;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
body.single-product #review_form #respond textarea { min-height: 10rem; resize: vertical; }
body.single-product #review_form #respond input[type="email"] { direction: ltr; text-align: left; }
body.single-product #review_form #respond input:focus,
body.single-product #review_form #respond textarea:focus,
body.single-product #review_form #respond select:focus { border-color: #fb923c; box-shadow: 0 0 0 3px #ffedd5; outline: none; }
body.single-product #review_form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .6rem; }
body.single-product #review_form .comment-form-cookies-consent label { margin: 0; color: #64748b; font-size: .8125rem; font-weight: 500; }
body.single-product #review_form .comment-form-cookies-consent input[type="checkbox"] { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: .25rem; accent-color: #f97316; }
body.single-product #review_form .comment-form-rating { padding: .85rem 1rem; border: 1px solid #fde68a; border-radius: 1rem; background: #fffbeb; }
body.single-product #review_form .comment-form-rating .stars { direction: ltr; text-align: right; line-height: 1; }
body.single-product #review_form .comment-form-rating .stars > span { display: flex; justify-content: space-between; gap: .2rem; width: 100%; max-width: 13.5rem; margin-inline-start: auto; }
body.single-product #review_form .comment-form-rating .stars a { flex: 1 1 0; width: 2.5rem; max-width: 2.5rem; min-width: 0; height: 2.75rem; margin: 0; border: 0; border-radius: .65rem; overflow: hidden; color: #b45309; font-size: 0; text-indent: 0; text-decoration: none; }
body.single-product #review_form .comment-form-rating .stars a::before { top: .55rem; left: 50%; right: auto; width: 1em; height: 1em; transform: translateX(-50%); color: inherit; font-family: WooCommerce !important; font-size: 1.5rem; line-height: 1; }
body.single-product #review_form .comment-form-rating .stars a:hover,
body.single-product #review_form .comment-form-rating .stars a:focus-visible { background: #fef3c7; color: #92400e; }
body.single-product #review_form .form-submit { margin-top: .25rem; }
body.single-product #reviews nav.woocommerce-pagination ul { border: 0; }
body.single-product #reviews nav.woocommerce-pagination ul li { margin: .2rem; border: 0; }
body.single-product #reviews nav.woocommerce-pagination ul li a,
body.single-product #reviews nav.woocommerce-pagination ul li span { min-width: 2.5rem; min-height: 2.5rem; border: 1px solid #fed7aa; border-radius: .75rem; color: #c2410c; background: #fff; }
body.single-product #reviews nav.woocommerce-pagination ul li span.current { background: #f97316; color: #fff; }

@keyframes hapomeo-cart-pulse { to { opacity: .4; } }

@media (min-width: 768px) {
    #sticky-buy-bar { display: none !important; }
}
@media (max-width: 767px) {
    .product-page-wrapper .hapomeo-product-attributes table.shop_attributes th,
    .product-page-wrapper .hapomeo-product-attributes table.shop_attributes td { padding: .75rem .65rem; font-size: .8125rem; }
    .product-page-wrapper .hapomeo-product-attributes table.shop_attributes th { width: 42%; }
    .product-page-wrapper .hapomeo-product-decoration { display: none; }
    .product-page-wrapper .hapomeo-price-row { flex-wrap: wrap; }
    .product-page-wrapper .hapomeo-quantity-control { margin-inline-start: auto; }
    .product-page-wrapper .custom-variation-btn { min-height: 2.75rem; }
    .product-page-wrapper #custom-price-container .current-price ins { font-size: 1.35rem; }
    .product-page-wrapper #sticky-buy-bar { gap: .75rem; padding-inline: 1rem; }
    .product-page-wrapper #sticky-buy-bar > div { min-width: 0; }
    .product-page-wrapper .sticky-price-container { font-size: .9375rem; line-height: 1.6; overflow-wrap: anywhere; }
    .product-page-wrapper #sticky-add-to-cart-trigger { flex-shrink: 0; min-height: 3rem; padding-inline: 1rem; font-size: .8125rem; }
    .product-page-wrapper #sticky-add-to-cart-trigger .btn-text { white-space: nowrap; }
    .product-page-wrapper #tab-description { text-align: start; }
    body.single-product #reviews #review_form_wrapper { padding: 1rem; border-radius: 1.25rem; }
    body.single-product #review_form .comment-form { grid-template-columns: minmax(0, 1fr); }
    body.single-product #review_form .comment-form > .comment-form-author,
    body.single-product #review_form .comment-form > .comment-form-email { grid-column: 1 / -1; }
    .product-page-wrapper .hapomeo-product-panels { padding: 1rem; }
    body.single-product #reviews #review_form_wrapper { padding: .75rem; }
    body.single-product #review_form .comment-form-rating { padding: .75rem .5rem; }
    body.single-product #review_form #respond .form-submit #submit { width: 100%; }
    body.single-product #reviews #comments .woocommerce-Reviews-title,
    body.single-product #review_form #reply-title { font-size: 1rem; }
    body.single-product #reviews #comments ol.commentlist li .comment_container { padding: 1rem; }
    body.single-product #reviews .star-rating { margin-bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .product-page-wrapper *, .product-page-wrapper *::before, .product-page-wrapper *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
