/*
Theme Name:   Shoptimizer Child Custom
Theme URI:    https://bonsaiplantsonline.com
Author:       BonsaiPlantsOnline
Description:  Child theme for Shoptimizer — replicates PeppyFlora PDP design
Template:     shoptimizer
Version:      1.0.0
Text Domain:  shoptimizer-child
*/

/* =============================================================================
   1. CSS CUSTOM PROPERTIES — Design Tokens
   ============================================================================= */
:root {
    --bpo-green:        #112217;   /* primary luxury dark forest green */
    --bpo-green-light:  #1f3f2b;   /* hover state green */
    --bpo-gold:         #C5A059;   /* brushed gold accent */
    --bpo-terracotta:   #D48C70;   /* warm highlight */
    --bpo-charcoal:     #2c2d30;   /* secondary buttons */
    --bpo-text:         #1c1c1c;   /* high-contrast legible body text */
    --bpo-text-muted:   #4a4b4c;   /* legible secondary text */
    --bpo-border:       #e2dfd9;   /* warm border */
    --bpo-bg-light:     #fbfbfa;   /* luxury alabaster bg */
    --bpo-white:        #ffffff;
    --bpo-radius-pill:  50px;      /* pill button radius */
    --bpo-radius-sm:    8px;
    --bpo-radius-md:    12px;
}


/* =============================================================================
   2. GLOBAL TYPOGRAPHY
   ============================================================================= */

/* Body text */
body {
    color: var(--bpo-text);
}

/* All headings use brand green */
h1, h2, h3, h4, h5, h6,
.woocommerce-loop-product__title,
.product_title {
    color: var(--bpo-green);
}


/* =============================================================================
   3. BUTTONS — pill shape, uppercase, brand green
   ============================================================================= */

/* Every button and input submit gets the pill treatment */
.button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.single_add_to_cart_button,
.added_to_cart,
ul.products li.product .button,
ul.products li.product .added_to_cart {
    border-radius: var(--bpo-radius-pill) !important; /* pill — overrides Shoptimizer default square */
    text-transform: uppercase !important;             /* matches peppyflora button style */
    letter-spacing: 1.5px !important;                /* matches peppyflora */
    background-color: var(--bpo-green) !important;
    border-color: var(--bpo-green) !important;
    color: var(--bpo-white) !important;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
input[type="submit"]:hover,
.single_add_to_cart_button:hover,
ul.products li.product .button:hover {
    background-color: var(--bpo-green-light) !important;
    border-color: var(--bpo-green-light) !important;
    color: var(--bpo-white) !important;
}

/* Add to cart button on PDP — larger */
.single_add_to_cart_button {
    padding: 14px 28px !important;
    font-size: 15px !important;
    width: 100%;
    height: 52px;
    line-height: 1 !important;
}

/* Secondary / outline button style */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--bpo-green) !important;
    border-color: var(--bpo-green) !important;
}


/* =============================================================================
   4. PRODUCT LAYOUT — wrapper, columns
   ============================================================================= */

/* Two-column flex layout on desktop */
@media (min-width: 993px) {
    div.product .product-details-wrapper {
        display: flex;
        justify-content: space-between;
        gap: 2.5rem;
        align-items: flex-start;
    }

    /* Gallery column — ~55% width */
    div.product .woocommerce-product-gallery,
    div.product #commercegurus-pdp-gallery-wrapper {
        flex: 0 0 54%;
        max-width: 54%;
    }

    /* Summary column — ~42% width, sticky */
    div.product .summary.entry-summary {
        flex: 0 0 42%;
        max-width: 42%;
        position: sticky;
        top: 30px;
        align-self: flex-start;
    }
}


/* =============================================================================
   5. PRODUCT GALLERY
   ============================================================================= */

/* Ensure gallery images fill the container at 3:4 portrait ratio */
.woocommerce-product-gallery__image,
.commercegurus-pdp-gallery .swiper-slide a img,
#commercegurus-pdp-gallery .cg-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Remove default WooCommerce gallery border */
.woocommerce-product-gallery {
    border: none !important;
}

/* Gallery thumbnail strip */
.flex-control-thumbs li,
.commercekit-thumbnail-wrapper li {
    opacity: 0.65;
    transition: opacity 0.2s;
    cursor: pointer;
}
.flex-control-thumbs li:hover,
.flex-control-thumbs .flex-active,
.commercekit-thumbnail-wrapper li.active {
    opacity: 1;
}

/* CommerceKit Swiper gallery — vertical-left layout */
.cg-layout-vertical-left .cg-thumbs-wrapper {
    width: 90px;
    flex-shrink: 0;
}
.cg-layout-vertical-left #commercegurus-pdp-gallery {
    display: flex;
    flex-direction: row;
    gap: 10px;
}


/* =============================================================================
   6. PRODUCT TITLE
   ============================================================================= */

.product_title.entry-title {
    font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--bpo-green);
    margin-bottom: 0.4rem;
}


/* =============================================================================
   7. STAR RATING — styled to match Wiser Reviews look via WooCommerce native
   ============================================================================= */

.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
    font-size: 13px;
}

/* Stars — override WC default yellow to brand gold */
.star-rating span::before,
.star-rating::before {
    color: var(--bpo-gold) !important;
}

.star-rating {
    font-size: 1em;
}

/* Review count link */
.woocommerce-review-link {
    color: var(--bpo-text-muted);
    font-size: 13px;
    text-decoration: underline;
}


