/**
 * Plantscount Single Product Styles
 * Modern, elegant design with Fraunces/DM Sans typography
 */

/* ========================================================================
   MODERN TYPOGRAPHY - Single Product Page
   Fraunces for titles, DM Sans for body
   ======================================================================== */

/* Base typography for product pages */
.single-product {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Product Title - Elegant Fraunces */
.single-product .product_title,
.single-product .pc-product-single__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    font-optical-sizing: auto;
    color: #3D3229;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Price - Bold and prominent */
.single-product .price,
.single-product .pc-product-single__price .price {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D5A3D;
    margin-bottom: 0.5rem;
}

.single-product .price del {
    color: #9B9B98;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: line-through;
}

.single-product .price ins {
    text-decoration: none;
    color: #2D5A3D;
}

/* Short description - readable, compact */
.single-product .woocommerce-product-details__short-description,
.single-product .pc-product-single__excerpt {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #5C5347;
    margin-bottom: 0.25rem;
    padding-bottom: 0;
    border-bottom: none;
}

/* ========================================================================
   CUSTOM PRODUCT GALLERY - Plantscount Design
   Main image large, thumbnails below, clickable
   Preserves original aspect ratio
   ======================================================================== */

/* Single Product Layout - Container width for full layout */
.single-product .woocommerce-page .site-main>.container,
.single-product .site-main>.container {
    max-width: 1400px; /* Wide enough for 2-column layout + related products grid */
    padding: 0 24px;
    box-sizing: border-box;
}

/* Custom Gallery Container */
.pc-product-gallery {
    width: 100%;
    max-width: 550px;
}

/* Main Image Container */
.pc-product-gallery__main {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.pc-product-gallery__figure {
    position: relative;
    width: 100%;
    border-radius: 16px;
    background: #FDFAF5;
    box-shadow: 0 4px 20px rgba(45, 90, 61, 0.08);
    /* No overflow:hidden - let image show full */
}

.pc-product-gallery__link {
    display: block;
    width: 100%;
    cursor: zoom-in;
}

/* Main image - preserve aspect ratio, NO cropping */
.pc-product-gallery__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    aspect-ratio: auto;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.pc-product-gallery__figure:hover .pc-product-gallery__image {
    opacity: 0.95;
}

/* Zoom Icon */
.pc-product-gallery__zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 5;
}

.pc-product-gallery__zoom svg {
    color: #2D5A3D;
}

.pc-product-gallery__figure:hover .pc-product-gallery__zoom {
    opacity: 1;
    transform: scale(1);
}

/* Thumbnails Row */
.pc-product-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    transition: opacity 0.2s ease;
}

/* Hide thumbnails when variation is selected */
.pc-gallery--variation-selected .pc-product-gallery__thumbs {
    display: none;
}

.pc-product-gallery__thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #FDFAF5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pc-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pc-product-gallery__thumb:hover {
    border-color: #89A550;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.15);
}

.pc-product-gallery__thumb:hover img {
    opacity: 1;
}

.pc-product-gallery__thumb--active {
    border-color: #2D5A3D;
    box-shadow: 0 2px 8px rgba(45, 90, 61, 0.2);
}

.pc-product-gallery__thumb--active img {
    opacity: 1;
}

/* Placeholder */
.pc-product-gallery__figure--placeholder img {
    opacity: 0.5;
}

/* ========================================================================
   LIGHTBOX - Full screen image viewer
   CRITICAL: Must be above ALL other elements including tabs, modals, etc.
   ======================================================================== */

.pc-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999; /* Highest z-index to ensure it's always on top */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    isolation: isolate; /* Creates new stacking context */
}

.pc-lightbox--open {
    opacity: 1;
    visibility: visible;
}

/* Ensure lightbox content is also properly stacked */
.pc-lightbox--open * {
    z-index: auto;
}

.pc-lightbox--open .pc-lightbox__close,
.pc-lightbox--open .pc-lightbox__nav {
    z-index: 10;
}

/* Hide ALL fixed/sticky elements when lightbox is open */
/* Using both :has() selector and body class for browser compatibility */
body:has(.pc-lightbox--open) .pc-sticky-add-to-cart,
body:has(.pc-lightbox--open) .site-header,
body:has(.pc-lightbox--open) .usp-bar,
body:has(.pc-lightbox--open) .pc-slim-banner,
body:has(.pc-lightbox--open) .woocommerce-tabs,
body:has(.pc-lightbox--open) .pc-product-single__tabs,
body.pc-lightbox-active .pc-sticky-add-to-cart,
body.pc-lightbox-active .site-header,
body.pc-lightbox-active .usp-bar,
body.pc-lightbox-active .pc-slim-banner,
body.pc-lightbox-active .woocommerce-tabs,
body.pc-lightbox-active .pc-product-single__tabs {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ensure body doesn't scroll when lightbox is open */
body:has(.pc-lightbox--open),
body.pc-lightbox-active {
    overflow: hidden !important;
}

/* Backdrop - blurred background */
.pc-lightbox__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Container */
.pc-lightbox__container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    box-sizing: border-box;
}

