/* ==========================================================================
   PRODUCT CODE (SKU) STYLING
   ========================================================================== */
.product-right-column .sku_wrapper {
    display: block;      
    font-size: 0.9rem;    
    color: #6c757d;       
    margin-bottom: 1.25em; 
    margin-top: -0.75em;    
}
.product-right-column .sku_wrapper .sku {
    font-weight: 500;
    color: #343a40;       
}

/********************************************************************************
*
* SINGLE PRODUCT PAGE STYLES
*
* TABLE OF CONTENTS:
* 1.0 - PAGE STRUCTURE & LAYOUT
* 2.0 - LEFT COLUMN: PRODUCT GALLERY
* 3.0 - RIGHT COLUMN: PRODUCT INFORMATION
* 3.1 - Product Title, Brand & Rating
* 3.2 - Price & Add to Cart
* 3.3 - Value Propositions & Tooltips
* 3.4 - Smart Variation Swatches (Full List)
* 4.0 - FULL-WIDTH SECTION: ACCORDION
* 5.0 - PRODUCT FOOTER SECTIONS (Carousels)
* 5.1 - Footer Carousel Arrows (FIXED)
* 6.0 - NOTIFICATIONS & GLOBAL
* 7.0 - PT MEDIA HUB (The Overlay)
*
********************************************************************************/

/* ==========================================================================
   1.0 - PAGE STRUCTURE & LAYOUT
   ========================================================================== */
body.single-product .entry-content {
    padding-top: 10px;
    padding-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box; 
}

.custom-product-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

@media (min-width: 1385px) {
    .custom-product-layout {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 50px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    .product-left-column,
    .product-right-column {
        flex: 1;
        min-width: 0;
    }
    .custom-product-layout .pt-accordion-group {
        flex-basis: 100%;
    }
}

@media (max-width: 1384px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
}

/* ==========================================================================
   2.0 - LEFT COLUMN: PRODUCT GALLERY
   ========================================================================== */
.pt-gallery-layout-final {
    position: relative;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1385px) {
    .pt-gallery-layout-final {
        flex-direction: row;
        gap: 15px;
    }
}

.pt-main-image-final {
    order: 1;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: zoom-in;
}
.pt-main-image-final::-webkit-scrollbar {
    display: none;
}
.pt-gallery-main-image-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    width: 100%;
    aspect-ratio: 1 / 1;
}
.pt-gallery-main-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-out;
}
.pt-main-image-final.is-zoomed {
    overflow: hidden;
    cursor: zoom-out;
}

.pt-thumbnails-final {
    order: 2;
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}
.pt-thumbnails-final::-webkit-scrollbar {
    width: 4px;
}
.pt-thumbnails-final::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.pt-thumbnails-final::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}
.pt-thumbnails-final .pt-thumb-item {
    flex: 0 0 25%;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 0;
}
.pt-thumbnails-final .pt-thumb-item.active {
    border-color: #000;
}
.pt-thumbnails-final .pt-thumb-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 1385px) {
    .pt-main-image-final {
        order: 2;
    }
    .pt-thumbnails-final {
        order: 1;
        flex-direction: column;
        flex: 0 0 90px;
        margin-top: 0;
        overflow-y: auto;
        max-height: 500px;
        padding-bottom: 0;
        padding-right: 8px;
    }
    .pt-thumbnails-final .pt-thumb-item {
        flex: none;
        width: 100%;
        margin-bottom: 4px;
        height: auto !important;
    }
}