/* =============================================================================
   8. PRICE
   ============================================================================= */

.woocommerce-Price-amount {
    color: var(--bpo-green);
    font-weight: 700;
}

p.price,
div.product p.price,
div.product span.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bpo-green);
    margin-bottom: 0.6rem;
}

/* Sale price — crossed out old, green new */
div.product p.price del {
    color: var(--bpo-text-muted);
    font-weight: 400;
    font-size: 1rem;
    opacity: 0.7;
}
div.product p.price ins {
    text-decoration: none;
    font-weight: 700;
    color: var(--bpo-green);
}


/* =============================================================================
   9. TRUST BADGES ROW — p.price_per_day / .bpo-trust-badges
   ============================================================================= */

/* Badge row container */
p.price_per_day,
.bpo-trust-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.2rem;
    padding: 0.75rem 0;
    margin: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--bpo-border);
    border-bottom: 1px solid var(--bpo-border);
}

/* Individual badge item */
.price_per_day_item,
.bpo-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 12px;
    font-weight: 600;
    color: var(--bpo-green);
    letter-spacing: 0.01em;
    position: relative;
    cursor: default;
}

/* SVG icons inside badges */
.price_per_day_item svg,
.bpo-badge-item svg {
    flex-shrink: 0;
    color: var(--bpo-green);
}

/* Tooltip — custom tooltip on hover */
.price_per_day_item[data-tooltip],
.bpo-badge-item[data-tooltip] {
    cursor: help;
}

.bpo-tooltip {
    visibility: hidden;
    opacity: 0;
    background: var(--bpo-text);
    color: var(--bpo-white);
    text-align: center;
    border-radius: var(--bpo-radius-sm);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.bpo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--bpo-text);
}

.price_per_day_item:hover .bpo-tooltip,
.bpo-badge-item:hover .bpo-tooltip {
    visibility: visible;
    opacity: 1;
}


/* =============================================================================
   10. STOCK STATUS
   ============================================================================= */

.stock.in-stock {
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
}
.stock.out-of-stock {
    color: #c62828;
}


/* =============================================================================
   11. ACCORDION — <details>/<summary>/.cg-accordion-item
         Animated by Shoptimizer's pdp-accordions.js
   ============================================================================= */

/* Accordion container */
div.product .summary details {
    border-top: 1px solid var(--bpo-border);
    overflow: hidden;
}

/* Last item gets bottom border too */
div.product .summary details:last-of-type {
    border-bottom: 1px solid var(--bpo-border);
}

/* Accordion trigger / header */
div.product .summary details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--bpo-text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

/* Remove default disclosure triangle */
div.product .summary details summary::-webkit-details-marker { display: none; }
div.product .summary details summary::marker { display: none; }

/* +/- indicator on right */
div.product .summary details summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: var(--bpo-text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
div.product .summary details[open] summary::after {
    content: '−'; /* minus sign when open */
}

/* Accordion content area */
div.product .summary details .cg-accordion-item {
    padding-bottom: 1rem;
    font-size: 14px;
    line-height: 1.6;
    color: var(--bpo-text-muted);
}

div.product .summary details .cg-accordion-item p:last-child,
div.product .summary details .cg-accordion-item ul:last-child {
    margin-bottom: 0;
}

div.product .summary details .cg-accordion-item ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
}
div.product .summary details .cg-accordion-item li {
    margin-bottom: 0.3rem;
}

/* Hover state on summary */
div.product .summary details summary:hover {
    color: var(--bpo-green);
}


/* =============================================================================
   12. PRODUCT DESCRIPTION — below-fold content heading
   ============================================================================= */

.pf-product-description-heading {
    font-size: 1.5em;
    color: var(--bpo-green);
    padding-top: 1.8rem;
    border-top: 1px solid var(--bpo-border);
    margin-bottom: 1rem;
}

/* Description tab content links */
.woocommerce-tabs .entry-content p:not(.stars) a {
    box-shadow: inset 0 0 0 transparent, 0 2px 0 var(--bpo-terracotta);
    text-decoration: none !important;
}


/* =============================================================================
   13. PRODUCT META (SKU / Categories)
   ============================================================================= */

.product_meta {
    text-align: center;
    font-size: clamp(0.8125rem, 0.749rem + 0.2033vw, 0.875rem);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.product_meta .posted_in,
.product_meta .sku_wrapper,
.product_meta .tagged_as {
    color: var(--bpo-text);
    display: inline-block;
    margin: 0 8px;
}
.product_meta a {
    color: var(--bpo-text-muted);
}
.product_meta a:hover {
    color: var(--bpo-text);
}


/* =============================================================================
   14. RELATED PRODUCTS — "Frequently grown together"
   ============================================================================= */

.related-wrapper {
    background-color: var(--bpo-white);
}

.related > h2,
.pf-related-title,
.related-wrapper section > h2 {
    font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
    font-weight: 700;
    color: var(--bpo-green);
    padding-top: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* Related product cards */
.related ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem;
    color: var(--bpo-text);
}

.related ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--bpo-green);
}


/* =============================================================================
   15. SALE BADGE
   ============================================================================= */

