/* ============================================================
   A16A MART — COMPONENT STYLESHEET
   Walmart layout language × Chinese Red & Black brand
   ------------------------------------------------------------
   Every class name used by the WooCommerce templates that this
   theme does NOT override (cart / checkout / order-pay / account)
   is styled here, so the payment chain needs zero markup edits.
   ============================================================ */

/* ============================================================
   1. HEADER — utility strip / brand bar / pill search / dept nav
   ============================================================ */

/* --- 1.1 Utility strip (Walmart dark strip) --- */
.top-bar {
    background: var(--color-black);
    color: #fff;
    font-size: var(--font-size-xs);
    min-height: var(--header-top-height);
}
.top-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-md); min-height: var(--header-top-height);
}
.top-bar-left { display: flex; align-items: center; }
.top-bar-right { display: flex; align-items: center; gap: 18px; }
.top-bar-item {
    color: rgba(255,255,255,0.92); display: inline-flex; align-items: center;
    gap: 6px; font-weight: 500; white-space: nowrap; line-height: 1.2;
}
.top-bar-item:hover { color: #fff; text-decoration: underline; }
.deliver-to { gap: 8px; }
.deliver-text { display: flex; flex-direction: column; line-height: 1.25; }
.deliver-label { color: rgba(255,255,255,0.72); font-size: 11px; }
.deliver-country { font-weight: 700; }

/* --- 1.2 Brand bar --- */
.site-header {
    background: var(--color-primary);
    color: #fff;
    position: sticky; top: 0; z-index: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.header-inner {
    display: flex; align-items: center; gap: var(--space-lg);
    min-height: var(--header-main-height);
}
.header-dept-toggle {
    display: none; align-items: center; gap: 8px;
    color: #fff; font-weight: 700; font-size: var(--font-size-sm);
    padding: 8px 4px; white-space: nowrap;
}
.header-dept-toggle:hover { color: rgba(255,255,255,0.85); }

/* Logo */
.header-logo { flex: 0 0 auto; }
.logo-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.logo-link:hover { color: #fff; text-decoration: none; }
.logo-spark { color: var(--color-deal); display: inline-flex; align-items: center; }
.logo-text {
    font-family: var(--font-display); font-size: 27px; font-weight: 800;
    letter-spacing: -0.04em; line-height: 1; color: #fff;
}
.logo-tagline {
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: rgba(255,255,255,0.8);
    border-left: 1px solid rgba(255,255,255,0.35); padding-left: 6px; margin-left: 2px;
}

/* Search — Walmart rounded pill */
.header-search { flex: 1 1 auto; min-width: 0; }
.a16a-search-form {
    display: flex; align-items: center;
    background: #fff; border-radius: var(--radius-pill);
    height: 46px; padding: 3px 3px 3px 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.search-category-select { position: relative; flex: 0 0 auto; display: flex; align-items: center; }
.search-category-select select {
    appearance: none; -webkit-appearance: none;
    border: none; background: transparent; color: var(--color-text);
    font-size: var(--font-size-sm); font-weight: 600; padding: 0 22px 0 10px;
    height: 40px; cursor: pointer; max-width: 165px;
    border-right: 1px solid var(--border-color-light);
    background-image: none;
}
.search-category-select select:focus { outline: none; }
.search-category-select .select-arrow {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: var(--color-text-muted);
}
.search-input {
    flex: 1 1 auto; min-width: 0; border: none; background: transparent;
    padding: 0 12px; height: 40px; font-size: var(--font-size-md);
    color: var(--color-text);
}
.search-input::placeholder { color: var(--color-text-muted); }
.search-input:focus { outline: none; }
.search-button {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
    background: var(--color-black); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.15s ease;
}
.search-button:hover { background: var(--color-charcoal); }

/* Header action cluster */
.header-actions { display: flex; align-items: center; gap: var(--space-lg); flex: 0 0 auto; }
.header-action {
    display: inline-flex; align-items: flex-start; gap: 7px;
    color: #fff; font-size: var(--font-size-xs); line-height: 1.25;
}
.header-action:hover { color: #fff; text-decoration: none; opacity: 0.9; }
.action-icon { display: inline-flex; align-items: center; margin-top: 2px; }
.action-text { display: flex; flex-direction: column; }
.action-label { font-weight: 500; }
.action-sub {
    font-weight: 700; font-size: var(--font-size-sm);
    display: inline-flex; align-items: center; gap: 3px;
}
.header-action.cart { flex-direction: column; align-items: center; gap: 0; position: relative; }
.cart-icon-wrap { position: relative; display: inline-flex; }
.cart-count-bubble {
    position: absolute; top: -7px; right: -10px;
    min-width: 19px; height: 19px; padding: 0 5px;
    background: var(--color-deal); color: var(--color-deal-text);
    border-radius: var(--radius-pill); font-size: 11px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1; border: 2px solid var(--color-primary);
}
.cart-total-text { font-weight: 700; font-size: var(--font-size-xs); margin-top: 2px; }
.cart-total-text .woocommerce-Price-amount { font-weight: 700; }

.header-search-toggle {
    display: none; color: #fff; padding: 6px;
}

/* Mobile search row */
.mobile-search-row { display: none; padding: 0 0 var(--space-sm); }

/* --- 1.3 Department navigation --- */
.category-nav-wrapper {
    background: #fff;
    border-bottom: 1px solid var(--border-color-light);
    position: sticky; top: var(--header-main-height); z-index: 890;
}
.category-nav-inner {
    display: flex; align-items: center; gap: 4px;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
    min-height: var(--header-nav-height);
}
.category-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-item {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: var(--radius-pill);
    font-size: var(--font-size-sm); font-weight: 600; color: var(--color-text);
    white-space: nowrap; transition: all 0.15s ease;
}
.cat-nav-item:hover { background: var(--color-bg-alt); color: var(--color-text); text-decoration: none; }
.cat-nav-item.active { color: var(--color-primary); font-weight: 700; background: var(--color-primary-bg); }
.cat-nav-item.all-cats { font-weight: 700; }
.cat-nav-item.all-cats svg { flex: 0 0 auto; }
.cat-nav-item.highlight { color: var(--color-info); }

/* Walmart-style deal pill in the nav */
.cat-nav-item.deal {
    background: var(--color-deal); color: var(--color-deal-text); font-weight: 800;
    padding: 7px 14px; text-transform: uppercase; letter-spacing: 0.3px;
}
.cat-nav-item.deal:hover { background: var(--color-deal-dark); color: var(--color-deal-text); }

/* --- 1.4 Mobile drawer --- */
.mobile-nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden; transition: all 0.25s ease; z-index: 1000;
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 86vw;
    background: #fff; z-index: 1001; transform: translateX(-100%);
    transition: transform 0.28s ease; display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-md); background: var(--color-primary); color: #fff;
}
.mobile-nav-title { font-weight: 800; font-size: var(--font-size-lg); }
.mobile-nav-close { color: #fff; }
.mobile-nav-content { padding: var(--space-md); overflow-y: auto; flex: 1; }
.mobile-nav-section { margin-bottom: var(--space-lg); }
.mobile-nav-section h4 {
    font-size: var(--font-size-xs); text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--color-text-muted); margin-bottom: var(--space-sm);
}
.mobile-nav-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; font-size: var(--font-size-md); font-weight: 600;
    color: var(--color-text); border-bottom: 1px solid var(--border-color-light);
}
.mobile-nav-link:hover { color: var(--color-primary); text-decoration: none; }
.mobile-nav-link .arr { color: var(--color-text-muted); font-weight: 400; }

/* ============================================================
   2. LAYOUT PRIMITIVES
   ============================================================ */
.section-padding { padding: var(--space-2xl) 0; }
.site-content { min-height: 40vh; }

.band-tint { background: var(--color-bg-alt); }
.band-deal { background: var(--color-primary-bg); }

/* ============================================================
   3. HERO — Walmart banner: rounded, overlay copy, pill CTAs
   ============================================================ */
.hero-section { padding: var(--space-lg) 0 0; }
.hero-carousel { position: relative; }
.hero-slide {
    display: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 420px;
    position: relative;
    background: var(--color-black);
}
.hero-slide.active { display: block; animation: heroFade 0.45s ease; }
@keyframes heroFade { from { opacity: 0.2; } to { opacity: 1; } }
.hero-content {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-xl); min-height: 420px; padding-top: var(--space-xl); padding-bottom: var(--space-xl);
}
.hero-text { max-width: 560px; }
.hero-badge {
    display: inline-block; padding: 5px 14px; border-radius: var(--radius-pill);
    background: var(--color-deal); color: var(--color-deal-text);
    font-size: var(--font-size-xs); font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-md);
}
.hero-badge.red { background: var(--color-primary); color: #fff; }
.hero-title {
    font-size: 44px; font-weight: 800; color: #fff;
    line-height: 1.08; letter-spacing: -0.03em; margin-bottom: var(--space-md);
}
.hero-title .highlight { color: var(--color-deal); }
.hero-subtitle {
    font-size: var(--font-size-lg); color: rgba(255,255,255,0.9);
    line-height: 1.55; margin-bottom: var(--space-lg);
}
.hero-cta { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.hero-cta .btn-primary { background: #fff; color: var(--color-primary); border-color: #fff; }
.hero-cta .btn-primary:hover { background: var(--color-primary-bg); color: var(--color-primary); }
.hero-cta .btn-black { background: var(--color-deal); color: var(--color-deal-text); border-color: var(--color-deal); }
.hero-cta .btn-black:hover { background: var(--color-deal-dark); color: var(--color-deal-text); }

.hero-visual { flex: 0 0 auto; width: 380px; position: relative; }
.hero-product-showcase { position: relative; }
.hero-featured-product {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    padding: var(--space-md);
}
.hero-featured-product img { width: 100%; height: 100%; object-fit: contain; }
.showcase-badge {
    position: absolute; background: var(--color-deal); color: var(--color-deal-text);
    font-size: var(--font-size-xs); font-weight: 800; padding: 7px 14px;
    border-radius: var(--radius-pill); box-shadow: var(--shadow-md);
}
.showcase-badge.top { top: -10px; left: -14px; }
.showcase-badge.bottom { bottom: -10px; right: -14px; background: var(--color-black); color: #fff; }

.hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-md); }
/* Carousel pagination. The dot is drawn as a 9px circle *inside* a 44px-tall
   button: `background-clip: content-box` paints only the content box, so the
   padding enlarges the touch target without enlarging anything visible.
   Plain `width/height: 9px` made a 9px-tall target — unhittable with a thumb. */
.hero-dot {
    box-sizing: content-box;
    width: 9px; height: 9px;
    padding: 17px 4px;                       /* 9 + 17*2 = 43->44px tall target */
    border: 0;
    border-radius: 50%;
    background-color: var(--border-color);
    background-clip: content-box;
    transition: background-color 0.2s ease;
}
.hero-dot.active {
    background-color: var(--color-primary);
    width: 26px; border-radius: var(--radius-pill);
}

/* ============================================================
   4. DEPARTMENT CIRCLES + CATEGORY CARDS
   ============================================================ */
.categories-section { background: #fff; }
.categories-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-md);
}
.category-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: var(--space-sm); padding: var(--space-sm); border-radius: var(--radius-md);
    text-decoration: none; transition: all 0.18s ease;
}
.category-card:hover { text-decoration: none; transform: translateY(-3px); }
.category-card-image {
    width: 100%; aspect-ratio: 1; border-radius: 50%;
    overflow: hidden; background: var(--color-bg-alt);
    border: 1px solid var(--border-color-light);
    display: flex; align-items: center; justify-content: center;
    max-width: 132px;
}
.category-card-image img { width: 100%; height: 100%; object-fit: cover; }
.category-icon-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.category-card-content { display: flex; flex-direction: column; gap: 2px; }
.category-card-title {
    font-size: var(--font-size-sm); font-weight: 700; color: var(--color-text);
    line-height: 1.3;
}
.category-card:hover .category-card-title { color: var(--color-primary); }
.category-card-tag { font-size: 11px; color: var(--color-text-muted); }