/* Close Button */
.pc-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.pc-lightbox__close svg {
    color: white;
}

.pc-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Image Content */
.pc-lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-lightbox__image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    transition: opacity 0.15s ease;
}

/* Navigation Arrows */
.pc-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.pc-lightbox__nav svg {
    color: white;
}

.pc-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.pc-lightbox__nav--prev {
    left: 20px;
}

.pc-lightbox__nav--next {
    right: 20px;
}

/* Counter */
.pc-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pc-product-gallery {
        max-width: 100%;
    }
    
    .pc-product-gallery__thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .pc-product-gallery__thumbs::-webkit-scrollbar {
        display: none;
    }
    
    .pc-product-gallery__thumb {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
    }
    
    /* Lightbox mobile */
    .pc-lightbox__container {
        padding: 50px 10px;
    }
    
    .pc-lightbox__nav {
        width: 44px;
        height: 44px;
    }
    
    .pc-lightbox__nav--prev {
        left: 10px;
    }
    
    .pc-lightbox__nav--next {
        right: 10px;
    }
    
    .pc-lightbox__close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }
}

/* Hide default WooCommerce gallery (we use custom) */
.single-product .woocommerce-product-gallery {
    display: none !important;
}

/* Product Summary - Right Column */
.single-product .summary {
    padding: 0;
}

.single-product .price {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--pc-forest);
    margin-bottom: var(--spacing-md);
}

.single-product .price del {
    color: var(--pc-sage);
    font-size: var(--font-size-base);
    font-weight: 400;
}

.single-product .price ins {
    text-decoration: none;
}

/* Short Description - Compact */
.single-product .woocommerce-product-details__short-description {
    color: var(--pc-charcoal);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
    padding-bottom: 0;
    border-bottom: none;
}

.single-product .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

/* Product Meta Attributes */
.single-product .product-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--pc-cream);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.single-product .product-meta__item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

.single-product .product-meta__item svg {
    color: var(--pc-sage);
    flex-shrink: 0;
}

.single-product .product-meta__label {
    color: var(--pc-sage);
}

.single-product .product-meta__value {
    font-weight: 500;
    color: var(--pc-charcoal);
}

/* Add to Cart Form - scoped to form.cart to avoid targeting table.cart */
.single-product form.cart {
    display: flex;
    gap: var(--spacing-sm);
    align-items: stretch;
    margin-bottom: var(--spacing-lg);
}

.single-product .quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--pc-mist);
    border-radius: var(--radius-md);
    background: var(--pc-white);
}

.single-product .quantity input[type="number"] {
    width: 60px;
    padding: var(--spacing-sm) var(--spacing-xs);
    border: none;
    text-align: center;
    font-size: var(--font-size-base);
    background: transparent;
    color: var(--pc-charcoal, #2c2c2c);
    font-weight: 600;
}

.single-product .quantity input:focus {
    outline: none;
}

.single-product .single_add_to_cart_button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--pc-primary);
    color: var(--pc-white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.single-product .single_add_to_cart_button:hover {
    background: var(--pc-primary-dark);
}

/* Product Tabs - Below Both Columns */
.single-product .woocommerce-tabs {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--pc-mist);
}

/* Related Products - Styling moved to woocommerce.css to avoid conflicts */

/* Sale Badge on Single */
.single-product .onsale {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--pc-primary);
    color: var(--pc-white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    z-index: 10;
}

.single-product .woocommerce-product-gallery {
    position: relative;
}

/* ====== New Single Product Layout ====== */
.pc-product-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 550px) minmax(0, 600px); /* Gallery smaller, content larger */
    gap: 40px;
    align-items: start;
    max-width: 1352px; /* Full canvas width */
    margin: 0 auto;
    padding: 0 24px;
    justify-content: center;
    position: relative; /* CRITICAL: Creates sticky boundary for gallery */
    /* Ensure proper stacking context for children */
    isolation: isolate;
}

@media (max-width: 1200px) {
    .pc-product-single__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
        gap: 32px;
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .pc-product-single__layout {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 100%;
        padding: 0 16px;
    }
}

