/* =====================================================================
   Greener Grocer — Woolworths-inspired theme overlay (style-woolies.css)
   Loaded LAST so it wins specificity for shared selectors.
   Goals: clean white surfaces, generous spacing, single brand green,
   yellow "save" tags, rounded controls, neutral light-grey search pill.
   ===================================================================== */

:root {
    /* Brand */
    --ww-green:        #178841;
    --ww-green-dark:   #0F6B33;
    --ww-green-darker: #0A4F26;
    --ww-green-tint:   #E8F5EC;
    --ww-green-line:   #C7E5D2;

    /* Save / sale */
    --ww-yellow:       #FFE03A;
    --ww-yellow-text:  #1A1A1A;
    --ww-red:          #B71C1C;

    /* Neutrals */
    --ww-ink:          #1A1A1A;
    --ww-ink-2:        #2D3338;
    --ww-text:         #3D4549;
    --ww-muted:        #6B7280;
    --ww-line:         #E5E7EB;
    --ww-line-2:       #EEF0F2;
    --ww-bg:           #FFFFFF;
    --ww-bg-soft:      #F7F8F8;
    --ww-bg-search:    #F1F2F3;

    /* Radii */
    --ww-r-sm: 6px;
    --ww-r-md: 10px;
    --ww-r-lg: 14px;
    --ww-r-xl: 20px;
    --ww-r-pill: 999px;

    /* Type */
    --ww-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Existing-token overrides so legacy selectors pick up new colors */
    --primary: var(--ww-green);
    --primary-dark: var(--ww-green-dark);
    --primary-color: var(--ww-green);
}

html, body {
    background: var(--ww-bg);
}

body,
body.page-shop {
    font-family: var(--ww-font);
    color: var(--ww-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0;
}

a { color: inherit; }

/* =========================================================
   HEADER — clean white with grey search pill
   ========================================================= */
.header {
    background: var(--ww-bg);
    border-bottom: 1px solid var(--ww-line);
    box-shadow: none;
}

/* Slim top utility bar (white, dark text) */
.top-bar {
    background: var(--ww-bg);
    color: var(--ww-muted);
    border-bottom: 1px solid var(--ww-line-2);
    padding: 6px 0;
    font-size: 13px;
}
.top-bar a,
.top-bar .top-bar-links a {
    color: var(--ww-muted);
    margin-left: 22px;
    font-weight: 500;
    transition: color .15s ease;
}
.top-bar a:hover,
.top-bar .top-bar-links a:hover {
    color: var(--ww-green-dark);
    opacity: 1;
}
.top-bar i { color: var(--ww-green); }

/* Main header row */
.main-header { padding: 14px 0; }
.header-content { gap: 28px; align-items: center; }

.logo {
    color: var(--ww-green);
    font-weight: 800;
}
.logo img {
    height: 56px;
    width: auto;
}

/* Search — rounded pill, light grey field, integrated icon button */
.search-bar { max-width: 720px; }
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--ww-line);
    background: var(--ww-bg-search);
    border-radius: var(--ww-r-pill);
    padding: 4px 6px 4px 22px;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.search-form:focus-within {
    background: var(--ww-bg);
    border-color: var(--ww-green);
    box-shadow: 0 0 0 3px rgba(23, 136, 65, .12);
}
.search-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 8px;
    font: inherit;
    font-size: 15px;
    color: var(--ww-ink);
    outline: none;
}
.search-form input::placeholder { color: var(--ww-muted); }
.search-form button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ww-bg);
    color: var(--ww-ink);
    border: 1px solid var(--ww-line);
    padding: 10px 18px;
    border-radius: var(--ww-r-pill);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.search-form button:hover {
    background: var(--ww-ink);
    color: #fff;
    border-color: var(--ww-ink);
}

