/* ============================================================
   CHADDI.LK - Main Stylesheet
   Brand-aligned: Gotham/Montserrat · Blue #1955a6 · Pink #f067a6
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --color-primary:       #1955a6;
    --color-primary-dark:  #134080;
    --color-primary-light: #2266c4;
    --color-accent:        #f067a6;
    --color-accent-hover:  #d94d8e;
    --color-accent-light:  #f399c1;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-text:         #231f20;
    --color-text-light:   #6b7280;
    --color-border:       #e5e7eb;
    --color-bg:           #ffffff;
    --color-bg-soft:      #f8f9fc;
    --color-bg-muted:     #f0f2f7;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(25,85,166,0.08);
    --shadow:    0 2px 10px rgba(25,85,166,0.10);
    --shadow-lg: 0 8px 28px rgba(25,85,166,0.14);
    --container: 1240px;
    --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.6; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* --- Container --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* --- Top Promo Bar --- */
.top-bar { background: var(--color-primary); color: #fff; text-align: center; padding: 9px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.top-bar-multi { display: none; }
@media(min-width:768px) { .top-bar-multi { display: inline; margin-left: 8px; opacity: 0.75; font-size: 11px; } }

/* --- Header --- */
.site-header { background: #fff; border-bottom: 2px solid var(--color-primary); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 10px 20px; max-width: var(--container); margin: 0 auto; }
.logo img { height: 36px; width: auto; }
.header-search { flex: 1; max-width: 480px; position: relative; }
.header-search input { width: 100%; padding: 10px 44px 10px 16px; border: 1.5px solid var(--color-border); border-radius: 50px; font-size: 14px; background: var(--color-bg-soft); transition: var(--transition); }
.header-search input:focus { outline: none; border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 3px rgba(25,85,166,0.1); }
.header-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: var(--color-primary); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.header-search button:hover { background: var(--color-accent); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-icon { display: flex; align-items: center; gap: 6px; color: var(--color-text); transition: var(--transition); }
.header-icon:hover { color: var(--color-accent); }
.cart-icon { position: relative; }
.cart-badge { position: absolute; top: -8px; right: -8px; background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--color-text); }
@media(max-width:768px) {
    .mobile-menu-toggle { display: block; }
    .header-search { display: none; }
    .header-icon-label { display: none; }
}

/* Hamburger → X animation */
.mobile-menu-toggle { background: none; border: none; cursor: pointer; padding: 8px; display: none; position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.mobile-menu-toggle .ham-line { display: block; width: 22px; height: 2px; background: var(--color-primary); border-radius: 2px; position: absolute; left: 9px; transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease; }
.mobile-menu-toggle .ham-line:nth-child(1) { top: 12px; }
.mobile-menu-toggle .ham-line:nth-child(2) { top: 19px; }
.mobile-menu-toggle .ham-line:nth-child(3) { top: 26px; }
.mobile-menu-toggle.active .ham-line:nth-child(1) { top: 19px; transform: rotate(45deg); }
.mobile-menu-toggle.active .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.active .ham-line:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* --- Main Nav --- */
.main-nav { background: var(--color-primary); }
.nav-list { display: flex; gap: 0; max-width: var(--container); margin: 0 auto; }
.nav-list > li > a { display: block; padding: 13px 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: rgba(255,255,255,0.85); transition: var(--transition); }
.nav-list > li > a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-list > li > a.active { color: #fff; background: rgba(255,255,255,0.15); border-bottom: 3px solid var(--color-accent); }
.has-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 200px; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius); z-index: 200; padding: 8px 0; border-top: 3px solid var(--color-accent); }
.has-dropdown:hover > .dropdown { display: block; }
.dropdown li a { display: block; padding: 9px 20px; font-size: 13px; color: var(--color-text); transition: var(--transition); font-weight: 500; }
.dropdown li a:hover { background: var(--color-bg-soft); color: var(--color-primary); padding-left: 24px; }
.brands-dropdown { columns: 2; min-width: 340px; }
.sub-dropdown { display: none; position: absolute; left: 100%; top: 0; background: #fff; min-width: 180px; box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 8px 0; }
.has-sub-dropdown:hover > .sub-dropdown { display: block; }
@media(max-width:768px) {
    .main-nav { display: none; background: var(--color-primary-dark); }
    .main-nav.open { display: block; }
    .nav-list { flex-direction: column; }
    .nav-list > li > a { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .dropdown, .sub-dropdown { position: static; box-shadow: none; display: none; padding-left: 20px; background: rgba(0,0,0,0.2); border-top: none; }
    .has-dropdown:hover > .dropdown { display: block; }
    .has-dropdown > .dropdown { display: none; }
    .has-dropdown.open > .dropdown { display: block; }
    .has-sub-dropdown > .sub-dropdown { display: none; }
    .has-sub-dropdown.open > .sub-dropdown { display: block; }
    .dropdown li a { color: rgba(255,255,255,0.8); }
    .brands-dropdown { columns: 1; min-width: 0; }
}

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 700; font-size: 14px; cursor: pointer; border: none; transition: var(--transition); letter-spacing: 0.02em; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Add to Cart button — brand pink, large and prominent */
.btn-atc { background: var(--color-accent); color: #fff; font-size: 16px; font-weight: 700; padding: 14px 32px; border-radius: var(--radius); width: 100%; letter-spacing: 0.02em; }
.btn-atc:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(240,103,166,0.4); }
.btn-atc:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-atc.added { background: var(--color-success); }
.btn-atc svg { flex-shrink: 0; }

/* --- Sections --- */
.section { padding: 48px 0; }
.section-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 32px; color: var(--color-primary); }
.section-subtitle { text-align: center; color: var(--color-text-light); max-width: 600px; margin: -16px auto 32px; }
.page-title { font-size: 28px; font-weight: 700; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE — hp-* namespace (isolated, mobile-first)
   ═══════════════════════════════════════════════════════════════ */

/* Hero */
.hp-hero { background: #1955a6; color: #fff; padding: 48px 0 40px; }
.hp-hero-inner { max-width: 520px; }
.hp-hero-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #f067a6; background: rgba(240,103,166,0.15); border: 1px solid rgba(240,103,166,0.35); padding: 5px 14px; border-radius: 100px; margin-bottom: 18px; }
.hp-hero-h1 { font-size: clamp(28px, 7vw, 48px); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 14px; }
.hp-hero-h1 em { font-style: normal; color: #f067a6; }
.hp-hero-sub { font-size: 15px; opacity: 0.72; margin-bottom: 28px; line-height: 1.6; }
.hp-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.hp-btn-primary { background: #f067a6; color: #fff; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 14px; transition: 0.2s; box-shadow: 0 4px 14px rgba(240,103,166,0.4); }
.hp-btn-primary:hover { background: #d94d8e; transform: translateY(-1px); }
.hp-btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: 0.2s; }
.hp-btn-ghost:hover { background: rgba(255,255,255,0.18); }
.hp-hero-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-hero-pills span { font-size: 11px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.75); padding: 5px 12px; border-radius: 100px; white-space: nowrap; }

/* Category sections */
.hp-cat-section { background: var(--cat-bg, #e8183a); padding: 20px 0 24px; }
.hp-cat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hp-cat-title { font-size: 15px; font-weight: 800; color: #fff; margin: 0; letter-spacing: 0.01em; }
.hp-cat-viewall { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.8); white-space: nowrap; transition: 0.2s; }
.hp-cat-viewall:hover { color: #fff; }
.hp-cat-row { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.hp-cat-row::-webkit-scrollbar { display: none; }
.hp-cat-tile { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; }
.hp-cat-tile-box { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: transform 0.18s, box-shadow 0.18s; overflow: hidden; flex-shrink: 0; color: #1955a6; }
.hp-cat-tile-box svg { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.hp-cat-tile-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-cat-tile:hover .hp-cat-tile-box { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.28); }
.hp-cat-tile-name { font-size: 11px; font-weight: 700; color: #fff; text-align: center; line-height: 1.2; max-width: 68px; }

/* Product sections */
.hp-products-section { background: var(--color-bg-soft); }
.hp-featured { background: #fff; }
.hp-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hp-section-title { font-size: 17px; font-weight: 800; color: var(--color-primary); margin: 0; }
.hp-carousel-btns { display: flex; gap: 6px; }
.hp-cbtn { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--color-border); background: #fff; font-size: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--color-text); transition: 0.18s; line-height: 1; }
.hp-cbtn:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.hp-carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; cursor: grab; scrollbar-width: none; padding-bottom: 8px; }
.hp-carousel::-webkit-scrollbar { display: none; }
.hp-carousel-item { flex: 0 0 200px; scroll-snap-align: start; }
@media(min-width: 480px) { .hp-carousel-item { flex: 0 0 240px; } }
@media(min-width: 768px) { .hp-carousel-item { flex: 0 0 260px; } }

/* Trust strip */
.hp-trust { background: var(--color-bg-soft); border-top: 1px solid var(--color-border); }
.hp-trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(min-width: 640px) { .hp-trust-row { grid-template-columns: repeat(4, 1fr); } }
.hp-trust-item { display: flex; align-items: flex-start; gap: 10px; padding: 16px 12px; background: #fff; border-radius: 10px; border: 1px solid var(--color-border); }
.hp-trust-item svg { flex-shrink: 0; color: var(--color-primary); margin-top: 2px; }
.hp-trust-item div { display: flex; flex-direction: column; }
.hp-trust-item strong { font-size: 13px; font-weight: 700; color: var(--color-primary); line-height: 1.3; }
.hp-trust-item span { font-size: 11px; color: var(--color-text-light); margin-top: 2px; }

/* --- Brand Carousel --- */
.brands-section { background: var(--color-bg-soft); }
.brand-carousel { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; align-items: center; }
.brand-logo-item { width: 80px; height: 60px; display: flex; align-items: center; justify-content: center; opacity: 0.5; transition: var(--transition); }
.brand-logo-item:hover { opacity: 1; }
.brand-logo-item img { max-height: 40px; max-width: 70px; object-fit: contain; }
.brand-text-logo { font-weight: 700; font-size: 12px; color: var(--color-text-light); }

/* --- Product Grid (category/search pages — unchanged) --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media(max-width:768px) { .product-grid, .product-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Old carousel classes kept for non-homepage pages */
.product-carousel-section { background: var(--color-bg-soft); }
.product-carousel-section.featured-section { background: #fff; }
.carousel-nav-btns { display: flex; gap: 8px; }
.carousel-btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--color-border); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); color: var(--color-text); flex-shrink: 0; }
.carousel-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.product-carousel-wrap { overflow: hidden; margin: 0 -8px; }
.product-carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; cursor: grab; padding: 8px 8px 16px; scrollbar-width: none; }
.product-carousel::-webkit-scrollbar { display: none; }
.product-carousel-item { flex: 0 0 260px; scroll-snap-align: start; }

/* --- Product Card --- */
.product-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--color-border); overflow: hidden; transition: var(--transition); position: relative; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 8px 32px rgba(25,85,166,0.14); transform: translateY(-3px); }
.product-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; }
.sale-badge { background: var(--color-accent); color: #fff; }
.sale-badge-lg { font-size: 14px; padding: 6px 14px; }
.product-card-image { display: block; aspect-ratio: 1; overflow: hidden; position: relative; background: var(--color-bg-muted); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.3s; }
.product-card:hover .product-card-image img:first-child { transform: scale(1.04); }
.product-card-image .hover-image { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; }
.product-card:hover .hover-image { opacity: 1; }
.product-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card-title { display: block; font-size: 13px; font-weight: 500; color: var(--color-text); margin-bottom: 8px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.product-card-price { margin-bottom: 6px; }
.price-current { font-size: 17px; font-weight: 700; color: var(--color-primary); }
.price-original { font-size: 13px; color: var(--color-text-light); text-decoration: line-through; margin-right: 6px; }
.product-card-btn { width: 100%; margin-top: 10px; max-width: 210px; font-size: 13px; padding: 10px 16px; min-height: 44px; }
.bnpl-badges { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.bnpl-badge { font-size: 11px; color: var(--color-text-light); }
.bnpl-badge strong { color: var(--color-text); }
.bnpl-name { font-weight: 600; }
@media(max-width:768px) {
    .product-card-btn { max-width: 100%; min-height: 46px; font-size: 14px; }
    .product-card-body { padding: 12px; }
    .product-card-title { font-size: 12px; }
    .price-current { font-size: 15px; }
    .bnpl-badges { display: none; } /* hide BNPL on mobile cards to save space */
}

/* --- Category & Brands Pages --- */
.breadcrumbs { padding: 14px 0; font-size: 13px; color: var(--color-text-light); display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.breadcrumbs a { transition: var(--transition); }
.breadcrumbs a:hover { color: var(--color-primary); }
.bc-sep { margin: 0 6px; opacity: 0.4; }
.bc-current { color: var(--color-text); font-weight: 600; }
.subcategory-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { padding: 7px 18px; border: 1.5px solid var(--color-border); border-radius: 50px; font-size: 13px; font-weight: 600; transition: var(--transition); color: var(--color-text); }
.chip:hover, .chip.active { border-color: var(--color-primary); color: var(--color-primary); background: rgba(25,85,166,0.06); }
.category-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--color-border); gap: 12px; }
.result-count { font-size: 13px; color: var(--color-text-light); font-weight: 500; }
.toolbar-actions { display: flex; gap: 10px; align-items: center; }
.sort-select { padding: 8px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius); font-size: 13px; background: #fff; cursor: pointer; font-weight: 500; transition: var(--transition); }
.sort-select:focus { outline: none; border-color: var(--color-primary); }
.btn-filter-toggle { display: none; background: #fff; border: 1.5px solid var(--color-border); padding: 8px 14px; border-radius: var(--radius); font-size: 13px; cursor: pointer; font-weight: 600; color: var(--color-text); gap: 6px; transition: var(--transition); }
.btn-filter-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }
.category-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.filter-sidebar { position: sticky; top: 120px; align-self: start; }
.filter-group { margin-bottom: 24px; border-bottom: 1px solid var(--color-border); padding-bottom: 20px; }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.04em; }
.filter-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; cursor: pointer; color: var(--color-text); transition: var(--transition); }
.filter-checkbox:hover { color: var(--color-primary); }
.filter-checkbox input[type="radio"] { accent-color: var(--color-primary); }
.filter-clear { font-size: 12px; color: var(--color-accent); display: inline-block; margin-top: 8px; font-weight: 600; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { width: 80px; padding: 8px 10px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); font-size: 13px; transition: var(--transition); }
.price-inputs input:focus { outline: none; border-color: var(--color-primary); }
.no-products { text-align: center; padding: 60px 20px; color: var(--color-text-light); }
.no-products p { margin-bottom: 16px; }
@media(max-width:768px) {
    .category-layout { grid-template-columns: 1fr; }
    .filter-sidebar { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #fff; z-index: 300; padding: 24px 20px; overflow-y: auto; box-shadow: var(--shadow-lg); }
    .filter-sidebar.open { display: block; }
    .btn-filter-toggle { display: flex; align-items: center; }
}

/* Brands page */
.brands-page-header { margin-bottom: 32px; }
.brands-page-sub { color: var(--color-text-light); font-size: 15px; margin-top: 6px; }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.brand-card { background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px 16px; text-align: center; transition: var(--transition); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.brand-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-card-logo { height: 48px; display: flex; align-items: center; justify-content: center; }
.brand-card-logo img { max-height: 40px; max-width: 100px; object-fit: contain; }
.brand-card-initials { width: 48px; height: 48px; background: var(--color-bg-muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--color-primary); }
.brand-card-name { font-weight: 700; font-size: 14px; color: var(--color-text); }
.brand-card-count { font-size: 12px; color: var(--color-text-light); }
@media(max-width:480px) { .brands-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; } }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition); }
.page-link:hover { border-color: var(--color-primary); }
.page-link.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* --- Product Page --- */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 24px 0 48px; }
@media(max-width:768px) { .product-page { grid-template-columns: 1fr; gap: 24px; } }
.gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-muted); }
.gallery-main-img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity 0.2s ease; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.gallery-thumb { width: 72px; height: 72px; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: none; padding: 0; flex-shrink: 0; }
.gallery-thumb.active { border-color: var(--color-primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-brand-link { font-size: 13px; font-weight: 600; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.product-brand-link:hover { color: var(--color-accent); }
.product-title { font-size: 26px; font-weight: 700; margin: 6px 0 16px; line-height: 1.3; }
.product-price-block { margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.price-was { font-size: 18px; color: var(--color-text-light); text-decoration: line-through; }
.price-now { font-size: 28px; font-weight: 700; color: var(--color-accent); }
.price-save { font-size: 13px; color: var(--color-success); font-weight: 600; background: #ecfdf5; padding: 2px 8px; border-radius: var(--radius-sm); }

/* Stock indicator */
.stock-indicator { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); flex-shrink: 0; }
.stock-text.urgency { color: var(--color-warning); font-weight: 600; }
.out-of-stock .stock-dot { background: #ef4444; }
.stock-meter { width: 100%; height: 4px; background: var(--color-bg-muted); border-radius: 2px; margin-top: 4px; }
.stock-meter-fill { height: 100%; background: var(--color-warning); border-radius: 2px; transition: width 0.5s; }

.shipping-promise { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 10px 14px; background: var(--color-bg-soft); border-radius: var(--radius); margin-bottom: 20px; }
.shipping-promise strong { color: var(--color-success); }
.product-short-desc { font-size: 14px; color: var(--color-text-light); margin-bottom: 16px; line-height: 1.6; }

/* Variant selectors */
.variant-group { margin-bottom: 16px; }
.variant-label { font-size: 14px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.size-guide-trigger { background: none; border: none; color: var(--color-accent); font-size: 13px; cursor: pointer; text-decoration: underline; font-weight: 500; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chip input { display: none; }
.variant-chip span { display: inline-block; padding: 8px 18px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); }
.variant-chip input:checked + span { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.color-chip input { display: none; }
.color-chip { display: inline-block; cursor: pointer; }
.color-options { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch { display: block; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--color-border); cursor: pointer; transition: var(--transition); }
.color-swatch:hover { transform: scale(1.1); }
.color-chip input:checked + .color-swatch { border-color: var(--color-primary); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-primary); }

/* Pattern code chips (D1, D2, N1…) — rectangular text labels */
.pattern-chip {
    display: inline-block;
    cursor: pointer;
}
.chip-label {
    display: inline-block;
    padding: 6px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
    color: var(--color-text);
    white-space: nowrap;
}
.chip-label:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-alt, #f8f8f8);
}
.pattern-chip input:checked + .chip-label {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
/* Sold-out pattern chip */
.color-chip.variant-sold-out .chip-label {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: #d1d5db;
    background: #f5f5f5;
    color: #9ca3af;
    text-decoration: line-through;
    position: relative;
}


/* Sold-out / unavailable variant chips */
.variant-chip.variant-sold-out { cursor: not-allowed; }
.variant-chip.variant-sold-out span {
    opacity: 0.45;
    cursor: not-allowed;
    position: relative;
    background: var(--color-bg-alt, #f5f5f5);
    border-color: #d1d5db;
    color: #9ca3af;
    text-decoration: line-through;
    text-decoration-color: #9ca3af;
}
/* X cross overlay on sold-out size chips */
.variant-chip.variant-sold-out span::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom right, transparent calc(50% - 0.5px), rgba(0,0,0,0.22) calc(50% - 0.5px), rgba(0,0,0,0.22) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
        linear-gradient(to bottom left,  transparent calc(50% - 0.5px), rgba(0,0,0,0.22) calc(50% - 0.5px), rgba(0,0,0,0.22) calc(50% + 0.5px), transparent calc(50% + 0.5px));
    border-radius: inherit;
    pointer-events: none;
}
.variant-chip.variant-sold-out span::after {
    content: '×';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #9ca3af;
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    font-weight: 700;
}
.color-chip.variant-sold-out { cursor: not-allowed; }
.color-chip.variant-sold-out .color-swatch {
    opacity: 0.45;
    cursor: not-allowed;
    position: relative;
}
/* X cross overlay on sold-out colour swatches */
.color-chip.variant-sold-out .color-swatch::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background:
        linear-gradient(to bottom right, transparent calc(50% - 0.7px), rgba(255,255,255,0.9) calc(50% - 0.7px), rgba(255,255,255,0.9) calc(50% + 0.7px), transparent calc(50% + 0.7px)),
        linear-gradient(to bottom left,  transparent calc(50% - 0.7px), rgba(255,255,255,0.9) calc(50% - 0.7px), rgba(255,255,255,0.9) calc(50% + 0.7px), transparent calc(50% + 0.7px));
    pointer-events: none;
    z-index: 1;
}
/* Dynamic stock counter */
#variantStockDisplay { transition: color 0.2s; }
#variantStockDisplay.low-stock { color: var(--color-warning); font-weight: 600; }
#variantStockDisplay.out-of-stock { color: var(--color-accent); font-weight: 600; }

/* Quantity + ATC row */
.atc-row { display: flex; gap: 12px; margin-bottom: 20px; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: var(--radius); }
.qty-btn { width: 40px; height: 46px; border: none; background: none; font-size: 18px; cursor: pointer; color: var(--color-text); }
.qty-btn:hover { background: var(--color-bg-muted); }
.qty-input { width: 48px; text-align: center; border: none; font-size: 16px; font-weight: 600; }
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.atc-row .btn-atc { flex: 1; }

/* Trust badges on product page */
.trust-badges-product { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; background: var(--color-bg-soft); border-radius: var(--radius); margin-bottom: 20px; }
.trust-badge-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--color-text-light); }
.trust-badge-item svg { color: var(--color-success); flex-shrink: 0; }

/* BNPL section */
.bnpl-section { border-top: 1px solid var(--color-border); padding-top: 16px; }
.bnpl-heading { font-size: 13px; font-weight: 600; color: var(--color-text-light); margin-bottom: 8px; }
.bnpl-option { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; }
.bnpl-provider-name { font-weight: 600; }

/* Product tabs */
.product-tabs { margin: 32px 0 48px; border-top: 1px solid var(--color-border); }
.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    padding: 14px 24px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.02em;
    margin-bottom: -2px;
    flex-shrink: 0;
}
.tab-btn:hover { color: var(--color-primary); }
.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-accent);
    font-weight: 700;
}
.tab-content { display: none; padding: 28px 0; line-height: 1.8; }
.tab-content.active { display: block; }

/* Mobile tabs improvements */
@media (max-width: 768px) {
    .tab-nav {
        padding: 0;
        margin: 0 -20px;
        padding: 0 20px;
    }
    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
        border-bottom-width: 3px;
    }
    .tab-btn.active {
        border-bottom-color: #1955a6;
        color: #1955a6;
        font-weight: 600;
    }
    .tab-content {
        padding: 20px 0;
    }
    .tab-content.active {
        display: block;
        padding: 20px 0;
    }
}
@media (max-width: 480px) {
    .tab-btn {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* Description tab formatting */
.product-description h1, .product-description h2, .product-description h3, .product-description h4 { font-size: 16px; font-weight: 700; color: var(--color-primary); margin: 20px 0 10px; }
.product-description p { margin-bottom: 14px; color: var(--color-text); font-size: 14px; line-height: 1.8; }
.product-description ul, .product-description ol { margin: 10px 0 16px 20px; }
.product-description li { font-size: 14px; color: var(--color-text); margin-bottom: 6px; line-height: 1.7; }
.product-description ul li { list-style: disc; }
.product-description ol li { list-style: decimal; }
.product-description strong, .product-description b { font-weight: 700; color: var(--color-primary); }

/* About Product heading auto-injected from WP */
.tab-content h3 { font-size: 16px; font-weight: 700; color: var(--color-primary); margin: 0 0 16px; }
.tab-content p { margin-bottom: 12px; font-size: 14px; color: var(--color-text); line-height: 1.8; }
.tab-content ul { margin: 10px 0 16px 20px; }
.tab-content ul li { list-style: disc; font-size: 14px; color: var(--color-text); margin-bottom: 6px; line-height: 1.7; }
.tab-content strong { font-weight: 700; }

/* Additional info table */
.additional-info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.additional-info-table tr:nth-child(even) { background: var(--color-bg-soft); }
.additional-info-table th { text-align: left; font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--color-border); width: 200px; vertical-align: top; color: var(--color-primary); }
.additional-info-table td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); color: var(--color-text); }

/* Size guide tab */
.tab-content .size-guide-img { max-width: 100%; border-radius: var(--radius); margin: 12px 0; }
.size-guide-table table, .tab-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.size-guide-table th, .size-guide-table td, .tab-content table th, .tab-content table td { padding: 10px 14px; border: 1px solid var(--color-border); text-align: center; }
.size-guide-table thead th, .tab-content table thead th { background: var(--color-primary); color: #fff; font-weight: 700; }
.tab-content table tbody tr:nth-child(even) { background: var(--color-bg-soft); }
.size-guide-img { max-width: 100%; border-radius: var(--radius); }

/* Sticky ATC bar */
.sticky-atc-bar { position: fixed; bottom: -80px; left: 0; right: 0; background: #fff; border-top: 1px solid var(--color-border); box-shadow: 0 -4px 12px rgba(0,0,0,0.1); z-index: 90; transition: bottom 0.3s ease; padding: 10px 0; }
.sticky-atc-bar.visible { bottom: 0; }
.sticky-atc-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sticky-atc-info { display: flex; flex-direction: column; }
.sticky-atc-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.sticky-atc-price { font-size: 16px; font-weight: 700; color: var(--color-accent); }
.btn-atc-sticky { width: auto; padding: 12px 32px; }

/* Size guide modal (custom DIV-based for cross-browser support) */
.size-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.size-guide-modal.active {
    display: flex;
}
.size-guide-content {
    background: #fff;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.25s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.size-guide-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    z-index: 1;
    transition: var(--transition);
}
.size-guide-close:hover {
    background: var(--color-bg-muted);
    color: var(--color-text);
}
.size-guide-header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid var(--color-border);
}
.size-guide-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    padding-right: 40px;
}
.size-guide-body {
    padding: 20px 24px 24px;
}
.size-guide-body .size-guide-img {
    max-width: 100%;
    border-radius: var(--radius);
    margin-bottom: 16px;
}
/* Size guide table text - increased legibility */
.size-guide-table {
    font-size: 13px !important;
    line-height: 1.6;
}
.size-guide-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px !important;
}
.size-guide-table th,
.size-guide-table td {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    text-align: center;
}
.size-guide-table thead th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
}

