/* ==========================================
   LoopWear - Eco Modern Design
   ========================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #536b33;
    --primary-light: #6f8350;
    --accent: #536b33;
    --accent-hover: #3f5227;
    --accent-light: #eef3e7;
    --success: #40916c;
    --danger: #d62828;
    --warning: #e76f51;
    --bg: #f5f5f7;
    --white: #ffffff;
    --text: #1d1d1f;
    --text-secondary: rgba(29,29,31,.58);
    --text-light: rgba(29,29,31,.66);
    --border: rgba(29,29,31,.14);
    --border-light: rgba(29,29,31,.10);
    --card-bg: rgba(255,255,255,.78);
    --glass: rgba(255,255,255,.76);
    --glass-border: rgba(255,255,255,.82);
    --shadow-sm: 0 8px 28px rgba(35,39,31,.08);
    --shadow: 0 18px 60px rgba(35,39,31,.10);
    --shadow-lg: 0 24px 70px rgba(35,39,31,.13);
    --shadow-hover: 0 24px 70px rgba(35,39,31,.16);
    --radius-sm: 18px;
    --radius: 24px;
    --radius-lg: 28px;
    --radius-xl: 999px;
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Sukhumvit Set', 'Noto Sans Thai', 'Helvetica Neue', 'Thonburi', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body {
    font-family: var(--font);
    background:
        radial-gradient(circle at 18% 0%, rgba(115,139,70,.14), transparent 24%),
        radial-gradient(circle at 100% 18%, rgba(40,92,120,.08), transparent 30%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Prevent layout shift during image load */
    content-visibility: auto;
}

/* Prevent CLS on common image containers */
.cat-card-img,
.deal-img,
.blog-card-image,
.showcase-item {
    contain: layout style;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   Site Header Stack — sticky wrapper
   ========================================== */
.site-header-stack {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ==========================================
   Announcement Bar — Apple Promo Style
   ========================================== */
.announcement-bar {
    background: var(--primary);
    padding: 0 44px 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    overflow: hidden;
    position: relative;
    transition: min-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
}

.announcement-bar.dismissed {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.ann-messages {
    position: relative;
    height: 18px;
    overflow: hidden;
    flex: 1;
    max-width: 520px;
    pointer-events: none;
}

/* Desktop: all items inline */
.ann-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
}

.ann-item-d {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.26);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
    font-size: 0.84rem;
    font-weight: 740;
    color: rgba(255,255,255,0.94);
    white-space: nowrap;
}

.ann-item-d strong { color: #fff; }

.ann-item-d a {
    color: rgba(255,255,255,0.92);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.45);
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.ann-item-d a:hover { color: #fff; }

.ann-sep-d {
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Mobile: rotating messages (hidden on desktop) */
.ann-messages { display: none; }

.ann-rotate-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.88);
    white-space: nowrap;
    opacity: 0;
    animation: annRotate 12s infinite;
}

.ann-rotate-item:nth-child(1) { animation-delay: 0s; }
.ann-rotate-item:nth-child(2) { animation-delay: 4s; }
.ann-rotate-item:nth-child(3) { animation-delay: 8s; }

.ann-rotate-item strong { color: #fff; }

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

.ann-rotate-item a {
    color: rgba(255,255,255,0.88);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.4);
    text-underline-offset: 2px;
    pointer-events: all;
    transition: color 0.2s;
}

.ann-rotate-item a:hover { color: #fff; }

/* LINE badge — padding-based so it always contains the text fully */
.ann-line-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #06C755;
    color: #fff;
    min-height: 18px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.3;
}

.ann-package-icon {
    opacity: .96;
}

.ann-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.ann-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

/* Free shipping progress bar in cart */
.free-shipping-progress {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    margin-top: 4px;
}

.fsp-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.fsp-text strong { color: var(--text); }

.fsp-bar {
    height: 5px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.fsp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 99px;
    transition: width 0.4s ease;
}

.free-shipping-achieved {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    color: var(--success);
    font-weight: 600;
    padding: 7px 12px;
    background: #d8f3dc;
    border-radius: var(--radius-sm);
    margin-top: 4px;
}

.free-shipping-badge {
    color: var(--success);
    font-weight: 700;
    font-size: 0.88rem;
}

@media (max-width: 1024px) {
    /* Tablet + Mobile: switch to rotating mode */
    .ann-desktop { display: none; }
    .ann-messages {
        display: block;
        position: relative;
        height: 18px;
        overflow: hidden;
        flex: 1;
        max-width: 100%;
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .announcement-bar { min-height: 30px; padding-right: 38px; }
    .ann-rotate-item { font-size: 0.7rem; gap: 4px; }
}

/* ==========================================
   Header - Frosted Glass
   ========================================== */
.site-header {
    background: rgba(246,247,244,0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    position: relative;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
}

.logo-text-card,
.logo-wordmark {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    min-width: 132px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    text-decoration: none !important;
    box-shadow: none;
    color: var(--text);
    transition: var(--transition);
}

.logo-wordmark::after {
    content: none;
}

.logo-wordmark:hover::after {
    content: none;
}

.logo-word {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    font-size: 27px;
    line-height: 1;
    letter-spacing: 0;
}

.logo-loop {
    font-weight: 760;
    color: var(--text);
}

.logo-wear {
    margin-left: 1px;
    font-weight: 520;
    color: var(--text);
}

.logo-name {
    font-size: 27px;
    font-weight: 760;
    color: var(--text);
    letter-spacing: 0;
    line-height: 1;
}
.logo-tagline {
    font-size: 10.5px;
    font-weight: 720;
    color: var(--text-secondary);
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    margin-top: 4px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: -2px;
    letter-spacing: 0.3px;
}

/* Header right-side actions: search always visible, hamburger mobile-only */
.header-end {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: background 0.18s, color 0.18s;
}

.search-toggle:hover {
    background: rgba(0,0,0,0.06);
    color: var(--text);
}

.search-toggle[aria-expanded="true"] {
    background: rgba(0,0,0,0.07);
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.header-mobile-icons {
    display: none;
    align-items: center;
    gap: 2px;
}

.mobile-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-light);
    transition: background 0.18s, color 0.18s;
    position: relative;
}

.mobile-icon-btn:hover {
    background: rgba(0,0,0,0.06);
    color: var(--text);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 2px;
}

.nav-links a {
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    color: var(--text-light);
}

.nav-links a:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text);
}

.nav-links a.active {
    background: var(--primary);
    color: var(--white);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cart-link {
    position: relative;
    font-size: 1.3rem;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-link:hover {
    background: rgba(0,0,0,0.05);
}

.cart-badge {
    position: absolute;
    top: -12px;
    right: -2px;
    background: #cf3f3b;
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 900;
    min-width: 20px;
    width: auto;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    line-height: 1;
    box-shadow: 0 3px 8px rgba(184,70,63,.28);
}

.btn-link {
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    color: var(--text-light);
}

.btn-link:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text);
}

.btn-register {
    background: var(--primary);
    color: var(--white) !important;
}

.btn-register:hover {
    background: var(--primary-light) !important;
}

.user-greeting {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ==========================================
   Main Content
   ========================================== */
.site-main {
    flex: 1;
}

/* ==========================================
   Hero Section - Apple Style
   ========================================== */
/* ==========================================
   Hero - Apple Style
   ========================================== */
.hero-apple {
    background: linear-gradient(180deg, #f6f7f4 0%, #eef0ea 100%);
    padding: 60px 0 40px;
    overflow: hidden;
}

.hero-apple .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-apple-content {
    flex: 0 0 380px;
    text-align: left;
}

.hero-apple-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-apple-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero-apple-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 28px;
}

.hero-apple-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-apple-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-apple-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(45,106,79,0.3);
}

.btn-apple-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--accent);
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1.5px solid var(--accent);
    cursor: pointer;
}

.btn-apple-secondary:hover {
    background: var(--accent);
    color: var(--white);
}

.hero-product-showcase {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-height: 400px;
    max-height: 520px;
}

.showcase-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.showcase-item:first-child {
    grid-row: span 2;
}

.showcase-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.showcase-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.showcase-brand {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.showcase-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

/* Legacy hero (keep for backwards compat) */
.hero { display: none; }

/* ==========================================
   USP Strip
   ========================================== */
.usp-strip {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 0.5px solid var(--border-light);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.usp-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--radius-sm);
    color: var(--accent);
}

.usp-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.usp-item span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ==========================================
   Section Headers
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.section-header .view-all-link {
    display: inline-block;
    margin-top: 4px;
}

.view-all-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--accent-hover);
}

.section-header:has(.view-all-link) {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
}

.section-header:has(.view-all-link) h2 {
    margin-bottom: 0;
}

/* ==========================================
   Category Showcase (Parent Cards)
   ========================================== */
.section-categories {
    padding: 52px 0;
    background: var(--white);
}

.cat-group-header {
    margin: 24px 0 12px;
}
.cat-group-header:first-of-type {
    margin-top: 0;
}
.cat-group-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.cat-group-title:hover {
    color: var(--accent);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cat-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    display: block;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cat-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.cat-card-img {
    position: absolute;
    inset: 0;
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.cat-card:hover .cat-card-img img {
    transform: scale(1.06);
}

.cat-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: var(--white);
}

.cat-card-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.cat-card-info span {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Parent Category Cards (larger, 2-col) */
.parent-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.parent-cat-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    display: block;
    background: #f0f0f0;
    transition: var(--transition);
}

.parent-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.parent-cat-card .cat-card-img {
    position: absolute;
    inset: 0;
}

.parent-cat-card .cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.parent-cat-card:hover .cat-card-img img {
    transform: scale(1.04);
}

.parent-cat-card .cat-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    z-index: 2;
    text-align: left;
}

.parent-cat-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.parent-cat-card .cat-card-overlay h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.parent-cat-card .cat-card-overlay span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
}

.parent-cat-card .cat-card-overlay .cat-arrow {
    display: none;
}

/* Subcategory page */
.subcat-hero {
    background: var(--white);
    padding: 40px 0 0;
    text-align: center;
}

.subcat-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.subcat-hero p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Subcategory - Apple Style */
.subcat-hero-apple {
    padding: 48px 0 20px;
    background: var(--bg);
}

.subcat-hero-header {
    text-align: center;
    margin-bottom: 32px;
}

.subcat-hero-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary);
    margin-bottom: 6px;
}

.subcat-hero-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.subcat-grid-apple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-bottom: 40px;
}

.subcat-card-apple {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}

.subcat-card-apple:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.subcat-card-image {
    aspect-ratio: 3/5;
    overflow: hidden;
    background: #f0f0f0;
}

.subcat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.subcat-card-apple:hover .subcat-card-image img {
    transform: scale(1.05);
}

.subcat-card-info {
    padding: 14px 16px;
    text-align: center;
}

.subcat-card-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.subcat-card-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Legacy subcat (hidden) */
.subcat-hero { display: none; }
.subcat-grid { display: none; }

/* ==========================================
   Best Deals
   ========================================== */
.section-deals {
    padding: 52px 0;
    background: var(--bg);
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.deal-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: block;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.deal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--warning);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 700;
    z-index: 2;
}

.deal-img {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg);
}

.deal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.deal-card:hover .deal-img img {
    transform: scale(1.05);
}

.deal-info {
    padding: 14px 16px;
}

.deal-brand {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.deal-info h3 {
    font-size: 0.88rem;
    font-weight: 600;
    margin: 4px 0 8px;
    line-height: 1.3;
}

.deal-prices {
    display: flex;
    align-items: center;
    gap: 8px;
}

.deal-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
}