/* ============================================================
   5. PRODUCT CARD — Walmart: white card, rollback flag, superscript price
   ============================================================ */

/* Product listing = fixed 4-up grid ("四宫格").

   This used to be `repeat(auto-fill, minmax(200px, 1fr))`, which is
   viewport-driven: in the 1096px shop column it resolved to FIVE 206px tracks
   (measured, not guessed — getComputedStyle returned
   "206.391px 206.406px 206.391px 206.406px 206.391px"). A fluid track count
   also means the card size changes with the sidebar width, so the listing never
   looked the same on two pages.

   WooCommerce already asks for 4 (the ul carries `columns-4`, and
   `loop_shop_columns` is filtered to 4 in inc/woocommerce.php) — the theme was
   simply not honouring it. Pinning 4 equal tracks makes the request true and
   keeps every listing page consistent.
   `minmax(0, 1fr)` rather than `1fr` so a long product title can never force a
   track wider than its share and blow the row out. */
.products, .products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
    list-style: none; padding: 0; margin: 0;
}
.products::before, .products::after { content: none; }
.products li.product, .products-grid li.product { margin: 0; width: auto; min-width: 0; float: none; clear: none; }

.product-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--color-card);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    height: 100%;
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: transparent;
    transform: translateY(-2px);
}
.product-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.product-card-link:hover { text-decoration: none; color: inherit; }

.product-card-image {
    position: relative; aspect-ratio: 1; background: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-md); overflow: hidden;
}
.product-card-image img, .product-img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--color-bg-alt); color: var(--color-text-muted);
    font-size: var(--font-size-xs); border-radius: var(--radius-sm);
}
.product-placeholder.small { width: 64px; height: 64px; }

/* Badge stack */
.product-badges {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
}
.product-card .product-badges { position: absolute; }
.product-card { position: relative; }

/* Hover actions */
.product-hover-actions {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transform: translateX(6px); transition: all 0.2s ease;
}
.product-card:hover .product-hover-actions { opacity: 1; transform: translateX(0); }
.quick-view-btn, .wishlist-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: #fff; color: var(--color-text);
    border: 1px solid var(--border-color-light);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm); transition: all 0.15s ease;
}
.quick-view-btn:hover, .wishlist-btn:hover {
    background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}

/* Card body */
.product-card-title {
    font-size: var(--font-size-sm); font-weight: 600; color: var(--color-text);
    line-height: 1.35; padding: var(--space-sm) var(--space-md) 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.7em;
}
.product-card:hover .product-card-title { color: var(--color-primary); }
.product-card-rating {
    display: flex; align-items: center; gap: 5px;
    padding: 0 var(--space-md) 4px; min-height: 20px;
}
.product-card-rating .rating-count { color: var(--color-text-muted); font-size: var(--font-size-xs); }
.product-card-rating.no-rating .rating-count { color: var(--color-text-muted); font-size: var(--font-size-xs); }
.product-card-price { padding: 0 var(--space-md) 4px; }
.product-card-price .price,
.product-card-price .woocommerce-Price-amount { font-weight: 800; color: var(--color-text); }
.product-card-price del { display: block; font-size: var(--font-size-xs); color: var(--color-text-muted); }
.product-card-price ins { text-decoration: none; }
.product-card-delivery { padding: 0 var(--space-md) var(--space-sm); min-height: 22px; }
.free-delivery { font-size: var(--font-size-xs); font-weight: 700; color: var(--color-success); }

/* Actions live OUTSIDE the anchor so the card stays valid HTML */
.product-card-actions { padding: 0 var(--space-md) var(--space-md); margin-top: auto; }
.product-card-actions .btn { width: 100%; }

/* ============================================================
   6. HORIZONTAL CAROUSELS (Walmart "shop by row")
   ============================================================ */
.deals-scroll, .product-carousel-track {
    display: flex; gap: var(--space-md);
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 4px 2px var(--space-md);
    scrollbar-width: none; -ms-overflow-style: none;
}
.deals-scroll::-webkit-scrollbar, .product-carousel-track::-webkit-scrollbar { display: none; }
.deals-item {
    flex: 0 0 auto; width: 210px; scroll-snap-align: start;
}
.deals-item .product-card { height: 100%; }

.product-carousel { position: relative; }
.carousel-nav {
    position: absolute; top: 42%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; border: 1px solid var(--border-color-light);
    box-shadow: var(--shadow-md); color: var(--color-text);
    display: inline-flex; align-items: center; justify-content: center;
    z-index: 5; transition: all 0.15s ease;
}
.carousel-nav:hover { background: var(--color-black); color: #fff; border-color: var(--color-black); }
.carousel-nav.prev { left: -18px; }
.carousel-nav.next { right: -18px; }

/* Deals countdown */
.deals-countdown { display: flex; align-items: center; gap: var(--space-sm); }
.countdown-label { font-size: var(--font-size-xs); color: var(--color-text-muted); font-weight: 600; }
.countdown-timer { display: inline-flex; align-items: center; gap: 3px; }
.cd-unit { display: inline-flex; align-items: baseline; gap: 2px; }
.cd-num {
    font-size: var(--font-size-md); font-weight: 800; line-height: 1.2;
    background: var(--color-black); color: #fff; border-radius: var(--radius-xs);
    padding: 2px 6px; min-width: 30px; text-align: center;
}
.cd-label { font-size: 11px; color: var(--color-text-muted); font-weight: 600; }
.cd-sep { font-weight: 800; color: var(--color-text); }

/* ============================================================
   7. BEST SELLERS (ranked list)
   ============================================================ */
.bestsellers-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}
.bestseller-item {
    display: flex; gap: var(--space-md); align-items: flex-start;
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md); padding: var(--space-md);
    transition: box-shadow 0.18s ease;
}
.bestseller-item:hover { box-shadow: var(--shadow-md); }
.bestseller-rank {
    flex: 0 0 auto; font-size: var(--font-size-lg); font-weight: 800;
    color: var(--color-text-muted); min-width: 34px;
}
.bestseller-item:nth-child(1) .bestseller-rank { color: var(--color-primary); }
.bestseller-image { flex: 0 0 auto; }
.bestseller-image img { width: 72px; height: 72px; object-fit: contain; }
.bestseller-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bestseller-title {
    font-size: var(--font-size-sm); font-weight: 600; color: var(--color-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bestseller-title:hover { color: var(--color-primary); }
.bestseller-rating { display: flex; align-items: center; gap: 5px; }
.bestseller-price .price { font-weight: 800; }
.bestseller-info .btn { margin-top: 4px; align-self: flex-start; }

/* ============================================================
   8. FULL-WIDTH PROMO BANNERS
   ============================================================ */
.subscribe-banner {
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-xl) 0;
    margin: var(--space-xl) 0 0;
}
.subscribe-content {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-xl); flex-wrap: wrap;
}
.subscribe-text { max-width: 520px; }
.subscribe-text h2 { color: #fff; font-size: 30px; margin-bottom: var(--space-sm); letter-spacing: -0.02em; }
.subscribe-text p { color: rgba(255,255,255,0.9); font-size: var(--font-size-lg); line-height: 1.5; }
.subscribe-actions .btn-primary { background: var(--color-deal); color: var(--color-deal-text); border-color: var(--color-deal); }
.subscribe-actions .btn-primary:hover { background: var(--color-deal-dark); color: var(--color-deal-text); }
.subscribe-features { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.sub-feature {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: var(--font-size-sm); font-weight: 600; color: #fff;
}
.sub-feature svg { stroke: var(--color-deal) !important; flex: 0 0 auto; }

/* Free-shipping strip */
.ship-strip {
    background: var(--color-black); color: #fff;
    padding: 10px 0; text-align: center;
    font-size: var(--font-size-sm); font-weight: 600;
}
.ship-strip strong { color: var(--color-deal); }

/* Trust / value props row */
.value-props { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.value-prop {
    display: flex; align-items: flex-start; gap: var(--space-sm);
    background: var(--color-bg-alt); border-radius: var(--radius-md);
    padding: var(--space-md);
}
.value-prop svg { flex: 0 0 auto; color: var(--color-primary); }
.value-prop-text { display: flex; flex-direction: column; gap: 2px; }
.value-prop-text b { font-size: var(--font-size-sm); }
.value-prop-text span { font-size: var(--font-size-xs); color: var(--color-text-secondary); }

/* ============================================================
   9. BLOG / CONTENT CARDS
   ============================================================ */
.content-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}
.content-card {
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.content-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.content-image-link { display: block; }
.content-image {
    aspect-ratio: 16 / 9; background: var(--color-bg-alt);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.content-thumb { width: 100%; height: 100%; object-fit: cover; }
.content-body { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); flex: 1; }
.content-tag {
    align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--color-primary);
    background: var(--color-primary-bg); padding: 3px 8px; border-radius: var(--radius-pill);
}
.content-body h3 { font-size: var(--font-size-lg); line-height: 1.35; }
.content-body h3 a { color: var(--color-text); }
.content-body h3 a:hover { color: var(--color-primary); text-decoration: none; }
.content-body p { font-size: var(--font-size-sm); color: var(--color-text-secondary); line-height: 1.6; }
.content-link { font-size: var(--font-size-sm); font-weight: 700; color: var(--color-info); margin-top: auto; }

.empty-state {
    grid-column: 1 / -1; text-align: center; padding: var(--space-xl);
    background: var(--color-bg-alt); border-radius: var(--radius-md);
    color: var(--color-text-secondary);
}
.empty-state h3 { margin-bottom: var(--space-sm); }
.empty-state p { margin-bottom: var(--space-md); }

/* ============================================================
   10. SHOP / ARCHIVE
   ============================================================ */
.a16a-shop-container { padding: var(--space-lg) 0 var(--space-2xl); }
.a16a-breadcrumb { font-size: var(--font-size-xs); color: var(--color-text-muted); margin-bottom: var(--space-md); }
.a16a-breadcrumb a { color: var(--color-text-muted); }
.a16a-breadcrumb a:hover { color: var(--color-primary); }
.a16a-breadcrumb .sep { margin: 0 6px; color: var(--border-color); }
/* NOTE: the content track is `minmax(0, 1fr)`, NOT `1fr`. A bare `1fr` track has an
   implicit min-width of `auto`, so its widest unbreakable child (a 4-up product grid,
   a long toolbar select, ...) stretches the track past the viewport and the whole page
   scrolls sideways. Same class of bug as the V2.1.5 `ul.products` fix, one level up.
   `.shop-main` needs the matching `min-width: 0` because it is itself a grid item. */
.shop-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
.shop-main { min-width: 0; }

/* Filters sidebar */
.shop-sidebar {
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md); padding: var(--space-md);
    position: sticky; top: var(--header-total);
    max-height: calc(100vh - var(--header-total) - 24px); overflow-y: auto;
}
.shop-sidebar .widget { padding-bottom: var(--space-md); margin-bottom: var(--space-md); border-bottom: 1px solid var(--border-color-light); }
.shop-sidebar .widget:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.shop-sidebar .widget-title {
    font-size: var(--font-size-sm); font-weight: 800; margin-bottom: var(--space-sm);
    color: var(--color-text); text-transform: none;
}
.shop-sidebar ul li { margin-bottom: 2px; }
.shop-sidebar ul li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 8px; border-radius: var(--radius-sm);
    font-size: var(--font-size-sm); color: var(--color-text);
}
.shop-sidebar ul li a:hover { background: var(--color-bg-alt); text-decoration: none; color: var(--color-primary); }
.shop-sidebar ul li a .count { color: var(--color-text-muted); font-size: var(--font-size-xs); }

