/* ─────────────────────────────────────────────────────────────────────────────
   Rowland Technology — Main Stylesheet
   Palette drawn from logo: dark navy + electric blue accent + white
   ───────────────────────────────────────────────────────────────────────────── */

:root {
    --bg-primary:    #0b1623;
    --bg-secondary:  #111e2e;
    --bg-card:       #16253a;
    --bg-card-hover: #1c2f47;
    --bg-surface:    #1e3350;

    --accent:        #4a9eff;
    --accent-bright: #6cb8ff;
    --accent-dark:   #2d7fd4;
    --accent-glow:   rgba(74, 158, 255, 0.15);

    --text-primary:  #f0f4f8;
    --text-secondary:#8fa8c0;
    --text-muted:    #5c7a96;
    --text-link:     #4a9eff;

    --border:        rgba(74, 158, 255, 0.12);
    --border-bright: rgba(74, 158, 255, 0.3);

    --success:       #2ecc71;
    --warning:       #f39c12;
    --error:         #e74c3c;
    --success-bg:    rgba(46, 204, 113, 0.1);
    --error-bg:      rgba(231, 76, 60, 0.1);

    --radius-sm:     6px;
    --radius:        10px;
    --radius-lg:     16px;
    --radius-xl:     24px;

    --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
    --shadow:        0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.5);
    --shadow-accent: 0 4px 24px rgba(74,158,255,0.2);

    --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading:  'Space Grotesk', 'Inter', sans-serif;

    --header-h:      72px;
    --transition:    0.2s ease;
}

/* ── Reset & Base ──────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img { max-width: 100%; display: block; }

a { color: var(--text-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-bright); }

ul { list-style: none; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* ── Utilities ─────────────────────────────────────────────────────────────── */

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100%; left: 8px; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); z-index: 1000; transition: top var(--transition); }
.skip-link:focus { top: 8px; }

.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
    background: var(--accent-bright);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(74,158,255,0.35);
}

.btn--secondary {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--border-bright);
}
.btn--secondary:hover {
    background: var(--accent-glow);
    color: var(--accent-bright);
    border-color: var(--accent);
}

.btn--ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.btn--danger {
    background: transparent;
    color: var(--error);
    border: 1px solid rgba(231,76,60,0.3);
}
.btn--danger:hover { background: var(--error-bg); }

.btn--sm { padding: 8px 16px; font-size: 0.875rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Header ────────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(11, 22, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
}

.site-logo img { height: 44px; width: auto; }
.site-logo:hover { opacity: 0.85; }

.main-nav { flex: 1; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 6px 14px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-link--dropdown { cursor: pointer; }
.dropdown-arrow { font-size: 0.7em; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.dropdown-menu li a:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.dropdown-count {
    font-size: 0.78rem;
    background: var(--accent-glow);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid var(--border-bright);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; }

.header-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}
.header-search:focus-within { border-color: var(--accent); }

.search-input {
    background: transparent;
    border: none;
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-body);
    width: 200px;
    outline: none;
}
.search-input::placeholder { color: var(--text-muted); }

.search-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
    display: flex;
    align-items: center;
}
.search-btn:hover { color: var(--accent); }

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}
.cart-btn:hover { background: var(--accent-glow); color: var(--accent); border-color: var(--border-bright); }

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ── Flash Messages ─────────────────────────────────────────────────────────── */

.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 500;
}
.flash--success { background: var(--success-bg); color: var(--success); border-bottom: 1px solid rgba(46,204,113,0.2); }
.flash--error   { background: var(--error-bg);   color: var(--error);   border-bottom: 1px solid rgba(231,76,60,0.2); }
.flash__icon { font-size: 1rem; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse at center, rgba(74,158,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-glow);
    border: 1px solid var(--border-bright);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title span { color: var(--accent); }

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

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

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--border-bright), transparent 60%);
    z-index: -1;
}

.hero-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.hero-product-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 16px;
    overflow: hidden;
}

.hero-product-img img { width: 100%; height: 100%; object-fit: cover; }

.hero-product-name { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.hero-product-price { color: var(--accent); font-weight: 700; font-size: 1.1rem; }

/* ── Section Headers ──────────────────────────────────────────────────────── */

.section-header { margin-bottom: 40px; }
.section-header.text-center { text-align: center; }
.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-subtitle { color: var(--text-secondary); margin-top: 10px; font-size: 1rem; max-width: 520px; }
.section-header.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Product Cards ────────────────────────────────────────────────────────── */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-bright);
}