/* ====== Gallery Container - BOUNDED STICKY ====== */
/* Gallery stays sticky ONLY within .pc-product-single__layout (the grid parent) */
/* When layout ends (at tabs/related), sticky stops automatically */
/* CRITICAL: Gallery must be ABOVE content to prevent overlap */
@media (min-width: 769px) {
    .pc-product-single__gallery {
        position: sticky;
        top: 104px; /* 80px header + 24px spacing */
        align-self: start; /* Critical for grid sticky */
        width: 100%;
        max-width: 550px;
        /* Create stacking context - gallery ABOVE content */
        z-index: 2;
        isolation: isolate;
    }
}

@media (max-width: 768px) {
    .pc-product-single__gallery {
        position: static;
        max-width: 100%;
        width: 100%;
    }
}

/* Old WooCommerce gallery is hidden - we use custom .pc-product-gallery */
/* See CUSTOM PRODUCT GALLERY section at top of file */

/* ====== Content Column - FIXED CONTAINER ====== */
/* CRITICAL: Content must stay BEHIND gallery to prevent overlap */
.pc-product-single__content {
    padding: 0;
    width: 100%;
    max-width: 600px; /* Match grid column */
    min-width: 0; /* Allow shrinking in grid */
    overflow: hidden; /* CRITICAL: contain all children */
    box-sizing: border-box;
    /* Create stacking context - content BELOW gallery */
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.pc-product-single__title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--pc-forest);
    margin: 0 0 4px;
    line-height: 1.2;
}

.pc-product-single__price .price {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--pc-forest);
    margin-bottom: 0;
}

/* Hide empty price container (no "vanaf" on product page) */
.pc-product-single__price:empty {
    display: none;
}

.pc-product-single__excerpt {
    color: var(--pc-charcoal);
    line-height: 1.45;
    margin-bottom: 2px;
}

.pc-product-single__excerpt p:last-child {
    margin-bottom: 0;
}

