/* ==========================================================================
   DESIGN SYSTEM — TOKEN DEFINITIONS
   Primary:   #1A3C34  (Deep Forest Green)
   Accent:    #C87D3E  (Warm Amber/Orange)
   Dark:      #111827  (Near Black)
   Mid:       #4B5563  (Slate Gray)
   Light:     #9CA3AF  (Soft Gray)
   Surface:   #FAFAF9  (Warm White)
   Card:      #FFFFFF
   Serif:     'Playfair Display', Georgia, serif
   Sans:      'Inter', system-ui, sans-serif
   ========================================================================== */

/* ==========================================================================
   GLOBAL PAGE FOUNDATION
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body.woocommerce,
body.woocommerce-page,
body.single-product {
    background-color: #FAFAF9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
}

/* ==========================================================================
   CUSTOM HEADER
   ========================================================================== */
.custom-site-header {
    background: rgba(250, 250, 249, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
}
.custom-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.custom-logo a {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #1A3C34;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.custom-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}
.custom-navigation a {
    color: #4B5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.2s;
}
.custom-navigation a:hover { color: #1A3C34; }
.custom-header-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}
.custom-account-toggle,
.custom-cart-toggle {
    color: #4B5563;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.custom-account-toggle:hover,
.custom-cart-toggle:hover { color: #1A3C34; }
.custom-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #C87D3E;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   SINGLE PRODUCT — LAYOUT
   ========================================================================== */
.custom-single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #111827;
}
.custom-single-product-layout h1,
.custom-single-product-layout h2,
.custom-single-product-layout h3,
.custom-related-products h2,
.custom-related-products h3 {
    font-family: 'Playfair Display', Georgia, serif;
}
@media (max-width: 900px) {
    .custom-single-product-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   LEFT COLUMN — GALLERY
   ========================================================================== */
.custom-product-left { position: relative; }
.custom-product-image-wrapper { position: relative; }
.custom-product-image-wrapper .woocommerce-product-gallery {
    opacity: 1 !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}
.custom-product-image-wrapper .woocommerce-product-gallery__image img {
    border-radius: 14px;
    width: 100%;
    height: auto;
    display: block;
}

/* Sale Badge */
.custom-onsale {
    position: absolute;
    top: 18px;
    left: 18px;
    background-color: #C87D3E;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 10;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Thumbnail Flexslider */
.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
    overflow: hidden;
}
.woocommerce-product-gallery .flex-control-thumbs li { width: 25% !important; }
.woocommerce-product-gallery .flex-control-thumbs img {
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    border-color: #1A3C34;
}

/* Custom JS Slider */
.custom-thumbnails-slider {
    display: flex;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-top: 12px;
}
.custom-thumbnails-slider::-webkit-scrollbar { display: none; }
.custom-thumbnails-slider .woocommerce-product-gallery__image {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: calc(25% - 9px);
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}
.custom-thumbnails-slider .woocommerce-product-gallery__image img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.custom-thumbnails-slider .woocommerce-product-gallery__image img.active {
    border-color: #1A3C34;
}

/* Prev/Next Arrows */
.custom-gallery-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 18px;
    color: #1A3C34;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background 0.2s, transform 0.2s;
}
.custom-gallery-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}
.custom-gallery-arrow.prev { left: 12px; }
.custom-gallery-arrow.next { right: 12px; }

/* Fallback Grid */
.woocommerce-product-gallery__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 !important;
}
.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
    width: calc(25% - 9px) !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}
.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
    width: 100% !important;
    margin-bottom: 2px !important;
}
.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child img {
    border-radius: 14px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}

/* ==========================================================================
   RIGHT COLUMN — PRODUCT INFO
   ========================================================================== */
.custom-product-right {
    display: flex;
    flex-direction: column;
}

/* Breadcrumb */
.custom-woocommerce-breadcrumb {
    font-size: 12px;
    color: #9CA3AF;
    margin-bottom: 20px;
    position: absolute;
    top: 0;
    left: 24px;
}
.custom-woocommerce-breadcrumb a {
    color: #9CA3AF;
    text-decoration: none;
}
.custom-woocommerce-breadcrumb a:hover { color: #4B5563; }

/* Category Label */
.custom-product-brand-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #9CA3AF;
    margin-bottom: 8px;
    margin-top: 24px;
    text-transform: uppercase;
}

/* Title */
.custom-product-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 40px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px 0;
    line-height: 1.2;
}