.product-card__image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--bg-secondary);
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img { transform: scale(1.04); }

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    letter-spacing: -1px;
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge--featured { background: var(--accent); color: #fff; }
.badge--low-stock { background: rgba(243,156,18,0.15); color: var(--warning); border: 1px solid rgba(243,156,18,0.3); }
.badge--out-of-stock { background: rgba(231,76,60,0.15); color: var(--error); border: 1px solid rgba(231,76,60,0.3); }

.product-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }

.product-card__category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}

.product-card__name {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 8px;
    flex: 1;
}

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

.product-card__desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.product-card__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.product-card__price small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    font-family: var(--font-body);
    display: block;
    line-height: 1;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}
.add-to-cart-btn:hover { background: var(--accent-bright); transform: scale(1.08); }
.add-to-cart-btn:disabled { background: var(--bg-surface); color: var(--text-muted); cursor: not-allowed; transform: none; }

/* ── Category Cards ───────────────────────────────────────────────────────── */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 18px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    border-color: var(--border-bright);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.category-card__icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-card__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.category-card__count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── Shop Page ────────────────────────────────────────────────────────────── */

.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 48px 0;
}

.shop-sidebar { position: sticky; top: calc(var(--header-h) + 24px); height: fit-content; }

.sidebar-section { margin-bottom: 32px; }

.sidebar-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.sidebar-list { display: flex; flex-direction: column; gap: 4px; }

.sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.sidebar-list a:hover,
.sidebar-list a.active {
    background: var(--accent-glow);
    color: var(--accent);
}

.sidebar-list a .count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

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

.shop-sort {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    cursor: pointer;
    outline: none;
}

.shop-sort:focus { border-color: var(--accent); }

/* ── Product Detail ───────────────────────────────────────────────────────── */

.product-detail { padding: 48px 0; }

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

.product-images { position: sticky; top: calc(var(--header-h) + 24px); }

.product-main-image {
    aspect-ratio: 4/3;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }

.product-info__category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 10px;
}

.product-info__name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
}

.product-info__sku { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; }

.product-info__price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.product-info__shipping {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.product-info__shipping .free { color: var(--success); font-weight: 600; }

.product-info__desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-indicator.in-stock { color: var(--success); }
.stock-indicator.in-stock .stock-dot { background: var(--success); box-shadow: 0 0 6px var(--success); }
.stock-indicator.low-stock { color: var(--warning); }
.stock-indicator.low-stock .stock-dot { background: var(--warning); }
.stock-indicator.out-of-stock { color: var(--error); }
.stock-indicator.out-of-stock .stock-dot { background: var(--error); }

.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: fit-content;
    overflow: hidden;
    margin-bottom: 20px;
}

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

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

.qty-input {
    width: 56px;
    height: 44px;
    background: var(--bg-secondary);
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    text-align: center;
    outline: none;
}

.add-to-cart-form { display: flex; gap: 12px; flex-wrap: wrap; }

.trust-badges {
    display: flex;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: 24px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.trust-badge svg { color: var(--accent); }

/* ── Cart ─────────────────────────────────────────────────────────────────── */

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    padding: 48px 0;
    align-items: start;
}

.cart-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 1fr 100px 120px 40px;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr 100px 120px 40px;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: rgba(255,255,255,0.02); }

.cart-item__product { display: flex; gap: 14px; align-items: center; }

.cart-item__image {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-muted);
}

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

.cart-item__name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.cart-item__name a { color: inherit; }
.cart-item__unit-price { font-size: 0.8rem; color: var(--text-muted); }

.cart-item__qty { display: flex; align-items: center; gap: 8px; }

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-control button {
    width: 28px;
    height: 28px;
    background: var(--bg-card-hover);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    transition: background var(--transition);
}

.qty-control button:hover { background: var(--bg-surface); }

.qty-control input {
    width: 36px;
    height: 28px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text-primary);
    text-align: center;
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
}

.cart-item__total { font-size: 1rem; font-weight: 700; color: var(--text-primary); }

.cart-item__remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color var(--transition);
    display: flex;
    align-items: center;
}

.cart-item__remove:hover { color: var(--error); }

/* Cart summary */
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.cart-summary__title { font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.summary-row.total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
}