/* Pot Widget / Upsell Container - Full width within parent */
.pc-product-single__pot-widget-wrapper,
.pc-upsell-v2,
.pc-upsell-v2-modal,
.pc-compact-upsell,
.up-widget {
    width: 100% !important;
    max-width: 100% !important;
    margin: 6px 0;
    padding: 12px;
    background: linear-gradient(135deg, #f7fff7 0%, #faf7f2 100%);
    border: 2px solid #2D5A3D;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(137, 165, 80, 0.15);
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Mobile responsive - full width on small screens */
@media (max-width: 768px) {

    .pc-product-single__pot-widget-wrapper,
    .pc-upsell-v2,
    .pc-upsell-v2-modal,
    .pc-compact-upsell,
    .up-widget {
        max-width: 100% !important;
        margin: 16px 0;
        padding: 12px;
    }
}

.pc-product-single__pot-widget-wrapper:empty {
    display: none;
}

/* CRITICAL FIX: Cart form layout - prevent flex stretching */

/* Parent content wrapper - flex column with strict containment */
.pc-product-single__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto !important;
    max-width: 600px !important;
    overflow: hidden !important;
}

/* Cart wrapper - natural height, not stretched */
.pc-product-single__cart {
    flex: 0 0 auto !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Cart form - block layout, natural height */
.single-product form.cart,
form.cart,
form.variations_form {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    /* Prevent children from expanding beyond */
}

/* Variable product form - ensure it stays within parent */
.single-product .variations_form.cart {
    contain: layout inline-size;
    /* Modern containment */
}

/* All cart form children - natural height */
.single-product form.cart>*,
form.cart>*,
.pc-product-single__cart>* {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* Cart actions wrapper - quantity + button row */
.pc-cart-actions,
form.cart .woocommerce-variation-add-to-cart,
.single_variation_wrap {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    height: auto !important;
    width: 100% !important;
}

/* VARIATION PRICE - compact row */
.woocommerce-variation.single_variation {
    flex: 0 0 100% !important;
    width: 100% !important;
    order: 0 !important;
    margin-bottom: 2px !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.woocommerce-variation.single_variation .woocommerce-variation-price {
    display: inline-flex !important;
    align-items: center;
    flex-shrink: 0;
}

.single-product .woocommerce-variation.single_variation .woocommerce-variation-price .price {
    font-family: var(--font-family-sans, 'DM Sans', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D5A3D;
    margin: 0;
    line-height: 1;
}

/* Hide stock text on product page - delivery badge handles availability info */
.woocommerce-variation.single_variation .woocommerce-variation-availability {
    display: none !important;
}

/* Variation description (Diameter | Hoogte | Gewicht) */
.woocommerce-variation.single_variation .woocommerce-variation-description {
    flex: 0 0 100%;
    font-size: 0.8rem;
    color: #5C5347;
    margin-top: 0;
    line-height: 1.3;
}

.woocommerce-variation.single_variation .woocommerce-variation-description p {
    margin: 0 !important;
}

/* Hide "Kies een optie" when variation is selected */
.single-product .pc-product-single__price .price:has(+ .single_variation_wrap .woocommerce-variation-price .price) {
    display: none !important;
}

/* CRITICAL: Upsell widget takes full row, qty+button below */
form.cart .woocommerce-variation-add-to-cart .pc-upsell,
.single_variation_wrap .pc-upsell,
.variations_form .pc-upsell,
#pc-upsell-widget {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important; /* Let parent constrain it */
    min-width: 0 !important; /* Allow shrinking */
    order: 1 !important;
    margin: 0 0 12px 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    contain: inline-size !important;
}

form.cart .woocommerce-variation-add-to-cart .quantity,
.single_variation_wrap .quantity {
    order: 10 !important;
}

form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.single_variation_wrap .single_add_to_cart_button {
    order: 11 !important;
}

/* Quantity wrapper - compact, inline */
.single-product form.cart .quantity,
.single-product .pc-cart-actions__quantity {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: 48px;
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid #e5e8e5;
    border-radius: 8px;
    overflow: hidden;
}

/* Quantity input */
.single-product form.cart .quantity input[type="number"] {
    width: 60px;
    height: 46px;
    padding: 0 8px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--pc-charcoal, #2c2c2c);
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}

.single-product form.cart .quantity input::-webkit-outer-spin-button,
.single-product form.cart .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to cart button - grows to fill remaining space */
.single-product .single_add_to_cart_button,
.single-product .pc-cart-actions__submit button {
    flex: 1 1 auto;
    min-width: 180px;
    height: 48px;
    padding: 0 24px;
    background: #2D5A3D;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.single_add_to_cart_button:hover {
    background: #3d7a52;
    transform: translateY(-1px);
}

/* Mobile: stack quantity and button */
@media (max-width: 480px) {

    .pc-cart-actions,
    form.cart .woocommerce-variation-add-to-cart,
    .single_variation_wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .single-product form.cart .quantity {
        width: 100%;
        justify-content: center;
    }

    .single-product .single_add_to_cart_button {
        width: 100%;
    }
}

/* Trust Badges */
.pc-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0;
    padding: 8px 12px;
    background: var(--pc-cream);
    border-radius: var(--radius-md);
}

.pc-trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--pc-charcoal);
}

.pc-trust-badge svg {
    flex-shrink: 0;
    color: var(--pc-primary);
}

/* ========================================================================
   PLANT RETURN NOTICE - Product Page
   ======================================================================== */

.pc-return-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF5DC 100%);
    border: 1px solid #F5E6C8;
    border-radius: var(--radius-md);
    border-left: 4px solid #E6A23C;
}

.pc-return-notice__icon {
    flex-shrink: 0;
    color: #E6A23C;
    margin-top: 2px;
}

.pc-return-notice__content {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--pc-charcoal);
}

.pc-return-notice__content strong {
    color: #B7791F;
}

.pc-return-notice__content a {
    color: var(--pc-primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: var(--spacing-xs);
}

.pc-return-notice__content a:hover {
    text-decoration: underline;
}

.pc-product-single__meta {
    font-size: var(--font-size-sm);
    color: var(--pc-sage);
}

.pc-product-single__meta .sku_wrapper,
.pc-product-single__meta .posted_in,
.pc-product-single__meta .tagged_as {
    display: block;
    margin-bottom: var(--spacing-xs);
}

.pc-product-single__meta a {
    color: var(--pc-forest);
    text-decoration: none;
}

.pc-product-single__meta a:hover {
    color: var(--pc-primary);
}

/* Tabs wrapper - full width below gallery/content */
.pc-product-single__tabs-wrapper {
    width: 100%;
    margin-top: var(--spacing-2xl);
}

.pc-product-single__tabs {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--pc-mist);
}

/* Related products wrapper - full width, same max-width as layout */
.pc-product-single__related {
    width: 100%;
    max-width: 1352px; /* Match .pc-product-single__layout */
    margin: var(--spacing-2xl) auto 0;
    padding: 0 24px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .pc-product-single__related {
        padding: 0 16px;
    }
}

/* Pagination */
.pc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
}