/* Rating */
.custom-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.star-rating { color: #C87D3E; font-size: 14px; }
.custom-rating-text { font-size: 13px; color: #9CA3AF; }

/* Price & Stock */
.custom-product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
}
.custom-price .price {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.custom-price ins {
    text-decoration: none;
    font-size: 34px;
    font-weight: 700;
    color: #111827;
    font-family: 'Playfair Display', Georgia, serif;
}
.custom-price del {
    font-size: 18px;
    color: #9CA3AF;
    font-weight: 400;
}
.custom-price > .woocommerce-Price-amount {
    font-size: 34px;
    font-weight: 700;
    color: #111827;
    font-family: 'Playfair Display', Georgia, serif;
}
.custom-stock-badge {
    font-size: 11px;
    font-weight: 700;
    background-color: #D1FAE5;
    color: #065F46;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Description */
.custom-product-description {
    font-size: 15px;
    line-height: 1.7;
    color: #4B5563;
    margin-bottom: 28px;
}

/* Add to Cart */
.custom-add-to-cart-wrapper form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
}

/* Variations */
.custom-add-to-cart-wrapper table.variations {
    width: 100%;
    margin-bottom: 20px;
}
.custom-add-to-cart-wrapper table.variations td.label {
    padding-right: 15px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4B5563;
}
.custom-add-to-cart-wrapper table.variations td.value {
    display: flex;
    gap: 10px;
}

/* Quantity */
.custom-add-to-cart-wrapper .quantity {
    display: flex;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    height: 50px;
    background: #fff;
}
.custom-add-to-cart-wrapper .quantity input[type="number"] {
    width: 52px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}
.custom-add-to-cart-wrapper .quantity input::-webkit-outer-spin-button,
.custom-add-to-cart-wrapper .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button */
.custom-add-to-cart-wrapper button.single_add_to_cart_button {
    background-color: #1A3C34;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 40px;
    height: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    flex-grow: 1;
}
.custom-add-to-cart-wrapper button.single_add_to_cart_button:hover {
    background-color: #0f2620;
    transform: translateY(-1px);
}

/* Info Boxes */
.custom-info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}
.info-box {
    background-color: #F9FAFB;
    border: 1px solid #F3F4F6;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.info-title {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.2px;
}
.info-desc {
    font-size: 11px;
    color: #6B7280;
}

/* Meta */
.custom-product-meta {
    border-top: 1px solid #F3F4F6;
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.meta-item { font-size: 12px; color: #9CA3AF; }
.meta-label { font-weight: 600; color: #4B5563; margin-right: 4px; }
.meta-item a { color: #1A3C34; text-decoration: none; }
.meta-item a:hover { text-decoration: underline; }

/* Full Description */
.custom-full-description {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    border-top: 1px solid #F3F4F6;
    font-size: 16px;
    line-height: 1.8;
    color: #4B5563;
}
.custom-full-description h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: #111827;
}

/* ==========================================================================
   RELATED PRODUCTS
   ========================================================================== */
.custom-related-products {
    max-width: 1200px;
    margin: 64px auto 64px;
    padding: 0 24px;
}
.custom-related-products > h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    margin-bottom: 36px;
    color: #111827;
    text-align: center;
}
.custom-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

/* Related Card */
.custom-related-card {
    background: #fff;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.custom-related-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Image Wrapper */
.custom-related-card .card-image-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
}
.custom-related-card .card-image-wrap img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}
.custom-related-card .add_to_cart_button {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background-color: #1A3C34 !important;
    color: #ffffff !important;
    text-align: center;
    padding: 12px 0 !important;
    border-radius: 30px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
    letter-spacing: 1.5px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s;
}
.custom-related-card:hover .add_to_cart_button {
    opacity: 1;
    transform: translateY(0);
}
.custom-related-card .add_to_cart_button:hover {
    background-color: #0f2620 !important;
}

/* Card Info */
.custom-related-card .card-info {
    display: flex;
    flex-direction: column;
    padding: 0 4px 8px;
}
.custom-related-card .card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}
.custom-related-card .card-category {
    font-size: 10px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 3px;
}
.custom-related-card .card-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.custom-related-card .card-price del {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}
.custom-related-card .card-price ins { text-decoration: none; }
.custom-related-card .card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px 0;
}
.custom-related-card .card-title a { color: #111827; text-decoration: none; }
.custom-related-card .card-title a:hover { color: #1A3C34; }
.custom-related-card .card-bottom-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
}
.custom-related-card .card-rating {
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
}
.custom-related-card .card-rating .star { color: #C87D3E; font-size: 14px; }

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
.custom-cart-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    box-shadow: -8px 0 40px rgba(0,0,0,0.12);
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}
.custom-cart-drawer.open { right: 0; }
.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid #F3F4F6;
}
.cart-drawer-header h2 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    color: #111827;
}
.cart-drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #9CA3AF;
    padding: 0;
    transition: color 0.2s;
}
.cart-drawer-close:hover { color: #111827; }
.cart-drawer-body {
    padding: 20px 24px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Cart Drawer — WooCommerce Mini Cart */
.cart-drawer-body .woocommerce-mini-cart__empty-message {
    text-align: center;
    color: #9CA3AF;
    padding: 40px 0;
}
.cart-drawer-body .woocommerce-mini-cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #F3F4F6;
    list-style: none;
}
.cart-drawer-body .woocommerce-mini-cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}
.cart-drawer-body .product-name { font-weight: 600; font-size: 14px; color: #111827; }
.cart-drawer-body .woocommerce-Price-amount { font-weight: 700; color: #1A3C34; }
.cart-drawer-body .remove_from_cart_button { color: #9CA3AF; font-size: 18px; text-decoration: none; }
.cart-drawer-body .remove_from_cart_button:hover { color: #EF4444; }
.cart-drawer-body .woocommerce-mini-cart__total {
    padding: 20px 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    display: flex;
    justify-content: space-between;
}
.cart-drawer-body .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cart-drawer-body .woocommerce-mini-cart__buttons a {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.15s;
}
.cart-drawer-body .button.wc-forward {
    background: #1A3C34;
    color: #fff !important;
}
.cart-drawer-body .button.wc-forward:hover {
    background: #0f2620;
    transform: translateY(-1px);
}
.cart-drawer-body .checkout.wc-forward {
    background: #C87D3E;
    color: #fff !important;
}
.cart-drawer-body .checkout.wc-forward:hover {
    background: #a8642e;
    transform: translateY(-1px);
}

/* ==========================================================================
   OVERLAYS
   ========================================================================== */
.custom-drawer-overlay,
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(2px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.custom-drawer-overlay.open,
.custom-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   ACCOUNT MODAL
   ========================================================================== */
.custom-account-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: 90%;
    max-width: 480px;
    background: #fff;
    z-index: 10000;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 90vh;
    overflow-y: auto;
}
.custom-account-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.account-modal-content {
    padding: 36px 32px;
    position: relative;
}
.account-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #9CA3AF;
    z-index: 10;
    transition: color 0.2s;
    line-height: 1;
}
.account-modal-close:hover { color: #111827; }
.account-modal-content .woocommerce { margin-top: 8px; }
.account-modal-content .woocommerce h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: #111827;
    margin-bottom: 20px;
}
.account-modal-content .woocommerce form input[type="text"],
.account-modal-content .woocommerce form input[type="email"],
.account-modal-content .woocommerce form input[type="password"] {
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 4px;
    transition: border-color 0.2s;
}
.account-modal-content .woocommerce form input:focus {
    border-color: #1A3C34;
    outline: none;
}
.account-modal-content .woocommerce form .button {
    background: #1A3C34 !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 13px 28px !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    display: block;
}
.account-modal-content .woocommerce form .button:hover { background: #0f2620 !important; }

/* ==========================================================================
   SHOP PAGE (Archive)
   ========================================================================== */
.woocommerce-products-header {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 24px;
}
.woocommerce-products-header__title.page-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 40px;
    font-weight: 700;
    color: #111827;
}
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    font-size: 13px;
    color: #6B7280;
    margin: 0 24px 20px;
}
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)) !important;
    gap: 28px !important;
    max-width: 1200px;
    margin: 0 auto 80px !important;
    padding: 0 24px !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