/* --- Mobile filter drawer (archive only; PDP / blog sidebars keep the plain box) ---
   The toggle + close button exist in the markup at all widths and are simply hidden
   from 861px up, so the desktop layout is byte-identical to before. The `.active`
   class is driven by the same open/close pattern main.js already uses for the nav
   drawer; no new JS mechanism is introduced. `body.filter-drawer-open` is what the
   overlay element keys off. */
.shop-filters-toggle,
.shop-sidebar-head { display: none; }

@media (max-width: 860px) {
    .shop-filters-toggle {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        width: 100%; min-height: 44px; margin-bottom: var(--space-md);
        padding: 10px 20px; border-radius: var(--radius-pill);
        background: #fff; color: var(--color-text);
        border: 1px solid var(--border-color);
        font-size: var(--font-size-base); font-weight: 700;
    }
    .shop-filters-toggle.is-open { border-color: var(--color-primary); color: var(--color-primary); }

    .shop-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 1001;
        width: 320px; max-width: 86vw; max-height: none;
        border: none; border-radius: 0;
        overflow-y: auto; overscroll-behavior: contain;
        transform: translateX(-100%); transition: transform 0.28s ease;
        box-shadow: var(--shadow-lg);
    }
    .shop-sidebar.active { transform: translateX(0); }
    .shop-sidebar-head {
        display: flex; align-items: center; justify-content: space-between;
        margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-md);
        padding: var(--space-md); background: var(--color-primary); color: #fff;
    }
    .shop-sidebar-title { font-weight: 800; font-size: var(--font-size-lg); }
    .shop-sidebar-close {
        color: #fff; display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; margin: -10px -10px -10px 0;
    }

    /* Overlay — mirrors .mobile-nav-overlay so the two drawers behave the same way. */
    .shop-filters-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
        opacity: 0; visibility: hidden; transition: all 0.25s ease;
    }
    .shop-filters-overlay.active { opacity: 1; visibility: visible; }
}

.price-filter-range { display: flex; align-items: center; gap: 6px; margin-bottom: var(--space-sm); }
.price-filter-range input {
    width: 100%; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    padding: 9px 10px; font-size: var(--font-size-sm); min-width: 0;
}
.price-filter-range input:focus { outline: none; border-color: var(--color-primary); }
.price-filter-range span { color: var(--color-text-muted); }

/* Shared sidebar widgets (shop / product / blog) */
.a16a-sidebar-products { display: flex; flex-direction: column; gap: var(--space-md); }
.a16a-sidebar-products .bestseller-item { margin: 0; }
.a16a-widget-search .a16a-search-form { height: 42px; }
.a16a-widget-search .search-input { padding-left: 16px; }
.a16a-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.a16a-tag {
    display: inline-block; padding: 5px 11px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-alt); color: var(--color-text-secondary);
    font-size: var(--font-size-xs); font-weight: 600;
}
.a16a-tag:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

/* Toolbar */
.shop-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-md); margin-bottom: var(--space-md); flex-wrap: wrap;
}
.shop-result-count { font-size: var(--font-size-sm); color: var(--color-text-secondary); }
.shop-result-count strong { color: var(--color-text); }
.shop-ordering select {
    border: 1px solid var(--border-color); border-radius: var(--radius-pill);
    padding: 10px 38px 10px 16px; font-size: var(--font-size-sm); font-weight: 600;
    background: #fff; color: var(--color-text); cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232E2F32' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.shop-ordering select:focus { outline: none; border-color: var(--color-primary); }

/* Category-archive card images.
   NOTE: the 4-up column count for masonry archives is NOT set here. It lives in
   a16a-masonry.css as `column-count`, because that sheet turns the products
   container into `display: block` (CSS multi-column). A `grid-template-columns`
   declaration on that container would be inert and would read as if it drove
   the layout, so it was removed deliberately. Both sheets agree on 4-up.
   These two rules only release the fixed card aspect ratio so card heights can
   vary; the image fit itself is set in a16a-masonry.css (`object-fit: contain`),
   which loads after this sheet and therefore wins. */
.masonry-product-archive .shop-masonry-wrapper .product-card-image { aspect-ratio: auto; }
.masonry-product-archive .shop-masonry-wrapper .product-card-image img { height: auto; }

.shop-infinite-scroll { text-align: center; padding: var(--space-lg) 0; }
.shop-loading { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--color-text-muted); font-size: var(--font-size-sm); }
.shop-no-more { font-size: var(--font-size-sm); color: var(--color-text-muted); }

/* ============================================================
   11. SINGLE PRODUCT
   ============================================================ */
.a16a-product-container { padding: var(--space-lg) 0 var(--space-2xl); }

/* Gallery | Buy box — two columns */
.a16a-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: start;
}
.a16a-product-gallery { min-width: 0; }
.a16a-product-buybox { min-width: 0; }
.a16a-buybox-card {
    background: #fff;
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

/* Below the fold: details + product sidebar */
.a16a-product-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--space-xl);
    align-items: start;
    margin-top: var(--space-2xl);
}
.a16a-product-details-main { min-width: 0; }

/* Buy-it-now sits under the add-to-cart form */
.single-product-buynow { margin-top: var(--space-sm); }
.single-product-buynow .btn { width: 100%; }

.woocommerce div.product { display: block; }
.woocommerce div.product div.images,
.woocommerce div.product div.summary { margin-bottom: var(--space-lg); }
.woocommerce div.product div.images { position: relative; }