/* Header actions: cart + orders, neutral pill chips */
.header-actions { gap: 14px; }
.header-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--ww-r-md);
    color: var(--ww-ink);
    font-weight: 600;
    transition: background .15s ease;
}
.header-action:hover { background: var(--ww-bg-soft); color: var(--ww-ink); }
.header-action i { font-size: 22px; color: var(--ww-ink); }
.header-action small {
    display: block;
    color: var(--ww-muted);
    font-size: 11px;
    font-weight: 600;
}
.header-action > div > div {
    font-size: 14px;
    font-weight: 700;
}
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--ww-green);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Navigation bar — white with subtle bottom shadow, dark text */
.nav-bar {
    background: var(--ww-bg);
    border-top: 1px solid var(--ww-line);
    border-bottom: 1px solid var(--ww-line);
}
.nav-content { padding: 0; min-height: 52px; align-items: stretch; }
.browse-btn {
    background: transparent;
    color: var(--ww-ink);
    padding: 16px 18px 16px 0;
    font-weight: 700;
    border-right: 1px solid var(--ww-line);
    margin-right: 22px;
}
.browse-btn:hover { background: transparent; color: var(--ww-green-dark); }
.browse-btn i { color: var(--ww-green); }

.main-nav { gap: 24px; margin-left: 0; }
.main-nav a {
    padding: 16px 2px;
    color: var(--ww-ink);
    font-weight: 600;
    font-size: 14.5px;
    position: relative;
}
.main-nav a:hover { color: var(--ww-green-dark); }
.main-nav a:hover::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 3px;
    background: var(--ww-green);
    border-radius: 3px 3px 0 0;
}

/* =========================================================
   GLOBAL BUTTONS / CONTROLS
   ========================================================= */
.add-to-cart-btn,
.checkout-btn,
.shop-btn--primary,
.shop-product-card__add {
    background: var(--ww-green) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--ww-r-md) !important;
    padding: 14px 22px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    box-shadow: none !important;
    transition: background .15s ease, transform .1s ease !important;
    letter-spacing: 0;
}
.add-to-cart-btn:hover,
.checkout-btn:hover,
.shop-btn--primary:hover,
.shop-product-card__add:hover {
    background: var(--ww-green-dark) !important;
    filter: none !important;
}
.add-to-cart-btn:active,
.checkout-btn:active,
.shop-btn--primary:active,
.shop-product-card__add:active { transform: scale(.98); }

.buy-now-btn {
    background: var(--ww-ink) !important;
    color: #fff !important;
    border-radius: var(--ww-r-md) !important;
}
.buy-now-btn:hover { background: #000 !important; opacity: 1 !important; }

/* Section title spacing */
.section-title {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 800;
    color: var(--ww-ink);
    letter-spacing: -.02em;
}

/* =========================================================
   SHOP — listing
   ========================================================= */
.shop-page {
    background: var(--ww-bg);
}

/* Single-column layout — filters live in a drawer, not a sidebar */
body.page-shop .shop-container {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 24px;
    padding-bottom: 56px;
}

/* The mobile toolbar's filter button is replaced by the header "All Products" button */
body.page-shop .shop-mobile-toolbar { display: none !important; }
body.page-shop .shop-desktop-count { display: block; }

/* Make the All Products header button feel like a button */
body.page-shop .nav-bar .browse-btn {
    cursor: pointer;
    user-select: none;
}

/* Filter drawer — slides in from the left at every viewport */
body.page-shop .shop-filters-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 3100;
    background: rgba(15, 26, 20, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
body.page-shop .shop-filters-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

body.page-shop .filters-sidebar.filters-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(100vw - 56px, 420px);
    height: 100dvh;
    max-height: 100dvh;
    z-index: 3101;
    margin: 0;
    background: var(--ww-bg);
    border: none;
    border-radius: 0;
    box-shadow: 4px 0 28px rgba(0, 0, 0, .18);
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
body.page-shop .filters-sidebar.filters-panel > form {
    padding: 0 22px max(28px, env(safe-area-inset-bottom, 0px));
}
body.page-shop .filters-sidebar.filters-panel.is-open {
    transform: translateX(0);
}

body.page-shop .filters-sidebar-top {
    position: sticky;
    top: 0;
    background: var(--ww-bg);
    padding: max(16px, env(safe-area-inset-top, 0px)) 22px 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--ww-line);
    z-index: 2;
}
body.page-shop .filters-sidebar-top h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ww-ink);
    letter-spacing: -.02em;
}
body.page-shop .shop-filters-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ww-line);
    border-radius: 50%;
    background: var(--ww-bg);
    color: var(--ww-ink);
    font-size: 1rem;
    cursor: pointer;
}
body.page-shop .shop-filters-close:hover {
    background: var(--ww-bg-soft);
    border-color: var(--ww-ink);
}