.woocommerce ul.products li.product {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 14px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s !important;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.10) !important;
    transform: translateY(-2px);
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
}
.woocommerce ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 14px !important;
    margin: 0 0 14px 0 !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}
.woocommerce ul.products li.product .price {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 18px !important;
}
.woocommerce ul.products li.product .price del {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    display: inline-block;
    margin-right: 6px;
    opacity: 1;
}
.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    font-weight: 700;
}
.woocommerce ul.products li.product .button {
    background-color: #1A3C34 !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 12px 0 !important;
    border-radius: 30px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 1.5px !important;
    margin-top: auto !important;
    display: block !important;
    width: 100% !important;
    transition: background 0.2s !important;
}
.woocommerce ul.products li.product .button:hover {
    background-color: #0f2620 !important;
}
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 24px;
    left: 24px;
    right: auto;
    background-color: #C87D3E;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    min-height: auto;
    min-width: auto;
    line-height: 1;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==========================================================================
   WOOCOMMERCE NOTICES (Global)
   ========================================================================== */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-top-color: #1A3C34 !important;
    font-size: 14px;
}
.woocommerce-message a.button,
.woocommerce-message .button {
    background: #1A3C34 !important;
    color: #fff !important;
    border-radius: 6px !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .custom-info-boxes { grid-template-columns: 1fr 1fr; }
    .custom-product-title { font-size: 30px; }
    .custom-related-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
    .custom-related-products { padding: 0 16px; }
    .account-modal-content { padding: 24px 20px; }
    .woocommerce ul.products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important; gap: 16px !important; padding: 0 16px !important; }
    .cart-drawer-body .woocommerce-mini-cart__buttons { flex-direction: column; }
}