.summary-row.free-shipping { color: var(--success); font-weight: 500; }

.summary-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    justify-content: center;
    margin-top: 14px;
}

/* ── Checkout ─────────────────────────────────────────────────────────────── */

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

.checkout-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.checkout-section h2 {
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section h2 .step-num {
    width: 26px;
    height: 26px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-input,
.form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    outline: none;
    width: 100%;
}

.form-input:focus,
.form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,158,255,0.12); }

.form-input::placeholder { color: var(--text-muted); }

.form-select { cursor: pointer; }
.form-select option { background: var(--bg-card); }

/* Order summary sidebar */
.order-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.order-summary__header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-summary__header h3 { font-size: 0.95rem; }

.order-summary__items { padding: 20px 24px; border-bottom: 1px solid var(--border); }

.order-summary__item {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.order-summary__item:last-child { margin-bottom: 0; }

.order-item-img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

.order-item-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-item-name { font-size: 0.85rem; font-weight: 500; flex: 1; }
.order-item-price { font-size: 0.9rem; font-weight: 700; }

.order-summary__totals { padding: 20px 24px; }

/* ── Success Page ─────────────────────────────────────────────────────────── */

.success-page { padding: 80px 0; text-align: center; }

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(46,204,113,0.1);
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
}

.success-title { font-size: 2rem; margin-bottom: 12px; }
.success-subtitle { color: var(--text-secondary); font-size: 1rem; max-width: 480px; margin: 0 auto 36px; }

/* ── Page Header ──────────────────────────────────────────────────────────── */

.page-header {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, var(--bg-secondary), transparent);
}

.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.page-header .breadcrumb { font-size: 0.83rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; }

/* ── Section Spacing ──────────────────────────────────────────────────────── */

.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }
.section--dark { background: var(--bg-secondary); }

/* ── Features / Why Us ────────────────────────────────────────────────────── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition);
}

.feature-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 16px;
}

.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Empty State ──────────────────────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted);
}

.empty-state svg { opacity: 0.3; margin-bottom: 16px; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 8px; }

/* ── Divider ──────────────────────────────────────────────────────────────── */

.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand .footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
    max-width: 260px;
}

.footer-logo img { height: 44px; }

.footer-social { display: flex; gap: 10px; }

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.social-link:hover { background: var(--accent-glow); border-color: var(--border-bright); color: var(--accent); }

.footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--text-primary); }

.footer-contact p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }
.footer-contact a { color: var(--text-link); }

.payment-badges {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.payment-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

.footer-secure {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Admin ────────────────────────────────────────────────────────────────── */

.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - var(--header-h)); }

.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
}

.admin-nav { display: flex; flex-direction: column; gap: 4px; }

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--accent-glow);
    color: var(--accent);
}

.admin-content { padding: 32px; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

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

.status-paid       { background: rgba(46,204,113,0.15); color: var(--success); }
.status-pending    { background: rgba(243,156,18,0.15); color: var(--warning); }
.status-shipped    { background: rgba(74,158,255,0.15); color: var(--accent); }
.status-cancelled  { background: rgba(231,76,60,0.15);  color: var(--error); }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-contact { grid-column: 1 / -1; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .product-images { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .checkout-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .main-nav { display: none; }
    .main-nav.mobile-open {
        display: flex;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 24px;
        z-index: 99;
        overflow-y: auto;
        border-top: 1px solid var(--border);
    }

    .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
    .nav-link { padding: 12px 16px; font-size: 1rem; width: 100%; }
    .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--bg-secondary); margin-top: 4px; border-radius: var(--radius-sm); }

    .header-search { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero { padding: 48px 0 40px; }
    .hero-stats { gap: 20px; }

    .section { padding: 48px 0; }

    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .product-card__body { padding: 12px; }
    .product-card__price { font-size: 1rem; }

    .cart-table-header { display: none; }
    .cart-item { grid-template-columns: 1fr auto; gap: 10px; }
    .cart-item__qty { display: none; }
    .cart-item__total { font-size: 0.9rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }

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

    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Animations ───────────────────────────────────────────────────────────── */

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

.animate-in { animation: fadeInUp 0.5s ease forwards; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading { animation: pulse 1.5s ease infinite; }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-surface); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Selection ────────────────────────────────────────────────────────────── */

::selection { background: rgba(74,158,255,0.25); color: var(--text-primary); }