/* Size guide trigger button - prominent on mobile */
.size-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f5f5f5;
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
    margin: 8px 0 12px;
    transition: var(--transition);
    min-height: 44px;
}
.size-guide-btn:hover {
    background: var(--color-bg-soft);
    border-color: var(--color-primary);
}
.size-guide-btn svg {
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .size-guide-btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* Old trigger link style (fallback) */
.size-guide-trigger {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
    padding: 8px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.size-guide-trigger:hover {
    color: var(--color-primary);
}

/* Related products */
.related-products { padding: 48px 0; border-top: 1px solid var(--color-border); }

/* --- Cart Page --- */
.checkout-progress { display: flex; align-items: center; justify-content: center; gap: 0; padding: 28px 0; max-width: 420px; margin: 0 auto; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--color-text-light); transition: var(--transition); }
.progress-step.active .step-num { background: var(--color-primary); color: #fff; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(25,85,166,0.15); }
.progress-step.completed .step-num { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.step-label { font-size: 11px; font-weight: 600; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.04em; }
.progress-step.active .step-label { color: var(--color-primary); }
.progress-step.completed .step-label { color: var(--color-success); }
.progress-line { flex: 1; height: 2px; background: var(--color-border); margin: 0 8px; margin-bottom: 22px; }
.progress-line.filled { background: var(--color-success); }

.empty-cart { text-align: center; padding: 80px 20px; }
.empty-cart h2 { margin: 16px 0 8px; }
.empty-cart p { color: var(--color-text-light); margin-bottom: 24px; }

/* Free shipping progress bar */
.free-shipping-bar { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 14px 20px; margin-bottom: 24px; }
.free-shipping-bar.unlocked { background: #ecfdf5; border-color: #a7f3d0; }
.fs-progress { height: 6px; background: #fde68a; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.fs-progress-fill { height: 100%; background: var(--color-success); border-radius: 3px; transition: width 0.5s; }
.fs-message { font-size: 14px; text-align: center; }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
@media(max-width:768px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
@media(max-width:640px) { .cart-item { grid-template-columns: 60px 1fr; } .cart-item-qty, .cart-item-total { grid-column: 2; } }
.cart-item-image img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-name { font-size: 14px; font-weight: 500; display: block; }
.cart-item-name:hover { color: var(--color-accent); }
.cart-item-variant { font-size: 12px; color: var(--color-text-light); }
.cart-item-price { font-size: 14px; font-weight: 600; }
.qty-form { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.qty-btn-sm { width: 28px; height: 28px; border: none; background: none; cursor: pointer; font-size: 14px; }
.qty-input-sm { width: 36px; text-align: center; border: none; font-size: 13px; font-weight: 600; }
.qty-input-sm::-webkit-inner-spin-button { -webkit-appearance: none; }
.remove-btn { background: none; border: none; cursor: pointer; color: var(--color-text-light); padding: 4px; }
.remove-btn:hover { color: var(--color-accent); }

/* Cart summary */
.cart-summary { position: sticky; top: 120px; align-self: start; background: var(--color-bg-soft); border-radius: var(--radius-lg); padding: 24px; }
.summary-title { font-size: 18px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-total { border-top: 2px solid var(--color-text); padding-top: 12px; margin-top: 8px; font-size: 18px; font-weight: 700; }
.free-tag { color: var(--color-success); }
.btn-checkout-lg { margin-top: 16px; font-size: 16px; }
.continue-shopping { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: var(--color-text-light); }
.continue-shopping:hover { color: var(--color-accent); }

/* Trust badges under cart/checkout CTA */
.trust-badges-cart, .trust-badges-checkout { display: flex; justify-content: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.trust-badge-mini { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--color-text-light); }

/* --- Checkout Page (distraction-free) --- */
.checkout-body { background: var(--color-bg-soft); }
.checkout-header { background: #fff; border-bottom: 1px solid var(--color-border); padding: 12px 0; }
.checkout-header-inner { display: flex; justify-content: space-between; align-items: center; }
.checkout-secure-badge { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-success); font-weight: 600; }
.checkout-main { padding: 20px 0 60px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; }
@media(max-width:768px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-section-title { font-size: 18px; font-weight: 600; margin: 24px 0 12px; padding-top: 8px; }
.checkout-section-title:first-child { margin-top: 0; }
.checkout-fields { background: #fff; padding: 28px; border-radius: var(--radius-lg); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.form-group .req { color: var(--color-accent); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(26,26,46,0.08); }
.form-row { display: grid; gap: 14px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
@media(max-width:640px) { .form-row-2, .form-row-3 { grid-template-columns: 1fr; } }

/* Payment methods */
.payment-methods { display: flex; flex-direction: column; gap: 8px; }
.payment-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius); cursor: pointer; transition: var(--transition); }
.payment-option:has(input:checked) { border-color: var(--color-primary); background: rgba(26,26,46,0.02); }
.payment-option input { margin-top: 3px; }
.payment-option-body strong { display: block; font-size: 14px; }
.payment-option-body span { font-size: 12px; color: var(--color-text-light); }

/* Checkout summary sidebar */
.checkout-summary { position: sticky; top: 80px; align-self: start; }
.checkout-summary-inner { background: #fff; border-radius: var(--radius-lg); padding: 24px; }
.checkout-summary h3 { font-size: 18px; margin-bottom: 16px; }
.checkout-items { margin-bottom: 16px; }
.checkout-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.checkout-item-img { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.checkout-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.checkout-item-qty { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: var(--color-text-light); color: #fff; font-size: 11px; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name { font-size: 13px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.checkout-item-variant { font-size: 11px; color: var(--color-text-light); }
.checkout-item-price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.summary-divider { height: 1px; background: var(--color-border); margin: 12px 0; }
.checkout-total-price { font-size: 22px; font-weight: 700; color: var(--color-accent); }
.btn-place-order { margin-top: 16px; font-size: 16px; padding: 16px; }
.checkout-footer { text-align: center; padding: 20px; font-size: 12px; color: var(--color-text-light); }
.checkout-footer a { color: var(--color-text-light); text-decoration: underline; }
.checkout-errors .flash-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 8px; font-size: 14px; }

/* --- Order Confirmation --- */
.order-confirmation { text-align: center; padding: 40px 0; max-width: 680px; margin: 0 auto; }
.confirmation-icon { margin-bottom: 16px; }
.order-confirmation h1 { font-size: 28px; margin-bottom: 8px; }
.confirmation-order-number { font-size: 18px; color: var(--color-text-light); margin-bottom: 16px; }
.confirmation-message { font-size: 16px; margin-bottom: 32px; }
.confirmation-details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; margin-bottom: 32px; }
@media(max-width:640px) { .confirmation-details { grid-template-columns: 1fr; } }
.confirmation-section { background: var(--color-bg-soft); padding: 20px; border-radius: var(--radius); }
.confirmation-section h3 { font-size: 16px; margin-bottom: 12px; }
.confirmation-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--color-border); }
.confirmation-item.total { font-weight: 600; border-bottom: none; }
.confirmation-note { font-size: 14px; color: var(--color-text-light); margin-bottom: 24px; }

/* --- Trust Section (old classes kept for non-homepage) --- */
.trust-section { background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.trust-item { padding: 28px 20px; text-align: center; border-right: 1px solid var(--color-border); transition: var(--transition); }
.trust-item:last-child { border-right: none; }
.trust-icon-wrap { width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: var(--trust-color, var(--color-primary)); transition: var(--transition); }
.trust-item h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--color-primary); }
.trust-item p { font-size: 12px; color: var(--color-text-light); line-height: 1.5; }

/* --- Flash messages --- */
.flash-message { padding: 12px 20px; border-radius: var(--radius); margin: 12px auto; max-width: var(--container); font-size: 14px; display: flex; justify-content: space-between; align-items: center; transition: opacity 0.3s; }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.flash-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash-close { background: none; border: none; font-size: 18px; cursor: pointer; opacity: 0.5; }

/* --- 404 / Not Found --- */
.not-found { text-align: center; padding: 80px 20px; }
.not-found h1 { font-size: 28px; margin-bottom: 8px; }
.not-found p { color: var(--color-text-light); margin-bottom: 24px; }

/* --- WhatsApp Float --- */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(37,211,102,0.4); z-index: 80; transition: var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(37,211,102,0.5); }

/* ── Footer (ft-* namespace) ──────────────────────────────────── */
.ft { background: #1955a6; color: #fff; font-size: 13px; }
/* Top bar */
.ft-top { border-bottom: 1px solid rgba(255,255,255,.08); padding: 28px 0; }
.ft-top-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.ft-logo img { height: 36px; width: auto; display: block; }
.ft-tagline { flex: 1; font-size: 13px; opacity: .65; line-height: 1.55; margin: 0; min-width: 180px; }
.ft-socials { display: flex; gap: 8px; }
.ft-social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: .18s; }
.ft-social-btn:hover { background: #f067a6; color: #fff; }
/* Middle */
.ft-mid { padding: 36px 0 28px; }
.ft-mid-inner { display: block; }
.ft-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media(max-width:768px) { .ft-links-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media(max-width:400px) { .ft-links-grid { grid-template-columns: 1fr; } }
.ft-col h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.ft-col a { display: block; color: rgba(255,255,255,.7); font-size: 13px; margin-bottom: 9px; transition: .15s; line-height: 1.4; }
.ft-col a:hover { color: #fff; padding-left: 3px; }
.ft-newsletter-col .ft-newsletter-sub { font-size: 12px; opacity: .55; margin-bottom: 12px; line-height: 1.5; }
.ft-form { display: flex; gap: 0; margin-bottom: 8px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.ft-form input { flex: 1; background: rgba(255,255,255,.07); border: none; padding: 10px 14px; font-size: 13px; color: #fff; outline: none; min-width: 0; }
.ft-form input::placeholder { color: rgba(255,255,255,.35); }
.ft-form button { background: #f067a6; color: #fff; border: none; padding: 10px 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: .18s; white-space: nowrap; }
.ft-form button:hover { background: #c42d4a; }
.ft-msg { font-size: 11px; opacity: .6; min-height: 16px; margin-bottom: 12px; }
.ft-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ft-phone, .ft-email { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.65); font-size: 12px; transition: .15s; }
.ft-phone:hover, .ft-email:hover { color: #fff; }
/* Bottom bar */
.ft-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.ft-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ft-copy { font-size: 12px; opacity: .4; }
.ft-supporters { display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: .45; flex-wrap: wrap; }
.ft-supporters a { color: rgba(255,255,255,.55); transition: .15s; }
.ft-supporters a:hover { color: #fff; opacity: 1; }
.ft-dot { opacity: .3; }

/* --- Spinner --- */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Newsletter form in footer --- */
.newsletter-form { display: flex; gap: 8px; margin-top: 16px; }
.newsletter-form input { flex: 1; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-sm); background: rgba(255,255,255,0.1); color: #fff; font-size: 13px; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button { padding: 10px 16px; background: var(--color-accent); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; cursor: pointer; }

/* --- Page Content (static pages) --- */
.page-content h2 { font-size: 22px; font-weight: 700; margin: 24px 0 12px; color: var(--color-primary); }
.page-content h3 { font-size: 18px; font-weight: 600; margin: 20px 0 8px; }
.page-content p { margin-bottom: 12px; color: var(--color-text); }
.page-content ul, .page-content ol { margin: 12px 0 12px 24px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--color-accent); text-decoration: underline; }
.page-content strong { font-weight: 600; }

/* --- Brand Page --- */
.brand-page-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 28px; padding: 24px; background: var(--color-bg-soft); border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.brand-page-logo { height: 52px; width: auto; object-fit: contain; flex-shrink: 0; }
.brand-page-desc { color: var(--color-text-light); font-size: 14px; margin: 6px 0 8px; line-height: 1.6; }

/* --- Search Page --- */
.search-page-form { max-width: 560px; }
.search-page-input-wrap { display: flex; border: 2px solid var(--color-primary); border-radius: var(--radius); overflow: hidden; }
.search-page-input-wrap input { flex: 1; padding: 12px 16px; border: none; font-size: 15px; outline: none; }
.search-page-input-wrap button { background: var(--color-primary); color: #fff; border: none; padding: 12px 24px; font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.search-page-input-wrap button:hover { background: var(--color-primary-dark); }
.search-empty { text-align: center; padding: 60px 20px; }
.search-empty svg { margin: 0 auto 20px; display: block; }
.search-empty h2 { font-size: 22px; font-weight: 800; color: var(--color-primary); margin-bottom: 10px; }
.search-empty p { color: var(--color-text-light); max-width: 400px; margin: 0 auto; line-height: 1.7; }

/* --- Contact Form (embedded in contact page) --- */
.contact-form { max-width: 500px; }
.contact-form .form-group { margin-bottom: 14px; }
.contact-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-primary); }

/* --- Category below-products SEO content (Shoptimizer pattern) --- */
.category-seo-content { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--color-border); color: var(--color-text-light); font-size: 14px; line-height: 1.7; }
.category-seo-content h2 { font-size: 18px; color: var(--color-text); margin-bottom: 12px; }

/* --- PayHere Onsite Popup overlay --- */
#payhereOnsiteOverlay { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Slide-out mini cart (Shoptimizer pattern) --- */
.slide-cart { position: fixed; top: 0; right: -400px; width: 380px; max-width: 90vw; height: 100vh; background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,0.15); z-index: 300; transition: right 0.3s ease; display: flex; flex-direction: column; }
.slide-cart.open { right: 0; }
.slide-cart-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--color-border); }
.slide-cart-header h3 { font-size: 16px; margin: 0; }
.slide-cart-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--color-text-light); }
.slide-cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.slide-cart-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.slide-cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.slide-cart-item-info { flex: 1; font-size: 13px; }
.slide-cart-item-name { font-weight: 500; display: block; margin-bottom: 2px; }
.slide-cart-footer { padding: 16px 20px; border-top: 1px solid var(--color-border); }
.slide-cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 250; display: none; }
.cart-overlay.open { display: block; }

/* ================================================================
   ACCOUNT / DASHBOARD
   ================================================================ */
.account-page { padding-top: 24px; padding-bottom: 64px; }

/* Auth grid */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; }
@media(max-width:640px) { .auth-grid { grid-template-columns: 1fr; } }
.auth-card { background: var(--color-bg-soft); border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; }
.auth-card-title { font-size: 20px; font-weight: 800; color: var(--color-primary); margin-bottom: 20px; }
.auth-footer-note { font-size: 13px; color: var(--color-text-light); margin-top: 16px; text-align: center; }
.auth-footer-note a { color: var(--color-accent); font-weight: 600; }

/* Dashboard layout */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
@media(max-width:768px) { .dashboard-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.dashboard-sidebar { background: var(--color-bg-soft); border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.dashboard-user { padding: 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--color-border); }
.dashboard-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; flex-shrink: 0; }
.dashboard-username { font-weight: 700; font-size: 14px; color: var(--color-text); }
.dashboard-email { font-size: 12px; color: var(--color-text-light); margin-top: 2px; }
.dashboard-nav { padding: 8px 0; }
.dashboard-nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 14px; font-weight: 600; color: var(--color-text-light); transition: var(--transition); }
.dashboard-nav-item:hover { color: var(--color-primary); background: rgba(25,85,166,0.05); }
.dashboard-nav-item.active { color: var(--color-primary); background: rgba(25,85,166,0.08); border-right: 3px solid var(--color-primary); }

/* Main content */
.dashboard-main { min-width: 0; }
.dashboard-title { font-size: 22px; font-weight: 800; color: var(--color-primary); margin-bottom: 20px; }
.dashboard-empty { text-align: center; padding: 48px 20px; background: var(--color-bg-soft); border-radius: var(--radius-lg); }
.dashboard-empty svg { margin: 0 auto 16px; display: block; }
.dashboard-empty p { color: var(--color-text-light); margin-bottom: 20px; }

/* Order cards */
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--color-bg-soft); border-bottom: 1px solid var(--color-border); flex-wrap: wrap; gap: 8px; }
.order-number { font-weight: 700; font-size: 14px; color: var(--color-primary); display: block; }
.order-date { font-size: 12px; color: var(--color-text-light); margin-top: 2px; }
.order-card-body { padding: 14px 20px; }
.order-meta { display: flex; gap: 16px; align-items: center; font-size: 14px; margin-bottom: 8px; }
.order-payment { color: var(--color-text-light); font-size: 12px; }
.order-tracking { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text-light); }
.order-status-badge { padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.status-pending    { background: #fef9c3; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped    { background: #d1fae5; color: #065f46; }
.status-completed  { background: #d1fae5; color: #065f46; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }
.status-cod        { background: #f3f4f6; color: #374151; }

/* ================================================================
   BLOG PAGE
   ================================================================ */
.blog-header { margin-bottom: 32px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-bottom: 48px; }
.blog-card { border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: var(--transition); }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card-image { height: 160px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent-light)); position: relative; display: flex; align-items: center; justify-content: center; }
.blog-card-placeholder .blog-card-image { background: var(--color-bg-muted); }
.blog-coming-badge { background: rgba(255,255,255,0.9); color: var(--color-text-light); font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 50px; letter-spacing: 0.06em; text-transform: uppercase; }
.blog-card-body { padding: 20px; }
.blog-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-accent); display: block; margin-bottom: 8px; }
.blog-card-title { font-size: 16px; font-weight: 800; color: var(--color-primary); line-height: 1.35; margin-bottom: 8px; }
.blog-card-excerpt { font-size: 13px; color: var(--color-text-light); line-height: 1.65; margin-bottom: 14px; }
.blog-card-meta { display: flex; gap: 14px; font-size: 12px; color: var(--color-text-light); }
.blog-newsletter { background: var(--color-bg-soft); border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); padding: 36px; text-align: center; max-width: 520px; margin: 0 auto; }
.blog-newsletter h3 { font-size: 18px; font-weight: 800; color: var(--color-primary); margin-bottom: 8px; }
.blog-newsletter p { color: var(--color-text-light); font-size: 14px; margin-bottom: 20px; }
.blog-notify-form { display: flex; max-width: 380px; margin: 0 auto; border: 2px solid var(--color-primary); border-radius: var(--radius); overflow: hidden; }
.blog-notify-form input { flex: 1; padding: 11px 14px; border: none; font-size: 14px; outline: none; }
.blog-notify-form button { background: var(--color-primary); color: #fff; border: none; padding: 11px 20px; font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.blog-notify-form button:hover { background: var(--color-primary-dark); }
.blog-notify-msg { font-size: 13px; color: var(--color-success); margin-top: 10px; min-height: 18px; }

/* ================================================================
   SELL WITH US PAGE
   ================================================================ */
.swu-hero { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-bottom: 48px; padding: 40px; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%); border-radius: var(--radius-lg); color: #fff; }
@media(max-width:640px) { .swu-hero { grid-template-columns: 1fr; } }
.swu-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #f399c1; display: block; margin-bottom: 10px; }
.swu-hero-text p { opacity: 0.85; font-size: 15px; line-height: 1.65; max-width: 440px; }
.swu-hero-stats { display: flex; flex-direction: column; gap: 16px; }
@media(max-width:640px) { .swu-hero-stats { flex-direction: row; gap: 20px; flex-wrap: wrap; } }
.swu-stat { text-align: center; }
.swu-stat strong { display: block; font-size: 24px; font-weight: 900; color: #fff; line-height: 1; }
.swu-stat span { font-size: 12px; opacity: 0.75; display: block; margin-top: 2px; }
.swu-section-title { font-size: 22px; font-weight: 800; color: var(--color-primary); margin-bottom: 24px; }
.swu-benefits { margin-bottom: 48px; }
.swu-benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.swu-benefit { padding: 20px; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; }
.swu-benefit-icon { width: 44px; height: 44px; background: rgba(25,85,166,0.08); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: var(--color-primary); }
.swu-benefit h3 { font-size: 15px; font-weight: 700; color: var(--color-primary); margin-bottom: 6px; }
.swu-benefit p { font-size: 13px; color: var(--color-text-light); line-height: 1.6; }
.swu-steps { margin-bottom: 48px; }
.swu-steps-list { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.swu-step { flex: 1; min-width: 160px; display: flex; gap: 12px; }
.swu-step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.swu-step h3 { font-size: 14px; font-weight: 700; color: var(--color-primary); margin-bottom: 4px; }
.swu-step p { font-size: 13px; color: var(--color-text-light); }
.swu-step-arrow { font-size: 20px; color: var(--color-border); padding-top: 8px; }
.swu-form-section { background: var(--color-bg-soft); border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); padding: 36px; }
.swu-form { max-width: 640px; }

/* ================================================================
   MOBILE RESPONSIVENESS — full pass
   ================================================================ */
@media(max-width:768px) {
    /* Header */
    .header-inner { padding: 10px 16px; gap: 12px; }
    .logo img { height: 30px; }

    /* Product grid */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .product-card-body { padding: 10px; }
    .product-card-title { font-size: 12px; }
    .price-current { font-size: 14px; }
    .product-card-btn { font-size: 12px; padding: 8px 10px; }

    /* Product page */
    .product-layout { grid-template-columns: 1fr; }
    .product-gallery { margin-bottom: 24px; }
    .product-title { font-size: 22px; }
    .price-display { font-size: 26px; }

    /* Cart */
    .cart-layout { grid-template-columns: 1fr; }
    .cart-item { flex-wrap: wrap; gap: 10px; }
    .cart-summary { position: static; }

    /* Checkout */
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; order: -1; margin-bottom: 24px; }

    /* Homepage cats wrapper */
    .hp-cats-wrapper { grid-template-columns: 1fr; }
    .hp-cat-tiles { grid-template-columns: repeat(4, 1fr); }

    /* Brands */
    .brands-grid { grid-template-columns: repeat(3, 1fr); }

    /* Section headings */
    .section-title { font-size: 20px; }
    .page-title { font-size: 22px; }

    /* Pagination */
    .pagination { flex-wrap: wrap; gap: 6px; }

    /* Footer */
    .ft-top-inner { flex-direction: column; gap: 20px; }
    .ft-links-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media(max-width:480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-cats-wrapper { grid-template-columns: 1fr; }
    .auth-card { padding: 20px 16px; }
    .swu-form-section { padding: 20px 16px; }
    .blog-grid { grid-template-columns: 1fr; }
    .ft-links-grid { grid-template-columns: 1fr; }
    .ft-bottom-inner { flex-direction: column; text-align: center; }
}

/* Fix focus ring color to brand */
*:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(25,85,166,0.12) !important; }
.payment-option:has(input:checked) { border-color: var(--color-primary); background: rgba(25,85,166,0.03); }

/* Auth single card (forgot/reset) */
.auth-single { max-width: 420px; }

/* ── Additional mobile polish ───────────────────────────────── */
@media(max-width:768px) {
    /* Hero tighter on mobile */
    .hp-hero { min-height: auto; }
    .hp-hero-inner { padding: 36px 16px 32px; }
    .hp-hero-h1 { font-size: clamp(26px, 8vw, 38px); }
    .hp-hero-sub { font-size: 14px; margin-bottom: 20px; }
    .hp-btn-primary, .hp-btn-ghost { padding: 11px 18px; font-size: 13px; }

    /* Service providers row on mobile */
    .hp-svc-row { gap: 8px; }
    .hp-svc-card { min-width: 90px; padding: 10px 8px; }

    /* Trust strip — 2 cols on mobile */
    .hp-trust-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hp-trust-item { padding: 12px 10px; }
    .hp-trust-item strong { font-size: 12px; }
    .hp-trust-item span { font-size: 10px; }

    /* BNPL on product cards — hide on mobile, show on product page */
    .product-card .bnpl-badges { display: none; }

    /* Category tiles on mobile — 3 across */
    .hp-cat-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }

    /* Sticky ATC bar — full width, larger tap target */
    .sticky-atc-bar { padding: 12px 0; }
    .sticky-atc-inner { padding: 0 16px; }
    .sticky-atc-info { display: none; } /* save space — just show button */

    /* Breadcrumbs — smaller on mobile */
    .breadcrumbs { font-size: 12px; padding: 10px 0; }

    /* Footer newsletter form */
    .ft-form { flex-direction: column; border-radius: var(--radius); }
    .ft-form input { border-radius: var(--radius) var(--radius) 0 0; }
    .ft-form button { border-radius: 0 0 var(--radius) var(--radius); width: 100%; padding: 12px; }
}