.pc-pagination a,
.pc-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--spacing-sm);
    background: var(--pc-white);
    border: 1px solid var(--pc-mist);
    border-radius: var(--radius-md);
    color: var(--pc-charcoal);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pc-pagination a:hover {
    border-color: var(--pc-primary);
    color: var(--pc-primary);
}

.pc-pagination .current {
    background: var(--pc-primary);
    border-color: var(--pc-primary);
    color: var(--pc-white);
}

.pc-pagination .prev,
.pc-pagination .next {
    padding: 0 var(--spacing-xs);
}

/* No Products Found */
.pc-no-products {
    text-align: center;
    padding: var(--spacing-3xl);
    background: var(--pc-cream);
    border-radius: var(--radius-lg);
}

.pc-no-products svg {
    color: var(--pc-sage);
    margin-bottom: var(--spacing-md);
}

.pc-no-products p {
    color: var(--pc-charcoal);
    margin-bottom: var(--spacing-lg);
}

.pc-no-products .pc-filter-reset {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--pc-primary);
    color: var(--pc-white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.pc-no-products .pc-filter-reset:hover {
    background: var(--pc-primary-dark);
}

/* Products Loading State */
.pc-products.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.pc-products.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--pc-mist);
    border-top-color: var(--pc-primary);
    border-radius: 50%;
    animation: pc-spin 0.8s linear infinite;
}

@keyframes pc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====== Enhanced Single Product Page Improvements ====== */

/* Better gallery lightbox trigger */
.single-product .woocommerce-product-gallery__trigger {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single-product .woocommerce-product-gallery__trigger:hover {
    background: var(--pc-white);
    transform: scale(1.1);
}

/* ========================================================================
   PRODUCT TABS - Clean Modern Design
   CRITICAL: Override all WooCommerce default tab styling
   ======================================================================== */

.single-product .woocommerce-tabs,
.pc-product-single__tabs .woocommerce-tabs,
.woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E8EDE5;
}

/* Tabs Navigation - Clean Pill Style */
.single-product .woocommerce-tabs ul.tabs,
.single-product .woocommerce-tabs .wc-tabs,
.single-product .woocommerce-tabs ul.tabs.wc-tabs,
.single-product .wc-tabs-wrapper ul.tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #F5F1E8;
    border-radius: 12px;
    padding: 6px;
    margin: 0 0 2rem 0;
    border: none;
    list-style: none;
    width: auto;
    box-shadow: none;
}

/* Reset any WooCommerce default styles */
.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after {
    display: none;
    content: none;
}

/* Tab Items */
.single-product .woocommerce-tabs ul.tabs li,
.single-product .woocommerce-tabs ul.tabs.wc-tabs li,
.single-product .wc-tabs-wrapper ul.tabs li {
    display: block;
    float: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    position: relative;
    box-shadow: none;
}

/* Reset WooCommerce default tab styling */
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
    display: none;
    content: none;
}

/* Tab Links - Pill Buttons */
.single-product .woocommerce-tabs ul.tabs li a,
.single-product .woocommerce-tabs ul.tabs.wc-tabs li a,
.single-product .wc-tabs-wrapper ul.tabs li a {
    display: block;
    padding: 12px 24px;
    color: #5C5347;
    text-decoration: none;
    font-family: var(--font-family-sans, 'DM Sans', sans-serif);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    border-radius: 8px;
    transition: all 0.25s ease;
    border: none;
    background: transparent;
    white-space: nowrap;
    box-shadow: none;
}

.single-product .woocommerce-tabs ul.tabs li a:hover,
.single-product .woocommerce-tabs ul.tabs.wc-tabs li a:hover {
    color: #2D5A3D;
    background: rgba(45, 90, 61, 0.08);
}

/* Active Tab */
.single-product .woocommerce-tabs ul.tabs li.active,
.single-product .woocommerce-tabs ul.tabs.wc-tabs li.active {
    background: transparent;
    border: none;
    box-shadow: none;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs.wc-tabs li.active a {
    color: #2D5A3D;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Tab Content Panels */
.single-product .woocommerce-Tabs-panel,
.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 2rem 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.single-product .woocommerce-Tabs-panel h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #3D3229;
    margin-bottom: 1.25rem;
}

.single-product .woocommerce-Tabs-panel h3,
.single-product .woocommerce-Tabs-panel h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #3D3229;
    margin: 1.5rem 0 0.75rem;
}