.woocommerce span.onsale {
    background-color: var(--bpo-green);
    border-radius: var(--bpo-radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    min-height: auto;
    line-height: 1.5;
}


/* =============================================================================
   16. WOOCOMMERCE TABS (below product, reviews + description)
   ============================================================================= */

.woocommerce-tabs.wc-tabs-wrapper {
    border-top: 1px solid var(--bpo-bg-light);
    width: 100%;
    max-width: 100%;
}
.woocommerce-tabs {
    background-color: var(--bpo-white);
}

/* Tab nav links */
.woocommerce-tabs ul.tabs li a {
    color: var(--bpo-text-muted);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.woocommerce-tabs ul.tabs li.active a {
    color: var(--bpo-green);
}

/* Tab panels */
.woocommerce-tabs .panel {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}


/* =============================================================================
   17. STICKY ATC BAR — CommerceKit
   ============================================================================= */

/* Top sticky tabs bar */
.commercekit-atc-sticky-tabs {
    z-index: 9999;
    background: var(--bpo-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Tab links */
.commercekit-atc-tab-links li a.commercekit-atc-tab {
    font-size: 14px;
    font-weight: 600;
    color: var(--bpo-text-muted);
    letter-spacing: 0.02em;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.commercekit-atc-tab-links li.active a.commercekit-atc-tab,
.commercekit-atc-tab-links li a.commercekit-atc-tab:hover {
    color: var(--bpo-green);
    border-bottom-color: var(--bpo-green);
}

/* Sticky ATC "Add to bag" button in tab bar */
li#cgkit-tab-commercekit-sticky-atc-title button {
    background-color: var(--bpo-green) !important;
    border-color: var(--bpo-green) !important;
    color: var(--bpo-white) !important;
    border-radius: var(--bpo-radius-sm) !important; /* smaller radius in tab bar */
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    padding: 0.65em 1.2em !important;
    transition: background-color 0.2s !important;
}
li#cgkit-tab-commercekit-sticky-atc-title button:hover {
    background-color: var(--bpo-green-light) !important;
}

/* Mobile sticky ATC button */
#cgkit-mobile-commercekit-sticky-atc button {
    background-color: var(--bpo-charcoal) !important;
    border-color: var(--bpo-charcoal) !important;
    color: var(--bpo-white) !important;
    border-radius: var(--bpo-radius-pill) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: 700 !important;
}


/* =============================================================================
   18. COMMERCEKIT WISHLIST BUTTON
   ============================================================================= */

.commercekit-wishlist a {
    font-size: 13px;
    font-weight: 600;
    color: var(--bpo-text);
}
.commercekit-wishlist a:hover {
    color: var(--bpo-green);
}
.commercekit-wishlist a:hover span {
    text-decoration: underline;
    text-decoration-thickness: 0.5px;
    text-underline-offset: 0.18em;
}


/* =============================================================================
   19. RESPONSIVE — tablet ≤ 992px
   ============================================================================= */

@media (max-width: 992px) {
    div.product .product-details-wrapper {
        display: block;
    }

    div.product .summary.entry-summary,
    div.product .woocommerce-product-gallery,
    div.product #commercegurus-pdp-gallery-wrapper {
        width: 100%;
        max-width: 100%;
        flex: none;
        position: static;
    }

    p.price_per_day,
    .bpo-trust-badges {
        gap: 0.4rem 0.8rem;
    }

    .price_per_day_item,
    .bpo-badge-item {
        font-size: 11px;
    }

    #cgkit-mobile-commercekit-sticky-atc button {
        font-weight: 700;
    }

    .woocommerce-tabs .entry-content {
        font-size: 14px;
    }
}


/* =============================================================================
   20. RESPONSIVE — mobile ≤ 770px
   ============================================================================= */

@media (max-width: 770px) {
    .product_title.entry-title {
        font-size: 1.4rem;
    }

    p.price_per_day,
    .bpo-trust-badges {
        flex-wrap: nowrap;
        gap: 0;
        justify-content: space-between;
    }

    /* Gallery full-bleed on mobile */
    #commercegurus-pdp-gallery-wrapper.ckit-mobile-pdp-gallery-active {
        margin-left: -1em;
        width: calc(100% + 2em);
        margin-bottom: 10px;
    }

    /* Tooltip on mobile — show below instead */
    .bpo-tooltip {
        bottom: auto;
        top: calc(100% + 8px);
        left: 0;
        transform: none;
    }
    .bpo-tooltip::after {
        top: auto;
        bottom: 100%;
        border-top-color: transparent;
        border-bottom-color: var(--bpo-text);
    }

    div.product .summary details summary {
        font-size: 12px;
        padding: 0.75rem 0;
    }
}

/* =============================================================================
   20b. RESPONSIVE — small mobile ≤ 480px  (trust badges one-row fix)
   ============================================================================= */

@media (max-width: 480px) {
    .price_per_day_item,
    .bpo-badge-item {
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        font-size: 9px;
        letter-spacing: 0;
        text-align: center;
    }

    .price_per_day_item svg,
    .bpo-badge-item svg {
        width: 1.2rem !important;
        height: 1.2rem !important;
        margin-right: 0 !important;
    }
}


/* =============================================================================
   21. TOP BAR — rotating announcements matching peppyflora
   ============================================================================= */

.top-bar,
.topbar-wrapper .top-bar {
    background-color: #FCF5EB;
    border-bottom: 1px solid #e8dfd5;
    font-size: 13px;
    padding: 0.55rem 0;
    color: var(--bpo-green);
}