.woocommerce div.product .woocommerce-product-gallery { border: 1px solid var(--border-color-light); border-radius: var(--radius-md); padding: var(--space-md); background: #fff; }
.woocommerce div.product .woocommerce-product-gallery__image img { border-radius: var(--radius-sm); }
.woocommerce div.product .flex-control-thumbs { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.woocommerce div.product .flex-control-thumbs li { width: 72px; float: none; margin: 0; }
.woocommerce div.product .flex-control-thumbs img { border: 1px solid var(--border-color-light); border-radius: var(--radius-sm); opacity: 0.7; }
.woocommerce div.product .flex-control-thumbs img.flex-active,
.woocommerce div.product .flex-control-thumbs img:hover { border-color: var(--color-primary); opacity: 1; }

.woocommerce div.product .product_title,
.a16a-product-container .product_title {
    font-size: 28px; font-weight: 800; line-height: 1.2;
    letter-spacing: -0.02em; margin-bottom: var(--space-sm);
}
.single-product-rating { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.single-product-rating .rating-count { color: var(--color-info); font-size: var(--font-size-sm); }
.single-product-price { margin-bottom: var(--space-md); }
.single-product-price .price { font-size: 34px; font-weight: 800; color: var(--color-text); }
.single-product-price .woocommerce-Price-amount { font-weight: 800; }
.single-product-price del { font-size: 16px; color: var(--color-text-muted); font-weight: 400; margin-right: 8px; }
.single-product-price ins { text-decoration: none; }

.single-product-delivery {
    display: flex; align-items: center; gap: 8px;
    font-size: var(--font-size-base); color: var(--color-text); margin-bottom: 6px;
}
.delivery-icon { display: inline-flex; color: var(--color-text); }
.single-product-delivery strong { font-weight: 700; }
.single-product-stock { margin-bottom: var(--space-md); font-size: var(--font-size-base); font-weight: 600; }
.single-product-stock .in-stock { color: var(--color-success); display: inline-flex; align-items: center; gap: 5px; }
.single-product-stock .out-of-stock { color: var(--color-primary); }

/* Add-to-cart form */
.woocommerce div.product form.cart {
    display: flex; align-items: stretch; gap: var(--space-sm);
    margin: var(--space-md) 0; flex-wrap: wrap;
}
.woocommerce div.product form.cart .quantity { display: inline-flex; }
.woocommerce .quantity input.qty {
    width: 84px; height: 48px; text-align: center;
    border: 1px solid var(--color-text); border-radius: var(--radius-pill);
    font-weight: 700; font-size: var(--font-size-md); padding: 0 8px;
}
.woocommerce .quantity input.qty:focus { outline: none; border-color: var(--color-primary); }
.woocommerce div.product form.cart .button {
    height: 48px; padding: 0 44px; font-size: var(--font-size-md); font-weight: 800;
    flex: 0 1 auto;
}
.woocommerce div.product form.cart .variations { width: 100%; margin-bottom: var(--space-md); }
.woocommerce div.product form.cart .variations label { font-weight: 700; font-size: var(--font-size-sm); }
.woocommerce div.product form.cart .variations select {
    border: 1px solid var(--color-text); border-radius: var(--radius-sm); padding: 10px 12px;
}
.woocommerce div.product .stock { font-weight: 700; }

/* Trust badges */
.single-product-trust {
    display: flex; flex-wrap: wrap; gap: var(--space-md);
    padding: var(--space-md) 0; border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light); margin-bottom: var(--space-md);
}
.trust-item {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: var(--font-size-xs); font-weight: 600; color: var(--color-text-secondary);
}
.trust-item svg { flex: 0 0 auto; }

.single-product-excerpt { margin-bottom: var(--space-md); }
.single-product-excerpt h4 { font-size: var(--font-size-md); margin-bottom: var(--space-sm); }
.single-product-excerpt ul { list-style: disc; padding-left: 20px; }
.single-product-excerpt li { font-size: var(--font-size-sm); line-height: 1.7; color: var(--color-text-secondary); }
.single-product-excerpt p { font-size: var(--font-size-sm); line-height: 1.7; color: var(--color-text-secondary); }

.single-product-meta {
    display: flex; flex-direction: column; gap: 4px;
    font-size: var(--font-size-xs); color: var(--color-text-muted);
}
.single-product-meta a { color: var(--color-info); }

/* Tabs */
.woocommerce div.product .woocommerce-tabs { margin-top: var(--space-xl); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 var(--space-lg); display: flex; gap: var(--space-sm); border-bottom: 1px solid var(--border-color-light); flex-wrap: wrap; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent; border: none; border-radius: 0; margin: 0; padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block; padding: 12px 18px; font-weight: 700; font-size: var(--font-size-md);
    color: var(--color-text-secondary); border-bottom: 3px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--color-text); border-bottom-color: var(--color-primary); text-decoration: none;
}
.woocommerce div.product .woocommerce-tabs .panel { margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-size: var(--font-size-xl); margin-bottom: var(--space-md); }
.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-tabs .panel li { font-size: var(--font-size-base); line-height: 1.8; color: var(--color-text-secondary); }
.woocommerce table.shop_attributes { border: 1px solid var(--border-color-light); border-radius: var(--radius-sm); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 12px 16px; border-bottom: 1px solid var(--border-color-light); font-size: var(--font-size-sm); }
.woocommerce table.shop_attributes th { background: var(--color-bg-alt); font-weight: 700; width: 220px; }
.woocommerce table.shop_attributes tr:last-child th, .woocommerce table.shop_attributes tr:last-child td { border-bottom: none; }

/* Related / upsells */
.woocommerce .related.products, .woocommerce .upsells.products {
    margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid var(--border-color-light);
}
.woocommerce .related.products > h2, .woocommerce .upsells.products > h2 {
    font-size: 22px; font-weight: 800; margin-bottom: var(--space-lg);
}

/* Reviews */
.woocommerce #reviews #comments h2, .woocommerce #reviews #review_form_wrapper h3 { font-size: var(--font-size-xl); margin-bottom: var(--space-md); }
.woocommerce #reviews .commentlist { display: flex; flex-direction: column; gap: var(--space-md); }
.woocommerce #reviews .commentlist li { margin: 0; padding: var(--space-md); border: 1px solid var(--border-color-light); border-radius: var(--radius-md); }
.woocommerce #reviews .commentlist li .comment_container { display: flex; gap: var(--space-md); }
.woocommerce #reviews .commentlist li img.avatar { width: 48px; height: 48px; border-radius: 50%; border: none; position: static; padding: 0; }
.woocommerce #reviews .comment-text { border: none; margin: 0; padding: 0; flex: 1; }
.woocommerce #reviews .comment-text p.meta { font-size: var(--font-size-xs); color: var(--color-text-muted); }
.woocommerce #reviews #respond textarea,
.woocommerce #reviews #respond input[type="text"],
.woocommerce #reviews #respond input[type="email"] {
    border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 12px 14px;
}
.woocommerce #reviews #respond input#submit { margin-top: var(--space-sm); }

/* ============================================================
   12. CART  (classes come from the untouched cart.php)
   ============================================================ */
.a16a-cart-container { padding: var(--space-lg) 0 var(--space-2xl); }
.a16a-cart-header { margin-bottom: var(--space-lg); }
.a16a-cart-title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.a16a-cart-subtitle { font-size: var(--font-size-sm); color: var(--color-text-secondary); margin-top: 4px; }
.a16a-cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--space-lg); align-items: start; }

.a16a-cart-items { display: flex; flex-direction: column; gap: var(--space-md); }
.a16a-cart-item {
    display: flex; gap: var(--space-md); align-items: flex-start;
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md); padding: var(--space-md);
}
.a16a-cart-item-image { flex: 0 0 96px; }
.a16a-cart-item-image img { width: 96px; height: 96px; object-fit: contain; }
.a16a-cart-item-details { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.a16a-cart-item-title { font-size: var(--font-size-md); font-weight: 700; line-height: 1.35; }
.a16a-cart-item-title a { color: var(--color-text); }
.a16a-cart-item-title a:hover { color: var(--color-primary); text-decoration: none; }
.a16a-cart-item-price { font-size: var(--font-size-sm); color: var(--color-text-secondary); }
.a16a-cart-item-actions { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; margin-top: 4px; }

.a16a-quantity-selector {
    display: inline-flex; align-items: center;
    border: 1px solid var(--color-text); border-radius: var(--radius-pill); overflow: hidden;
}
.a16a-qty-btn {
    width: 38px; height: 40px; background: #fff; color: var(--color-text);
    font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.a16a-qty-btn:hover { background: var(--color-bg-alt); }
.a16a-quantity-selector input.qty {
    width: 52px; height: 40px; border: none; border-left: 1px solid var(--border-color-light);
    border-right: 1px solid var(--border-color-light);
    text-align: center; font-weight: 700; -moz-appearance: textfield;
}
.a16a-quantity-selector input.qty::-webkit-outer-spin-button,
.a16a-quantity-selector input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.a16a-cart-item-subtotal { display: flex; flex-direction: column; gap: 2px; }
.a16a-cart-item-subtotal-label { font-size: var(--font-size-xs); color: var(--color-text-muted); }
.a16a-cart-item-subtotal-value { font-size: var(--font-size-lg); font-weight: 800; }
.a16a-cart-remove {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: var(--font-size-sm); color: var(--color-text-muted); font-weight: 600;
}
.a16a-cart-remove:hover { color: var(--color-primary); text-decoration: none; }

.a16a-cart-continue { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-md); flex-wrap: wrap; }
.a16a-continue-shopping {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: var(--font-size-sm); font-weight: 700; color: var(--color-info);
}
.a16a-update-cart {
    background: #fff !important; color: var(--color-text) !important;
    border: 1px solid var(--color-text) !important; border-radius: var(--radius-pill) !important;
    padding: 11px 24px !important; font-weight: 700 !important;
}
.a16a-update-cart:hover { background: var(--color-bg-alt) !important; }

.a16a-cart-summary .a16a-summary-card {
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md); padding: var(--space-lg);
    position: sticky; top: var(--header-total);
}
.a16a-summary-title { font-size: var(--font-size-xl); font-weight: 800; margin-bottom: var(--space-md); }

.a16a-free-shipping-bar { margin-bottom: var(--space-md); }
.a16a-free-shipping-text { font-size: var(--font-size-sm); color: var(--color-text-secondary); margin-bottom: 8px; }
.a16a-free-shipping-text strong { color: var(--color-primary); }
.a16a-progress-track { height: 8px; background: var(--color-bg-alt); border-radius: var(--radius-pill); overflow: hidden; }
.a16a-progress-fill { height: 100%; background: var(--color-success); border-radius: var(--radius-pill); transition: width 0.35s ease; }
.a16a-free-shipping-success {
    display: flex; align-items: center; gap: 8px;
    background: var(--color-success-bg); color: var(--color-success);
    border-radius: var(--radius-sm); padding: 10px 12px;
    font-size: var(--font-size-sm); font-weight: 700; margin-bottom: var(--space-md);
}

.a16a-coupon-section { margin-bottom: var(--space-md); }
.a16a-coupon-label { display: block; font-size: var(--font-size-sm); font-weight: 700; margin-bottom: 6px; }
.a16a-coupon-input { display: flex; gap: 8px; }
.a16a-coupon-input input.input-text {
    flex: 1 1 auto; min-width: 0; border: 1px solid var(--color-text);
    border-radius: var(--radius-pill); padding: 11px 16px; font-size: var(--font-size-sm);
}
.a16a-coupon-input input.input-text:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-bg); }
.a16a-apply-coupon { flex: 0 0 auto; }

.a16a-cart-totals { border-top: 1px solid var(--border-color-light); padding-top: var(--space-md); margin-bottom: var(--space-md); }
.a16a-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); padding: 7px 0; }
.a16a-total-label { font-size: var(--font-size-sm); color: var(--color-text-secondary); }
.a16a-total-value { font-size: var(--font-size-md); font-weight: 700; }
.a16a-total-value.a16a-free-shipping { color: var(--color-success); }
.a16a-total-value.a16a-discount { color: var(--color-primary); }
.a16a-total-grand { border-top: 1px solid var(--border-color-light); margin-top: 6px; padding-top: var(--space-md); }
.a16a-total-grand .a16a-total-label { font-size: var(--font-size-lg); font-weight: 800; color: var(--color-text); }
.a16a-total-grand .a16a-total-value { font-size: 24px; font-weight: 800; color: var(--color-text); }

.a16a-checkout-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; background: var(--color-primary); color: #fff;
    border-radius: var(--radius-pill); padding: 15px 24px;
    font-size: var(--font-size-lg); font-weight: 800; margin-top: var(--space-md);
}
.a16a-checkout-btn:hover { background: var(--color-primary-dark); color: #fff; text-decoration: none; }

.a16a-cart-trust {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: var(--space-md); padding-top: var(--space-md);
    border-top: 1px solid var(--border-color-light);
}
.a16a-trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: var(--font-size-xs); color: var(--color-text-secondary); font-weight: 600;
}

/* ============================================================
   13. CHECKOUT  (classes from the untouched form-checkout.php)
   ============================================================ */