@media(max-width:480px) {
    /* Smaller product card titles */
    .product-card-title { font-size: 11px; line-height: 1.3; }
    .product-card-btn { display: none; } /* Show just price — tap the card */

    /* Hero pills wrap cleanly */
    .hp-hero-pills { gap: 4px; }
    .hp-hero-pills span { font-size: 10px; padding: 4px 9px; }

    /* Full-width action buttons */
    .hp-hero-actions { flex-direction: column; gap: 8px; }
    .hp-btn-primary, .hp-btn-ghost { width: 100%; text-align: center; }

    /* Trust items single col on very small screens */
    .hp-trust-row { grid-template-columns: 1fr; }

    /* Service providers — horizontal scroll */
    .hp-svc-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; justify-content: flex-start; }
    .hp-svc-card { flex-shrink: 0; }

    /* Cart items */
    .cart-item-name { font-size: 13px; }
}


/* Checkout payment trust row */
.payment-logos { margin: 12px 0 8px; }
.payment-logos-label { font-size: 12px; color: var(--color-text-light); margin-bottom: 6px; }
.payment-logo-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-logo-badge { font-size: 11px; font-weight: 700; color: #fff; border-radius: 4px; padding: 3px 8px; }
.payment-logo-visa { background: #1a1f71; }
.payment-logo-mc { background: #eb001b; }
.payment-logo-amex { background: #006fcf; }
.checkout-shipping-note { font-size: 12px; color: var(--color-text-light); margin-top: -2px; margin-bottom: 8px; }

/* Checkout checkboxes alignment */
.checkout-checkboxes label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkout-checkboxes input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }

/* TARGET 1 & 2: Form spacing and checkbox alignment */
.checkout-form .form-row { margin-bottom: 16px; }
.checkout-form .form-group { margin-bottom: 14px; }
.checkout-form .checkbox-group { margin-bottom: 12px; }
.checkout-form .checkbox-group label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkout-form .checkbox-group input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.checkout-fields { padding: 20px 28px; }

/* TARGET 3: Payment method radio alignment */
.payment-option label { display: flex; align-items: flex-start; gap: 10px; }
.payment-option input[type="radio"] { margin-top: 3px; flex-shrink: 0; }

/* TARGET 5: Privacy text spacing */
.checkout-privacy { padding-bottom: 16px; }

/* Progress tracker (order confirmation) */
.checkout-progress { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 28px 0; max-width: 480px; margin: 0 auto; }
.checkout-progress .step { display: flex; flex-direction: column; align-items: center; }
.checkout-progress .step-icon { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--color-text-light); background: #fff; }
.checkout-progress .step.completed .step-icon { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.checkout-progress .step.active .step-icon { background: var(--color-primary); color: #fff; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(25,85,166,0.15); }
.checkout-progress .step-label { text-align: center; font-size: 12px; font-weight: 600; margin-top: 6px; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.04em; }
.checkout-progress .step.completed .step-label { color: var(--color-success); }
.checkout-progress .step.active .step-label { color: var(--color-primary); }
.checkout-progress .step-connector { flex: 1; height: 2px; background: var(--color-border); margin: 0 8px; margin-bottom: 22px; align-self: center; max-width: 60px; }
.checkout-progress .step-connector.filled { background: var(--color-success); }

/* Confirmation page details alignment */
.confirmation-details { display: flex; align-items: flex-start; gap: 24px; text-align: left; margin-bottom: 32px; }
@media(max-width:640px) { .confirmation-details { flex-direction: column; } }
.confirmation-section { flex: 1; background: var(--color-bg-soft); padding: 20px; border-radius: var(--radius); }
.confirmation-section h3 { font-size: 16px; margin-bottom: 12px; margin-top: 0; padding-top: 0; border-top: none; }
.confirmation-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--color-border); }
.confirmation-item.total { font-weight: 600; border-bottom: none; }

/* Order item row alignment */
.order-item-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--color-border); }
.order-item-name { flex: 1; }
.order-item-qty { width: 40px; text-align: center; }
.order-item-price { width: 80px; text-align: right; }

/* Order confirmation success icon spacing */
.order-success-icon { margin-bottom: 12px; }
.confirmation-content h1 { margin-top: 0; margin-bottom: 8px; }

/* TARGET 10: Header search bar alignment */
.header-search { display: flex; align-items: center; }
.header-icons { display: flex; align-items: center; gap: 16px; }
.header-search input { vertical-align: middle; }

/* Sticky mobile checkout CTA */
.mobile-checkout-sticky { display: none !important; }
@media(min-width: 769px) {
    .mobile-checkout-sticky { display: none !important; }
}
@media(max-width:768px){
    .checkout-main { padding-bottom: 130px; }
    .mobile-checkout-sticky { display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: #fff; border-top: 1px solid var(--color-border); box-shadow: 0 -6px 20px rgba(0,0,0,0.12); padding: 12px 16px; align-items: center; gap: 12px; }
    .mobile-checkout-sticky-total { font-size: 14px; font-weight: 600; color: var(--color-text); white-space: nowrap; flex: 1; }
    .mobile-checkout-sticky-total strong { font-size: 16px; color: var(--color-accent); margin-left: 4px; }
    .mobile-checkout-sticky-btn { margin: 0; width: auto; min-width: 140px; padding: 12px 24px; font-size: 15px; }
}

/* Sticky ATC variant line */
.sticky-atc-variant { font-size: 12px; color: var(--color-text-light); }

/* Homepage brands CTA */
.brands-view-all-wrap { text-align: center; margin-top: 16px; }
.brands-view-all-link { font-size: 14px; font-weight: 700; color: var(--color-primary); text-decoration: underline; }
.brands-view-all-link:hover { color: var(--color-accent); }