.top-bar .col-full {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

/* Rotator — CSS grid stack, all messages share same cell */
.bpo-rotator {
    display: grid;
    grid-template-areas: "stack";
    place-items: center;
    width: 100%;
    min-height: 1.6rem;
}

.bpo-msg {
    grid-area: stack;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    font-size: 13px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    animation: bpoFade 9s infinite ease-in-out;
    color: var(--bpo-green);
}

.bpo-msg strong { font-weight: 700; }

.bpo-msg-1 { animation-delay: 0s; }
.bpo-msg-2 { animation-delay: 3s; }
.bpo-msg-3 { animation-delay: 6s; }

@keyframes bpoFade {
    0%   { opacity: 0; transform: translateY(4px);  }
    5%   { opacity: 1; transform: translateY(0);     }
    28%  { opacity: 1; transform: translateY(0);     }
    33%  { opacity: 0; transform: translateY(-4px);  }
    100% { opacity: 0; transform: translateY(-4px);  }
}


/* =============================================================================
   22. MAIN HEADER — header-4 layout
   ============================================================================= */

.header-4 .header-4-container,
body:not(.header-4) .site-header {
    background-color: var(--bpo-white);
    border-bottom: 1px solid #eee;
    box-shadow: 0 3px 15px -5px rgba(0,0,0,0.08);
}

.header-4 .header-4-inner {
    display: flex;
    align-items: center;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
}

/* Logo */
.header-4 .custom-logo-link img,
.site-header .custom-logo-link img {
    max-height: 48px;
    width: auto;
}

/* Cart */
.site-header-cart { margin-left: auto; }

.shoptimizer-cart .cart-contents {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--bpo-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.shoptimizer-cart .cart-contents:hover { color: var(--bpo-green); }

.shoptimizer-cart-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--bpo-green);
}

.shoptimizer-cart .cart-contents .amount {
    font-size: 13px;
    color: var(--bpo-green);
    font-weight: 700;
}


/* =============================================================================
   23. HAMBURGER / SHOP BUTTON
   ============================================================================= */

.menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px 8px 0;
    margin-right: 1rem;
    color: var(--bpo-green);
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--bpo-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* "SHOP" label under bars */
.menu-toggle .bar-text {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--bpo-green);
    margin-top: 1px;
    text-transform: uppercase;
}

/* Open state */
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* =============================================================================
   24. OFFCANVAS NAVIGATION PANEL — header-4
   ============================================================================= */

.col-full-nav {
    background: var(--bpo-white) !important;
}

/* Top-level nav items */
.menu-primary-menu-container > ul > li > a,
.main-navigation ul.menu > li > a {
    font-size: 15px;
    font-weight: 600;
    color: var(--bpo-text);
    letter-spacing: 0.01em;
    border-bottom: 1px solid var(--bpo-bg-light);
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

.menu-primary-menu-container > ul > li > a:hover,
.main-navigation ul.menu > li > a:hover {
    color: var(--bpo-green);
    background: #f9f6f2;
}

.menu-primary-menu-container > ul > li.current-menu-item > a,
.menu-primary-menu-container > ul > li.current-menu-ancestor > a {
    color: var(--bpo-green) !important;
    font-weight: 700;
}

/* Submenu items */
.main-navigation ul.menu li > .sub-menu a,
.main-navigation ul.menu li .sub-menu-wrapper a {
    font-size: 14px;
    color: var(--bpo-text-muted);
    padding: 0.5rem 1.2rem 0.5rem 2rem;
    display: block;
    border-bottom: 1px solid var(--bpo-bg-light);
    transition: color 0.2s, padding-left 0.2s;
    text-decoration: none;
}

.main-navigation ul.menu li > .sub-menu a:hover,
.main-navigation ul.menu li .sub-menu-wrapper a:hover {
    color: var(--bpo-green);
    padding-left: 2.4rem;
}

/* Desktop dropdown sub-menu panel */
@media (min-width: 993px) {
    .menu-primary-menu-container > ul > li > .sub-menu-wrapper,
    .main-navigation ul.menu li > .sub-menu-wrapper {
        background: var(--bpo-white);
        border: 1px solid var(--bpo-border);
        border-radius: var(--bpo-radius-md);
        box-shadow: 0 8px 24px rgba(0,0,0,0.10);
        min-width: 200px;
    }

    .menu-primary-menu-container > ul > li > .sub-menu-wrapper a {
        font-size: 14px;
        padding: 0.6rem 1.2rem;
        color: var(--bpo-text);
        white-space: nowrap;
        border-bottom: 1px solid var(--bpo-bg-light);
    }

    .menu-primary-menu-container > ul > li > .sub-menu-wrapper a:hover {
        color: var(--bpo-green);
        background: #f9f6f2;
    }
}


/* =============================================================================
   25. SEARCH
   ============================================================================= */

.site-search input[type="search"],
.site-search .search-field {
    border: 1px solid var(--bpo-border);
    border-radius: var(--bpo-radius-pill);
    padding: 8px 16px;
    font-size: 14px;
    color: var(--bpo-text);
    background: #f9f6f2;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
}

.site-search input[type="search"]:focus,
.site-search .search-field:focus {
    border-color: var(--bpo-green);
    background: var(--bpo-white);
    outline: none;
}


/* =============================================================================
   26. STICKY HEADER — summary top-offset adjustments
   ============================================================================= */

.theme-shoptimizer.sticky-d.single-product div.product .summary { top: 90px; }
.theme-shoptimizer.sticky-d.admin-bar.single-product div.product .summary { top: 120px; }





/* =============================================================================
   FIXES — All PDP / header issues
   ============================================================================= */

/* ── FIX 1: Trust badges — correct layout, hide tooltip text by default ─── */

p.price_per_day,
.bpo-trust-badges {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
    margin: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--bpo-border);
    border-bottom: 1px solid var(--bpo-border);
}