.single-product .woocommerce-Tabs-panel p {
    font-family: 'DM Sans', sans-serif;
    color: #5C5347;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.single-product .woocommerce-Tabs-panel ul,
.single-product .woocommerce-Tabs-panel ol {
    color: #5C5347;
    line-height: 1.75;
    margin: 0 0 1rem 1.5rem;
}

/* Mobile Tabs */
@media (max-width: 640px) {
    .single-product .woocommerce-tabs ul.tabs,
    .single-product .woocommerce-tabs ul.tabs.wc-tabs {
        width: 100%;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px;
    }
    
    .single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
        display: none;
    }
    
    .single-product .woocommerce-tabs ul.tabs li a {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
}

.single-product .woocommerce-Tabs-panel p {
    color: var(--pc-charcoal);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* Product attributes table */
.single-product .woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
}

.single-product .woocommerce-product-attributes tr {
    border-bottom: 1px solid var(--pc-mist);
}

.single-product .woocommerce-product-attributes th,
.single-product .woocommerce-product-attributes td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
}

.single-product .woocommerce-product-attributes th {
    font-weight: 600;
    color: var(--pc-forest);
    width: 35%;
}

.single-product .woocommerce-product-attributes td {
    color: var(--pc-charcoal);
}

/* ========================================================================
   REVIEWS SECTION - Complete Styling
   ======================================================================== */

.single-product #reviews {
    margin-top: 0;
}

.single-product #reviews .woocommerce-Reviews-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #3D3229;
    margin-bottom: 1.5rem;
}

/* Review Summary / Average Rating */
.single-product .woocommerce-Reviews-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #F5F1E8;
    border-radius: 12px;
}

/* Star Rating */
.single-product .star-rating {
    display: inline-flex;
    font-size: 1rem;
    color: #FFB800;
    letter-spacing: 2px;
}

.single-product .star-rating::before {
    content: "★★★★★";
    letter-spacing: 2px;
}

.single-product .star-rating span::before {
    content: "★★★★★";
    color: #FFB800;
    letter-spacing: 2px;
}

/* Reviews List */
.single-product .commentlist,
.single-product #comments .commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.single-product .commentlist li.review,
.single-product #comments .commentlist li {
    padding: 1.5rem;
    background: #FDFAF5;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #E8EDE5;
}

.single-product .comment_container {
    display: flex;
    gap: 1rem;
}

.single-product .comment_container img.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.single-product .comment-text {
    flex: 1;
    min-width: 0;
}

.single-product .comment-text .star-rating {
    margin-bottom: 0.5rem;
}

.single-product .comment-text .meta {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.single-product .comment-text .meta strong {
    color: #2D5A3D;
    font-weight: 600;
}

.single-product .comment-text .meta .woocommerce-review__dash {
    margin: 0 0.5rem;
    color: #9B9B98;
}

.single-product .comment-text .meta time {
    color: #9B9B98;
}

.single-product .comment-text .description p {
    color: #5C5347;
    line-height: 1.7;
    margin: 0;
}

/* No Reviews Message */
.single-product .woocommerce-noreviews {
    padding: 2rem;
    background: #F5F1E8;
    border-radius: 12px;
    text-align: center;
    color: #5C5347;
}

/* Review Form */
.single-product #review_form_wrapper {
    margin-top: 2rem;
}

.single-product #review_form #respond {
    padding: 2rem;
    background: #FDFAF5;
    border-radius: 12px;
    border: 1px solid #E8EDE5;
}

.single-product #review_form .comment-reply-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #3D3229;
    margin-bottom: 1rem;
}

.single-product #review_form .comment-notes {
    color: #9B9B98;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Rating Selection */
.single-product #review_form .comment-form-rating {
    margin-bottom: 1.5rem;
}

.single-product #review_form .comment-form-rating label {
    display: block;
    font-weight: 600;
    color: #3D3229;
    margin-bottom: 0.5rem;
}

.single-product #review_form .stars {
    display: inline-flex;
    gap: 4px;
}

.single-product #review_form .stars a {
    font-size: 1.5rem;
    color: #D1D1D1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-product #review_form .stars a:hover,
.single-product #review_form .stars a.active {
    color: #FFB800;
}

.single-product #review_form .stars.selected a.active ~ a {
    color: #D1D1D1;
}

/* Form Fields */
.single-product #review_form .comment-form-comment,
.single-product #review_form .comment-form-author,
.single-product #review_form .comment-form-email {
    margin-bottom: 1rem;
}

.single-product #review_form label {
    display: block;
    font-weight: 600;
    color: #3D3229;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.single-product #review_form input[type="text"],
.single-product #review_form input[type="email"],
.single-product #review_form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E8EDE5;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.single-product #review_form input:focus,
.single-product #review_form textarea:focus {
    outline: none;
    border-color: #2D5A3D;
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.single-product #review_form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit Button */
.single-product #review_form .form-submit {
    margin-top: 1.5rem;
}