.a16a-checkout-container { padding: var(--space-lg) 0 var(--space-2xl); }
.a16a-checkout-header { margin-bottom: var(--space-lg); }
.a16a-checkout-title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.a16a-checkout-steps { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); flex-wrap: wrap; }
.a16a-checkout-steps .step {
    font-size: var(--font-size-sm); font-weight: 700; color: var(--color-text-muted);
    padding: 6px 14px; border-radius: var(--radius-pill); background: var(--color-bg-alt);
}
.a16a-checkout-steps .step.active { background: var(--color-black); color: #fff; }
.a16a-checkout-steps .step-separator { width: 18px; height: 2px; background: var(--border-color-light); }
.a16a-checkout-login-notice {
    background: #EEF4FD; border-radius: var(--radius-sm); padding: 12px 16px;
    font-size: var(--font-size-sm); color: var(--color-text); margin-top: var(--space-md);
}
.a16a-checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--space-lg); align-items: start; }
.a16a-checkout-fields { display: flex; flex-direction: column; gap: var(--space-md); min-width: 0; }
.a16a-checkout-section {
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md); padding: var(--space-lg);
}
.a16a-checkout-section-title {
    font-size: var(--font-size-lg); font-weight: 800; margin-bottom: var(--space-md);
    display: flex; align-items: center; gap: 10px;
}
.a16a-checkout-section-title .section-number {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: var(--font-size-sm); font-weight: 800; flex: 0 0 auto;
}
.a16a-checkout-subtitle { font-size: var(--font-size-md); font-weight: 800; margin-bottom: var(--space-sm); }
.a16a-checkout-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.a16a-checkout-fields-grid .form-row-wide,
.a16a-checkout-fields-grid .a16a-form-row-full { grid-column: 1 / -1; }
.a16a-create-account-checkbox { grid-column: 1 / -1; font-size: var(--font-size-sm); }
.a16a-ship-to-different { font-size: var(--font-size-sm); margin: var(--space-sm) 0; }
.a16a-order-notes { margin-top: var(--space-sm); }

.a16a-checkout-summary .a16a-summary-card {
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md); padding: var(--space-lg);
    position: sticky; top: var(--header-total);
}
.a16a-summary-items { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-md); max-height: 320px; overflow-y: auto; }
.a16a-summary-item { display: flex; gap: 10px; align-items: flex-start; }
.a16a-summary-item-image { position: relative; flex: 0 0 56px; }
.a16a-summary-item-image img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--border-color-light); border-radius: var(--radius-xs); }
.a16a-summary-item-qty {
    position: absolute; top: -7px; right: -7px;
    min-width: 20px; height: 20px; padding: 0 5px;
    background: var(--color-black); color: #fff; border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.a16a-summary-item-info { flex: 1 1 auto; min-width: 0; }
.a16a-summary-item-name { font-size: var(--font-size-sm); font-weight: 600; line-height: 1.35; margin-bottom: 2px; }
.a16a-summary-item-name a { color: var(--color-text); }
.a16a-summary-item-price { font-size: var(--font-size-sm); font-weight: 700; }
.a16a-summary-coupon { margin-bottom: var(--space-md); }
.a16a-coupon-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: var(--font-size-sm); font-weight: 700; color: var(--color-info);
    cursor: pointer; padding: 8px 0;
}
.a16a-coupon-form { display: flex; gap: 8px; margin-top: 6px; }
.a16a-coupon-form input.input-text {
    flex: 1 1 auto; min-width: 0; border: 1px solid var(--color-text);
    border-radius: var(--radius-pill); padding: 11px 16px; font-size: var(--font-size-sm);
}
.a16a-summary-totals { border-top: 1px solid var(--border-color-light); padding-top: var(--space-md); }
.a16a-place-order { margin-top: var(--space-md); }
.a16a-place-order .a16a-checkout-btn {
    width: 100%; background: var(--color-primary) !important; color: #fff !important;
    border: 1px solid var(--color-primary) !important; border-radius: var(--radius-pill) !important;
    padding: 16px 24px !important; font-size: var(--font-size-lg) !important; font-weight: 800 !important;
    cursor: pointer;
}
.a16a-place-order .a16a-checkout-btn:hover { background: var(--color-primary-dark) !important; }
.a16a-checkout-privacy { font-size: var(--font-size-xs); color: var(--color-text-secondary); line-height: 1.6; margin-top: var(--space-sm); }
.a16a-checkout-privacy a { color: var(--color-info); }
.a16a-checkout-trust {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: var(--space-md); padding-top: var(--space-md);
    border-top: 1px solid var(--border-color-light);
}
.a16a-payment-methods { margin: 0; }
.a16a-payment-methods ul.wc_payment_methods { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.a16a-payment-methods ul.wc_payment_methods li {
    border: 1px solid var(--border-color-light); border-radius: var(--radius-sm);
    padding: 14px 16px; background: #fff; transition: border-color 0.15s ease;
}
.a16a-payment-methods ul.wc_payment_methods li.woocommerce-info { padding: 14px 16px; }
.a16a-payment-methods ul.wc_payment_methods li:has(input:checked) { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-bg); }
.a16a-payment-methods ul.wc_payment_methods label { font-weight: 700; font-size: var(--font-size-sm); cursor: pointer; display: inline; }
.a16a-payment-methods input.input-radio { accent-color: var(--color-primary); margin-right: 8px; }
.a16a-payment-methods .payment_box {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--border-color-light);
    font-size: var(--font-size-sm); color: var(--color-text-secondary);
}
.a16a-payment-methods .payment_box input,
.a16a-payment-methods .payment_box select {
    border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 10px 12px;
}

/* Checkout field polish */
.woocommerce-checkout .form-row { margin-bottom: 0; }
.woocommerce-checkout .form-row label { display: block; }
.woocommerce-checkout .form-row .required { color: var(--color-primary); text-decoration: none; }
.woocommerce-checkout .select2-container { width: 100% !important; }
.woocommerce-checkout .select2-container .select2-selection--single { height: 46px; padding: 7px 0; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.woocommerce-checkout .select2-dropdown { border-color: var(--color-text); border-radius: var(--radius-sm); }
.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--color-primary); }

/* ============================================================
   14. ORDER PAY  (form-pay.php + template-order-pay.php)
   ============================================================ */
.a16a-order-pay-container { padding: var(--space-lg) 0 var(--space-2xl); }
.a16a-order-pay-header h1 { font-weight: 800; letter-spacing: -0.02em; }
.a16a-order-pay-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--space-lg); align-items: start; }
.a16a-order-card {
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md) !important;
}
.a16a-order-card h2, .a16a-order-card h3 { font-weight: 800; }
.a16a-order-table { font-size: var(--font-size-sm); }
.a16a-order-pay-sidebar { position: sticky; top: var(--header-total); }
.a16a-payment-methods li { list-style: none; }
.a16a-order-pay-container input[type="radio"] { accent-color: var(--color-primary); }
.a16a-order-pay-container .input-radio { margin-right: 8px; }
.a16a-order-pay-container .payment_box { font-size: var(--font-size-sm); color: var(--color-text-secondary); }
.a16a-pay-btn { border-radius: var(--radius-pill) !important; }

/* ============================================================
   15. MY ACCOUNT
   ============================================================ */
.a16a-account-layout {
    display: grid; grid-template-columns: 260px 1fr; gap: var(--space-lg);
    align-items: start; padding: var(--space-lg) 0 var(--space-2xl);
}
.a16a-account-nav {
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md); padding: var(--space-sm);
    position: sticky; top: var(--header-total);
}
.a16a-account-nav ul { display: flex; flex-direction: column; gap: 2px; }
.a16a-account-nav ul li a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: var(--radius-sm);
    font-size: var(--font-size-sm); font-weight: 600; color: var(--color-text);
}
.a16a-account-nav ul li a svg { flex: 0 0 auto; color: var(--color-text-muted); }
.a16a-account-nav ul li a:hover { background: var(--color-bg-alt); text-decoration: none; color: var(--color-primary); }
.a16a-account-nav ul li.is-active a { background: var(--color-primary); color: #fff; font-weight: 700; }
.a16a-account-nav ul li.is-active a svg { color: #fff; }
.a16a-account-content { min-width: 0; }

/* Account page furniture */
.a16a-account-section-header { margin-bottom: var(--space-lg); }
.a16a-account-section-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.a16a-account-section-subtitle { font-size: var(--font-size-sm); color: var(--color-text-secondary); margin-top: 4px; }
.a16a-account-section {
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md); padding: var(--space-lg); margin-bottom: var(--space-md);
}
.a16a-account-subtitle { font-size: var(--font-size-lg); font-weight: 800; margin-bottom: var(--space-md); }
.a16a-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.a16a-form-row { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.a16a-form-row-full { grid-column: 1 / -1; }
.a16a-form-row label { font-size: var(--font-size-sm); font-weight: 700; }
.a16a-form-row input, .a16a-form-row select, .a16a-form-row textarea {
    border: 1px solid var(--color-text); border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: var(--font-size-base); width: 100%;
}
.a16a-form-row input:focus, .a16a-form-row select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-bg); }
.a16a-form-hint { font-size: var(--font-size-xs); color: var(--color-text-muted); }
.a16a-account-actions { margin-top: var(--space-md); }

.a16a-btn-primary, .woocommerce a.a16a-btn-primary, .woocommerce button.a16a-btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-primary); color: #fff;
    border: 1px solid var(--color-primary); border-radius: var(--radius-pill);
    padding: 13px 28px; font-size: var(--font-size-base); font-weight: 700; cursor: pointer;
}
.a16a-btn-primary:hover, .woocommerce a.a16a-btn-primary:hover { background: var(--color-primary-dark); color: #fff; text-decoration: none; }
.a16a-btn-dark {
    background: var(--color-black); color: #fff;
    border: 1px solid var(--color-black); border-radius: var(--radius-pill);
    padding: 13px 28px; font-weight: 700; cursor: pointer;
}
.a16a-btn-dark:hover { background: var(--color-charcoal); color: #fff; }

/* Auth (login / register) */
.a16a-auth-container { padding: var(--space-xl) 0 var(--space-2xl); }
.a16a-auth-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; }
.a16a-auth-card {
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-lg); padding: var(--space-xl);
}
.a16a-auth-card-dark { background: var(--color-black); border-color: var(--color-black); color: #fff; }
.a16a-auth-header { margin-bottom: var(--space-lg); }
.a16a-auth-header h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.a16a-auth-card-dark .a16a-auth-header h2 { color: #fff; }
.a16a-auth-subtitle { font-size: var(--font-size-sm); color: var(--color-text-secondary); }
.a16a-auth-card-dark .a16a-auth-subtitle { color: rgba(255,255,255,0.75); }
.a16a-auth-card .form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-md); }
.a16a-auth-card label { font-size: var(--font-size-sm); font-weight: 700; }
.a16a-auth-card input.input-text {
    border: 1px solid var(--color-text); border-radius: var(--radius-sm);
    padding: 12px 14px; width: 100%; font-size: var(--font-size-base);
}
.a16a-auth-card input.input-text:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-bg); }
.a16a-auth-card-dark input.input-text { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); color: #fff; }
.a16a-auth-card-dark input.input-text::placeholder { color: rgba(255,255,255,0.5); }
.a16a-auth-card .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; font-size: var(--font-size-sm); }
.a16a-auth-card .a16a-btn-primary, .a16a-auth-card .a16a-btn-dark { width: 100%; justify-content: center; margin-top: var(--space-sm); }
.a16a-auth-benefits { display: flex; flex-direction: column; gap: 10px; margin: var(--space-md) 0 var(--space-lg); }
.a16a-auth-benefits li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--font-size-sm); color: rgba(255,255,255,0.9); }
.a16a-auth-benefits li svg { flex: 0 0 auto; color: var(--color-deal); margin-top: 3px; stroke: var(--color-deal); }
.a16a-password-hint, .a16a-privacy-note { font-size: var(--font-size-xs); color: var(--color-text-muted); line-height: 1.6; }
.a16a-auth-card-dark .a16a-password-hint,
.a16a-auth-card-dark .a16a-privacy-note { color: rgba(255,255,255,0.6); }
.a16a-privacy-note a { color: var(--color-info); }