.deal-orig {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* ==========================================
   Brand Promise
   ========================================== */
.brand-promise {
    padding: 64px 0;
    background: linear-gradient(135deg, #1a2e1a 0%, #2d4a2d 100%);
    color: var(--white);
}

.promise-content {
    text-align: center;
}

.promise-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.promise-lead {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 44px;
}

.promise-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    text-align: left;
    overflow-x: auto;
}

.promise-item {
    flex: 1 1 0;
    min-width: 180px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    border: 0.5px solid rgba(255,255,255,0.08);
    transition: var(--transition);
    backdrop-filter: blur(8px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.promise-item-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.promise-item:hover .promise-item-img {
    opacity: 1;
}

.promise-item-body {
    padding: 20px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promise-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.promise-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
}

.promise-icon svg {
    width: 100%;
    height: 100%;
}

.promise-num {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.2;
    margin-bottom: 10px;
}

.promise-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.promise-item p {
    font-size: 0.88rem;
    opacity: 0.6;
    line-height: 1.6;
}

/* ==========================================
   New Arrivals
   ========================================== */
.section-new-arrivals {
    padding: 52px 0;
    background: var(--bg);
}

/* ==========================================
   Filter Heading & Bar
   ========================================== */
.filter-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 28px 0 0;
}

.filter-heading h1 {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.result-count {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: var(--font);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-add-cart {
    background: var(--primary);
    color: var(--white);
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-family: var(--font);
}

.btn-add-cart:hover {
    background: var(--primary-light);
    transform: scale(1.01);
}

.btn-add-cart:disabled {
    background: var(--border);
    cursor: not-allowed;
    color: var(--text-secondary);
}

/* Product Tags */
.product-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.condition-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-xl);
    background: rgba(52,199,89,0.1);
    color: var(--success);
    font-weight: 600;
}

.stock-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-xl);
}

.stock-tag.stock-low {
    background: rgba(255,149,0,0.1);
    color: var(--warning);
}

.stock-tag.stock-out {
    background: rgba(255,59,48,0.1);
    color: var(--danger);
}

.stock-available { color: var(--success); font-weight: 600; }
.stock-out { color: var(--danger); font-weight: 600; }

/* ==========================================
   Filter Bar
   ========================================== */
/* ==========================================
   Shop Layout — Sidebar + Products
   ========================================== */
.section-shop { padding: 24px 0 48px; }

.shop-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* ----- Sidebar ----- */
.shop-sidebar {
    width: 220px;
    min-width: 220px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar-inner {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 16px;
    border: 1px solid var(--border-light);
}

.sidebar-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 16px;
    transition: var(--transition);
}
.sidebar-all-link:hover { background: var(--bg); }
.sidebar-all-link.active { background: var(--primary); color: var(--white); }

.sidebar-parent-group { margin-bottom: 20px; }
.sidebar-parent-group:last-child { margin-bottom: 0; }

.sidebar-parent-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    padding: 6px 10px 8px 12px;
    border-bottom: 2px solid var(--accent);
    border-left: 3px solid var(--accent);
    margin-bottom: 8px;
    background: var(--accent-light, rgba(45,106,79,0.07));
    border-radius: var(--radius-sm) 0 0 0;
}

.sidebar-cat-item { margin-bottom: 2px; }

.sidebar-cat-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.sidebar-cat-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    min-width: 0;
}
.sidebar-cat-link:hover { background: var(--bg); color: var(--primary); }
.sidebar-cat-link.active { background: var(--primary); color: var(--white); font-weight: 600; }
.sidebar-cat-link.active .sidebar-cat-count { color: rgba(255,255,255,0.6); }

.sidebar-cat-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 6px;
    flex-shrink: 0;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 6px;
    color: var(--text-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--bg); color: var(--primary); }
.sidebar-toggle svg { transition: transform 0.2s; }
.sidebar-toggle.open svg { transform: rotate(180deg); }

.sidebar-brand-list {
    list-style: none;
    padding: 4px 0 4px 14px;
    margin: 0;
}
.sidebar-brand-list li { margin-bottom: 1px; }
.sidebar-brand-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}
.sidebar-brand-list a:hover { background: var(--bg); color: var(--primary); }
.sidebar-brand-list a.active { color: var(--accent); font-weight: 600; background: var(--accent-light); }

.brand-count {
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: var(--border-light);
    padding: 1px 6px;
    border-radius: 20px;
}
.sidebar-brand-list a.active .brand-count { background: rgba(45,106,79,0.15); color: var(--accent); }

/* ----- Main / toolbar ----- */
.shop-main { flex: 1; min-width: 0; }

.shop-toolbar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.shop-toolbar-left { display: flex; align-items: baseline; gap: 10px; }
.shop-toolbar h1 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }

.shop-sort-select {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--white);
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    font-family: var(--font);
    transition: var(--transition);
}
.shop-sort-select:focus { outline: none; border-color: var(--accent); }

.shop-toolbar-right { display: flex; align-items: center; gap: 12px; }

.shop-perpage-form { display: flex; align-items: center; gap: 6px; }
.perpage-label { font-size: 0.82rem; color: var(--text-secondary); white-space: nowrap; }
.shop-perpage-select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--white);
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    font-family: var(--font);
    transition: var(--transition);
}
.shop-perpage-select:focus { outline: none; border-color: var(--accent); }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--white);
    transition: var(--transition);
    white-space: nowrap;
}
.page-btn:hover:not(.disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.page-numbers { display: flex; align-items: center; gap: 4px; }
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-xl);
    transition: var(--transition);
}
.page-num:hover:not(.active) { background: var(--bg-secondary); }
.page-num.active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-color: var(--accent);
}
.page-dots { color: var(--text-secondary); padding: 0 4px; font-size: 0.85rem; }

/* 3-column grid when sidebar is visible */
.product-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Mobile filter select — hidden on desktop */
.shop-filter-form { display: none; }

/* ----- Mobile ----- */
@media (max-width: 900px) {
    .shop-layout { flex-direction: column; }
    .shop-sidebar { display: none; }
    .product-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .shop-toolbar { align-items: center; }
    .shop-toolbar-right { flex-wrap: nowrap; gap: 6px; align-items: center; }
    .shop-filter-form { display: flex; align-items: center; }
    .shop-filter-select {
        padding: 7px 10px;
        border: 1px solid var(--border);
        border-radius: var(--radius-xl);
        background: var(--white);
        font-size: 0.82rem;
        color: var(--text);
        cursor: pointer;
        font-family: var(--font);
        max-width: 130px;
    }
    .page-btn { padding: 6px 12px; font-size: 0.8rem; }
    .page-num { min-width: 32px; height: 32px; font-size: 0.8rem; }
    .pagination { gap: 4px; margin-top: 24px; }
}

.filter-bar {
    display: flex;
    gap: 10px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.filter-group select {
    padding: 10px 16px;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--white);
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    min-width: 160px;
    font-family: var(--font);
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}

/* ==========================================
   Product Grid
   ========================================== */
.section-products {
    padding: 0 0 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-image-link {
    position: relative;
    display: block;
    aspect-ratio: 3/5;
    overflow: hidden;
    background: var(--bg);
}

.product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-link img {
    transform: scale(1.05);
}

.product-discount-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    background: #c0392b;
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 999px;
    z-index: 3;
    letter-spacing: 0;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(192,57,43,.20);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    color: var(--text);
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 600;
}

.product-info {
    padding: 14px 16px 16px;
}

.product-brand {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 0.88rem;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.3;
}

.product-name a:hover {
    color: var(--accent);
}

.product-color-line {
    margin: -2px 0 9px;
    color: rgba(29,29,31,.52);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-cart-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--warning);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
.card-cart-btn:hover {
    background: #c1542a;
    transform: scale(1.1);
    box-shadow: 0 5px 16px rgba(0,0,0,0.22);
}
/* Deal card — button sits above the deal-info text section */
.deal-card .card-cart-btn {
    bottom: 110px;
}
.deal-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.card-cart-btn svg {
    width: 17px;
    height: 17px;
    pointer-events: none;
}
.card-cart-btn .icon-check {
    display: none;
    stroke: #fff;
}
.card-cart-btn.added {
    background: #2d6a4f;
}
.card-cart-btn.added .icon-cart { display: none; }
.card-cart-btn.added .icon-check { display: block; }

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.05rem;
    font-weight: 900;
    color: #b8463f;
    line-height: 1;
}