.single-product #review_form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #2D5A3D;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.single-product #review_form input[type="submit"]:hover {
    background: #3d7a52;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.2);
}

/* Logged in message */
.single-product #review_form .logged-in-as {
    color: #5C5347;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.single-product #review_form .logged-in-as a {
    color: #2D5A3D;
    text-decoration: none;
}

.single-product #review_form .logged-in-as a:hover {
    text-decoration: underline;
}

/* Add to cart button - clean hover without ripple effect
 * Removed: ::after ripple pseudo-element (was 300x300px blob)
 * Hover effect handled by background-color transition in existing rules
 */

/* Stock status - hidden on product page, delivery badge covers this */
.single-product .stock {
    display: none !important;
}

.single-product .stock.in-stock {
    display: none !important;
}

.single-product .stock.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

/* Variations table */
.single-product .variations {
    margin-bottom: 4px;
}

.single-product .variations tr {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
}

.single-product .variations td.label {
    font-weight: 600;
    color: var(--pc-forest);
}

.single-product .variations td.value select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--pc-mist);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    background: var(--pc-white);
    cursor: pointer;
}

.single-product .variations td.value select:focus {
    outline: none;
    border-color: var(--pc-primary);
}

.single-product .reset_variations {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--pc-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

.single-product .reset_variations:hover {
    text-decoration: underline;
}

/* Responsive improvements */
@media (max-width: 900px) {
    .single-product .product_title {
        font-size: var(--font-size-xl);
    }

    .single-product .price {
        font-size: var(--font-size-lg);
    }

    .single-product .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
    }

    .single-product .woocommerce-tabs ul.tabs li a {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }

}

@media (max-width: 640px) {
    .single-product form.cart {
        flex-direction: column;
    }

    .single-product .quantity {
        width: 100%;
        justify-content: center;
    }

    .single-product .quantity input[type="number"] {
        width: 80px;
    }
}

/* ==========================================================================
   MOBILE PRODUCT PAGE - CRITICAL FIXES
   ========================================================================== */
@media (max-width: 768px) {
    /* Layout: single column, stacked */
    .pc-product-single__layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 16px !important;
        max-width: 100% !important;
    }

    /* Custom Gallery container: full width */
    .pc-product-single__gallery {
        width: 100% !important;
        max-width: 100% !important;
        order: 1;
        position: relative !important;
    }

    /* Content section: full width below gallery */
    .pc-product-single__content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        order: 2;
    }

    /* Upsell widget: full width, contained */
    .pc-upsell {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* Cart form: full width */
    .single-product form.cart,
    form.cart.variations_form {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Quantity + button row on mobile */
    form.cart .woocommerce-variation-add-to-cart,
    .single_variation_wrap {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    form.cart .woocommerce-variation-add-to-cart .quantity,
    .single_variation_wrap .quantity {
        flex: 0 0 auto !important;
    }

    form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button,
    .single_variation_wrap .single_add_to_cart_button {
        flex: 1 1 auto !important;
        min-width: 150px !important;
    }
}

/* ========================================================================
   PRODUCT REVIEWS - Complete Styling
   ======================================================================== */

.pc-reviews {
    max-width: 800px;
}

/* Reviews Summary Section */
.pc-reviews__summary {
    display: flex;
    gap: 3rem;
    padding: 2rem;
    background: #FDFAF5;
    border-radius: 16px;
    margin-bottom: 2.5rem;
}

.pc-reviews__average {
    text-align: center;
    min-width: 120px;
}

.pc-reviews__score {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 3rem;
    font-weight: 600;
    color: #2D5A3D;
    line-height: 1;
}

.pc-reviews__stars {
    margin: 0.5rem 0;
}

.pc-reviews__star {
    font-size: 1.25rem;
    color: #D4D4D4;
}

.pc-reviews__star--filled {
    color: #F5A623;
}

.pc-reviews__count {
    font-size: 0.875rem;
    color: #5C5347;
}

/* Rating Breakdown Bars */
.pc-reviews__breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.pc-reviews__bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-reviews__bar-label {
    width: 40px;
    font-size: 0.875rem;
    color: #5C5347;
    text-align: right;
}

.pc-reviews__bar {
    flex: 1;
    height: 8px;
    background: #E8EDE5;
    border-radius: 4px;
    overflow: hidden;
}

.pc-reviews__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #89A550, #2D5A3D);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.pc-reviews__bar-count {
    width: 24px;
    font-size: 0.875rem;
    color: #8A8175;
}

/* Reviews List */
.pc-reviews__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #3D3229;
    margin-bottom: 1.5rem;
}