body.shop-filters-open {
    overflow: hidden;
}

body.page-shop .filters-panel {
    background: var(--ww-bg);
    box-shadow: none;
}
body.page-shop .filter-group h3 {
    color: var(--ww-ink);
    font-size: .8rem;
    letter-spacing: .04em;
}
.filter-option:hover { background: var(--ww-green-tint); }
.filter-option__count {
    background: var(--ww-bg-soft);
    color: var(--ww-muted);
}

/* Shop header */
.shop-header {
    border-bottom: 1px solid var(--ww-line);
    padding-bottom: 18px;
    margin-bottom: 22px;
}
.shop-header__eyebrow { display: none; }
.shop-header__title {
    color: var(--ww-ink);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
}
.shop-header__meta { color: var(--ww-muted); }

.shop-sort-select {
    border: 1px solid var(--ww-line);
    background: var(--ww-bg);
    border-radius: var(--ww-r-pill);
    padding: 10px 18px;
    min-width: 200px;
    font-weight: 600;
    color: var(--ww-ink);
}
.shop-sort-select:hover { border-color: var(--ww-ink); }
.shop-sort-select:focus {
    border-color: var(--ww-green);
    box-shadow: 0 0 0 3px rgba(23, 136, 65, .12);
}

/* Product grid — denser, Woolies-like */
.shop-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Product card — clean white, thin border, no idle shadow */
.shop-product-card {
    background: var(--ww-bg);
    border: 1px solid var(--ww-line);
    border-radius: var(--ww-r-lg);
    box-shadow: none;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease;
}
.shop-product-card:hover {
    border-color: var(--ww-line);
    box-shadow: 0 8px 24px rgba(20, 30, 24, .08);
    transform: none;
}

.shop-product-card__media {
    background: #fff;
    height: clamp(200px, 22vw, 240px);
    padding: 18px;
}