.price_per_day_item,
.bpo-badge-item {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    font-size: 12px;
    font-weight: 600;
    color: var(--bpo-green);
    position: relative;    /* required for absolute-positioned tooltip */
    cursor: help;
    white-space: nowrap;
}

/* Tooltip span — hidden by default, shown on hover */
.price_per_day_item .bpo-tooltip,
.bpo-badge-item .bpo-tooltip {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    border-radius: 4px;
    padding: 5px 9px;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    transition: opacity 0.15s ease;
}

.price_per_day_item .bpo-tooltip::after,
.bpo-badge-item .bpo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #111;
}

.price_per_day_item:hover .bpo-tooltip,
.bpo-badge-item:hover .bpo-tooltip {
    visibility: visible !important;
    opacity: 1 !important;
}


/* ── FIX 2: Add to cart button — flex centering, kill height/line-height ─── */

.single_add_to_cart_button,
.product .cart .single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 52px !important;
    line-height: 1 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: 100% !important;
}


/* ── FIX 3: Quantity box — remove gap between input and +/- buttons ──────── */

.quantity {
    display: flex !important;
    align-items: stretch;
    gap: 0 !important;
}

.quantity .input-text.qty {
    flex: 1;
    text-align: center;
    border-radius: 4px 0 0 4px !important;
    border-right: none !important;
    height: 52px;
    font-size: 16px;
    min-width: 52px;
}

.quantity .quantity-nav {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bpo-border);
    border-left: none;
    border-radius: 0 4px 4px 0;
    overflow: hidden;
    margin: 0 !important;   /* kill any default margin */
}

.quantity .quantity-nav .qty-plus,
.quantity .quantity-nav .qty-minus,
.quantity .quantity-nav span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 26px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--bpo-text);
    transition: background 0.15s;
    border: none;
    padding: 0;
    user-select: none;
}

.quantity .quantity-nav .qty-plus:hover,
.quantity .quantity-nav .qty-minus:hover,
.quantity .quantity-nav span:hover {
    background: var(--bpo-border);
}

.quantity .quantity-nav .qty-plus { border-bottom: 1px solid var(--bpo-border); }


/* ── FIX 4: "Why you'll love this" section in summary — see functions.php ── */

.bpo-product-description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bpo-border);
}

.bpo-product-description .pf-product-description-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bpo-green);
    margin-bottom: 0.75rem;
    padding-top: 0;
    border-top: none;   /* remove duplicate border — parent div handles it */
    letter-spacing: -0.01em;
}

.bpo-product-description p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--bpo-text-muted);
    margin-bottom: 0.75rem;
}

.bpo-product-description h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bpo-text);
    margin: 1rem 0 0.4rem;
}

.bpo-product-description ul {
    padding-left: 1rem;
    margin-bottom: 0.75rem;
}

.bpo-product-description ul li {
    font-size: 14px;
    color: var(--bpo-text-muted);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}


/* ── FIX 5: Reviews — Wiser-like card layout ─────────────────────────────── */

#reviews {
    padding: 1.5rem 0;
}

#reviews h2.woocommerce-Reviews-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bpo-green);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

/* Remove the outer list bullets/padding */
#reviews ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

/* Each review = card */
#reviews ol.commentlist li.review {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin: 0;
}

/* Container: avatar left, content right */
#reviews .comment_container {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* Avatar — rounded circle */
#reviews .comment_container .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--bpo-bg-light);
}

/* Content block */
#reviews .comment-text {
    flex: 1;
    min-width: 0;
}

/* Stars — move to top of comment-text */
#reviews .comment-text .star-rating {
    margin-bottom: 6px;
    font-size: 13px;
    display: block;
}

/* Override star color to brand gold */
#reviews .star-rating span::before {
    color: var(--bpo-gold) !important;
}

/* Meta row: name + date */
#reviews .comment-text .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

#reviews .woocommerce-review__author {
    font-size: 13px;
    font-weight: 700;
    color: var(--bpo-text);
}

/* Verified badge */
#reviews .woocommerce-review__author::after {
    content: '✓ Verified';
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    font-weight: 600;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    padding: 1px 7px;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

#reviews .woocommerce-review__dash {
    display: none;   /* hide the " – " separator */
}

#reviews .woocommerce-review__published-date {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

/* Review body text */
#reviews .comment-text .description {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
#reviews .comment-text .description p { margin: 0; }

/* Review form heading */
#reviews #review_form_wrapper h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bpo-green);
    margin-bottom: 1rem;
}

/* Submit review button */
#reviews #review_form_wrapper #submit {
    background: var(--bpo-green) !important;
    color: #fff !important;
    border-color: var(--bpo-green) !important;
    border-radius: var(--bpo-radius-pill) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    padding: 10px 24px !important;
}


/* ── FIX 6: Search trigger — remove any green background ─────────────────── */

.search-trigger,
button.search-trigger,
.header-4 .search-trigger,
.header-4 button.search-trigger {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--bpo-text) !important;
    padding: 0 12px !important;
    cursor: pointer;
    border-radius: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    width: auto !important;
    height: auto !important;
}