.pc-reviews__items {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pc-reviews__empty {
    padding: 2rem;
    background: #F9F7F3;
    border-radius: 12px;
    color: #5C5347;
    text-align: center;
    margin-bottom: 2rem;
}

/* Individual Review */
.pc-review {
    padding: 1.5rem 0;
    border-bottom: 1px solid #E8EDE5;
}

.pc-review:last-child {
    border-bottom: none;
}

.pc-review__container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pc-review__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pc-review__avatar {
    flex-shrink: 0;
}

.pc-review__avatar-img,
.pc-review__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.pc-review__meta {
    flex: 1;
    min-width: 150px;
}

.pc-review__author {
    font-weight: 600;
    color: #3D3229;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pc-review__verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #2D5A3D;
    background: #E8F5E9;
    padding: 2px 8px;
    border-radius: 12px;
}

.pc-review__verified svg {
    width: 12px;
    height: 12px;
}

.pc-review__date {
    font-size: 0.875rem;
    color: #8A8175;
    margin-top: 2px;
}

.pc-review__rating {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.pc-review__star {
    font-size: 1rem;
    color: #D4D4D4;
}

.pc-review__star--filled {
    color: #F5A623;
}

.pc-review__content {
    color: #5C5347;
    line-height: 1.7;
}

.pc-review__content p {
    margin: 0;
}

.pc-review__pending {
    color: #8A8175;
    font-style: italic;
}

/* Review Form */
.pc-reviews__form-wrapper {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E8EDE5;
}

.pc-reviews__form-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #3D3229;
    margin-bottom: 1.5rem;
}

.pc-reviews__field {
    margin-bottom: 1.25rem;
}

.pc-reviews__field label {
    display: block;
    font-weight: 600;
    color: #3D3229;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.pc-reviews__field .required {
    color: #E53935;
}

.pc-reviews__field input[type="text"],
.pc-reviews__field input[type="email"],
.pc-reviews__field textarea,
.pc-reviews__field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E8EDE5;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #3D3229;
    background: #FDFAF5;
    transition: all 0.25s ease;
}

.pc-reviews__field input:focus,
.pc-reviews__field textarea:focus,
.pc-reviews__field select:focus {
    outline: none;
    border-color: #89A550;
    box-shadow: 0 0 0 3px rgba(137, 165, 80, 0.15);
    background: white;
}

.pc-reviews__field textarea {
    min-height: 120px;
    resize: vertical;
}

.pc-reviews__field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C5347' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.pc-reviews__field--rating {
    max-width: 300px;
}

/* Submit Button */
.pc-reviews__submit,
#review_form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #2D5A3D;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pc-reviews__submit:hover,
#review_form .submit:hover {
    background: #1E3D29;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.25);
}

/* Login Notice */
.pc-reviews__login-notice {
    padding: 1.5rem;
    background: #FFF8E1;
    border-radius: 12px;
    color: #5C5347;
    text-align: center;
}

/* WooCommerce default review styling overrides */
.woocommerce #reviews #comments ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce #reviews #comments ol.commentlist li {
    padding: 1.5rem 0;
    border-bottom: 1px solid #E8EDE5;
    margin: 0;
}

.woocommerce #reviews #comments ol.commentlist li:last-child {
    border-bottom: none;
}

.woocommerce #reviews #comments ol.commentlist li .comment_container {
    display: flex;
    gap: 1rem;
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
    flex: 1;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .star-rating {
    float: right;
    margin-left: 1rem;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .meta {
    margin-bottom: 0.75rem;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .meta strong {
    display: block;
    font-weight: 600;
    color: #3D3229;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .meta .woocommerce-review__published-date {
    font-size: 0.875rem;
    color: #8A8175;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .description p {
    margin: 0;
    color: #5C5347;
    line-height: 1.7;
}

/* Star Rating Display */
.woocommerce .star-rating {
    display: inline-flex;
    font-size: 0.875rem;
    color: #F5A623;
    letter-spacing: 2px;
}

.woocommerce .star-rating::before {
    content: "★★★★★";
    color: #E0E0E0;
}

.woocommerce .star-rating span {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 1.5em;
}

.woocommerce .star-rating span::before {
    content: "★★★★★";
    color: #F5A623;
}

/* Mobile Reviews */
@media (max-width: 640px) {
    .pc-reviews__summary {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .pc-reviews__average {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .pc-reviews__score {
        font-size: 2.5rem;
    }
    
    .pc-review__header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pc-review__rating {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}