/* Ribbons */
.pt-gallery-ribbon {
    position: absolute;
    top: 8px;                
    left: 8px;               
    z-index: 10;
    font-size: 9px;         
    font-weight: 800;        
    padding: 4px 8px;        
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px; 
    color: #fff;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}
.pt-gallery-ribbon.sale-ribbon { background-color: #d00000; }
.pt-gallery-ribbon.new-ribbon { background-color: #000000; }
.pt-gallery-ribbon.stock-ribbon.out { background-color: #757575; }

/* Gallery Specific Nav (Not Carousel) */
.pt-gallery-layout-final .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}
.pt-gallery-layout-final .carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
}
.pt-gallery-layout-final .carousel-nav.prev { left: 15px; }
.pt-gallery-layout-final .carousel-nav.next { right: 15px; }
.pt-gallery-layout-final .carousel-nav .arrow-icon { width: 18px; height: 18px; }

@media (min-width: 1385px) {
    .pt-gallery-layout-final:has(.pt-thumbnails-final) .pt-gallery-ribbon {
        left: 120px; 
    }
    .pt-gallery-layout-final .carousel-nav.prev {
        left: 115px;
    }
}

/* ==========================================================================
   3.0 - RIGHT COLUMN: PRODUCT INFORMATION
   ========================================================================== */
.custom-product-layout .product_title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0;
}
.brand-and-rating-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1em;
    width: 100%;
}
body.single-product .custom-product-layout .product-brand-name {
    font-size: 1rem;
    margin-top: 0; 
}
body.single-product .custom-product-layout .product-brand-name a {
    font-weight: 600;
    color: #000000;
    text-decoration: underline;
    transition: color 0.2s ease;
}
body.single-product .custom-product-layout .product-brand-name a:hover {
    color: #555;
}
.woocommerce.single-product .custom-product-layout .woocommerce-product-rating {
    margin: 0; 
    cursor: pointer;
}
.custom-product-layout .woocommerce-product-rating .woocommerce-review-link {
    cursor: inherit;
    color: #333; 
    text-decoration: none; 
    margin-left: 6px; 
}

/* ==========================================================================
   3.2 - PRICE, VARIATIONS & ADD TO CART (FINAL COMPACT & PROFESSIONAL)
   ========================================================================== */
.add-to-cart-box {
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 15px 20px; 
    margin-bottom: 2em;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    text-align: left;
}

.add-to-cart-box .price-container {
    margin-bottom: 15px; 
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px; 
}
.product-right-column .price {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.1;
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 10px;
}
.product-right-column .price del {
    color: #999;
    font-size: 16px;
    font-weight: 400;
    text-decoration: line-through;
    opacity: 0.8;
}
.product-right-column .price ins {
    text-decoration: none;
    font-weight: 700;
    color: #d0021b !important; 
}

/* Value Props */
.pt-value-props {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;    
    margin-bottom: 15px; 
    font-size: 13px;
    color: #333;
    font-weight: 500;
    width: 100%;
}
.pt-prop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}
.pt-check-icon {
    width: 16px;
    height: 16px;
    color: #28a745; 
    flex-shrink: 0;
}
.pt-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    margin-left: 2px;
}
.pt-info-icon {
    width: 14px;
    height: 14px;
    color: #777;
    transition: color 0.2s;
}
.pt-tooltip-wrapper:hover .pt-info-icon {
    color: #000;
}
.pt-tooltip-content {
    visibility: hidden;
    opacity: 0;
    width: 200px;
    background-color: #111;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 8px 12px;
    position: absolute;
    z-index: 100;
    bottom: 130%; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.pt-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #111 transparent transparent transparent;
}
.pt-tooltip-wrapper:hover .pt-tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Variations Form */
.add-to-cart-box form.variations_form .variations {
    width: 100%;
    margin-bottom: 5px; 
    border: none;
}
.add-to-cart-box form.variations_form .variations tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px; 
}
.add-to-cart-box form.variations_form .variations td {
    padding: 0; border: none; background: transparent !important; text-align: left;
}
.add-to-cart-box form.variations_form .variations td.label {
    margin-bottom: 6px;
    color: #444;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   3.4 - SMART VARIATION SWATCHES (FULL LIST RESTORED)
   ========================================================================== */

/* --- Container Layout --- */
.pt-variation-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center; 
}