.price-original {
    font-size: 0.82rem;
    color: rgba(29,29,31,.38);
    text-decoration: line-through;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.add-to-cart-form {
    margin-top: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-state h2 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ==========================================
   Product Detail
   ========================================== */
.product-detail {
    padding: 30px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-gallery {
    position: relative;
}

.gallery-main {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    max-height: 700px;
    position: relative;
    cursor: crosshair;
}

.gallery-main img {
    width: 100%;
    max-height: 700px;
    object-fit: contain;
}

.zoom-lens {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(45,106,79,0.5);
    border-radius: 50%;
    background: rgba(45,106,79,0.08);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 5;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(0.5px);
}


.zoom-result {
    position: absolute;
    top: 0;
    left: calc(100% + 16px);
    width: 420px;
    height: 420px;
    border-radius: var(--radius-lg);
    background-repeat: no-repeat;
    background-color: var(--white);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--border-light);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 200;
    overflow: hidden;
}


@media (max-width: 1200px) {
    .zoom-result {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .gallery-main {
        cursor: pointer;
        touch-action: pan-y;
    }
    .zoom-lens,
    .zoom-result {
        display: none !important;
    }
}

.mobile-gallery-counter,
.mobile-gallery-dots {
    display: none;
}

@media (max-width: 768px) {
    .mobile-gallery-counter {
        position: absolute;
        right: 12px;
        bottom: 12px;
        z-index: 6;
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 0 10px;
        border-radius: 999px;
        background: rgba(17,23,19,.62);
        color: #fff;
        font-size: 0.76rem;
        font-weight: 800;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .mobile-gallery-dots {
        position: absolute;
        left: 50%;
        bottom: 16px;
        z-index: 6;
        transform: translateX(-50%);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        pointer-events: none;
    }

    .mobile-gallery-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(17,23,19,.22);
        transition: background .18s ease, transform .18s ease;
    }

    .mobile-gallery-dot.active {
        background: #536b33;
        transform: scale(1.35);
    }
}

/* Mobile Lightbox */
.lw-lightbox {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.lw-lightbox.active { display: flex; }
.lw-lb-close {
    position: absolute;
    top: max(env(safe-area-inset-top, 12px), 12px);
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    z-index: 10;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.lw-lb-counter {
    position: absolute;
    top: max(env(safe-area-inset-top, 12px), 12px);
    left: 16px;
    color: rgba(255,255,255,.7);
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    line-height: 40px;
}
.lw-lb-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}
.lw-lb-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
}
.lw-lb-dots {
    position: absolute;
    bottom: max(env(safe-area-inset-bottom, 20px), 20px);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.lw-lb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.lw-lb-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.thumb {
    flex: 1;
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: var(--transition);
}

.thumb.active,
.thumb:hover {
    border-color: var(--accent);
}

.thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--bg);
}

.product-brand-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-authentic-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    background: rgba(45, 106, 79, 0.12);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.product-secondhand-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    background: rgba(183, 110, 42, 0.12);
    color: #8b5e2f;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.product-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 14px 0;
    letter-spacing: -0.02em;
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.price-current-lg {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.price-original-lg {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--warning);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 700;
}

.product-description {
    margin-bottom: 24px;
}

.product-description h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-description p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-meta {
    background: var(--bg);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.88rem;
}

.meta-item + .meta-item {
    border-top: 0.5px solid var(--border-light);
}

.meta-label {
    color: var(--text-secondary);
}
.condition-grade {
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
}
.grade-aplus { background: #e8f5e9; color: #1b5e20; }
.grade-a { background: #e3f2fd; color: #0d47a1; }
.grade-b { background: #fff8e1; color: #e65100; }
.grade-c { background: #fce4ec; color: #b71c1c; }

.quantity-selector {
    margin-bottom: 16px;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text);
}

.qty-btn:hover {
    background: rgba(0,0,0,0.05);
}

.qty-controls input[type="number"] {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    -moz-appearance: textfield;
    font-family: var(--font);
}

.qty-controls input[type="number"]::-webkit-inner-spin-button,
.qty-controls input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.btn-add-cart-detail {
    width: 100%;
    padding: 64px 14px 14px;
    font-size: 1rem;
    border-radius: var(--radius);
}

.trust-badge {
    margin-top: 20px;
    padding: 14px;
    background: rgba(52,199,89,0.08);
    border-radius: var(--radius);
    text-align: center;
    color: var(--success);
    font-weight: 600;
    font-size: 0.88rem;
}

/* ==========================================
   Reviews
   ========================================== */
.reviews-section {
    padding: 48px 0;
    background: var(--white);
    border-top: 1px solid var(--border-light);
}

.reviews-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.reviews-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avg-rating {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.stars-display {
    display: flex;
    gap: 2px;
}

.star {
    color: #d4d4d4;
    font-size: 1rem;
}

.star.filled {
    color: #f5a623;
}

.review-count {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.review-form-box {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
}

.review-form-box h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.review-reward-note {
    margin: -6px 0 16px;
    padding: 12px 14px;
    border: 1px solid #f4d58d;
    border-radius: var(--radius-sm);
    background: #fff8e8;
    color: #8a641d;
    font-size: 0.9rem;
    line-height: 1.55;
}

.review-form select,
.review-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.88rem;
    background: var(--white);
}

.review-form .form-group {
    margin-bottom: 14px;
}

.review-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 1.8rem;
    color: #d4d4d4;
    cursor: pointer;
    transition: color 0.15s;
    margin-bottom: 0;
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #f5a623;
}

.review-login-prompt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.review-login-prompt a {
    color: var(--accent);
    font-weight: 600;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.review-user strong {
    font-size: 0.88rem;
    display: block;
}

.review-badge {
    font-size: 0.65rem;
    color: var(--success);
    font-weight: 600;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.review-stars {
    margin-bottom: 8px;
}

.review-stars .star {
    font-size: 0.85rem;
}

.review-comment {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text);
}

.no-reviews {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 20px;
}

/* Homepage Review Showcase */
.section-reviews {
    padding: 64px 0;
    background: var(--bg);
}

.reviews-carousel-wrapper {
    position: relative;
    padding: 0 40px;
    overflow: hidden;
}

.reviews-carousel {
    display: flex;
    gap: 16px;
    padding: 8px 0 16px;
    transition: transform 0.4s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.carousel-btn-left { left: 0; }
.carousel-btn-right { right: 0; }

.showcase-review-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 340px;
    flex-shrink: 0;
}

.showcase-review-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.showcase-review-product {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.showcase-review-product img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.showcase-review-product-info {
    flex: 1;
    min-width: 0;
}

.showcase-review-product-name {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.showcase-review-product-brand {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.review-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.review-product-tag {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-product-tag .review-product-brand {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    background: var(--primary);
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.3px;
}

.review-product-tag .review-product-name {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.related-products {
    padding: 40px 0;
    background: var(--white);
}

.related-products h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================
   Cart Page
   ========================================== */
.cart-page {
    padding: 30px 0;
}

.cart-page h1 {
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h3 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-info h3 a:hover {
    color: var(--accent);
}

.cart-item-brand {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: block;
}

.cart-item-price {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-top: 4px;
}

.cart-item-quantity .qty-controls {
    transform: scale(0.85);
}

.cart-item-quantity .qty-input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: 1px solid var(--border);
    border-left: none;
    border-right: none;
    font-size: 0.82rem;
    font-family: var(--font);
}

.cart-item-total {
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
}

.btn-remove {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
    border-radius: 50%;
}

.btn-remove:hover {
    color: var(--danger);
    background: rgba(255,59,48,0.08);
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 80px;
}

.cart-summary h2 {
    font-size: 1.05rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.88rem;
}

.summary-total {
    border-top: 1px solid var(--border-light);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.05rem;
    font-weight: 700;
}

.cart-summary .btn {
    margin-top: 12px;
}

/* ==========================================
   Checkout Page
   ========================================== */
.checkout-page {
    padding: 30px 0;
}

.checkout-page h1 {
    margin-bottom: 24px;
    font-weight: 700;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.form-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.form-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid var(--border-light);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.required {
    color: var(--danger);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--text);
    transition: var(--transition);
    font-family: var(--font);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
}

.form-group input[readonly] {
    background: var(--bg);
    color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 4px;
    display: block;
}

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 0.5px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow-lg);
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: var(--transition);
}

.autocomplete-item:hover {
    background: var(--bg);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.payment-option input[type="radio"] {
    accent-color: var(--accent);
}

.payment-label {
    font-size: 0.88rem;
    font-weight: 500;
}

.order-summary-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 80px;
}

.order-summary-box h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid var(--border-light);
}

.summary-items {
    margin-bottom: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.82rem;
}

.summary-item-info {
    display: flex;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.summary-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-item-qty {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.summary-item-price {
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 8px;
}

.summary-divider {
    height: 0.5px;
    background: var(--border-light);
    margin: 8px 0;
}

.checkout-summary .btn {
    margin-top: 16px;
}

/* ==========================================
   Order Complete
   ========================================== */
.order-complete-page {
    padding: 40px 0;
}

.order-complete-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
}

.order-complete-box h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.order-number-label {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.order-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.order-details {
    text-align: left;
    margin-bottom: 24px;
}

.order-details h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--border-light);
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.82rem;
}

.order-item-row .item-name {
    flex: 1;
}

.order-item-row .item-qty {
    color: var(--text-secondary);
    margin: 0 12px;
}

.payment-instructions {
    text-align: left;
    background: rgba(255,149,0,0.08);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.payment-instructions h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.bank-info {
    background: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.bank-info p {
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.payment-note {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.qr-placeholder {
    text-align: center;
}

.qr-placeholder .payment-real-qr {
    width: min(240px, 100%);
    margin: 0 auto 12px;
}

.qr-box {
    width: 160px;
    height: 160px;
    background: var(--white);
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    border-radius: var(--radius);
}

.order-actions {
    margin-top: 24px;
}

/* ==========================================
   Auth Pages
   ========================================== */
.auth-page {
    padding: 40px 0;
}

.auth-box {
    max-width: 440px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form .btn {
    margin-top: 8px;
}

/* ==========================================
   About Page
   ========================================== */
.about-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: clamp(48px, 7vw, 86px) 0;
    overflow-x: hidden;
}

.about-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.about-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-hero h1 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.about-lead {
    max-width: 680px;
    color: var(--text-light);
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.85;
}

.about-lead span {
    display: block;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.about-hero-media {
    display: grid;
    grid-template-columns: 1.05fr 0.85fr;
    gap: 14px;
    min-width: 0;
}

.about-photo {
    margin: 0;
    overflow: hidden;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-photo-main {
    aspect-ratio: 3 / 4;
}

.about-photo-stack {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 14px;
    min-width: 0;
}

.about-photo-stack .about-photo {
    aspect-ratio: 1 / 1.12;
}

.about-note {
    padding: 20px;
    color: var(--white);
    background: var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.35rem;
    line-height: 1.25;
}

.about-note span {
    display: block;
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
    line-height: 1.65;
}

.about-section {
    padding: clamp(54px, 7vw, 86px) 0;
}

.about-section-white {
    background: var(--white);
}

.about-two-col,
.about-origin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 58px);
    align-items: center;
}

.about-copy h2,
.about-section-head h2,
.about-online h2 {
    margin-bottom: 16px;
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.22;
    letter-spacing: -0.03em;
}

.about-copy p,
.about-section-head p,
.about-online p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.85;
}

.about-copy p + p {
    margin-top: 14px;
}

.about-value-list {
    display: grid;
    gap: 12px;
}

.about-value-card,
.about-impact-card {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.about-icon {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: var(--radius-sm);
}

.about-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-value-card h3,
.about-impact-card h3 {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 1.08rem;
}

.about-value-card p,
.about-impact-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.about-origin {
    background: var(--bg);
}

.about-origin-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    min-width: 0;
}

.about-origin-media img {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    object-fit: cover;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-origin-media img:nth-child(2) {
    margin-top: 34px;
}

.about-section-head {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.about-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.about-giveback {
    background: var(--bg);
}

.about-giveback-box {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
    padding: clamp(30px, 5vw, 50px);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--accent-hover));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-copy-light h2,
.about-copy-light p {
    color: var(--white);
}

.about-copy-light p {
    color: rgba(255,255,255,0.86);
}

.about-giveback-list {
    display: grid;
    gap: 10px;
}

.about-giveback-list div {
    padding: 14px 16px;
    color: var(--white);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.5;
}

.about-online {
    background: var(--white);
    text-align: center;
}

.about-online .container {
    max-width: 780px;
}

.about-online p {
    margin-bottom: 22px;
}

@media (max-width: 980px) {
    .about-hero-inner,
    .about-two-col,
    .about-origin-grid,
    .about-giveback-box {
        grid-template-columns: 1fr;
    }

    .about-hero-media {
        max-width: 680px;
    }

    .about-impact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .about-hero {
        padding-top: 36px;
    }

    .about-hero h1 {
        font-size: clamp(2.05rem, 10vw, 2.45rem);
        line-height: 1.16;
    }

    .about-lead {
        font-size: 0.96rem;
        line-height: 1.75;
        line-break: anywhere;
        overflow-wrap: anywhere;
        word-break: break-all;
    }

    .about-lead span {
        display: block;
    }

    .about-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about-hero-media {
        grid-template-columns: 1fr;
    }

    .about-photo-main {
        aspect-ratio: 4 / 5;
    }

    .about-photo-stack .about-photo {
        aspect-ratio: 4 / 3;
    }

    .about-origin-media {
        gap: 10px;
    }

    .about-origin-media img:nth-child(2) {
        margin-top: 18px;
    }

    .about-giveback-box {
        padding: 28px 20px;
    }
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--accent);
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ==========================================
   Alerts
   ========================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.88rem;
}

.alert-error {
    background: rgba(255,59,48,0.08);
    color: var(--danger);
    border: 0.5px solid rgba(255,59,48,0.2);
}

.alert-error ul {
    margin-left: 16px;
    list-style: disc;
}

.alert-success {
    background: rgba(52,199,89,0.08);
    color: var(--success);
    border: 0.5px solid rgba(52,199,89,0.2);
}

/* ==========================================
   Footer - Mini Footer (Dark)
   ========================================== */
.mini-footer {
    margin: 12px;
    padding: 32px 24px;
    border-radius: 24px;
    background: rgb(23, 26, 25);
    color: #fff;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 24px;
    font-size: 14px;
}

.mini-footer strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.mini-footer p,
.mini-footer a {
    color: rgba(255, 255, 255, 0.58);
    margin: 6px 0 0;
    display: block;
}

.mini-footer a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.shared-mini-footer a {
    text-decoration: none;
}

.shared-mini-footer .footer-copy {
    color: rgba(255, 255, 255, 0.44);
    margin-top: 12px;
}

.shared-mini-footer .brand {
    display: inline-block;
    color: #fff;
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 700;
}

/* ==========================================
   Mobile Bottom Navigation (iOS Tab Bar)
   ========================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    border-top: 1px solid var(--border-light);
    padding: 8px 0 env(safe-area-inset-bottom, 8px);
    justify-content: space-around;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 12px;
    text-decoration: none;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-icon {
    width: 20px;
    height: 20px;
}

.bottom-nav-label {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.bottom-nav-badge {
    position: absolute;
    top: -2px;
    right: 2px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.5rem;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Legacy footer (hidden) */
.site-footer { display: none; }

/* ==========================================
   Social Login
   ========================================== */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-family: var(--font);
    background: var(--white);
    color: var(--text);
}

.btn-social:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow);
}

.btn-social svg {
    flex-shrink: 0;
}

.btn-line,
.btn-google,
.btn-facebook,
.btn-apple {
    background: var(--white);
    color: var(--text);
    border-color: var(--border);
}

.btn-line:hover,
.btn-google:hover,
.btn-facebook:hover,
.btn-apple:hover {
    background: var(--bg);
}

/* Unified Auth Method Icons */
.auth-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
}

.auth-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-family: var(--font);
    transition: var(--transition);
}

.auth-method-btn:hover .auth-method-icon {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.auth-method-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.auth-method-line {
    background: #06C755;
}

.auth-method-google {
    background: var(--white);
    border: 1.5px solid var(--border);
}

.auth-method-phone {
    background: var(--primary);
}

.auth-method-email {
    background: #555;
}

.auth-method-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.auth-method-featured .auth-method-icon {
    width: 68px;
    height: 68px;
    box-shadow: 0 4px 16px rgba(6,199,85,0.3);
}

.auth-method-featured .auth-method-label {
    color: #06C755;
    font-weight: 700;
}

.auth-method-badge {
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    background: #06C755;
    padding: 1px 8px;
    border-radius: 10px;
    margin-top: -4px;
}

.auth-line-hint {
    text-align: center;
    color: #06C755;
    font-size: 0.78rem;
    font-weight: 500;
    margin: -4px 0 8px;
}

/* Make the authentication choice explicit: icon, action, and outcome stay together. */
.auth-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.auth-method-btn {
    position: relative;
    min-width: 0;
    min-height: 138px;
    padding: 16px 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    justify-content: flex-start;
}

.auth-method-btn:hover,
.auth-method-btn:focus-visible {
    border-color: var(--primary);
    background: #fbfcf9;
    outline: none;
    box-shadow: 0 4px 14px rgba(74,103,65,.12);
}

.auth-method-featured {
    border-color: rgba(6,199,85,.45);
    background: #f7fff9;
}

.auth-method-icon,
.auth-method-featured .auth-method-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
}

.auth-method-label {
    display: block;
    max-width: 100%;
    color: var(--text);
    font-size: .8rem;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.auth-method-featured .auth-method-label { color: #087f3e; }

.auth-method-note {
    display: block;
    min-height: 2.4em;
    color: var(--text-secondary);
    font-size: .68rem;
    line-height: 1.25;
    text-align: center;
}

.auth-method-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
    padding: 2px 6px;
    font-size: .56rem;
}

.auth-line-hint {
    margin: 0 0 14px;
    padding: 9px 10px;
    border-radius: 9px;
    background: #f0fbf3;
    color: #287743;
    line-height: 1.35;
}

@media (max-width: 600px) {
    .auth-methods { grid-template-columns: 1fr; gap: 8px; }
    .auth-method-btn {
        min-height: 0;
        min-height: 76px;
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 12px;
        align-items: center;
        text-align: left;
        padding: 10px 14px;
    }
    .auth-method-icon,
    .auth-method-featured .auth-method-icon { grid-row: 1 / span 2; }
    .auth-method-label,
    .auth-method-note { text-align: left; }
    .auth-method-note { min-height: 0; }
}

.auth-form-section {
    animation: authFadeIn 0.25s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.email-display-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.email-display-row input {
    flex: 1;
    background: var(--bg);
    color: var(--text-secondary);
}

.btn-change-email {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font);
    padding: 8px 4px;
}

.btn-change-email:hover {
    text-decoration: underline;
}

.auth-new-account-hint {
    background: rgba(52,199,89,0.08);
    border: 0.5px solid rgba(52,199,89,0.2);
    color: var(--success);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: var(--border-light);
}

.auth-divider span {
    padding: 0 16px;
    white-space: nowrap;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.88rem;
}

.auth-tabs {
    display: flex;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    color: var(--text-secondary);
}

.auth-tab.active {
    background: var(--white);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.otp-row {
    display: flex;
    gap: 8px;
}

.otp-row input {
    flex: 1;
}

.btn-send-otp {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 0.82rem;
}

/* ==========================================
   Saved Addresses
   ========================================== */
.saved-addresses {
    margin-bottom: 20px;
}

.saved-addresses h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.address-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.address-card:hover {
    border-color: var(--accent);
}

.address-card input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--accent);
}

.address-card input[type="radio"]:checked ~ .address-card-content {
    color: var(--text);
}

.address-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-light);
}

.address-card-content {
    flex: 1;
}

.address-card-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.88rem;
}

.address-card-content p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
    line-height: 1.4;
}

.default-badge {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 1px 8px;
    border-radius: var(--radius-xl);
    font-size: 0.62rem;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.shipping-info {
    background: var(--bg);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
}

.shipping-info small {
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.4;
    display: block;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.88rem;
    z-index: 10000;
    max-width: calc(100vw - 32px);
    animation: slideInUp 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.toast.hide {
    animation: slideOutDown 0.3s ease forwards;
}

@keyframes slideInUp {
    from { transform: translateY(80px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes slideOutDown {
    from { transform: translateY(0) scale(1); opacity: 1; }
    to { transform: translateY(80px) scale(0.95); opacity: 0; }
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mini-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
        padding: 26px 18px;
    }

    .mini-footer > div:first-child {
        grid-column: 1 / -1;
    }

    .hero-apple .container {
        gap: 28px;
    }

    .hero-apple-content {
        flex: 0 0 300px;
    }

    .hero-apple-title {
        font-size: 2.6rem;
    }

    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promise-grid {
        gap: 12px;
    }

    .parent-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-layout {
        grid-template-columns: 220px 1fr;
        gap: 1.25rem;
    }

    .profile-sidebar {
        padding: 1rem;
    }

    .profile-sidebar .avatar-circle {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .profile-avatar h3 {
        font-size: 0.92rem;
    }

    .profile-nav-link {
        padding: 0.5rem 0.65rem;
        font-size: 0.82rem;
    }

    .cart-layout {
        grid-template-columns: 1fr 280px;
        gap: 18px;
    }

    .checkout-layout {
        grid-template-columns: 1fr 300px;
        gap: 18px;
    }

    .cart-item {
        gap: 12px;
    }

    .cart-item-image {
        width: 72px;
        height: 90px;
    }

    .auth-box {
        max-width: 520px;
        margin-inline: auto;
    }

    .address-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --mobile-header-stack-height: 92px;
    }

    body {
        padding-top: var(--mobile-header-stack-height);
    }

    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--mobile-header-stack-height);
        right: 0;
        width: 75vw;
        max-width: 300px;
        height: calc(100vh - var(--mobile-header-stack-height));
        height: calc(100dvh - var(--mobile-header-stack-height));
        background: var(--bg);
        flex-direction: column;
        justify-content: flex-start;
        padding: 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        gap: 0;
        border-left: 1px solid var(--border-light);
        overflow-y: auto;
        will-change: transform;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-links a {
        padding: 12px 0;
        font-size: 0.95rem;
        border-radius: 0;
        color: var(--text);
        font-weight: 400;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links a:hover {
        background: none;
        color: var(--accent);
    }

    .nav-links a.active {
        background: none;
        color: var(--accent);
        font-weight: 600;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        padding-top: 0;
        border-top: none;
        gap: 0;
    }

    .header-mobile-icons {
        display: flex;
    }

    .nav-actions .cart-link,
    .nav-actions .wishlist-link,
    .nav-actions .header-account-link {
        display: none;
    }

    .nav-actions .btn-link {
        padding: 12px 0;
        border-radius: 0;
        font-size: 0.95rem;
        color: var(--text);
        font-weight: 400;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-actions .btn-link:hover {
        background: none;
        color: var(--accent);
    }

    .nav-actions .btn-register {
        margin-top: 16px;
        padding: 12px 20px;
        border-radius: var(--radius);
        text-align: center;
        border-bottom: none;
        color: var(--white) !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary-box {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Hero Apple - mobile */
    .hero-apple {
        padding: 36px 0 28px;
    }

    .hero-apple .container {
        flex-direction: column;
        gap: 24px;
    }

    .hero-apple-content {
        flex: none;
        text-align: center;
        width: 100%;
    }

    .hero-apple-title {
        font-size: 2rem;
    }

    .hero-apple-subtitle {
        font-size: 0.95rem;
    }

    .hero-apple-actions {
        justify-content: center;
    }

    .hero-product-showcase {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        gap: 8px;
        min-height: 0;
        max-height: none;
    }

    .showcase-item:first-child {
        grid-row: span 1;
    }

    .showcase-item:nth-child(n+4) {
        display: none;
    }

    /* Mobile bottom nav */
    .mobile-bottom-nav {
        display: flex;
    }

    .mini-footer {
        display: none;
    }

    .mini-footer strong {
        font-size: 16px;
    }

    .mini-footer p,
    .mini-footer a {
        font-size: 14px;
    }

    .shared-mini-footer .brand {
        font-size: 20px;
    }

    .shared-mini-footer .footer-copy {
        font-size: 13px;
    }

    .toast {
        bottom: calc(96px + env(safe-area-inset-bottom));
        right: 16px;
        left: 16px;
        text-align: center;
    }

    .usp-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .usp-item {
        gap: 8px;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .reviews-carousel-wrapper {
        padding: 0 32px;
    }

    .showcase-review-card {
        min-width: 260px;
    }

    .promise-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .promise-content h2 {
        font-size: 1.4rem;
    }

    .section-categories,
    .section-deals,
    .section-new-arrivals {
        padding: 36px 0;
    }

    .brand-promise {
        padding: 40px 0;
    }

    .parent-cat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .parent-cat-card {
        aspect-ratio: 3/4;
    }

    .subcat-grid-apple {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .subcat-hero-header h1 {
        font-size: 1.6rem;
    }

    .mini-footer p,
    .mini-footer a {
        font-size: 12px;
    }

    .mini-footer strong {
        font-size: 12px;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item-total {
        width: 100%;
        text-align: right;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-group select {
        width: 100%;
    }

    .filter-heading h1 {
        font-size: 1.3rem;
    }
}

/* Nav overlay for mobile */
.nav-overlay {
    display: none;
    position: fixed;
    inset: var(--mobile-header-stack-height, 0) 0 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    z-index: 998;
}

.nav-overlay.show {
    display: block;
}

/* ==========================================
   Member Pages - Profile, Orders, Addresses
   ========================================== */
.profile-page {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

.profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-sidebar {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.profile-avatar {
    text-align: center;
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.avatar-image {
    object-fit: cover;
    background: var(--bg);
}

.profile-avatar h3 {
    font-size: 1.05rem;
    color: var(--text);
    margin: 0;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-link-content svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.profile-nav-link:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.profile-nav-link:hover .nav-link-content svg {
    opacity: 1;
}

.profile-nav-link.active {
    background: var(--accent);
    color: #fff;
    font-weight: 500;
}

.profile-nav-link.active .nav-link-content svg {
    opacity: 1;
}

.profile-nav-link .badge {
    background: rgba(0,0,0,0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.profile-nav-link.active .badge {
    background: rgba(255,255,255,0.2);
}

.profile-nav-link.text-danger {
    color: var(--danger);
}

.profile-nav-link.text-danger .nav-link-content svg {
    opacity: 0.8;
}

.profile-content h2 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.profile-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.profile-photo-editor {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.55);
    margin-bottom: 1.25rem;
}

.profile-photo-preview {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    border: 1px solid var(--border-light);
    background: var(--bg);
}

.profile-photo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--accent);
    font-weight: 700;
    font-size: 1.65rem;
}

.profile-photo-fields {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-remove-avatar {
    margin-top: 0.75rem;
}

.social-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.55);
}

.social-account-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border-light);
    flex: 0 0 auto;
}

.social-detail {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.social-unlink-form {
    display: inline;
}

.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.82rem;
    border-radius: var(--radius);
}

.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    cursor: pointer;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary:hover {
    background: var(--accent);
    color: #fff;
}

.profile-section h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Forms in profile */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    background: var(--white);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Buttons for member pages */
.btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: #e9ecef;
    color: var(--text);
}

.btn-secondary:hover {
    background: #dee2e6;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Checkbox label in profile */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* ========== Order History ========== */
.order-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.order-card-header h3 {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
}

.order-status-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.order-status-pending { background: #fff3cd; color: #856404; }
.order-status-confirmed { background: #d4edda; color: #155724; }
.order-status-shipped { background: #cce5ff; color: #004085; }
.order-status-delivered { background: #d1ecf1; color: #0c5460; }
.order-status-cancelled { background: #f8d7da; color: #721c24; }
.order-status-returned { background: #f1e8ff; color: #5b2d90; }

.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.order-card-body .order-total {
    font-weight: 600;
    color: var(--accent);
    font-size: 1rem;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

/* Order Detail Timeline */
.order-timeline {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    position: relative;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--border-light);
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    position: relative;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    border: 3px solid var(--bg);
}

.timeline-step.active .timeline-dot {
    background: var(--accent);
    color: #fff;
}

.timeline-step.completed .timeline-dot {
    background: var(--success);
    color: #fff;
}

.timeline-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.timeline-step.active .timeline-label,
.timeline-step.completed .timeline-label {
    color: var(--text);
    font-weight: 500;
}

/* Tracking Box */
.tracking-box {
    background: var(--accent-light);
    border: 1px solid rgba(45, 106, 79, 0.2);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1rem;
}

.tracking-box h4 {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.tracking-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.tracking-link {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.tracking-link:hover {
    background: var(--accent-hover);
}

/* Order Items */
.order-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.order-item-brand {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.order-item-price {
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

/* Order Summary Box */
.order-summary-box {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-summary-row.total {
    font-weight: 700;
    color: var(--text);
    font-size: 1.05rem;
    border-top: 1px solid var(--border);
    padding-top: 0.6rem;
    margin-top: 0.3rem;
}

/* ========== Address Management ========== */
.address-form-box {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--accent);
    border-top: 3px solid var(--accent);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.address-form-box h3 {
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.address-item {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.address-item-content {
    flex: 1;
}

.address-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.default-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-weight: 600;
}

.address-item p {
    margin: 0.15rem 0;
    font-size: 0.85rem;
    color: var(--text);
}

.address-item .text-muted {
    color: var(--text-secondary);
}

.address-item-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

/* ========== LINE Notify Connection ========== */
.line-connect-box {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: var(--radius);
    padding: 1rem;
}

.line-connect-box.connected {
    background: #e8f5e9;
    border-color: #a5d6a7;
}

/* ==========================================
   Blog
   ========================================== */
.blog-hero {
    padding: 48px 0 28px;
    text-align: center;
    background: var(--bg);
}

.blog-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary);
    margin-bottom: 6px;
}

.blog-hero p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.blog-listing {
    padding: 36px 0 60px;
    background: var(--bg);
}

.section-blog-home {
    padding: 52px 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.blog-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.blog-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}

.blog-card-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.blog-card-content {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.blog-card-title {
    font-size: 0.82rem;
    font-weight: 560;
    line-height: 1.42;
    margin-bottom: 6px;
    color: var(--text);
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.52;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent);
    transition: var(--transition);
}

.blog-card:hover .blog-card-link {
    color: var(--accent-hover);
}

/* Blog Post */
.blog-post {
    padding: 30px 0 0;
}

.blog-post .container {
    max-width: 1200px;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 28px;
}

.blog-back-link {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    transition: var(--transition);
}

.blog-back-link:hover {
    color: var(--accent-hover);
}

.blog-post-category {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
}

.blog-post-title {
    font-size: 1.72rem;
    font-weight: 800;
    line-height: 1.32;
    color: var(--primary);
    letter-spacing: 0;
    margin-bottom: 12px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.blog-post-hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: var(--shadow);
}

.blog-post-hero-image img {
    width: 100%;
    display: block;
}

.blog-post-body {
    font-size: 0.96rem;
    line-height: 1.82;
    color: var(--text);
}

.blog-post-body h2 {
    font-size: 1.24rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--primary);
    letter-spacing: 0;
}

.blog-post-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 22px 0 9px;
    color: var(--text);
}

.blog-post-body p {
    margin-bottom: 16px;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 0 0 18px 20px;
    list-style: initial;
}

.blog-post-body ol {
    list-style: decimal;
}

.blog-post-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.9rem;
}

.blog-post-body .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: var(--radius);
}
.blog-post-body .table-scroll table {
    margin: 0;
    min-width: 480px;
}

/* Mobile card grid (injected by JS) */
.blog-table-cards {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.blog-table-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}
.blog-table-card__title {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.blog-table-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.88rem;
}
.blog-table-card__label {
    color: var(--text-secondary);
    flex-shrink: 0;
}
.blog-table-card__value {
    color: var(--text);
    font-weight: 500;
    text-align: right;
}

@media (max-width: 768px) {
    .blog-table-cards {
        display: grid;
    }
}

/* Desktop: SVG diagrams fill full container width */
@media (min-width: 769px) {
    .blog-post-body .blog-content-image svg {
        max-width: 100% !important;
        width: 100% !important;
    }
    .blog-post-body [style*="grid-template-columns"] {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    }
}

.blog-post-body strong {
    color: var(--primary);
}

.blog-post-body em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.blog-post-body .blog-content-image {
    margin: 28px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.blog-post-body .blog-content-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    background: var(--bg);
    display: block;
}

.blog-post-body .blog-content-image figcaption {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    padding: 10px 0 0;
    font-style: italic;
}

.blog-post-body .blog-impact-note {
    margin: 34px 0;
    padding: 24px 26px;
    background: linear-gradient(135deg, rgba(45, 93, 63, 0.1), rgba(250, 179, 79, 0.14));
    border: 1px solid rgba(45, 93, 63, 0.16);
    border-radius: var(--radius-lg);
}

.blog-post-body .blog-impact-note h3 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 0.98rem;
}

.blog-post-body .blog-impact-note p {
    margin: 0;
    color: var(--text);
}

.blog-post-body .blog-references {
    margin-top: 40px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent);
}

.blog-post-body .blog-references h3 {
    font-size: 0.96rem;
    margin: 0 0 12px;
    color: var(--accent);
}

.blog-post-body .blog-references ol {
    margin: 0 0 0 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-post-body .blog-references li {
    margin-bottom: 6px;
    line-height: 1.5;
    font-weight: 400;
}

.blog-post-body .blog-references a {
    color: var(--accent);
    font-weight: 400;
    text-decoration: none;
}

.blog-post-body .blog-references a:hover {
    color: var(--accent-hover);
}

.blog-post-cta {
    text-align: center;
    background: linear-gradient(135deg, #1a2e1a 0%, #2d4a2d 100%);
    color: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    margin: 48px 0;
}

.blog-post-cta h3 {
    font-size: 1.14rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-post-cta p {
    opacity: 0.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.blog-post-cta .btn {
    background: var(--white);
    color: var(--primary);
}

.blog-post-cta .btn:hover {
    background: var(--accent-light);
}

.blog-related {
    padding: 52px 0;
    background: var(--bg);
}

@media (max-width: 1024px) {
    .blog-grid,
    .blog-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid,
    .blog-grid-3,
    .blog-grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-post-title {
        font-size: 1.4rem;
    }

    .blog-hero h1 {
        font-size: 1.6rem;
    }

    .section-blog-home {
        padding: 36px 0;
    }

    .blog-post-cta {
        padding: 28px 20px;
    }

    .blog-post-cta h3 {
        font-size: 1.1rem;
    }
}

/* ========== Product Measurements ========== */
.product-measurements {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.product-measurements h3 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.measurement-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.measurement-table thead th {
    background: var(--bg);
    padding: 0.5rem 0.75rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-bottom: 2px solid var(--border-light);
}

.measurement-table thead th:first-child {
    text-align: left;
}

.measurement-table tbody td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    color: var(--text);
}

.measurement-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-secondary);
}

.measurement-table tbody td:nth-child(2),
.measurement-table tbody td:nth-child(3) {
    font-weight: 600;
    color: var(--accent);
}

/* ========== Responsive Member Pages ========== */
@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .order-timeline {
        padding: 1rem 0.25rem;
    }

    .timeline-dot {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .timeline-label {
        font-size: 0.65rem;
    }

    .address-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .address-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .order-card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* ==========================================
   Policy Page
   ========================================== */
.policy-page {
    max-width: 780px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}

.policy-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.policy-updated {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.policy-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
}

.policy-section p {
    line-height: 1.75;
    color: #444;
    margin-bottom: 0.5rem;
}

.policy-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-section ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #444;
}

.policy-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2d6a4f;
}

.policy-highlight {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.policy-badge {
    flex-shrink: 0;
    background: #2d6a4f;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
}

.policy-highlight p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

.policy-contact li::before {
    display: none;
}

.policy-contact li {
    padding-left: 0;
}

@media (max-width: 600px) {
    .policy-title {
        font-size: 1.4rem;
    }

    .policy-highlight {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Product Guarantee Badge */
.product-guarantee {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 1rem 0 0.75rem;
}

.guarantee-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    border-radius: 8px;
}

.guarantee-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.guarantee-text strong {
    font-size: 0.95rem;
    color: #1a1a1a;
}

.guarantee-text span {
    font-size: 0.8rem;
    color: #666;
}

.guarantee-text a {
    color: #2d6a4f;
    text-decoration: underline;
}

.trust-quick-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.trust-quick-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

.trust-quick-item + .trust-quick-item {
    border-top: 1px solid var(--border-light);
}

.trust-quick-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 8px;
}

.trust-quick-item strong {
    display: block;
    font-size: 0.86rem;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.trust-quick-item div span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.trust-quick-item div span a {
    color: var(--accent);
    text-decoration: underline;
}

/* ==========================================
   Mobile UX Fixes — Global
   ========================================== */

/* Fix iOS zoom on inputs — all inputs must be 16px+ */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Hamburger touch target */
    .hamburger {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
    }

    /* Bottom nav label */
    .bottom-nav-label { font-size: 0.65rem; }
    .bottom-nav-badge { font-size: 0.6rem; min-width: 14px; height: 14px; }

    /* Buttons — minimum 44px tap target */
    .btn { min-height: 44px; }
    .btn-lg { min-height: 48px; }

    /* Qty controls */
    .qty-btn { width: 44px !important; height: 44px !important; font-size: 1.1rem; }
    .qty-controls input { height: 44px; }

    /* Remove button in cart */
    .btn-remove {
        padding: 8px 12px;
        min-height: 36px;
        min-width: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Back links */
    .back-link {
        display: inline-flex;
        align-items: center;
        padding: 8px 0;
        min-height: 44px;
        font-size: 0.9rem;
    }

    /* Measurement table scroll */
    .product-measurements { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .measurement-table { width: 100%; }

    /* Review card header wrap */
    .review-card-header { flex-wrap: wrap; gap: 0.25rem; }

    /* Profile sidebar above content — hide avatar, show nav as tab row */
    .profile-sidebar {
        margin-bottom: 0.75rem;
    }
    .profile-avatar {
        display: none;
    }
    .profile-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .profile-nav-link {
        flex: 1 1 auto;
        text-align: center;
        padding: 0.6rem 0.75rem;
        border-radius: 8px;
        font-size: 0.85rem;
    }
    .profile-photo-editor {
        align-items: flex-start;
        flex-direction: column;
    }

    /* Cart — sticky checkout CTA */
    .cart-summary-sticky {
        position: sticky;
        bottom: 70px; /* above bottom nav */
        z-index: 30;
        background: var(--white);
        box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
        border-top: 1px solid var(--border-light);
        padding: 0.875rem 1rem;
        margin: 0 -1rem;
    }
    .cart-summary-sticky .btn-primary { width: 100%; min-height: 48px; font-size: 1rem; }

    /* Checkout sticky CTA */
    .checkout-sticky-cta {
        position: fixed;
        bottom: 70px;
        left: 0; right: 0;
        z-index: 40;
        padding: 0.75rem 1rem;
        background: var(--white);
        box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-light);
    }
    .checkout-sticky-cta .btn { width: 100%; min-height: 48px; font-size: 1rem; }

    /* Order timeline — shrink labels on small screens */
    .timeline-label {
        font-size: 0.62rem !important;
        white-space: normal !important;
        text-align: center;
        word-break: keep-all;
    }
    .timeline-step { flex: 1; min-width: 0; }

    /* Hero product showcase — 2 columns max on mobile */
    .hero-product-showcase {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .showcase-item:nth-child(n+3) { display: none; }

    /* Product grid min size */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    /* Product detail — full width on mobile */
    .product-title { font-size: 1.3rem; }
    .price-current-lg { font-size: 1.5rem; }

    /* Filter bar scroll */
    .filter-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .filter-form { flex-wrap: nowrap; min-width: max-content; }

    /* My orders detail header wrap */
    .order-card-header,
    .order-detail-header { flex-wrap: wrap; gap: 0.5rem; }

    /* Tracking badge */
    .tracking-badge {
        display: inline-block;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 2px 8px;
        font-size: 0.78rem;
        word-break: break-all;
        max-width: 100%;
    }

    /* Notification options spacing */
    .notification-options { display: flex; flex-direction: column; gap: 0.75rem; }

    /* Auth box padding */
    .auth-box { padding: 1.5rem 1.25rem; }
}

/* Very small screens (< 375px) */
@media (max-width: 374px) {
    .product-grid { grid-template-columns: 1fr 1fr !important; gap: 0.5rem; }
    .bottom-nav-label { display: none; }
    .auth-tabs .auth-tab { font-size: 0.85rem; padding: 0.5rem; }
}

/* mobile-only-flex helper */
.mobile-only-flex { display: none; }
@media (max-width: 768px) {
    .mobile-only-flex { display: flex; flex-direction: column; }
}

/* Cart sticky CTA */
.cart-summary-sticky {
    position: fixed;
    bottom: 60px;
    left: 0; right: 0;
    z-index: 40;
    background: var(--white);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
}
.cart-summary-sticky .btn { width: 100%; min-height: 48px; font-size: 1rem; font-weight: 600; }

/* Checkout sticky CTA */
.checkout-sticky-cta {
    position: fixed;
    bottom: 60px;
    left: 0; right: 0;
    z-index: 40;
    background: var(--white);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
}
.checkout-sticky-cta .btn { width: 100%; min-height: 48px; font-size: 1rem; font-weight: 600; }

/* ==========================================
   Search Overlay — Apple Style
   ========================================== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.22s ease, visibility 0.22s;
}

.search-overlay.open {
    pointer-events: all;
    visibility: visible;
    opacity: 1;
}

.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    width: 100%;
    cursor: pointer;
}

.search-overlay-panel {
    position: relative;
    background: var(--bg);
    padding: 18px 0 22px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.14);
    transform: translateY(-6px);
    transition: transform 0.22s ease;
}

.search-overlay.open .search-overlay-panel {
    transform: translateY(0);
}

.search-form { position: relative; }

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 13px;
    padding: 9px 12px;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.search-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.search-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-input-wrap input[type="text"] {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 1rem;
    color: var(--text);
    font-family: var(--font);
    min-width: 0;
}

.search-input-wrap input[type="text"]::placeholder {
    color: var(--text-secondary);
}

.search-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--accent);
    border: none;
    border-radius: 9px;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
    transition: background 0.18s;
}

.search-submit-btn:hover { background: #1f5239; }

.search-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.07);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: background 0.18s;
}

.search-close-btn:hover { background: rgba(0,0,0,0.13); }

.search-quick {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.search-quick-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    padding: 5px 13px;
    border-radius: 99px;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.search-chip:hover {
    background: rgba(45,106,79,0.08);
    border-color: var(--accent);
    color: var(--accent);
}

.search-chip-all { font-weight: 600; }

/* Search results banner shown on index.php when ?q= is active */
.search-result-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(45,106,79,0.07);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 9px 14px;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.search-result-clear {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.search-result-clear:hover { color: var(--text); }

/* Mobile bottom nav: swap browse for search */
@media (max-width: 768px) {
    .search-overlay-panel { padding: 14px 0 18px; }
    .search-input-wrap input[type="text"] { font-size: 0.9rem; }
}

/* ==========================================
   LoopWear V2 iOS Renovation Layer
   ========================================== */
body {
    text-rendering: geometricPrecision;
    padding-bottom: env(safe-area-inset-bottom);
}

button,
input,
textarea,
select {
    font-family: var(--font);
}

.container {
    max-width: 1280px;
}

.site-header-stack {
    width: min(1280px, calc(100% - 36px));
    margin: 12px auto 0;
    padding: 0;
}

.announcement-bar {
    min-height: 46px;
    margin: 0;
    border-radius: 24px 24px 0 0;
    background: var(--primary);
    color: rgba(255,255,255,.94);
}

.ann-desktop {
    gap: 16px;
}

.ann-item-d {
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.26);
    font-size: 13px;
    font-weight: 740;
}

.site-header {
    margin: 12px auto;
    max-width: 1280px;
    border-radius: 24px;
    background: rgba(255,255,255,.76);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 22px rgba(29,29,31,.06);
    backdrop-filter: blur(22px) saturate(1.25);
}

body.customer-shell .site-header-stack {
    width: min(1280px, calc(100% - 36px));
    margin: 12px auto 0;
    padding: 0;
}

body.customer-shell .announcement-bar {
    margin: 0;
    border-radius: 24px 24px 0 0;
}

body.customer-shell .site-header {
    width: 100%;
    max-width: none;
    margin: 12px 0 0;
}

body.customer-shell .auth-page,
body.customer-shell .profile-page {
    width: min(1280px, calc(100% - 36px));
    margin-left: auto;
    margin-right: auto;
}

body.customer-shell .shared-mini-footer {
    width: min(1280px, calc(100% - 36px));
    margin: 12px auto;
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 0 24px;
}

.header-inner .logo {
    justify-self: start;
}

.header-inner .main-nav {
    display: contents;
}

.header-inner .nav-links {
    justify-self: center;
}

.header-inner .nav-actions {
    justify-self: end;
}

.header-inner .header-end {
    display: none;
}

.logo-text {
    font-size: 27px;
    font-weight: 650;
    letter-spacing: 0;
    color: var(--text);
}

.logo-subtitle {
    display: none;
}

.nav-links {
    gap: 14px;
}

.nav-links a {
    padding: 8px 0;
    border-radius: 0;
    color: var(--text-light);
    font-size: 13.8px;
    font-weight: 560;
    letter-spacing: 0;
}

.nav-links a.active,
.nav-links a:hover {
    background: none;
    color: var(--text);
}

.nav-links a.active {
    color: var(--primary);
}

.search-toggle,
.cart-link,
.wishlist-link,
.header-account-link,
.btn-link {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: 0 6px 20px rgba(29,29,31,.08);
    color: var(--text);
    padding: 0;
}

.nav-actions .btn-link {
    width: auto;
    min-width: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.nav-actions .btn-register {
    display: none;
}

.cart-badge,
.mobile-cart-badge,
.bottom-nav-badge,
.wish-badge,
.mobile-wish-badge {
    background: #cf3f3b;
    color: #fff;
}

.wishlist-link,
.mobile-wish-btn {
    position: relative;
}

.wish-badge,
.mobile-wish-badge {
    position: absolute;
    top: -12px;
    right: -2px;
    min-width: 20px;
    width: auto;
    height: 18px;
    padding: 0 4px;
    border: 1.5px solid #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 3px 9px rgba(184,70,63,.26);
}

.cart-link .cart-badge {
    top: -12px;
    right: auto;
    left: calc(100% - 14px);
    min-width: 20px;
    height: 18px;
    padding: 0 4px;
    border: 1.5px solid #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 3px 9px rgba(184,70,63,.26);
}

.wishlist-link {
    text-decoration: none;
}

.wishlist-link:hover {
    color: #b8463f;
    border-color: rgba(184,70,63,.28);
}

.cart-link svg,
.wishlist-link svg,
.header-account-link svg {
    width: 21px;
    height: 21px;
}

.cart-link svg {
    transform: translate(-3px, 2px);
}

.header-logout-link {
    display: none;
}

.header-end .search-toggle {
    display: none;
}

.header-logout-link:hover {
    background: rgba(0,0,0,0.05);
    color: var(--danger);
}

.hero-apple {
    padding: clamp(56px, 8vw, 92px) 0 44px;
    background: transparent;
}

.hero-apple .container {
    min-height: 500px;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    align-items: center;
    gap: 44px;
}

.hero-apple-eyebrow {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.hero-apple-title,
.blog-hero h1,
.page-hero h1,
.auth-box h1,
.cart-page h1,
.checkout-page h1 {
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1.04;
    font-weight: 650;
    letter-spacing: 0;
}

.hero-apple-subtitle {
    max-width: 420px;
    color: rgba(29,29,31,.62);
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.55;
    font-weight: 500;
}

.btn,
.btn-apple-primary,
.btn-apple-secondary,
.view-all-link,
.blog-card-link {
    border-radius: 999px;
    letter-spacing: 0;
}

.btn-primary,
.btn-apple-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 14px 30px rgba(83,107,51,.22);
}

.btn-secondary,
.btn-apple-secondary {
    background: rgba(255,255,255,.62);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.hero-product-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(180px, 1fr));
    gap: 14px;
}

.showcase-item {
    border-radius: 26px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    background: var(--glass);
}

.showcase-item:first-child {
    grid-row: span 2;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.showcase-label {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.42));
    padding: 38px 16px 14px;
}

.section-header {
    align-items: flex-end;
}

.section-header h2,
.related-products h2,
.reviews-header h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.12;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.section-categories,
.section-new-arrivals,
.section-blog-home,
.blog-listing,
.related-products,
.reviews-section,
.cart-page,
.checkout-page,
.auth-page,
.lw-v2-page {
    padding: clamp(46px, 7vw, 82px) 0;
}

.profile-page,
.orders-page,
.addresses-page {
    padding: 20px 0 48px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cat-card,
.product-card,
.blog-card,
.deal-card,
.form-section,
.cart-summary,
.cart-item,
.order-summary-box,
.auth-box,
.profile-card,
.order-card,
.address-card,
.policy-card,
.info-card,
.payment-card,
.howto-card,
.contact-card,
.lw-v2-card {
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,.82);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px) saturate(1.15);
}

.cat-card {
    overflow: hidden;
}

.cat-card-img {
    aspect-ratio: 1 / 1;
    background: #f0f1ee;
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.cat-card-info {
    padding: 14px 16px 16px;
}

.cat-card-info h3 {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    position: relative;
    overflow: hidden;
    transition: transform .24s ease, box-shadow .24s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-image-link {
    display: block;
    aspect-ratio: 3 / 4.45;
    background: #eceee9;
    overflow: hidden;
    border-radius: 22px;
    margin: 8px 8px 0;
}

.product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.product-info {
    padding: 14px 14px 18px;
}

.product-brand {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-name {
    margin: 4px 0 9px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0;
}

.price-current,
.price-current-lg {
    color: #b8463f;
}

.price-original,
.price-original-lg {
    color: rgba(29,29,31,.38);
}

.card-cart-btn {
    right: 16px;
    bottom: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 22px rgba(29,29,31,.10);
}

.product-detail {
    padding: clamp(38px, 6vw, 74px) 0;
}

.product-detail-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .86fr);
    gap: clamp(26px, 5vw, 64px);
}

.gallery-main {
    border-radius: 30px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(255,255,255,.82);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 5;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.gallery-thumbs {
    order: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.thumb {
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border-light);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.product-info-detail {
    border-radius: 30px;
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(255,255,255,.82);
    box-shadow: var(--shadow-sm);
    padding: clamp(22px, 3vw, 34px);
}

.product-title {
    font-size: clamp(24px, 2.7vw, 34px);
    line-height: 1.18;
    font-weight: 650;
    letter-spacing: 0;
    margin: 12px 0 10px;
}

.product-brand-badge,
.product-authentic-badge,
.product-secondhand-badge,
.discount-badge,
.condition-grade,
.stock-tag,
.default-badge,
.blog-card-category {
    border-radius: 999px;
    background: rgba(83,107,51,.10);
    color: var(--primary);
    border: 1px solid rgba(83,107,51,.16);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0;
}

.product-price-detail {
    margin: 12px 0 18px;
}

.product-impact-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}

.product-impact-strip div {
    min-height: 82px;
    display: grid;
    place-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: 18px;
    text-align: center;
    color: var(--primary);
    background: rgba(83,107,51,.08);
    border: 1px solid rgba(83,107,51,.14);
}

.product-impact-strip svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.product-impact-strip strong {
    font-size: 12px;
    line-height: 1.25;
}

.price-current-lg {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: 0;
}

.product-meta,
.trust-quick-grid,
.product-guarantee,
.product-measurements,
.product-description {
    border-radius: 22px;
    background: rgba(255,255,255,.60);
    border: 1px solid var(--border-light);
    padding: 16px;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.meta-item {
    min-height: 52px;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(245,245,247,.8);
}

.add-to-cart-detail {
    border-radius: 24px;
    background: rgba(255,255,255,.58);
    border: 1px solid var(--border-light);
    padding: 16px;
}

.btn-add-cart-detail::before {
    content: "";
    width: 17px;
    height: 17px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: -3px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39A2 2 0 0 0 9.66 16h9.72a2 2 0 0 0 1.98-1.67L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39A2 2 0 0 0 9.66 16h9.72a2 2 0 0 0 1.98-1.67L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cart-layout,
.checkout-layout {
    align-items: start;
    gap: 22px;
}

.cart-page h1,
.checkout-page h1 {
    margin-bottom: 24px;
}

.cart-items {
    display: grid;
    gap: 14px;
}

.cart-item {
    padding: 14px;
    grid-template-columns: 92px minmax(0, 1fr) auto auto auto;
}

.cart-item-image {
    border-radius: 18px;
    overflow: hidden;
    background: #f0f1ee;
    aspect-ratio: 1 / 1.18;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-summary,
.order-summary-box {
    position: sticky;
    top: 116px;
    padding: 22px;
}

.free-shipping-progress,
.free-shipping-achieved,
.shipping-info,
.impact-row,
.coupon-box {
    border-radius: 18px;
    background: rgba(83,107,51,.08);
    border: 1px solid rgba(83,107,51,.14);
}

.free-shipping-badge,
.free-shipping-achieved,
.summary-row .free-shipping-badge {
    color: #1f7a3a;
    font-weight: 800;
}

.form-section {
    padding: 22px;
}

.form-section h2,
.order-summary-box h2,
.cart-summary h2 {
    font-size: 22px;
    font-weight: 650;
    letter-spacing: 0;
}

.form-group label {
    font-size: 13px;
    font-weight: 650;
    color: rgba(29,29,31,.72);
}

input,
textarea,
select {
    border-radius: 16px !important;
    border: 1px solid var(--border-light) !important;
    background: rgba(255,255,255,.72) !important;
    min-height: 46px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.payment-option,
.address-card {
    border-radius: 18px;
    background: rgba(255,255,255,.58);
    border: 1px solid var(--border-light);
}

.blog-hero,
.page-hero {
    padding: clamp(58px, 9vw, 110px) 0 clamp(28px, 5vw, 58px);
    background: transparent;
    text-align: center;
}

.blog-hero p,
.page-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 19px;
}

.blog-grid {
    gap: 18px;
}

.blog-card {
    overflow: hidden;
}

.blog-card-image {
    aspect-ratio: 5 / 4;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.blog-card-content {
    padding: 14px 15px 16px;
}

.blog-card-title {
    font-size: 14px;
    line-height: 1.42;
    font-weight: 560;
    letter-spacing: 0;
}

.auth-page {
    min-height: auto;
}

.auth-box {
    max-width: 520px;
    padding: clamp(24px, 4vw, 40px);
}

.social-login-buttons {
    gap: 10px;
}

.btn-social {
    min-height: 50px;
    border-radius: 18px;
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,.82);
    justify-content: center;
    font-weight: 650;
}

.mobile-bottom-nav {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(22px) saturate(1.25);
    border-top: 1px solid var(--border-light);
}

.bottom-nav-item {
    color: rgba(29,29,31,.62);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 1400;
    width: min(720px, calc(100% - 32px));
    transform: translateX(-50%) translateY(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.cookie-consent.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.cookie-consent-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 44px rgba(29,29,31,.16);
    backdrop-filter: blur(18px) saturate(1.2);
}

.cookie-consent strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.35;
}

.cookie-consent p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.55;
}

.cookie-consent-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cookie-consent-actions a,
.cookie-consent-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.cookie-consent-actions a {
    color: var(--text-primary);
    background: #fff;
}

.cookie-consent-actions button {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 760px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 74px;
        width: auto;
        transform: translateY(14px);
    }

    .cookie-consent.show {
        transform: translateY(0);
    }

    .cookie-consent-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .cookie-consent p {
        display: none;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.lw-v2-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.lw-v2-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 22px;
    align-items: stretch;
}

.lw-v2-media {
    min-height: 300px;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.82);
    box-shadow: var(--shadow-sm);
}

.lw-v2-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lw-v2-kicker {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.howto-phone-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.phone-step-shot {
    position: relative;
    min-height: 330px;
    border-radius: 28px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(29,29,31,.10);
    box-shadow: var(--shadow-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.phone-step-shot img {
    height: 190px;
    object-fit: cover;
    border-radius: 20px;
}

.phone-step-shot strong {
    font-size: 15px;
    line-height: 1.25;
}

.phone-step-shot p {
    font-size: 12px;
    line-height: 1.55;
}

.phone-step-index {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border: 2px solid rgba(255,255,255,.92);
    box-shadow: 0 8px 20px rgba(29,29,31,.16);
    font-size: 14px;
    font-weight: 800;
    pointer-events: none;
}

.phone-step-shot .phone-step-index {
    position: static;
    order: 0;
    transform: none;
    flex: 0 0 34px;
    margin-bottom: 2px;
}

.phone-step-shot strong {
    order: 1;
}

.phone-step-shot img {
    order: 2;
    margin-top: 10px;
}

.phone-step-shot p {
    order: 3;
}

.payment-card,
.howto-card,
.contact-card {
    padding: clamp(20px, 3vw, 30px);
}

.payment-qr-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 22px;
    align-items: center;
}

.payment-real-qr {
    width: min(220px, 100%);
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--white);
    object-fit: contain;
    object-position: center;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}

.payment-qr-card-compact {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 14px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow-sm);
}

.payment-qr-card-compact h2,
.payment-qr-card-compact h3 {
    margin: 4px 0 6px;
    font-size: 1rem;
    line-height: 1.25;
}

.payment-qr-card-compact p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.55;
}

.payment-qr-card-compact .payment-real-qr {
    width: 112px;
    border-radius: 16px;
    padding: 7px;
}

.qr-mock {
    width: 220px;
    aspect-ratio: 1 / 1;
    border-radius: 26px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(#fff, #fff) padding-box,
        repeating-conic-gradient(#1d1d1f 0 25%, #fff 0 50%) border-box;
    background-size: auto, 18px 18px;
    border: 16px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(29,29,31,.08), var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.qr-mock::before,
.qr-mock::after {
    content: "";
    position: absolute;
    width: 54px;
    height: 54px;
    border: 10px solid #1d1d1f;
    background: #fff;
    border-radius: 8px;
}

.qr-mock::before {
    left: 18px;
    top: 18px;
}

.qr-mock::after {
    right: 18px;
    bottom: 18px;
}

.qr-mock span {
    position: relative;
    z-index: 1;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    color: #285c78;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

.payment-total-demo,
.bank-row,
.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--border-light);
}

.payment-total-demo strong {
    color: #b8463f;
    font-size: 28px;
}

.payment-mini-steps {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.payment-mini-steps div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(83,107,51,.08);
}

.payment-product-strip {
    margin-top: 22px;
}

.payment-product {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.payment-product img {
    width: 96px;
    height: 118px;
    object-fit: cover;
    border-radius: 18px;
    background: #f0f1ee;
}

.payment-product span,
.payment-product em {
    display: block;
    color: var(--text-secondary);
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

.payment-product strong {
    display: block;
    margin: 4px 0 8px;
    line-height: 1.32;
}

.howto-notes {
    margin-top: 24px;
}

.howto-card h2,
.contact-card h2 {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0;
}

.contact-line-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(83,107,51,.92), rgba(31,72,61,.86)),
        url("../images/mockups/loopwear-ios-about-banner-v2.png") center / cover;
    color: #fff;
}

.contact-line-card p {
    color: rgba(255,255,255,.78);
}

.line-app {
    display: inline-flex;
    width: max-content;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 8px;
    background: #06C755;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.contact-service-grid {
    margin-top: 22px;
}

.policy-page {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(46px, 7vw, 82px) 0;
}

.policy-title {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 650;
    letter-spacing: 0;
    text-align: center;
}

.policy-updated {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 26px;
}

.policy-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}

.policy-visual {
    min-height: 170px;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,.72);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,.82);
}

.policy-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.policy-visual span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    right: 14px;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

.policy-section {
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,.82);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px) saturate(1.15);
    padding: clamp(20px, 3vw, 28px);
    margin-bottom: 16px;
}

.policy-section h2 {
    font-size: 24px;
    line-height: 1.22;
    letter-spacing: 0;
}

.policy-section ul {
    padding-left: 20px;
    list-style: disc;
}

.cart-impact-grid,
.checkout-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.impact-chip {
    display: grid;
    place-items: center;
    min-height: 92px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(83,107,51,.08);
    border: 1px solid rgba(83,107,51,.14);
    text-align: center;
    color: var(--primary);
}

.impact-chip svg {
    width: 24px;
    height: 24px;
    margin-bottom: 7px;
}

.impact-chip strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
}

.coupon-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin: 14px 0;
}

.coupon-box input {
    min-width: 0;
}

.coupon-box button {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 0;
    background: var(--text);
    color: #fff;
    font-weight: 750;
}

@media (max-width: 1024px) {
    .hero-apple .container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-product-showcase {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .showcase-item {
        min-height: 320px;
    }

    .product-grid,
    .cat-grid,
    .lw-v2-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .howto-phone-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payment-qr-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --mobile-header-stack-height: 92px;
    }

    body {
        padding-top: var(--mobile-header-stack-height);
    }

    .site-header-stack {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0;
    }

    .announcement-bar {
        margin: 0;
        min-height: 30px;
    }

    .site-header {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    body.customer-shell .site-header-stack,
    body.customer-shell .auth-page,
    body.customer-shell .profile-page,
    body.customer-shell .shared-mini-footer {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    body.customer-shell .announcement-bar,
    body.customer-shell .site-header,
    body.customer-shell .shared-mini-footer {
        border-radius: 0;
    }

    body.customer-shell .site-header {
        margin-top: 0;
    }

    .header-inner {
        display: flex;
        grid-template-columns: none;
        min-height: 62px;
        padding: 0 16px;
    }

    .logo-img {
        height: 48px;
    }

    .logo-wordmark {
        min-width: 112px;
        padding: 0;
    }

    .logo-word {
        font-size: 24px;
    }

    .logo-tagline {
        font-size: 9.5px;
        margin-top: 3px;
    }

    .logo-wordmark::after {
        content: none;
    }

    .header-mobile-icons {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-icon-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: inline-grid;
        place-items: center;
        background: #fff;
        border: 1px solid var(--border-light);
        box-shadow: 0 4px 14px rgba(29,29,31,.06);
        color: var(--text);
    }

    .mobile-cart-btn {
        position: relative;
    }

    .mobile-cart-badge,
    .mobile-wish-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        background: #cf3f3b;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        min-width: 17px;
        height: 17px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        padding: 0 4px;
    }

    .header-end .search-toggle {
        display: inline-grid;
        place-items: center;
        width: 38px;
        height: 38px;
        background: #fff;
        border: 1px solid var(--border-light);
        box-shadow: 0 4px 14px rgba(29,29,31,.06);
        color: var(--text);
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid var(--border-light);
        box-shadow: 0 4px 14px rgba(29,29,31,.06);
        padding: 0;
    }

    .header-inner .main-nav {
        display: flex;
    }

    .header-inner .header-end {
        display: flex;
    }

    .announcement-bar {
        border-radius: 0;
    }

    .logo-text {
        font-size: 24px;
    }

    .main-nav {
        top: var(--mobile-header-stack-height);
        height: calc(100dvh - var(--mobile-header-stack-height));
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(22px) saturate(1.2);
        border-left: 1px solid var(--border-light);
        box-shadow: -18px 0 60px rgba(35,39,31,.10);
    }

    .hero-apple {
        padding: 38px 0 28px;
    }

    .hero-apple .container {
        gap: 28px;
    }

    .hero-apple-content {
        text-align: center;
    }

    .hero-apple-subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 18px;
    }

    .hero-apple-title,
    .blog-hero h1,
    .page-hero h1,
    .auth-box h1,
    .cart-page h1,
    .checkout-page h1 {
        font-size: 42px;
    }

    .hero-apple-actions {
        justify-content: center;
    }

    .hero-product-showcase {
        display: flex;
        gap: 10px;
        margin: 0 -20px;
        padding: 0 20px 10px;
        scroll-snap-type: x mandatory;
    }

    .showcase-item {
        flex: 0 0 172px;
        min-height: 324px;
        scroll-snap-align: center;
    }

    .showcase-item:first-child {
        grid-row: auto;
    }

    .section-header {
        display: block;
        text-align: center;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .cat-grid,
    .product-grid,
    .blog-grid,
    .blog-grid-4,
    .lw-v2-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-image-link {
        aspect-ratio: 3 / 4.65;
        margin: 6px 6px 0;
        border-radius: 20px;
    }

    .product-info {
        padding: 12px 10px 44px;
    }

    .product-name {
        font-size: 13.5px;
    }

    .card-cart-btn {
        right: 10px;
        bottom: 10px;
    }

    .product-detail-grid,
    .checkout-layout,
    .cart-layout,
    .lw-v2-two {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        aspect-ratio: 1 / 1.22;
        border-radius: 24px;
    }

    .product-info-detail,
    .form-section,
    .cart-summary,
    .order-summary-box,
    .auth-box {
        border-radius: 24px;
    }

    .product-meta {
        grid-template-columns: 1fr;
    }

    .product-impact-strip {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 78px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .cart-item-quantity,
    .cart-item-total {
        grid-column: 2 / -1;
    }

    .cart-summary,
    .order-summary-box {
        position: static;
    }

    .howto-phone-strip {
        display: flex;
        overflow-x: auto;
        margin: 0 -20px;
        padding: 0 20px 12px;
        scroll-snap-type: x mandatory;
    }

    .phone-step-shot {
        flex: 0 0 78%;
        scroll-snap-align: center;
    }

    .payment-qr-card,
    .payment-bank-card {
        text-align: center;
    }

    .payment-qr-card-compact {
        grid-template-columns: 1fr 92px;
        text-align: left;
        align-items: center;
    }

    .payment-qr-card-compact .payment-real-qr {
        width: 92px;
        border-radius: 14px;
    }

    .qr-mock {
        margin: 0 auto;
    }

    .cart-impact-grid,
    .checkout-impact-grid {
        grid-template-columns: 1fr;
    }

    .policy-visual-grid {
        display: flex;
        overflow-x: auto;
        margin-left: -20px;
        margin-right: -20px;
        padding: 0 20px 12px;
    }

    .policy-visual {
        flex: 0 0 72%;
    }

    .blog-card-image {
        aspect-ratio: 1 / 1;
    }

    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding-bottom: max(6px, env(safe-area-inset-bottom));
    }

    body {
        padding-bottom: 72px;
    }

    .site-header {
        background: rgba(255,255,255,.92);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
    }
}

@media (max-width: 430px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cat-grid,
    .product-grid,
    .blog-grid,
    .blog-grid-4 {
        gap: 10px;
    }

    .product-brand {
        font-size: 10px;
    }

    .price-current {
        font-size: 14px;
    }
}

/* ==========================================
   LINE OA Landing
   ========================================== */
.line-oa-hero {
    padding: 44px 0 30px;
    background:
        linear-gradient(100deg, rgba(245,245,247,.98) 0 48%, rgba(245,245,247,.72) 48% 100%),
        url('../images/mockups/loopwear-reference-hero-flatlay-fast.jpg') center right / cover no-repeat;
}

.line-oa-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: stretch;
}

.line-oa-copy,
.line-oa-coupon-card {
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(29,29,31,.08);
    box-shadow: var(--shadow);
}

.line-oa-copy {
    border-radius: 28px;
    padding: clamp(28px, 5vw, 56px);
}

.line-oa-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent-hover);
    font-weight: 800;
    font-size: .82rem;
}

.line-oa-copy h1 {
    margin: 22px 0 12px;
    max-width: 620px;
    color: var(--text);
    font-size: clamp(2.4rem, 7vw, 5.2rem);
    line-height: .98;
    letter-spacing: 0;
}

.line-oa-copy p {
    max-width: 590px;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.85;
}

.line-oa-copy p strong {
    color: var(--accent-hover);
    font-weight: 900;
}

.line-oa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.line-oa-coupon-card {
    min-height: 360px;
    border-radius: 28px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(6,199,85,.16), transparent 38%),
        #fff;
    text-align: center;
}

.line-oa-coupon-card span {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: .82rem;
    font-weight: 800;
}

.line-oa-coupon-card strong {
    margin-top: 10px;
    color: var(--accent-hover);
    font-size: clamp(3.4rem, 7vw, 5.6rem);
    line-height: 1;
    font-weight: 900;
}

.line-oa-coupon-card p {
    margin-top: 14px;
    color: var(--text);
    font-size: 1.7rem;
    font-weight: 900;
}

.line-oa-coupon-card small {
    margin-top: 8px;
    color: var(--text-secondary);
}

.line-oa-section {
    padding: 34px 0;
}

.line-oa-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.line-oa-tile {
    overflow: hidden;
    min-height: 320px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.line-oa-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.line-oa-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.line-oa-tile span,
.line-oa-tile strong,
.line-oa-tile p {
    display: block;
    margin-left: 20px;
    margin-right: 20px;
}

.line-oa-tile span {
    margin-top: 18px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.line-oa-tile strong {
    margin-top: 5px;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.32;
}

.line-oa-tile p {
    margin-top: 6px;
    margin-bottom: 22px;
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.55;
}

.line-oa-trust {
    padding-bottom: 56px;
}

.line-oa-trust-head {
    max-width: 720px;
    margin-bottom: 18px;
}

.line-oa-trust-head h2 {
    color: var(--text);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
}

.line-oa-trust-head p {
    margin-top: 10px;
    color: var(--text-light);
    line-height: 1.75;
}

.line-oa-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.line-oa-proof-grid div {
    min-height: 126px;
    padding: 20px;
    border-radius: 22px;
    background: var(--accent-light);
    border: 1px solid rgba(83,107,51,.12);
}

.line-oa-proof-grid strong {
    display: block;
    color: var(--accent-hover);
    font-size: 1rem;
    line-height: 1.35;
}

.line-oa-proof-grid span {
    display: block;
    margin-top: 7px;
    color: var(--text-light);
    font-size: .88rem;
    line-height: 1.55;
}

@media (max-width: 860px) {
    .line-oa-hero {
        padding-top: 26px;
        background:
            linear-gradient(180deg, rgba(245,245,247,.88), rgba(245,245,247,.98)),
            url('../images/mockups/loopwear-reference-hero-flatlay-fast.jpg') center / cover no-repeat;
    }

    .line-oa-hero-inner,
    .line-oa-grid,
    .line-oa-proof-grid {
        grid-template-columns: 1fr;
    }

    .line-oa-copy,
    .line-oa-coupon-card {
        border-radius: 22px;
    }

    .line-oa-coupon-card {
        min-height: 250px;
    }

    .line-oa-actions .btn {
        width: 100%;
    }
}

/* ============================
   Mobile Typography — SEO & Readability
   iPhone 8 (375px) → iPhone 17 Pro Max (440px)
   Google: body ≥16px, min 12px floor, line-height ≥1.5
   ============================ */
@media (max-width: 768px) {
    body {
        font-size: clamp(15px, 4vw, 17px);
        line-height: 1.65;
    }

    p, li, td, dd {
        font-size: clamp(14px, 3.8vw, 16px);
        line-height: 1.65;
    }

    h1 { font-size: clamp(22px, 6.2vw, 28px); line-height: 1.15; }
    h2 { font-size: clamp(18px, 5vw, 24px); line-height: 1.2; }
    h3 { font-size: clamp(16px, 4.2vw, 20px); line-height: 1.25; }
    h4 { font-size: clamp(15px, 4vw, 18px); line-height: 1.3; }

    .product-card .product-title {
        font-size: clamp(12.5px, 3.4vw, 14px);
        line-height: 1.3;
    }

    .product-card .product-subtitle,
    .product-card .product-brand {
        font-size: clamp(11.5px, 3.1vw, 13px);
    }

    .product-card .price {
        font-size: clamp(14px, 3.8vw, 16px);
    }

    .product-card .original-price {
        font-size: clamp(11px, 3vw, 13px);
    }

    .btn {
        font-size: clamp(13px, 3.5vw, 15px);
    }

    .section-title,
    .category-title {
        font-size: clamp(18px, 5vw, 22px);
    }

    .section-subtitle {
        font-size: clamp(12px, 3.2vw, 14px);
        line-height: 1.5;
    }

    .mini-footer p,
    .mini-footer a {
        font-size: clamp(13px, 3.5vw, 15px) !important;
        line-height: 1.5;
    }

    .mini-footer strong {
        font-size: clamp(15px, 4vw, 17px) !important;
    }

    input, select, textarea {
        font-size: 16px;
    }

    .cart-item-title {
        font-size: clamp(13px, 3.5vw, 15px);
    }

    .cart-item-meta {
        font-size: clamp(11.5px, 3.1vw, 13px);
    }

    .cart-item-price {
        font-size: clamp(14px, 3.8vw, 16px);
    }

    .order-summary-row {
        font-size: clamp(13px, 3.5vw, 15px);
    }

    .order-summary-total {
        font-size: clamp(17px, 4.5vw, 20px);
    }

    .mobile-menu-link {
        font-size: clamp(15px, 4vw, 17px);
    }

    .bottom-nav-label {
        font-size: clamp(10px, 2.7vw, 11.5px);
    }

    .ann-rotate-item {
        font-size: clamp(11px, 3vw, 13px);
    }
}