.search-trigger svg,
.header-4 .search-trigger svg {
    stroke: var(--bpo-text) !important;
    width: 20px;
    height: 20px;
}

.search-trigger:hover svg,
.header-4 .search-trigger:hover svg {
    stroke: var(--bpo-green) !important;
}

/* Also reset the <span> inside search trigger */
.search-trigger > span,
.header-4 .search-trigger > span {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: inherit !important;
    display: inline-flex;
    align-items: center;
}


/* ── FIX 7: Mobile hamburger — remove green background ───────────────────── */

.site-branding button.menu-toggle,
.site-branding button.menu-toggle:hover,
.site-branding button.menu-toggle:focus,
button.menu-toggle,
button.menu-toggle:hover {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Offcanvas nav panel itself gets white bg — not the header button */
.col-full-nav,
.col-full-nav.site-navigation-open {
    background-color: #ffffff !important;
}

@media (max-width: 992px) {
    /* Ensure mobile header area is white, not inheriting nav background */
    .main-header,
    .site-header,
    .header-4-container {
        background-color: #ffffff !important;
    }

    .menu-toggle .bar {
        background-color: var(--bpo-green) !important;
    }

    .menu-toggle .bar-text {
        color: var(--bpo-green) !important;
    }
}


/* =============================================================================
   PEPPYFLORA TYPOGRAPHY — Lora serif headings + Jost body
   ============================================================================= */

/* Body / UI text — Jost sans-serif */
body,
button,
input,
select,
textarea,
.menu-primary-menu-container > ul > li > a,
.shoptimizer-cart .cart-contents,
p, li, td, th {
    font-family: 'Jost', sans-serif !important;
}

/* Headings — Lora serif (matching peppyflora) */
h1, h2, h3,
.product_title.entry-title,
.woocommerce-Reviews-title,
.related > h2,
.pf-related-title,
.upsells > h2,
.pf-product-description-heading {
    font-family: 'Lora', serif !important;
}

/* Product title — desktop */
.product_title.entry-title {
    font-family: 'Lora', serif !important;
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    color: var(--bpo-green) !important;
}

/* Product title — mobile: smaller */
@media (max-width: 767px) {
    .product_title.entry-title {
        font-size: 1.35rem !important;
        letter-spacing: -0.01em !important;
    }
}

/* Price uses Jost */
p.price,
div.product p.price,
.woocommerce-Price-amount {
    font-family: 'Jost', sans-serif !important;
}


/* =============================================================================
   TRUST BADGES — remove border-bottom, clean layout (3 badges)
   ============================================================================= */

/* Override previous border-bottom rule — only top border */
p.price_per_day,
.bpo-trust-badges {
    border-bottom: none !important;
}

/* Tooltip: shown via JS, positioned above item */
.price_per_day_item .bpo-tooltip,
.bpo-badge-item .bpo-tooltip {
    display: none;
    visibility: visible !important;
    opacity: 1 !important;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    border-radius: 4px;
    padding: 5px 9px;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
    font-family: 'Jost', sans-serif !important;
}

.price_per_day_item .bpo-tooltip::after,
.bpo-badge-item .bpo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a1a;
}


/* =============================================================================
   REVIEWS — card layout, high specificity to override Shoptimizer defaults
   ============================================================================= */

.woocommerce-Reviews ol.commentlist,
#reviews ol.commentlist,
.woocommerce-Tabs-panel ol.commentlist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1.5rem !important;
    display: grid !important;
    gap: 12px !important;
}

/* Each review card */
.woocommerce-Reviews .commentlist li.review,
#reviews .commentlist li.review,
.woocommerce-Tabs-panel .commentlist li.review {
    background: #fff !important;
    border: 1px solid #ebebeb !important;
    border-radius: 12px !important;
    padding: 18px 20px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    margin: 0 !important;
}

/* Container flex */
.woocommerce-Reviews .comment_container,
#reviews .comment_container {
    display: flex !important;
    gap: 14px !important;
    align-items: flex-start !important;
}

/* Avatar */
.woocommerce-Reviews .comment_container img.avatar,
#reviews .comment_container img.avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border: 2px solid var(--bpo-bg-light) !important;
    margin: 0 !important;
}

/* Stars */
.woocommerce-Reviews .comment-text .star-rating,
#reviews .comment-text .star-rating {
    display: block !important;
    margin: 0 0 6px !important;
    font-size: 14px !important;
}

/* Star colour gold */
.woocommerce-Reviews .star-rating span::before,
#reviews .star-rating span::before {
    background-color: var(--bpo-gold) !important;
}

/* Meta row */
.woocommerce-Reviews .comment-text p.meta,
#reviews .comment-text p.meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px 8px !important;
    margin: 0 0 8px !important;
    font-size: 13px !important;
    color: #666 !important;
    font-family: 'Jost', sans-serif !important;
}

.woocommerce-Reviews .woocommerce-review__author,
#reviews .woocommerce-review__author {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--bpo-text) !important;
    font-family: 'Jost', sans-serif !important;
}

/* Verified badge after author name */
.woocommerce-Reviews .woocommerce-review__author::after,
#reviews .woocommerce-review__author::after {
    content: '✓ Verified';
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    font-weight: 600;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    padding: 1px 7px;
    vertical-align: middle;
    font-family: 'Jost', sans-serif;
    letter-spacing: 0.02em;
}