/* --- STANDARD CHIPS (Rectangular: Sizes, etc.) --- */
.pt-variation-chips.type-standard .pt-chip {
    background-color: #fff;
    border: 1px solid #dcdcdc;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    min-width: 45px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-align: center;
}
.pt-variation-chips.type-standard .pt-chip:hover { border-color: #888; }
.pt-variation-chips.type-standard .pt-chip.selected {
    background-color: #111;
    color: #fff;
    border-color: #111;
}

/* --- COLOR CHIPS (Circular) --- */
.pt-variation-chips.type-color .pt-chip {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background-color: #eee;
    color: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
    box-shadow: inset 0 0 0 2px #fff;
    transition: transform 0.2s ease;
}
.pt-variation-chips.type-color .pt-chip:hover { transform: scale(1.1); }
.pt-variation-chips.type-color .pt-chip.selected {
    border: 1px solid #000;
    transform: scale(1.15);
}

/* --- FULL COLOR MAPPING --- */

/* 1. Basics */
.pt-variation-chips.type-color .pt-chip.color-black { background-color: #000000 !important; }
.pt-variation-chips.type-color .pt-chip.color-white { background-color: #ffffff !important; border-color: #cccccc !important; }
.pt-variation-chips.type-color .pt-chip.color-grey,
.pt-variation-chips.type-color .pt-chip.color-gray { background-color: #808080 !important; }

/* 2. Primaries & Secondaries */
.pt-variation-chips.type-color .pt-chip.color-red { background-color: #d0021b !important; }
.pt-variation-chips.type-color .pt-chip.color-blue { background-color: #0044cc !important; }
.pt-variation-chips.type-color .pt-chip.color-green { background-color: #28a745 !important; }
.pt-variation-chips.type-color .pt-chip.color-yellow { background-color: #ffc107 !important; }
.pt-variation-chips.type-color .pt-chip.color-orange { background-color: #fd7e14 !important; }
.pt-variation-chips.type-color .pt-chip.color-purple { background-color: #6f42c1 !important; }
.pt-variation-chips.type-color .pt-chip.color-pink { background-color: #e83e8c !important; }

/* 3. Dark / Deep Tones */
.pt-variation-chips.type-color .pt-chip.color-navy { background-color: #001f3f !important; }
.pt-variation-chips.type-color .pt-chip.color-maroon { background-color: #800000 !important; }
.pt-variation-chips.type-color .pt-chip.color-forest-green { background-color: #228B22 !important; }
.pt-variation-chips.type-color .pt-chip.color-brown { background-color: #795548 !important; }
.pt-variation-chips.type-color .pt-chip.color-burgundy { background-color: #800020 !important; }

/* 4. Light / Pastel Tones */
.pt-variation-chips.type-color .pt-chip.color-beige { background-color: #f5f5dc !important; border-color: #dcdcdc !important; }
.pt-variation-chips.type-color .pt-chip.color-cream { background-color: #fffdd0 !important; border-color: #dcdcdc !important; }
.pt-variation-chips.type-color .pt-chip.color-teal { background-color: #20c997 !important; }
.pt-variation-chips.type-color .pt-chip.color-olive { background-color: #808000 !important; }

/* 5. Metallics */
.pt-variation-chips.type-color .pt-chip.color-gold { 
    background: linear-gradient(135deg, #ffd700, #b8860b) !important; 
}
.pt-variation-chips.type-color .pt-chip.color-silver { 
    background: linear-gradient(135deg, #e0e0e0, #a9a9a9) !important; 
}
.pt-variation-chips.type-color .pt-chip.color-rose-gold { 
    background: linear-gradient(135deg, #b76e79, #e6c2c2) !important; 
}

/* Fallback: If no color matches, show text */
.pt-variation-chips.type-color .pt-chip:not([class*="color-"]) {
    width: auto;
    height: auto;
    border-radius: 4px;
    padding: 8px 15px;
    color: #333 !important; /* Force visible text */
    font-size: 13px !important; /* Force readable size */
    background-color: #fff;
    border: 1px solid #ccc;
}

/* Clear Link */
.reset_variations {
    display: inline-block;
    margin-left: 10px; 
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    text-decoration: underline;
    vertical-align: middle;
    float: none !important;
}

/* Quantity & Button */
.add-to-cart-box .single_variation_wrap .woocommerce-variation-add-to-cart,
.add-to-cart-box form.cart:not(.variations_form) {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
    margin-top: 0; 
    justify-content: flex-start;
    align-items: stretch; 
}
.add-to-cart-box .quantity {
    display: inline-flex;
    align-items: center;
    width: 125px; 
    height: 48px; 
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background-color: #fff;
    padding: 0;
    overflow: hidden; 
    box-sizing: border-box; 
}
.add-to-cart-box .quantity .pt-instant-btn {
    flex: 0 0 35px; 
    height: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.add-to-cart-box .quantity .pt-instant-btn:hover { background-color: #f9f9f9; color: #000; }
.add-to-cart-box .quantity .input-text.qty {
    flex: 1; 
    width: auto; 
    height: 100%;
    border: none;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    background: transparent;
    padding: 0;
    margin: 0; 
}
.add-to-cart-box .quantity input::-webkit-outer-spin-button,
.add-to-cart-box .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.add-to-cart-box button.single_add_to_cart_button {
    flex-grow: 1; 
    flex-basis: auto; 
    height: 48px; 
    background-color: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 1px; 
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 25px;
    min-width: 140px; 
}
.add-to-cart-box button.single_add_to_cart_button:hover {
    background-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.add-to-cart-box button.single_add_to_cart_button.disabled {
    background-color: #e5e5e5;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   4.0 - FULL-WIDTH SECTION: ACCORDION
   ========================================================================== */
.pt-accordion-group {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 30px;
}
.pt-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}
.pt-accordion-item:last-child {
    border-bottom: none;
}
.pt-accordion-title {
    margin: 0;
    font-size: 1rem;
}
.pt-accordion-title button {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.pt-accordion-item.active .pt-accordion-title button {
    background-color: #f9f9f9;
}
.pt-accordion-icon {
    width: 1em;
    height: 1em;
}
.pt-accordion-content {
    max-height: 0;
    overflow: hidden;
    padding-left: 30px;
    padding-right: 30px;
}
.pt-accordion-item.active .pt-accordion-content {
    padding-top: 30px;
    padding-bottom: 30px;
}

.review-layout-wrapper {
    display: flex;
    gap: 30px;
}
.review-layout-left {
    flex: 0 0 30%;
    padding-right: 30px;
    border-right: 1px solid #e0e0e0;
    text-align: left;
}
.review-layout-left h3 {
    margin-top: 0;
    font-size: 1.2rem;
}
.review-layout-left p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}
.review-layout-right {
    flex: 1;
}
@media (max-width: 768px) {
    .review-layout-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .review-layout-left {
        flex-basis: auto;
        border-right: none;
        padding-right: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid #e0e0e0;
        text-align: center;
    }
}
.custom-product-reviews {
    text-align: left;
}
.custom-product-reviews .review {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
}
.custom-product-reviews .review:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.custom-product-reviews .review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.custom-product-reviews .review-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.custom-product-reviews .review-meta {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}
.custom-product-reviews .review-author {
    font-weight: 700;
    font-size: 1rem;
    color: #111;
}
.custom-product-reviews .review-rating {
    font-size: 1rem;
    color: #ffa200;
    line-height: 1;
}
.custom-product-reviews .review-headline {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: #111;
}
.custom-product-reviews .review-comment {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}
body.single-product .custom-product-layout .review-button,
body.single-product .custom-product-layout .custom-product-reviews .see-more-reviews {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 1px;
    padding: 10px 20px;
    margin-top: 10px;
    transition: all 0.2s ease-in-out;
    font-size: 14px;
}
body.single-product .custom-product-layout .review-button:hover,
body.single-product .custom-product-layout .review-button:focus,
body.single-product .custom-product-layout .review-button:active,
body.single-product .custom-product-layout .custom-product-reviews .see-more-reviews:hover,
body.single-product .custom-product-layout .custom-product-reviews .see-more-reviews:focus,
body.single-product .custom-product-layout .custom-product-reviews .see-more-reviews:active {
    background-color: #f5f5f5;
    border-color: #aaa;
    color: #111;
    outline: none;
}

body.single-product .custom-product-layout .pt-accordion-content table.shop_attributes {
    border: 1px solid #eaeaea;
    border-collapse: collapse;
    width: 100%;
    margin: 0;
}
body.single-product .custom-product-layout .pt-accordion-content table.shop_attributes th,
body.single-product .custom-product-layout .pt-accordion-content table.shop_attributes td {
    padding: 16px;
    border-bottom: 1px solid #eaeaea;
    background-color: transparent !important;
    text-align: left;
    font-size: 16px;
}
body.single-product .custom-product-layout .pt-accordion-content table.shop_attributes th {
    font-weight: 600;
    color: #111;
    width: 30%;
}
body.single-product .custom-product-layout .pt-accordion-content table.shop_attributes tr:last-child th,
body.single-product .custom-product-layout .pt-accordion-content table.shop_attributes tr:last-child td {
    border-bottom: none;
}
body.single-product .custom-product-layout .pt-accordion-content table.shop_attributes td p {
    margin: 0;
    padding: 0;
}


/* ==========================================================================
   SINGLE PRODUCT PAGE - VARIANT PAGE TEMPLATE 
   --- Fix for Variation Form Flash --- *
   ========================================================================== */

.single-product .variations_form {
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
}
.single-product .variations_form.pt-form-ready {
  opacity: 1;
}

/* ==========================================================================
   SINGLE PRODUCT PAGE - HIDE BREADCRUMBS ON MOBILE
   ========================================================================== */

@media (max-width: 1384px) {
    .woocommerce-breadcrumb {
        display: none;
    }
}


/* ==========================================================================
   SINGLE PRODUCT PAGE - MOBILE "ABOVE THE FOLD" ADJUSTMENT
   ========================================================================== */

@media (max-width: 1384px) {
    /* This rule limits the height of the main image's scrolling container */
    .single-product .pt-main-image-final {
        max-height: 43vh; 
    }

    /* Prevent main image crop */
    .single-product .pt-gallery-main-image-item {
        aspect-ratio: auto; 
    }

    /* Smaller thumbnails on mobile */
    .single-product .pt-thumbnails-final .pt-thumb-item {
        flex: 0 0 20%; 
    }
}


/* ==========================================================================
   5.0 - PRODUCT FOOTER SECTIONS (Carousels) - SCOPED TO SINGLE PRODUCT
   ========================================================================== */
body.single-product .custom-product-footer-sections {
    width: 100%;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    
    /* 🏆 FIX: Prevent overflow hiding from killing the arrows */
    overflow: visible; 
}

body.single-product .custom-product-footer-sections section {
    margin-bottom: 60px;
    width: 100%;
    position: relative;
    overflow: visible !important; /* 🏆 CRITICAL for arrows appearing outside */
}

/* --- TITLES: Standard Title Case --- */
body.single-product .custom-product-footer-sections h2 {
    font-weight: 700;
    margin-bottom: 25px;
    color: #111;
    text-transform: none; 
    letter-spacing: -0.5px;
}

/* --- CAROUSEL TRACK --- */
body.single-product .custom-product-footer-sections .native-carousel {
    width: 100%;
    display: block;
    position: relative; /* 🏆 Anchor Point for Arrows */
}

body.single-product .custom-product-footer-sections .carousel-track {
    display: flex;
    gap: 20px;
    width: 100%; 
    overflow-x: auto;
    padding-bottom: 20px; 
    
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
body.single-product .custom-product-footer-sections .carousel-track::-webkit-scrollbar { display: none; }

/* --- CAROUSEL ITEMS: Fixed Size Strategy (DESKTOP DEFAULT) --- */
body.single-product .custom-product-footer-sections .carousel-item {
    flex: 0 0 240px; 
    width: 240px;
    max-width: 240px;
    box-sizing: border-box;
}

/* ==========================================================================
   5.1 - FOOTER CAROUSEL ARROWS (FIXED - OUTSIDE POSITIONING)
   ========================================================================== */

/* Base Styles for Previous/Next Buttons */
body.single-product .custom-product-footer-sections .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99; /* Ensure they sit above everything */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 1 !important; /* 🏆 Force visible */
}

/* Hover State */
body.single-product .custom-product-footer-sections .carousel-nav:hover {
    background-color: #000;
    border-color: #000;
    transform: translateY(-50%) scale(1.1);
}

/* Invert arrow color on hover */
body.single-product .custom-product-footer-sections .carousel-nav:hover .arrow-icon {
    filter: invert(1);
}

/* 🏆 POSITIONING: Push them OUTSIDE the container */
body.single-product .custom-product-footer-sections .carousel-nav.prev {
    left: -50px; 
}
body.single-product .custom-product-footer-sections .carousel-nav.next {
    right: -50px; 
}

/* Icon Size */
body.single-product .custom-product-footer-sections .carousel-nav .arrow-icon {
    width: 16px;
    height: 16px;
    display: block;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 768px) {
    body.single-product .custom-product-footer-sections {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    body.single-product .custom-product-footer-sections h2 {
        font-size: 1.5rem;
        padding-left: 0; 
    }

    /* 🏆 FIX: OVERRIDE FIXED WIDTH FOR MOBILE */
    body.single-product .custom-product-footer-sections .carousel-item {
        flex: 0 0 40% !important;
        width: 40% !important;
        max-width: 40% !important;
    }
    
    /* Tighten gap for mobile */
    body.single-product .custom-product-footer-sections .carousel-track {
        gap: 10px;
        padding-right: 40px; /* Peek effect */
    }
    
    /* Hide arrows on mobile (swipe is better) */
    body.single-product .custom-product-footer-sections .carousel-nav {
        display: none !important; 
    }
}

/* ==========================================================================
   6.0 - GLOBAL NOTIFICATION STYLING (Shared with Cart)
   ========================================================================== */
.woocommerce-message, 
.woocommerce-error, 
.woocommerce-info {
    position: fixed !important;
    top: 100px !important;        
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 999999 !important;
    width: auto !important;
    min-width: 300px;
    max-width: 90%;
    background-color: #111 !important;
    color: #fff !important;
    padding: 15px 25px !important;
    border: none !important;
    border-left: 4px solid var(--pt-brand-red, #D00) !important;
    border-radius: 4px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none !important; }

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: #fff !important;
    text-decoration: underline;
    font-weight: 700;
}

.woocommerce-message .button.wc-forward {
    background: transparent !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 12px !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 0;
    float: none !important;
    order: 2;
    white-space: nowrap;
}

/* ==========================================================================
   FIX: HIDE DUPLICATE/NATIVE QUANTITY CONTROLS
   ========================================================================== */
.add-to-cart-box .quantity input[type=number]::-webkit-inner-spin-button, 
.add-to-cart-box .quantity input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
.add-to-cart-box .quantity input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}
.add-to-cart-box .quantity .plus:not(.pt-instant-btn),
.add-to-cart-box .quantity .minus:not(.pt-instant-btn) {
    display: none !important;
}
.add-to-cart-box .quantity .pt-instant-btn {
    display: flex !important;
}


/* ==========================================================================
   7.0 - PT MEDIA HUB STYLES (FINAL V6 - FIXED MOBILE)
   ========================================================================== */

/* 1. Container */
.pt-media-hub {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.pt-media-hub.open { opacity: 1; pointer-events: auto; }

.pt-hub-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 2. Controls - CLOSE BUTTON (DESKTOP) */
.pt-hub-close {
    position: fixed;
    top: 30px; 
    right: 80px; 
    background: rgba(0, 0, 0, 0.5); 
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    width: 60px; 
    height: 60px; 
    cursor: pointer;
    z-index: 10000000;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.pt-hub-close:hover { 
    background: #fff; 
    color: #000; 
    transform: scale(1.1);
}
.pt-hub-close svg { width: 32px; height: 32px; }

/* Navigation Arrows (DESKTOP) */
.pt-hub-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1); 
    border: none;
    border-radius: 50%;
    width: 50px; height: 50px;
    color: #fff;
    cursor: pointer;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.pt-hub-nav:hover { background: #fff; color: #000; }
.pt-hub-nav svg { width: 24px; height: 24px; }
.pt-hub-nav.prev { left: 80px; }
.pt-hub-nav.next { right: 80px; }

/* 3. Layout Wrapper (DESKTOP) */
.pt-hub-content-wrapper {
    position: relative;
    width: 95%; height: 90%;
    max-width: 1400px;
    display: flex;
    flex-direction: row;
    z-index: 10;
    background: #000; 
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
    overflow: hidden; 
    border-radius: 6px;
}

/* 4. Media Stage (Left) */
.pt-hub-media-stage {
    flex: 1; 
    background: #000;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}
.pt-hub-media-stage:active { cursor: grabbing; }

/* Counter */
.pt-hub-counter {
    position: absolute;
    top: 20px; left: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    z-index: 20;
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Current Image Area */
#pt-hub-current-media {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 10px;
}
#pt-hub-current-media img,
#pt-hub-current-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Thumbnails Strip */
.pt-hub-thumbnails {
    position: relative;
    width: 100%;
    height: 90px;
    flex: 0 0 90px;
    background: #0a0a0a;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #333;
}
.pt-hub-thumbnails-track {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none; 
    max-width: 100%;
    height: 100%;
    align-items: center;
}
.pt-hub-thumbnails-track::-webkit-scrollbar { display: none; } 

.pt-hub-thumb {
    width: 60px; height: 60px;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.5;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}
.pt-hub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pt-hub-thumb.active { opacity: 1; border-color: #fff; transform: scale(1.1); }

/* 5. Sidebar (Right) */
.pt-hub-details {
    width: 380px;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 40px;
    overflow-y: auto;
}
.pt-hub-user-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.pt-hub-avatar { width: 48px; height: 48px; background: #000; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.pt-hub-user-info h4 { margin: 0; font-size: 16px; font-weight: 800; color: #000; }
.pt-hub-rating { color: #ffa200; font-size: 13px; margin-top: 4px; }
#pt-hub-date { display: block; font-size: 11px; color: #999; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.pt-hub-review-text h5 { margin: 0 0 10px 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.pt-hub-review-text p { font-size: 15px; line-height: 1.6; color: #444; }

/* Loader */
.pt-hub-loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.2); border-top-color: #fff; border-radius: 50%; animation: ptSpin 1s linear infinite; z-index: 5; display: none; }
@keyframes ptSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Sidebar Gallery (Desktop) */
.pt-hub-sidebar-gallery {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    width: 100%;
}
.pt-sidebar-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    background: #f0f0f0;
}
.pt-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pt-sidebar-thumb.active { opacity: 1; border-color: #000; }

/* ==========================================================================
   MOBILE RESPONSIVE (UPDATED V8 - FIXED HEIGHT APP LAYOUT)
   ========================================================================== */
@media (max-width: 900px) {
    
    /* 1. Wrapper: "App-like" fixed container. No page scrolling. */
    .pt-hub-content-wrapper {
        flex-direction: column;
        width: 100%; 
        height: 100%; /* 🏆 Force fit to viewport height */
        border-radius: 0;
        background: #fff;
        overflow: hidden; /* 🏆 Disable global scroll */
    }

    /* 2. Media Area (Image): Grow to fill available space */
    .pt-hub-media-stage {
        flex: 1; /* 🏆 Take all remaining height */
        width: 100%; 
        height: auto; 
        min-height: 0; /* 🏆 Critical for Flexbox resizing */
        background: #000;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* Image Container */
    #pt-hub-current-media {
        flex: 1;
        min-height: 0;
        width: 100%;
        padding-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* The Actual Image: Fit nicely */
    #pt-hub-current-media img {
        width: 100%;
        height: 100%;
        max-height: none; /* Remove pixel limits, let Flex handle it */
        object-fit: contain;
    }

    /* 3. Filmstrip Thumbnails: Fixed height at bottom of Media Area */
    .pt-hub-thumbnails {
        display: flex !important; 
        height: 100px; 
        flex: 0 0 100px; /* Don't shrink */
        background: #111;
        padding-top: 5px;
        padding-bottom: 5px;
        z-index: 20;
    }
    .pt-hub-thumb { 
        width: 80px; 
        height: 80px; 
        border-radius: 4px;
    }

    /* 4. Text/Details Area: Restrict height, Scroll internally */
    .pt-hub-details {
        width: 100%; 
        flex: 0 0 auto; /* Sizing based on content... */
        max-height: 45vh; /* 🏆 ...but NEVER taller than 45% of screen */
        padding: 20px;
        overflow-y: auto; /* 🏆 Internal scroll for text/gallery */
        background: #fff;
        border-top: 1px solid #eee;
    }

    /* 5. Mobile Sidebar Gallery (User images): Always visible */
    .pt-hub-sidebar-gallery {
        display: grid !important; 
        margin-top: 15px;
        /* Larger grid items for easy tapping */
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 10px;
    }

    /* 6. CLOSE BUTTON: Large, White, Visible */
    .pt-hub-close {
        top: 10px !important; 
        right: 10px !important;
        width: 60px; /* Good touch target */
        height: 60px;
        background: #fff !important; 
        color: #000 !important;
        border: 2px solid #ccc;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        z-index: 2147483647 !important; 
    }
    .pt-hub-close svg { width: 28px; height: 28px; }

    /* Hide Desktop Arrows */
    .pt-hub-nav { display: none; }
}

/* Thumbnails inside the review list */
.pt-review-media-grid {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.pt-review-media-item {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}
.pt-review-media-item:hover {
    transform: scale(1.05);
    border-color: #000;
}
.pt-review-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pt-play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    pointer-events: none;
}


/* ==========================================================================
   SHARP STAR RATING STYLES (REQUIRED FOR SINGLE PRODUCT PAGE)
   ========================================================================== */
.pt-sharp-star-row {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    white-space: nowrap; /* 🏆 Fixes glitchy layout */
}

.pt-sharp-star {
    /* Base Size */
    width: 18px; 
    height: 18px;
    background-color: #e0e0e0; /* Grey for empty stars */
    
    /* 🏆 The Magic Shape */
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    flex-shrink: 0;
}

.pt-sharp-star.full {
    background-color: #FFA200; /* Piston Gold */
}

/* Gradient for half-stars */
.pt-sharp-star.half {
    background: linear-gradient(90deg, #FFA200 50%, #e0e0e0 50%);
}

/* 🏆 FORCE HIDE OLD STARS (Just in case) */
.woocommerce-product-rating {
    display: none !important;
}
/* Ensure OUR rating box is visible */
.pt-rating-box {
    display: flex !important;
}