:root {
    --navy: #0b1120;
    --navy-2: #111a2e;
    --indigo: #2563eb;
    --indigo-dark: #1d4ed8;
    --cyan: #06b6d4;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --panel: #f8fafc;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
    --shadow-lg: 0 12px 40px rgba(15,23,42,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo); }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, background .12s;
    font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.btn-primary:hover { background: var(--indigo-dark); }
.btn-solid { background: var(--cyan); color: #06222a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11,17,32,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { color: #fff; font-weight: 800; font-size: 1.45rem; text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--cyan); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: .92rem;
    transition: color .12s, background .12s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { color: #cbd5e1; text-decoration: none; font-size: .9rem; font-weight: 600; }

.currency-switch { display: flex; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; overflow: hidden; }
.currency-switch a { padding: 6px 12px; font-size: .8rem; font-weight: 600; text-decoration: none; color: #cbd5e1; }
.currency-switch a.active { background: var(--cyan); color: #06222a; }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 68px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--navy);
        padding: 12px 16px 20px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 13px 16px; }
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #0b1120 0%, #14203a 50%, #1e2b4d 100%);
    color: #fff;
    padding: 96px 0 88px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute; right: -120px; top: -120px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,.25), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(6,182,212,.12);
    color: #67e8f9;
    border: 1px solid rgba(6,182,212,.3);
    padding: 6px 14px; border-radius: 999px;
    font-size: .82rem; font-weight: 600; margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.hero h1 { font-size: 3rem; line-height: 1.1; margin: 0 0 18px; letter-spacing: -.03em; }
.hero .accent { background: linear-gradient(90deg, #22d3ee, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.2rem; color: #cbd5e1; margin: 0 0 30px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-points li { color: #cbd5e1; font-size: .9rem; display: flex; align-items: center; gap: 7px; }
.tick { color: #22d3ee; font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--panel); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: 2.1rem; letter-spacing: -.02em; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.category-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 30px 24px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: var(--ink);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--cyan); }
.category-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 14px;
    background: linear-gradient(135deg, #e0f2fe, #ecfeff);
}
.category-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.category-card p { margin: 0; color: var(--muted); font-size: .86rem; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: var(--ink); overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img { height: 170px; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; font-weight: 800; color: #cbd5e1;
    background: linear-gradient(135deg, #eef2f7, #dbe3ec);
}
.product-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.product-card-desc { color: var(--muted); font-size: .86rem; margin: 0 0 14px; flex: 1; }
.product-card-price { font-weight: 800; font-size: 1.15rem; color: var(--indigo); }

/* ---------- Features / trust ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature-card {
    padding: 28px 24px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 14px;
    background: #eef2ff;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--indigo); color: #fff; font-weight: 700; font-size: .9rem;
    margin-bottom: 12px;
}
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .9rem; }

/* ---------- Product page ---------- */
.shop-page, .product-page, .cart-page, .checkout-page { padding: 48px 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--indigo); }

.product-layout { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }
.product-gallery img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.product-main h1 { font-size: 2.1rem; letter-spacing: -.02em; margin: 0 0 10px; }
.product-short { font-size: 1.08rem; color: var(--muted); margin: 0 0 18px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 18px 0; color: #15803d; font-size: .88rem; font-weight: 600; }

.purchase-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--panel); box-shadow: var(--shadow); }
.field-label { display: block; font-weight: 600; margin-bottom: 10px; font-size: .92rem; }
.variant-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.variant-option {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
    cursor: pointer; background: #fff; transition: border-color .12s;
}
.variant-option:hover { border-color: var(--cyan); }
.variant-option input { accent-color: var(--indigo); }
.variant-name { flex: 1; font-weight: 500; }
.variant-price { font-weight: 700; color: var(--indigo); }
.purchase-row { margin-bottom: 16px; }
.purchase-row input { width: 80px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.purchase-actions { display: flex; gap: 12px; }

.delivery-note { margin: 20px 0; padding: 16px 18px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px; font-size: .92rem; }
.required-info { margin: 20px 0; padding: 20px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; }
.required-info h3 { margin-top: 0; }
.muted { color: var(--muted); }
.product-desc { margin: 28px 0; }
.reviews h3 { margin-bottom: 16px; }
.review-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; background: #fff; }
.review-rating { color: #f59e0b; }

/* ---------- Cart ---------- */
.cart-summary { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.cart-total { font-size: 1.15rem; }
.cart-actions { display: flex; gap: 12px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.checkout-section h2 { margin-top: 0; font-size: 1.15rem; letter-spacing: -.01em; }
.checkout-side { position: sticky; top: 88px; }
.checkout-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.checkout-summary h2 { margin-top: 0; font-size: 1.15rem; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px;
    font-size: .95rem; font-family: inherit; background: #fff; transition: border-color .12s, box-shadow .12s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .92rem; }
.summary-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-weight: 800; font-size: 1.1rem; }
.terms { display: block; margin: 16px 0; font-size: .86rem; color: var(--muted); }

/* ---------- Auth / pages ---------- */
.auth-wrap { padding: 64px 0; min-height: 60vh; }
.auth-card {
    max-width: 460px; margin: 0 auto;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 34px; box-shadow: var(--shadow-lg);
}
.auth-card h1 { margin-top: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.auth-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 16px; color: var(--ink); }
.auth-card input { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 1rem; box-sizing: border-box; }
.auth-card input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.auth-card .btn { width: 100%; margin-top: 8px; }
.auth-alt { text-align: center; font-size: .9rem; color: var(--muted); }
.auth-alt a { color: var(--indigo); text-decoration: none; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ---------- Admin login ---------- */
.admin-login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, var(--navy), #1e3a8a); }
.admin-login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 38px; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.admin-login-card h1 { margin-top: 0; text-align: center; letter-spacing: -.02em; }
.admin-login-card label { display: block; font-weight: 600; margin-bottom: 14px; font-size: .9rem; }
.admin-login-card input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; margin-top: 6px; box-sizing: border-box; }
.admin-login-card .btn { width: 100%; margin-top: 10px; }

/* ---------- Tables (reused on account page) ---------- */
.table-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.data-table th { background: #f8fafc; font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbfc; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94a3b8; padding: 64px 0 0; margin-top: 60px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 10px; }
.footer-brand span { color: var(--cyan); }
.footer-col p { color: #64748b; line-height: 1.7; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { display: block; color: #94a3b8; text-decoration: none; padding: 5px 0; transition: color .12s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: #64748b; font-size: .84rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: #94a3b8; text-decoration: none; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a { padding: 9px 15px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; color: var(--ink); background: #fff; }
.pagination a.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.pagination a:hover:not(.active) { border-color: var(--indigo); }

/* ---------- Misc ---------- */
.page-content h1 { font-size: 2rem; letter-spacing: -.02em; }
.page-content { max-width: 760px; line-height: 1.8; }
.empty { padding: 48px; text-align: center; color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-gray { background: #e2e8f0; color: #475569; }
.badge-red { background: #fee2e2; color: #b91c1c; }