/* Hide the dash separator */
.woocommerce-Reviews .woocommerce-review__dash,
#reviews .woocommerce-review__dash {
    display: none !important;
}

.woocommerce-Reviews .woocommerce-review__published-date,
#reviews .woocommerce-review__published-date {
    font-size: 12px !important;
    color: #999 !important;
    font-weight: 400 !important;
    font-family: 'Jost', sans-serif !important;
}

/* Review body text */
.woocommerce-Reviews .comment-text .description,
#reviews .comment-text .description {
    font-size: 14px !important;
    color: #444 !important;
    line-height: 1.6 !important;
    font-family: 'Jost', sans-serif !important;
}

.woocommerce-Reviews .comment-text .description p,
#reviews .comment-text .description p {
    margin: 0 !important;
}

/* Reviews section heading */
.woocommerce-Reviews-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--bpo-green) !important;
    margin-bottom: 1.25rem !important;
    font-family: 'Lora', serif !important;
}

/* Review form */
#review_form_wrapper #reply-title,
#review_form_wrapper h3 {
    font-family: 'Lora', serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--bpo-green) !important;
}


/* =============================================================================
   REVIEWS — hide form & be first to review prompt
   ============================================================================= */

#review_form_wrapper,
p.woocommerce-noreviews {
    display: none !important;
}


/* =============================================================================
   STICKY ATC — hide redundant Add to bag gallery-scroll tab
   The actual ATC button is already the last item in the tab bar.
   ============================================================================= */

#cgkit-tab-commercekit-gallery-title {
    display: none !important;
}


/* =============================================================================
   STICKY ATC MODAL — quantity + Add to Cart in one row on mobile
   ============================================================================= */

@media (max-width: 992px) {
    .commercekit-sticky-atc-intersector {
        display: flex;
        align-items: stretch;
        gap: 10px;
    }

    .commercekit-sticky-atc-intersector .quantity.buttons_added {
        flex-shrink: 0;
        margin: 0;
    }

    .commercekit-sticky-atc-intersector .single_add_to_cart_button {
        flex: 1;
        margin: 0 !important;
        width: auto !important;
    }
	
	
}





/* =============================================================================
   HOMEPAGE — BPO Custom Template
   ============================================================================= */

/* -- Shared layout helpers -------------------------------------------------- */
.bpo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.bpo-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.bpo-section-title {
    font-family: 'Lora', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--bpo-green);
    margin: 0 0 .5rem;
}

.bpo-section-sub {
    color: var(--bpo-text-muted);
    font-size: .95rem;
    margin: 0;
    font-family: 'Jost', sans-serif;
}

.bpo-section-link {
    display: inline-block;
    margin-top: .75rem;
    font-family: 'Jost', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    color: var(--bpo-green);
    text-decoration: none;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.bpo-section-link:hover { color: var(--bpo-green-light); }


/* -- Buttons ---------------------------------------------------------------- */
.bpo-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .85rem 2rem;
    border-radius: var(--bpo-radius-pill);
    font-family: 'Jost', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.bpo-btn--primary {
    background: var(--bpo-green);
    color: #fff;
    border-color: var(--bpo-green);
}
.bpo-btn--primary:hover {
    background: var(--bpo-green-light);
    border-color: var(--bpo-green-light);
    color: #fff;
}

.bpo-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.6);
}
.bpo-btn--ghost:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    color: #fff;
}

.bpo-btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: #fff;
    flex-shrink: 0;
}
.bpo-btn--outline-light:hover {
    background: #fff;
    color: var(--bpo-green);
}


/* -- Hero ------------------------------------------------------------------- */
.bpo-hero {
    background: var(--bpo-green);
    overflow: hidden;
    position: relative;
}

.bpo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(58,97,71,.35) 0%, transparent 60%);
    pointer-events: none;
}

.bpo-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 560px;
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
}

.bpo-hero__eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bpo-gold);
    margin: 0 0 1rem;
}

.bpo-hero__heading {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.15;
    color: #fff;
    margin: 0 0 1.2rem;
    font-weight: 700;
}

.bpo-hero__heading em {
    font-style: italic;
    color: var(--bpo-gold);
}

.bpo-hero__sub {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255,255,255,.82);
    max-width: 420px;
    margin: 0 0 2rem;
}

.bpo-hero__ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bpo-hero__image {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.bpo-hero__image img {
    max-width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

@media (max-width: 768px) {
    .bpo-hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 0;
    }
    .bpo-hero__heading { font-size: 2rem; }
    .bpo-hero__image img { height: 280px; border-radius: 12px 12px 0 0; }
}


/* -- Trust Strip ------------------------------------------------------------ */
.bpo-trust-strip {
    background: #fafaf8;
    border-bottom: 1px solid var(--bpo-border);
    padding: 1.5rem 0;
}

.bpo-trust-strip__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.bpo-trust-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .25rem;
    padding: .75rem;
}

.bpo-trust-strip__icon {
    width: 2rem;
    height: 2rem;
    color: var(--bpo-green);
    flex-shrink: 0;
    margin-bottom: .2rem;
}

.bpo-trust-strip__icon svg {
    width: 100%;
    height: 100%;
}

.bpo-trust-strip__label {
    font-family: 'Jost', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: var(--bpo-green);
    letter-spacing: .02em;
    line-height: 1.2;
}