/* PILLS — Woolworths-style */
.shop-pill {
    top: 14px;
    left: 14px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

/* Yellow "Save $X" rectangle tag */
.shop-pill--save,
.shop-pill--flash,
.shop-pill--featured,
.shop-pill--new,
.shop-pill--trending {
    background: var(--ww-yellow);
    color: var(--ww-yellow-text);
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
    animation: none;
}
.shop-pill--flash    { background: #FFB300; }
.shop-pill--new      { background: #E0F0E5; color: var(--ww-green-dark); }
.shop-pill--trending { background: #FFD24A; }

/* Green circular "Special" badge */
.shop-pill--special {
    background: var(--ww-green);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: capitalize;
    animation: none;
}

/* Uber chip — minimal */
.shop-pill--uber {
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, .85);
    color: #fff;
    padding: 6px 10px;
    border-radius: var(--ww-r-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

/* Card body */
.shop-product-card__body { padding: 14px 16px 18px; gap: 4px; }
.shop-product-card__category {
    color: var(--ww-muted);
    font-weight: 600;
    letter-spacing: .04em;
    font-size: 11px;
}
.shop-product-card__title { font-size: 14.5px; line-height: 1.35; font-weight: 500; }
.shop-product-card__title a { color: var(--ww-ink); }
.shop-product-card__title a:hover { color: var(--ww-green-dark); }

.shop-product-card__price {
    color: var(--ww-ink);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
}
.shop-product-card__was { color: var(--ww-muted); font-size: .85rem; }
.shop-product-card__off {
    background: transparent;
    color: var(--ww-red);
    padding: 0;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    font-size: .8rem;
}

.shop-product-card__actions { margin-top: 12px; }
.shop-product-card__add {
    border-radius: var(--ww-r-md) !important;
    min-height: 44px;
}
.shop-product-card__add.is-added {
    background: var(--ww-green-darker) !important;
}
.shop-product-card__uber {
    background: var(--ww-ink);
    border-radius: var(--ww-r-md);
    width: 44px;
    min-width: 44px;
    height: 44px;
}

/* Pagination */
.shop-page-link {
    border-radius: var(--ww-r-pill);
    border: 1px solid var(--ww-line);
    color: var(--ww-ink);
    min-width: 40px;
    min-height: 40px;
    font-weight: 700;
}
.shop-page-link:hover { border-color: var(--ww-ink); color: var(--ww-ink); }
.shop-page-link.is-active {
    background: var(--ww-green);
    border-color: var(--ww-green);
    box-shadow: none;
}

/* Filters toggle (mobile) */
.shop-filters-toggle {
    border: 1px solid var(--ww-line) !important;
    color: var(--ww-ink) !important;
    background: var(--ww-bg) !important;
    border-radius: var(--ww-r-pill) !important;
    font-weight: 700;
}
.shop-filters-toggle:hover { background: var(--ww-bg-soft) !important; color: var(--ww-ink) !important; }

/* =========================================================
   PRODUCT DETAIL
   ========================================================= */
.product-details-section { padding: 32px 0 48px; }
.product-details-container { gap: 56px; }

.main-product-image {
    background: #fff;
    border: 1px solid var(--ww-line);
    border-radius: var(--ww-r-lg);
    height: clamp(380px, 48vw, 540px);
    padding: 24px;
}
.thumbnail {
    border: 1px solid var(--ww-line);
    border-radius: var(--ww-r-md);
    width: 72px;
    height: 72px;
    padding: 6px;
}
.thumbnail.active,
.thumbnail:hover { border-color: var(--ww-green); border-width: 2px; }

.product-details-info h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 700;
    color: var(--ww-ink);
    letter-spacing: -.02em;
    line-height: 1.25;
    margin-bottom: 12px;
}

.product-meta {
    border-bottom: 1px solid var(--ww-line);
    padding-bottom: 16px;
    margin-bottom: 22px;
    color: var(--ww-muted);
}
.product-meta .stars { color: #178841; font-size: 16px; }
.product-meta .rating-count { color: var(--ww-green-dark); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.stock-status { color: var(--ww-green-dark); }
.stock-status.out-of-stock { color: var(--ww-red); }

.product-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.product-price .current-price {
    font-size: 2.4rem !important;
    font-weight: 800;
    color: var(--ww-ink);
    letter-spacing: -.03em;
}
.product-price .original-price {
    font-size: 1rem !important;
    color: var(--ww-muted);
    text-decoration: line-through;
}
.product-price .discount-badge {
    background: var(--ww-yellow) !important;
    color: var(--ww-yellow-text) !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.product-description {
    margin: 24px 0;
    color: var(--ww-text);
    line-height: 1.7;
}
.product-description h3 {
    color: var(--ww-ink);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Quantity + buy buttons block */
.quantity-selector { margin: 26px 0 18px; gap: 14px; }
.quantity-controls {
    border: 1px solid var(--ww-line);
    border-radius: var(--ww-r-pill);
    overflow: hidden;
    background: var(--ww-bg);
}
.quantity-controls button {
    background: var(--ww-bg);
    color: var(--ww-ink);
    width: 44px;
    height: 44px;
    font-size: 18px;
    font-weight: 600;
}
.quantity-controls button:hover { background: var(--ww-bg-soft); }
.quantity-controls input { width: 56px; height: 44px; font-weight: 700; }

.buy-buttons { gap: 12px; margin-top: 16px; }
.buy-buttons .add-to-cart-btn,
.buy-buttons .buy-now-btn {
    min-height: 52px;
    font-size: 16px !important;
}

/* Info box under buttons */
.product-details-info > div[style*="background: #f8f9fa"] {
    background: var(--ww-bg-soft) !important;
    border: 1px solid var(--ww-line) !important;
    border-radius: var(--ww-r-md) !important;
    color: var(--ww-text);
}
.product-details-info > div[style*="background: #f8f9fa"] strong { color: var(--ww-ink); }

/* Specifications table */
.specifications h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ww-ink);
    margin-bottom: 12px;
}
.specifications td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--ww-line);
    color: var(--ww-text);
}
.specifications td:first-child { color: var(--ww-ink); font-weight: 600; }

/* Reviews */
.reviews-section { border-top: 1px solid var(--ww-line); }
.review-card {
    background: var(--ww-bg);
    border: 1px solid var(--ww-line);
    border-radius: var(--ww-r-lg);
    padding: 22px;
}

/* =========================================================
   CART
   ========================================================= */
.cart-section { padding: 32px 0 56px; }
.cart-section h1 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--ww-ink);
    letter-spacing: -.02em;
}

.cart-container { gap: 28px; }
.cart-items {
    background: var(--ww-bg);
    border: 1px solid var(--ww-line);
    border-radius: var(--ww-r-lg);
    padding: 8px 24px;
}
.cart-items h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ww-ink);
    padding: 18px 0 14px;
    border-bottom: 1px solid var(--ww-line);
    margin-bottom: 0 !important;
}
.cart-item {
    border-bottom: 1px solid var(--ww-line) !important;
    padding: 22px 0 !important;
    gap: 18px !important;
    align-items: center !important;
}
.cart-item:last-child { border-bottom: none !important; }
.cart-item-image {
    width: 96px !important;
    height: 96px !important;
    border-radius: var(--ww-r-md) !important;
    border: 1px solid var(--ww-line);
    background: #fff;
    padding: 6px;
}
.cart-item-image img { object-fit: contain !important; }
.cart-item-info h3 {
    font-size: 15px !important;
    font-weight: 600;
    color: var(--ww-ink) !important;
    line-height: 1.4;
    margin-bottom: 0;
}
.cart-item__unit {
    color: var(--ww-muted);
    font-size: 13.5px;
    font-weight: 500;
    margin: 6px 0 12px;
}
.cart-item__qty { margin-top: 4px; }
.cart-item__total {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    min-width: 110px;
}
.cart-item__price {
    color: var(--ww-ink);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
}