/* Dashboard */
.a16a-dashboard-welcome { margin-bottom: var(--space-lg); }
.a16a-dashboard-title { font-size: 24px; font-weight: 800; }
.a16a-dashboard-subtitle { font-size: var(--font-size-sm); color: var(--color-text-secondary); margin-top: 6px; }
.a16a-dashboard-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-md); }
.a16a-dash-card {
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column;
}
.a16a-dash-card-header { padding: var(--space-md) var(--space-md) 0; }
.a16a-dash-card-header h3 { font-size: var(--font-size-lg); font-weight: 800; }
.a16a-dash-card-body { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; gap: 10px; }
.a16a-order-item {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 0; border-bottom: 1px solid var(--border-color-light); font-size: var(--font-size-sm);
}
.a16a-order-item:last-of-type { border-bottom: none; }
.a16a-order-id { font-weight: 700; }
.a16a-order-date { color: var(--color-text-muted); font-size: var(--font-size-xs); }
.a16a-order-total { font-weight: 700; }
.a16a-order-status {
    font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill);
    background: var(--color-bg-alt); color: var(--color-text-secondary);
}
.a16a-order-status.a16a-status-completed { background: var(--color-success-bg); color: var(--color-success); }
.a16a-order-status.a16a-status-processing,
.a16a-order-status.a16a-status-on-hold { background: #FFF7E0; color: #8A6100; }
.a16a-order-status.a16a-status-failed,
.a16a-order-status.a16a-status-cancelled { background: var(--color-primary-bg); color: var(--color-primary); }
.a16a-address-item { font-size: var(--font-size-sm); line-height: 1.7; color: var(--color-text-secondary); }
.a16a-address-item strong { color: var(--color-text); display: block; margin-bottom: 2px; }
.a16a-account-info p { font-size: var(--font-size-sm); margin-bottom: 4px; }
.a16a-no-data { font-size: var(--font-size-sm); color: var(--color-text-muted); }
.a16a-dash-link { font-size: var(--font-size-sm); font-weight: 700; color: var(--color-info); margin-top: auto; }

/* Orders table */
.woocommerce-orders-table, .woocommerce-table--order-details, table.shop_table {
    border: 1px solid var(--border-color-light) !important;
    border-radius: var(--radius-md); border-collapse: separate; border-spacing: 0; overflow: hidden;
    width: 100%;
}
.woocommerce table.shop_table th {
    background: var(--color-bg-alt); font-weight: 800; font-size: var(--font-size-sm);
    padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-color-light);
}
.woocommerce table.shop_table td {
    padding: 14px 16px; border-bottom: 1px solid var(--border-color-light);
    font-size: var(--font-size-sm); vertical-align: middle;
}
.woocommerce table.shop_table tr:last-child td { border-bottom: none; }
.woocommerce table.shop_table .button { padding: 8px 18px !important; font-size: var(--font-size-xs) !important; }

/* Downloads */
.a16a-downloads-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.a16a-download-card {
    display: flex; align-items: center; gap: var(--space-md);
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md); padding: var(--space-md);
}
.a16a-download-image img { width: 64px; height: 64px; object-fit: contain; }
.a16a-download-placeholder {
    width: 64px; height: 64px; border-radius: var(--radius-sm);
    background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center;
}
.a16a-download-info { flex: 1 1 auto; min-width: 0; }
.a16a-download-name { font-size: var(--font-size-md); font-weight: 700; margin-bottom: 4px; }
.a16a-download-meta { display: flex; gap: var(--space-md); flex-wrap: wrap; font-size: var(--font-size-xs); color: var(--color-text-muted); }
.a16a-download-btn {
    display: inline-flex; align-items: center; background: var(--color-primary); color: #fff;
    border-radius: var(--radius-pill); padding: 10px 22px; font-weight: 700; font-size: var(--font-size-sm);
}
.a16a-download-btn:hover { background: var(--color-primary-dark); color: #fff; text-decoration: none; }
.a16a-download-disabled { font-size: var(--font-size-sm); color: var(--color-text-muted); }
.a16a-empty-state { text-align: center; padding: var(--space-2xl) var(--space-md); }
.a16a-empty-icon { color: var(--color-text-muted); margin-bottom: var(--space-md); }
.a16a-empty-state h3 { margin-bottom: var(--space-sm); }
.a16a-empty-state p { color: var(--color-text-secondary); font-size: var(--font-size-sm); margin-bottom: var(--space-md); }

/* Address cards */
.woocommerce-Addresses, .u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.woocommerce-Address { background: var(--color-card); border: 1px solid var(--border-color-light); border-radius: var(--radius-md); padding: var(--space-lg); }
.woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-sm); }
.woocommerce-Address-title h3 { font-size: var(--font-size-lg); font-weight: 800; }
.woocommerce-Address address { font-style: normal; font-size: var(--font-size-sm); line-height: 1.9; color: var(--color-text-secondary); }

/* ============================================================
   16. GENERIC PAGES / BLOG / 404 / SEARCH
   ============================================================ */
.page-header { margin-bottom: var(--space-lg); }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.page-subtitle { font-size: var(--font-size-base); color: var(--color-text-secondary); }
.entry-content { font-size: var(--font-size-md); line-height: 1.85; color: var(--color-text-secondary); }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--color-text); margin: var(--space-lg) 0 var(--space-sm); }
.entry-content p { margin-bottom: var(--space-md); }
.entry-content ul, .entry-content ol { margin: 0 0 var(--space-md) 22px; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: var(--radius-md); margin: var(--space-md) 0; }
.entry-content blockquote {
    border-left: 4px solid var(--color-primary); background: var(--color-bg-alt);
    padding: var(--space-md); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: var(--space-md) 0;
}
.entry-content a { color: var(--color-info); text-decoration: underline; }
.entry-content table { width: 100%; border-collapse: collapse; margin: var(--space-md) 0; }
.entry-content th, .entry-content td { border: 1px solid var(--border-color-light); padding: 10px 14px; font-size: var(--font-size-sm); }
.entry-content th { background: var(--color-bg-alt); font-weight: 700; }

.blog-masonry-container, .a16a-single-blog-container { padding: var(--space-lg) 0 var(--space-2xl); }
.blog-masonry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-lg); }
.post-card {
    background: var(--color-card); border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column;
}
.post-card .post-thumbnail { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-bg-alt); }
.post-card .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); flex: 1; }
.post-card-body .content-tag { display: inline-block; align-self: flex-start; }
.post-card-body h2 { font-size: var(--font-size-lg); line-height: 1.35; margin-bottom: 0; }
.post-card-body h2 a { color: var(--color-text); }
.post-card-meta { font-size: var(--font-size-xs); color: var(--color-text-muted); display: flex; gap: var(--space-md); margin-bottom: var(--space-sm); }
.post-card-excerpt { font-size: var(--font-size-sm); color: var(--color-text-secondary); line-height: 1.7; }

/* Search results */
.search-result-item { padding: var(--space-md) 0; border-bottom: 1px solid var(--border-color-light); }
.search-result-item h3 { font-size: var(--font-size-lg); margin-bottom: 4px; }
.search-result-item h3 a { color: var(--color-text); }
.search-result-item p { font-size: var(--font-size-sm); color: var(--color-text-secondary); }

/* 404 */
.error-404 { text-align: center; padding: var(--space-2xl) var(--space-md); }
.error-404 .error-code { font-size: 96px; font-weight: 800; color: var(--color-primary); line-height: 1; letter-spacing: -0.04em; }
.error-404 h1 { font-size: 26px; margin: var(--space-md) 0 var(--space-sm); }
.a16a-404-actions {
    display: flex; gap: var(--space-md); justify-content: center;
    flex-wrap: wrap; margin-top: var(--space-lg);
}
.a16a-404-search { max-width: 520px; margin: var(--space-xl) auto 0; }
.a16a-404-cats { margin-top: var(--space-2xl); }
.a16a-404-cats h2 { font-size: var(--font-size-xl); margin-bottom: var(--space-lg); text-align: center; }