/* ==========================================================================
   Product Reviews Custom Card Design
   ========================================================================== */
.custom-product-reviews-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
}

.custom-product-reviews-section #reviews {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.custom-product-reviews-section #comments {
    flex: 1 1 50%;
    min-width: 300px;
}

.custom-product-reviews-section #review_form_wrapper {
    flex: 1 1 40%;
    min-width: 300px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.custom-product-reviews-section h2.woocommerce-Reviews-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #1e4a3b;
    margin-bottom: 30px;
}

.custom-product-reviews-section ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Review Card */
.custom-product-reviews-section ol.commentlist li.review {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-product-reviews-section ol.commentlist li.review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* Review Meta (Avatar, Name, Date) */
.custom-product-reviews-section .comment_container {
    display: flex;
    flex-direction: column;
}

.custom-product-reviews-section .comment-text {
    padding-left: 0 !important; /* Override default WC styling */
    border: none !important;
}

.custom-product-reviews-section .comment-text .meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-product-reviews-section .comment-text .meta strong.woocommerce-review__author {
    font-size: 15px;
    color: #1e4a3b;
    font-weight: 600;
}

/* Star Rating in Review (Outputted Reviews) */
.custom-product-reviews-section .star-rating {
    float: none;
    margin-bottom: 15px;
    font-size: 16px;
    position: relative;
    font-family: Arial, sans-serif;
    display: inline-block;
    width: 5.4em;
    height: 1.2em;
}

.custom-product-reviews-section .star-rating::before {
    content: "★★★★★";
    color: #e5e5e5;
    position: absolute;
    top: 0;
    left: 0;
    letter-spacing: 2px;
}

.custom-product-reviews-section .star-rating span {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 1.5em; /* Hide original text */
    height: 0;
    color: #e5b326;
}

.custom-product-reviews-section .star-rating span::before {
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
    letter-spacing: 2px;
}

/* Review Content */
.custom-product-reviews-section .description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Awaiting Approval Notice */
.custom-product-reviews-section .woocommerce-review__awaiting-approval {
    display: block;
    font-style: italic;
    color: #b0572b;
    background: #fdf5f0;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 13px;
}

/* Review Form Styling */
.custom-product-reviews-section #review_form_wrapper h3#reply-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #1e4a3b;
    margin-bottom: 20px;
}

.custom-product-reviews-section .comment-form-rating label,
.custom-product-reviews-section label[for="rating"] {
    display: none !important;
}

/* Hide the native select dropdown */
.custom-product-reviews-section .comment-form-rating select,
.custom-product-reviews-section select#rating {
    display: none !important;
}

/* Custom Interactive Star Rating */
.custom-star-rating-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    cursor: pointer;
}

.custom-star-rating-wrapper svg {
    width: 24px;
    height: 24px;
    fill: #ddd;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.custom-star-rating-wrapper svg.active,
.custom-star-rating-wrapper svg.hover {
    fill: #e5b326;
}

.custom-star-rating-wrapper svg:hover {
    transform: scale(1.1);
}

.custom-product-reviews-section .comment-form-comment label {
    display: none; /* Hide default label */
}

.custom-product-reviews-section .comment-form-comment textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.custom-product-reviews-section .comment-form-comment textarea:focus {
    outline: none;
    border-color: #1e4a3b;
}

.custom-product-reviews-section p.form-submit input[type="submit"] {
    background: #1e4a3b;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.custom-product-reviews-section p.form-submit input[type="submit"]:hover {
    background: #14352a;
}

/* Must be logged in notice */
.custom-product-reviews-section .must-log-in {
    background: #fff;
    border-left: 4px solid #1e4a3b;
    padding: 15px 20px;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

@media (max-width: 768px) {
    .custom-product-reviews-section {
        padding: 0 16px;
        margin: 10px auto;
    }
    .custom-product-reviews-section #reviews {
        flex-direction: column;
    }
    .custom-product-reviews-section #review_form_wrapper {
        padding: 20px 15px;
    }
    
    /* Tighten global mobile spacing */
    .custom-single-product-layout {
        padding: 20px 16px 10px !important;
        gap: 16px !important;
    }
    .custom-product-brand-category {
        margin-top: 12px;
    }
    .custom-product-description {
        margin-bottom: 16px;
    }
    .custom-add-to-cart-wrapper form.cart {
        margin-bottom: 16px;
    }
    .custom-info-boxes {
        margin-bottom: 16px;
    }
    .custom-full-description {
        padding: 24px 16px !important;
    }
    .custom-full-description h2 {
        margin-bottom: 12px;
    }
    .custom-related-products {
        margin: 32px auto 40px !important;
        padding: 0 16px !important;
    }
    .custom-related-products > h2 {
        margin-bottom: 20px;
    }
}