/* Remove icon button */
.remove-item {
    background: transparent !important;
    color: var(--ww-muted) !important;
    border: 1px solid var(--ww-line) !important;
    border-radius: var(--ww-r-pill) !important;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.remove-item:hover {
    background: #FEE2E2 !important;
    color: var(--ww-red) !important;
    border-color: #FCA5A5 !important;
}

/* Cart summary card */
.cart-summary {
    background: var(--ww-bg);
    border: 1px solid var(--ww-line);
    border-radius: var(--ww-r-lg);
    padding: 24px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}
.cart-summary h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ww-ink);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ww-line);
    margin-bottom: 18px !important;
}
.summary-row {
    color: var(--ww-text);
    font-size: 15px;
    padding: 8px 0;
}
.summary-row.total {
    color: var(--ww-ink);
    font-size: 1.15rem;
    border-top: 1px solid var(--ww-line) !important;
    padding-top: 14px;
    margin-top: 6px;
}
.cart-summary .checkout-btn {
    width: 100%;
    margin-top: 18px;
    padding: 16px !important;
    font-size: 16px !important;
}

/* Continue shopping link */
.cart-summary__continue {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: var(--ww-green-dark);
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
}
.cart-summary__continue:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Clear cart secondary button */
.cart-summary__clear {
    width: 100%;
    margin-top: 10px;
    padding: 13px;
    background: transparent;
    color: var(--ww-red);
    border: 1px solid #FCA5A5;
    border-radius: var(--ww-r-md);
    font-family: inherit;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s ease, color .15s ease;
}
.cart-summary__clear:hover { background: #FEE2E2; color: var(--ww-red); }

/* Empty cart state */
.cart-empty {
    text-align: center;
    padding: clamp(48px, 9vw, 80px) 24px;
    background: var(--ww-bg);
    border: 1px solid var(--ww-line);
    border-radius: var(--ww-r-lg);
}
.cart-empty__icon {
    font-size: 72px;
    color: var(--ww-line);
    margin-bottom: 18px;
    display: block;
}
.cart-empty__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ww-ink);
    letter-spacing: -.02em;
    margin: 0 0 8px;
}
.cart-empty__text {
    color: var(--ww-muted);
    margin: 0 0 24px;
}
.cart-empty__cta {
    display: inline-block;
    background: var(--ww-green);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--ww-r-md);
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease;
}
.cart-empty__cta:hover { background: var(--ww-green-dark); color: #fff; }

/* =========================================================
   TOAST / NOTIFICATION
   ========================================================= */
.gg-toast {
    position: fixed;
    top: 110px;
    right: 22px;
    z-index: 10000;
    background: var(--ww-ink);
    color: #fff;
    padding: 14px 22px;
    border-radius: var(--ww-r-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    font-weight: 600;
    font-size: 14.5px;
    max-width: min(360px, calc(100vw - 44px));
    animation: ggToastIn .25s ease-out;
}
@keyframes ggToastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: #0F1A14;
    color: rgba(255, 255, 255, .85);
    padding: 56px 0 28px;
}
.footer-section h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 18px;
}
.footer-section a { color: rgba(255, 255, 255, .72); font-size: 14px; }
.footer-section a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
    padding-top: 18px;
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    align-items: center;
    justify-content: space-between;
}
.footer-bottom p { margin: 0; }