/* Comments */
.comments-area { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--border-color-light); }
.comment-list { display: flex; flex-direction: column; gap: var(--space-md); }
.comment-list .comment-body { border: 1px solid var(--border-color-light); border-radius: var(--radius-md); padding: var(--space-md); }
.comment-form input, .comment-form textarea {
    border: 1px solid var(--color-text); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
}
.comment-form label { font-size: var(--font-size-sm); font-weight: 700; display: block; margin-bottom: 4px; }
.comment-form p { margin-bottom: var(--space-md); }
.comment-list .comment-body { display: flex; gap: var(--space-md); }
.comment-list .comment-author-avatar { flex: 0 0 auto; }
.comment-list .comment-author-avatar img { border-radius: 50%; }
.comment-list .comment-content { flex: 1 1 auto; min-width: 0; }
.comment-meta { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: baseline; margin-bottom: 4px; }
.comment-author-name { font-weight: 700; }
.comment-date { font-size: var(--font-size-xs); color: var(--color-text-muted); }
.comment-actions { margin-top: var(--space-sm); font-size: var(--font-size-sm); }
.comment-reply-title, .comments-title { font-size: var(--font-size-xl); margin-bottom: var(--space-md); }
.comment-notes { font-size: var(--font-size-sm); color: var(--color-text-muted); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form-cookies-consent input { width: auto; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-list .children { margin-left: var(--space-lg); }

/* Static page */
.a16a-page-container { padding: var(--space-lg) 0 var(--space-2xl); }
.a16a-page-card { padding: var(--space-xl); }
.a16a-page-header {
    margin-bottom: var(--space-lg); padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-primary);
}
.a16a-page-card .post-thumbnail,
.a16a-article .post-thumbnail {
    margin-bottom: var(--space-lg); border-radius: var(--radius-md); overflow: hidden;
}
.a16a-page-card .post-thumbnail img,
.a16a-article .post-thumbnail img { width: 100%; height: auto; display: block; }
.a16a-related-posts { margin-top: var(--space-2xl); }
.content-card-meta { font-size: var(--font-size-xs); color: var(--color-text-muted); }

/* Single post: article + sidebar */
.a16a-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--space-xl);
    align-items: start;
}
.a16a-blog-main { min-width: 0; }.a16a-article { margin-bottom: var(--space-lg); padding: var(--space-xl); }
.a16a-post-meta {
    display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center;
    font-size: var(--font-size-xs); color: var(--color-text-muted);
}
.a16a-post-meta a { color: var(--color-info); }
.a16a-post-tags {
    margin-top: var(--space-lg); padding-top: var(--space-md);
    border-top: 1px solid var(--border-color-light);
    font-size: var(--font-size-sm); color: var(--color-text-secondary);
}
.a16a-author-box {
    display: flex; gap: var(--space-md); align-items: flex-start;
    background: #fff; border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md); padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}
.a16a-author-box img { border-radius: 50%; flex: 0 0 auto; }
.a16a-author-box h4 { margin-bottom: 4px; }
.a16a-author-box p { font-size: var(--font-size-sm); color: var(--color-text-secondary); line-height: 1.65; }

/* Pagination (WP) */
.pagination, .woocommerce-pagination, .navigation.pagination { display: flex; justify-content: center; gap: 6px; margin: var(--space-xl) 0; }
.page-numbers {
    min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-pill); border: 1px solid var(--border-color-light);
    background: #fff; color: var(--color-text); font-weight: 700; padding: 0 14px;
}
.page-numbers:hover { border-color: var(--color-text); text-decoration: none; color: var(--color-text); }
.page-numbers.current { background: var(--color-black); border-color: var(--color-black); color: #fff; }

/* ============================================================
   17. FOOTER
   ============================================================ */
.back-to-top-bar { background: var(--color-charcoal); text-align: center; padding: 14px 0; }
.back-to-top-link {
    display: inline-flex; align-items: center; gap: 7px;
    color: #fff; font-size: var(--font-size-sm); font-weight: 700;
}
.back-to-top-link:hover { color: #fff; text-decoration: underline; }

.site-footer { background: var(--color-black); color: rgba(255,255,255,0.85); padding-top: var(--space-2xl); }
.footer-main { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); padding-bottom: var(--space-xl); }
.footer-title {
    color: #fff; font-size: var(--font-size-base); font-weight: 800;
    margin-bottom: var(--space-md); letter-spacing: -0.01em;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: var(--font-size-sm); }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-divider { height: 1px; background: rgba(255,255,255,0.15); }
.footer-logo-row {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
    padding: var(--space-lg) 0; flex-wrap: wrap;
}
.footer-logo { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.footer-logo .logo-text { color: #fff; font-size: 22px; }
.footer-logo .logo-spark { color: var(--color-deal); }
.footer-logo .logo-tagline { font-size: 10px; color: rgba(255,255,255,0.6); border-left-color: rgba(255,255,255,0.25); }
.footer-logo:hover { text-decoration: none; color: #fff; }
.footer-lang-currency { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.footer-lang-btn {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.8); font-size: var(--font-size-xs); font-weight: 600;
    border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-pill); padding: 7px 14px;
}
.footer-bottom { background: rgba(255,255,255,0.05); padding: var(--space-md) 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.footer-payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-icon {
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--color-black);
    border-radius: var(--radius-xs); padding: 5px 10px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.02em;
}
.footer-copyright { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.footer-copyright p { font-size: var(--font-size-xs); color: rgba(255,255,255,0.7); }
.footer-legal-links { display: flex; align-items: center; gap: 8px; }
.footer-legal-links a { font-size: var(--font-size-xs); color: rgba(255,255,255,0.7); }
.footer-legal-links a:hover { color: #fff; }
.footer-legal-links .sep { color: rgba(255,255,255,0.3); }

/* ============================================================
   18. OVERLAYS — quick view / toast / spinner
   ============================================================ */
.quick-view-modal {
    position: fixed; inset: 0; z-index: 1100;
    display: none; align-items: center; justify-content: center; padding: var(--space-md);
}
.quick-view-modal.active { display: flex; }
.quick-view-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.quick-view-content {
    position: relative; background: #fff; border-radius: var(--radius-lg);
    max-width: 860px; width: 100%; max-height: 88vh; overflow-y: auto;
    box-shadow: var(--shadow-lg); padding: var(--space-xl);
}
.quick-view-close {
    position: absolute; top: 12px; right: 16px;
    font-size: 30px; line-height: 1; color: var(--color-text-muted); z-index: 2;
}
.quick-view-close:hover { color: var(--color-primary); }
.qv-layout { display: flex; gap: var(--space-lg); }
.qv-image { flex: 0 0 45%; }
.qv-info { flex: 1; min-width: 0; }

.loading-spinner {
    width: 26px; height: 26px; border-radius: 50%;
    border: 3px solid var(--border-color-light); border-top-color: var(--color-primary);
    animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast-notification {
    position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
    background: var(--color-black); color: #fff;
    border-radius: var(--radius-pill); padding: 13px 22px;
    display: flex; align-items: center; gap: 10px;
    font-size: var(--font-size-sm); font-weight: 600;
    box-shadow: var(--shadow-lg); z-index: 1200;
    opacity: 0; visibility: hidden; transition: all 0.28s ease;
}
.toast-notification.active { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-icon { display: inline-flex; align-items: center; }

/* Sticky mini add-to-cart bar (single product, appears on scroll) */
.sticky-atc {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 880;
    background: #fff; border-top: 1px solid var(--border-color-light);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    transform: translateY(100%); transition: transform 0.25s ease;
}
.sticky-atc.active { transform: translateY(0); }
.sticky-atc-inner { display: flex; align-items: center; gap: var(--space-md); padding: 12px 0; }
.sticky-atc-thumb { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--border-color-light); border-radius: var(--radius-xs); }
.sticky-atc-info { flex: 1 1 auto; min-width: 0; }
.sticky-atc-name { font-size: var(--font-size-sm); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc-price { font-size: var(--font-size-base); font-weight: 800; }

/* ============================================================
   18b. APP SHELL (bottom tab bar + touch feedback)
   ------------------------------------------------------------
   The tab bar markup is emitted on every page. Everything here is
   scoped to <=860px, so desktop is untouched: at 861px+ the bar is
   display:none and never participates in layout.
   ============================================================ */
.app-tabbar { display: none; }

/* Kill the UA grey flash on tap — we draw our own feedback instead. */
.app-tab, .cat-nav-item, .product-card-link,
.product-card-actions .btn, .btn-primary,
.sticky-atc-btn, .add-to-cart-btn, .header-dept-toggle,
.pagination .page-numbers, .mobile-nav a {
    -webkit-tap-highlight-color: transparent;
}

/* Pressed state. Pointer-events driven (see main.js) so it works for both
   touch and mouse without intercepting the tap.

   DELIBERATELY DOES NOT USE `transform: scale()`. Shrinking the element on
   press moves its hit area out from under the finger: a tap that lands near an
   edge registers `touchstart` on the element, the element then shrinks, and by
   `touchend` the finger is no longer over it — so the browser cancels the click
   and the tap feels dead. Especially bad for thumbs. Use paint-only feedback
   (opacity + a tint) so the geometry never changes mid-gesture. */
.is-pressed { opacity: 0.66; transition: opacity 0.07s ease; }

@media (max-width: 860px) {
    /* --- the bar itself --- */
    .app-tabbar {
        display: flex; align-items: stretch;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
        background: rgba(255,255,255,0.94);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
        border-top: 1px solid var(--border-color-light);
        /* clear the iOS home indicator */
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    }
    .app-tab {
        flex: 1 1 0; min-width: 0;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px; padding: 8px 4px 6px;
        min-height: 54px;
        color: var(--color-text-secondary); background: none; border: 0;
        font-size: 10px; font-weight: 700; letter-spacing: 0.01em;
        text-decoration: none; cursor: pointer;
        transition: color 0.15s ease, transform 0.08s ease;
    }
    .app-tab:hover { color: var(--color-text); text-decoration: none; }
    .app-tab.is-current { color: var(--color-primary); }
    .app-tab-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; }
    .app-tab-label { line-height: 1; }
    .app-tab-badge {
        position: absolute; top: -5px; right: -9px;
        min-width: 17px; height: 17px; padding: 0 4px;
        background: var(--color-primary); color: #fff;
        border-radius: var(--radius-pill);
        font-size: 10px; font-weight: 800; line-height: 17px; text-align: center;
        border: 1.5px solid #fff;
    }

    /* --- reserve space so the bar never covers page content --- */
    body { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }

    /* --- elements that must sit ABOVE the bar, not under it --- */
    /* PDP sticky add-to-cart becomes a sticky action stack with the tab bar.
       IMPORTANT: the base rule hides the bar with `transform: translateY(100%)`,
       which only pushes it down by its OWN height. Raising `bottom` to 54px
       leaves a 54px sliver on screen, and that sliver is a fixed layer sitting
       on top of the page — it blocks taps on whatever is underneath and reads
       as a stuck extra bar. The hidden offset must therefore include the bar's
       new bottom offset. Keep these two values in sync. */
    .sticky-atc { bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }
    .sticky-atc:not(.active) {
        transform: translateY(calc(100% + 54px + env(safe-area-inset-bottom, 0px)));
    }
    .toast-notification { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
    /* Keep any fixed footer-ish affordance clear of the bar too. */
    .quick-view-content { padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   19. RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
    .categories-grid { grid-template-columns: repeat(5, 1fr); }
    .deals-item { width: 190px; }
    .carousel-nav.prev { left: -8px; }
    .carousel-nav.next { right: -8px; }
    .hero-visual { width: 320px; }
}

@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 200px minmax(0, 1fr); }
    .a16a-product-layout { grid-template-columns: 1fr; gap: var(--space-lg); }
    .a16a-product-details-layout { grid-template-columns: 1fr; }
    .a16a-blog-layout { grid-template-columns: 1fr; }
    .a16a-cart-layout,
    .a16a-checkout-layout,
    .a16a-order-pay-layout { grid-template-columns: 1fr; }
    .a16a-cart-summary .a16a-summary-card,
    .a16a-checkout-summary .a16a-summary-card { position: static; }
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    /* 4-up -> 3-up: with the 200px sidebar the product column drops to ~800px,
       which is too tight for four comfortable cards. */
    .products, .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .header-actions { gap: var(--space-md); }
    .header-action.orders { display: none; }
    .value-props { grid-template-columns: repeat(2, 1fr); }
    .hero-visual { display: none; }
}

@media (max-width: 900px) {
    .a16a-account-layout { grid-template-columns: 1fr; }
    .a16a-account-nav { position: static; }
    .a16a-account-nav ul { flex-direction: row; overflow-x: auto; gap: 6px; }
    .a16a-account-nav ul li a { white-space: nowrap; }
    .footer-main { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
    .a16a-auth-columns { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .header-dept-toggle { display: inline-flex; }
    .header-search-toggle { display: inline-flex; }
    .header-search { display: none; }
    .mobile-search-row { display: block; }
    .header-action.account, .header-action.orders { display: none; }
    .category-nav-wrapper { position: static; }
    .header-inner { gap: var(--space-md); min-height: 60px; }
    .site-header { position: sticky; }
    .hero-title { font-size: 32px; }
    .hero-slide, .hero-content { min-height: 320px; }
    .hero-subtitle { font-size: var(--font-size-base); }
    .top-bar-right .top-bar-item:nth-child(n+3) { display: none; }
    .top-bar-left { flex: 1; }
    .deliver-text { flex-direction: row; gap: 6px; }
    .deliver-label { display: none; }
    .shop-layout { grid-template-columns: minmax(0, 1fr); }
    /* NOTE: there used to be a `.shop-sidebar { position: static; max-height: none }`
       reset here, from when the archive sidebar stacked into the flow at this
       breakpoint. It became harmful once the mobile filter drawer landed
       (see the ≤860px `.shop-sidebar` rule above): this reset comes later in
       source order, so it reverted `position: fixed` back to `static` while
       the drawer's `translateX(-100%)` transform was still applied. The
       sidebar then reserved its full height in the flow but painted nothing
       on screen — a ~1100px void on the archive, and ~2000px on the PDP.

       Do NOT reintroduce it. The drawer rule already sets `max-height: none`,
       and hiding the PDP sidebar is handled in a16a-product.css §14. */
    /* 3-up -> 2-up once the sidebar has stacked away. */
    .products, .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qv-layout { flex-direction: column; }
    .qv-image { flex: 0 0 auto; }
}

@media (max-width: 640px) {
    :root { --header-top-height: 30px; --header-main-height: 60px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
    .category-card-image { max-width: 96px; }
    .products, .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
    .deals-item { width: 158px; }
    .product-card-title { font-size: var(--font-size-xs); }
    .hero-title { font-size: 26px; }
    .section-header { flex-wrap: wrap; gap: var(--space-sm); }
    .section-header h2 { font-size: 19px; }
    .value-props { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .a16a-form-grid, .a16a-checkout-fields-grid { grid-template-columns: 1fr; }
    .a16a-cart-item { flex-wrap: wrap; }
    .woocommerce-Addresses, .u-columns { grid-template-columns: 1fr; }
    .a16a-download-card { flex-wrap: wrap; }
    .a16a-checkout-section, .a16a-auth-card { padding: var(--space-md); }
    .a16a-summary-card, .a16a-cart-summary .a16a-summary-card { padding: var(--space-md); }
    .bestsellers-grid { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .quick-view-content { padding: var(--space-md); }
    .carousel-nav { display: none; }
}

/* 480 — phones. MUST come after the 640 block: same specificity, so source order
   decides, and a 480 override written before 640 would be re-beaten by it. */
@media (max-width: 480px) {
    /* --- rhythm: recover horizontal room --- */
    .container { padding: 0 12px; }
    .section-padding { padding: var(--space-xl) 0; }
    .a16a-shop-container { padding: var(--space-md) 0 var(--space-xl); }

    /* --- header: the strip has 8 items competing for ~350px --- */
    .top-bar, .top-bar-inner { min-height: 32px; }
    .top-bar-right { gap: 10px; }
    .top-bar-right .top-bar-item:nth-child(n+2) { display: none; }
    .deliver-country { font-size: 11px; }
    .header-inner { gap: var(--space-sm); }
    .logo-text { font-size: 22px; }
    .logo-link { min-height: 44px; }
    /* The icon is 22x22 (see header.php), so 11px padding is what actually
       reaches 44px. The previous `padding: 10px` measured 42x42 — 2px under
       the touch-target floor, on a control that appears on every page.
       Padding-only: the glyph size and visual weight are unchanged. */
    .header-search-toggle { padding: 11px; }         /* 22 + 11*2 = 44px tap target */
    .a16a-search-form { height: 44px; }
    .search-input, .search-button { height: 38px; min-height: 38px; }
    .search-button { width: 38px; }
    .search-category-select { display: none; }       /* dept picker is unusable this narrow */
    .mobile-search-row { padding: 0 0 10px; }
    .mobile-search-row .a16a-search-form { height: 44px; }

    /* --- dept nav: 13 pills cannot fit; let them scroll, don't let them squash --- */
    .category-nav-inner { gap: 2px; min-height: 48px; }
    .cat-nav-item { padding: 10px 10px; font-size: var(--font-size-xs); min-height: 44px; }
    .cat-nav-item.deal { padding: 9px 12px; }

    /* --- hero --- */
    .hero-section { padding: 12px 0 0; }
    .hero-slide, .hero-content { min-height: 260px; }
    .hero-content { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
    .hero-title { font-size: 23px; }
    .hero-subtitle { font-size: var(--font-size-sm); margin-bottom: var(--space-md); }
    .hero-cta { gap: var(--space-sm); }
    .hero-cta .btn { flex: 1 1 auto; }

    /* --- product cards: 2-up at ~168px each needs tighter insets --- */
    .product-card-title { font-size: var(--font-size-xs); padding: 6px 10px 4px; }
    .product-card-price, .product-card-rating, .product-card-delivery { padding-left: 10px; padding-right: 10px; }
    .product-card-actions { padding: 0 10px 10px; }
    .product-card-actions .btn { padding: 10px 8px; font-size: var(--font-size-xs); }
    /* Always-on hover affordances are useless on touch and clip at this width. */
    .product-hover-actions { display: none; }
    .product-card-image { border-radius: var(--radius-sm); }

    /* --- tap targets: 44px minimum --- */
    .quick-view-btn, .wishlist-btn { width: 44px; height: 44px; }
    .pagination, .woocommerce-pagination, .navigation.pagination { gap: 4px; flex-wrap: wrap; }
    /* WC's walker emits 11 <li> (prev + 1..N + dots + last three + next) ~= 520px of
       buttons. On a 375px phone that cannot fit at a 44px tap target, so the numeric
       pages get pulled in while prev/next keep the full 44px.
       `ul.page-numbers` must also reset the browser default 40px list padding —
       that padding alone was overflowing the viewport by ~20px. */
    ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 0; margin: 0; list-style: none; }
    ul.page-numbers li { margin: 0; }
    .page-numbers { min-width: 36px; height: 44px; padding: 0 8px; font-size: var(--font-size-xs); }
    .page-numbers.prev, .page-numbers.next { min-width: 44px; padding: 0 12px; }
    .page-numbers.dots { min-width: 20px; padding: 0 2px; }
    .btn-sm { padding: 10px 16px; min-height: 40px; }
    .header-dept-toggle { padding: 10px 4px; min-height: 44px; }
    .header-action { min-height: 44px; align-items: center; }
    .mobile-nav-link { padding: 14px 0; }
    .shop-sidebar ul li a { padding: 10px 8px; }
    .price-filter-range input { padding: 11px 10px; }

    /* --- shop toolbar: result count + ordering stack --- */
    .shop-toolbar { flex-direction: column; align-items: stretch; gap: var(--space-sm); }
    .shop-ordering { width: 100%; }
    .shop-ordering select { width: 100%; padding: 12px 38px 12px 16px; }

    /* --- deals carousel --- */
    .deals-item { width: 146px; }
    .categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .category-card-image { max-width: 84px; }

    /* --- footer --- */
    .footer-main { gap: var(--space-md); }
    .back-to-top-bar { padding: 12px 0; }

    /* ========================================================
       APP-STYLE VISUAL LAYER
       ======================================================== */

    /* Cards become rounded "app tiles" on a tinted page background, which is what
       visually reads as native rather than as a website. The desktop sheet keeps
       square-ish cards on white; this is phones only. */
    body { background: var(--color-bg-alt); }
    .site-content { background: var(--color-bg-alt); }

    .hero-slide { border-radius: var(--radius-lg); }

    .product-card {
        background: #fff;
        border: 1px solid var(--border-color-light);
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        transition: opacity 0.07s ease, box-shadow 0.12s ease;
    }
    /* Paint-only pressed state (no transform) — see the .is-pressed note above. */
    .product-card.is-pressed { box-shadow: 0 1px 6px rgba(0,0,0,0.10); }
    .product-card-image { border-radius: 0; }
    .product-card-image img { border-radius: 0; }

    /* App-like section headers: larger, tighter, with the red accent bar. */
    .section-header { align-items: baseline; padding: 0 2px; }
    .section-header h2 { font-size: 20px; letter-spacing: -0.02em; }

    /* Full-bleed horizontal scrollers read as app carousels. */
    .deals-track, .product-carousel-track { padding-bottom: 4px; }

    /* Buttons get the rounded, slightly taller app feel. */
    .btn { border-radius: var(--radius-pill); }
    .product-card-actions .btn { min-height: 38px; }

    /* Feed-style vertical rhythm. */
    .section-padding { padding: 22px 0; }

    /* Bottom bar labels get a touch more room on the narrowest phones. */
    .app-tab { font-size: 9.5px; }
    .app-tab-icon svg { width: 22px; height: 22px; }
}

/* ============================================================
   20. A11Y / PRINT
   ============================================================ */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.skip-link:focus {
    position: fixed; top: 8px; left: 8px; width: auto; height: auto;
    clip: auto; background: #fff; color: var(--color-text);
    padding: 10px 16px; border-radius: var(--radius-sm); z-index: 2000;
    box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    /* Pressed feedback is opacity-only now, so it needs no motion override;
       it simply appears instantly. */
    .is-pressed { transition: none; }
}

@media print {
    .top-bar, .site-header, .category-nav-wrapper, .site-footer,
    .back-to-top-bar, .header-actions, .mobile-nav, .mobile-nav-overlay { display: none !important; }
}