.bpo-trust-strip__sub {
    font-family: 'Jost', sans-serif;
    font-size: .75rem;
    color: var(--bpo-text-muted);
    line-height: 1.3;
}

@media (max-width: 640px) {
    .bpo-trust-strip__list { grid-template-columns: repeat(2, 1fr); }
}


/* -- Category Tiles --------------------------------------------------------- */
.bpo-categories {
    padding: 4.5rem 0;
    background: #fff;
}

.bpo-categories__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.25rem;
    grid-template-rows: 380px;
}

.bpo-cat-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;
    background: var(--bpo-green);
}

.bpo-cat-tile__img-wrap {
    position: absolute;
    inset: 0;
}

.bpo-cat-tile__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
    display: block;
}

.bpo-cat-tile:hover .bpo-cat-tile__img-wrap img {
    transform: scale(1.05);
}

.bpo-cat-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,28,18,.85) 0%, rgba(12,28,18,.2) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem 1.5rem;
}

.bpo-cat-tile__count {
    font-family: 'Jost', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bpo-gold);
    margin-bottom: .4rem;
}

.bpo-cat-tile__title {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 .6rem;
    line-height: 1.2;
}

.bpo-cat-tile--large .bpo-cat-tile__title { font-size: 1.9rem; }

.bpo-cat-tile__cta {
    font-family: 'Jost', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    transition: color .2s, transform .2s;
    display: inline-block;
}

.bpo-cat-tile:hover .bpo-cat-tile__cta {
    color: #fff;
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .bpo-categories__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .bpo-cat-tile { height: 260px; }
    .bpo-cat-tile--large { grid-column: 1 / -1; height: 300px; }
}

@media (max-width: 520px) {
    .bpo-categories__grid {
        grid-template-columns: 1fr;
    }
    .bpo-cat-tile--large { grid-column: auto; height: 260px; }
}


/* -- Products Sections ------------------------------------------------------ */
.bpo-products-section {
    padding: 4.5rem 0;
}

.bpo-new-arrivals { background: #f9f8f5; }
.bpo-best-sellers { background: #fff; }

.bpo-products-section .bpo-container {
    /* WooCommerce products grid inherits from theme */
}


/* -- Why BPO ---------------------------------------------------------------- */
.bpo-why {
    background: var(--bpo-green);
    padding: 5rem 0;
}

.bpo-why .bpo-section-title { color: #fff; }
.bpo-why .bpo-section-sub   { color: rgba(255,255,255,.7); }

.bpo-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.bpo-why__card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: background .2s, transform .2s;
}

.bpo-why__card:hover {
    background: rgba(255,255,255,.11);
    transform: translateY(-3px);
}

.bpo-why__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.25rem;
    color: var(--bpo-gold);
}
.bpo-why__icon svg { width: 100%; height: 100%; }

.bpo-why__card h3 {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    color: #fff;
    margin: 0 0 .75rem;
    font-weight: 600;
}

.bpo-why__card p {
    font-family: 'Jost', sans-serif;
    font-size: .9rem;
    line-height: 1.65;
    color: rgba(255,255,255,.75);
    margin: 0;
}

@media (max-width: 768px) {
    .bpo-why__grid { grid-template-columns: 1fr; gap: 1.25rem; }
}


/* -- Feature Banner --------------------------------------------------------- */
.bpo-feature-banner {
    background: #f0ede6;
    padding: 5rem 0;
    overflow: hidden;
}

.bpo-feature-banner__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.bpo-feature-banner__eyebrow {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--bpo-green);
    opacity: .7;
    margin-bottom: .75rem;
}

.bpo-feature-banner__text h2 {
    font-family: 'Lora', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--bpo-green);
    margin: 0 0 1rem;
    line-height: 1.25;
}

.bpo-feature-banner__text p {
    font-family: 'Jost', sans-serif;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--bpo-text-muted);
    margin: 0 0 1.75rem;
}

.bpo-feature-banner__image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

@media (max-width: 768px) {
    .bpo-feature-banner__inner {
        grid-template-columns: 1fr;
    }
    .bpo-feature-banner__image { order: -1; }
    .bpo-feature-banner__image img { height: 260px; }
}


/* -- Corporate Gifting Strip ------------------------------------------------ */
.bpo-gift-strip {
    background: var(--bpo-green);
    padding: 3.5rem 0;
}

.bpo-gift-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.bpo-gift-strip__text h2 {
    font-family: 'Lora', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    color: #fff;
    margin: 0 0 .5rem;
}

.bpo-gift-strip__text p {
    font-family: 'Jost', sans-serif;
    font-size: .9rem;
    color: rgba(255,255,255,.8);
    margin: 0;
    max-width: 520px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .bpo-gift-strip__inner { flex-direction: column; text-align: center; }
    .bpo-gift-strip__text p { max-width: 100%; }
}


/* -- Remove default page title on home ------------------------------------- */
.bpo-home-page .entry-header,
.bpo-home-page .page-header {
    display: none !important;
}

/* Shoptimizer content-area wrapper — remove default padding on home */
.bpo-home-page {
    margin: 0;
    padding: 0;
}

/* Make home full-width (no sidebar gap) */
body.page-template-template-homepage #primary {
    width: 100%;
    float: none;
}
body.page-template-template-homepage #secondary {
    display: none;
}
body.page-template-template-homepage .site-content {
    padding: 0;
}
body.page-template-template-homepage .content-area {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}