.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    font-weight: 500;
}
.footer-credit a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, .35);
    padding-bottom: 1px;
    transition: color .15s ease, border-color .15s ease;
}
.footer-credit a:hover {
    color: #B6E8C2;
    border-bottom-color: #B6E8C2;
}
.footer-credit__avocado {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    transform-origin: 50% 70%;
    animation: ggAvocadoBob 3.4s ease-in-out infinite;
}
@keyframes ggAvocadoBob {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%      { transform: translateY(-3px) rotate(6deg); }
}

/* =========================================================
   RELATED PRODUCTS GRID (uses .product-card on product.php)
   ========================================================= */
.product-card {
    background: var(--ww-bg);
    border: 1px solid var(--ww-line);
    border-radius: var(--ww-r-lg);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .2s ease;
}
.product-card:hover {
    border-color: var(--ww-line);
    box-shadow: 0 8px 24px rgba(20, 30, 24, .08);
    transform: none;
}
.product-card .product-image {
    height: 220px;
    padding: 16px;
    background: #fff;
}
.product-card .product-info { padding: 14px 16px 18px; }
.product-card .product-title {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ww-ink);
}
.product-card .current-price {
    color: var(--ww-ink);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.03em;
}
.product-card .original-price { color: var(--ww-muted); font-size: 13px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .main-header { padding: 10px 0; }
    .logo img { height: 40px !important; }
    .header-content { gap: 10px; }
    .search-form { padding: 4px 6px 4px 14px; }
    .search-form input { padding: 10px 6px; font-size: 16px; }
    .search-form button { padding: 8px 14px; font-size: 13px; }

    .nav-bar .nav-content {
        padding-bottom: 0;
        gap: 0;
    }
    .browse-btn { padding: 12px 14px; margin-right: 12px; border-right: 1px solid var(--ww-line); }
    .main-nav a { padding: 12px 12px; font-size: 13.5px; }

    .shop-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .shop-product-card__media { height: clamp(160px, 44vw, 220px); padding: 12px; }
    .shop-product-card__body { padding: 12px 12px 14px; }
    .shop-product-card__price { font-size: 1.25rem; }
    .shop-product-card__title { font-size: 13.5px; }
    .shop-pill--special { width: 48px; height: 48px; font-size: 10px; }

    .cart-items { padding: 4px 16px; }
    .cart-item { flex-direction: row !important; align-items: flex-start !important; gap: 14px !important; padding: 18px 0 !important; }
    .cart-item-image { width: 80px !important; height: 80px !important; }
    .cart-item > div[style*="text-align: right"] { text-align: right !important; }
}

@media (max-width: 480px) {
    .shop-products-grid { grid-template-columns: 1fr; }
    .header-actions { gap: 6px; }
    .header-action { padding: 8px 10px; }
    .header-action small,
    .header-action > div > div { font-size: 12px; }
    .product-price .current-price { font-size: 1.9rem !important; }
}
