/* ==========================================================================
   Codiiz storefront — premium orange/black, mobile-first, no build step.
   ========================================================================== */

:root {
    --primary: #F97316;
    --primary-dark: #EA580C;
    --primary-soft: #FFF7ED;
    --secondary: #111111;
    --secondary-soft: #1F2937;
    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --text: #1A1A1A;
    --muted: #6B7280;
    --border: #E5E7EB;
    --success: #16A34A;
    --danger: #DC2626;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(17, 17, 17, .08);
    --shadow-lg: 0 12px 40px rgba(17, 17, 17, .14);
    --font: 'Hind Siliguri', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--secondary); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    font: 600 1rem var(--font); cursor: pointer; transition: all .18s ease;
}
.btn-sm { padding: .5rem 1.1rem; font-size: .92rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(249, 115, 22, .35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-dark { background: var(--secondary); color: #fff; }
.btn-dark:hover { background: var(--secondary-soft); }
.btn-outline { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.25rem; color: var(--secondary); }
.brand-logo { height: 40px; width: auto; }
.brand-mark {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border-radius: 10px; font-size: 1.2rem;
}
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav > a { color: var(--text); font-weight: 500; }
.site-nav > a:hover { color: var(--primary-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--secondary); margin: 4px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav > a { padding: .9rem 1.4rem; border-top: 1px solid var(--border); }
    .site-nav > a.btn { margin: .8rem 1rem; }
}

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1000px 400px at 85% -10%, rgba(249, 115, 22, .16), transparent 60%),
        linear-gradient(135deg, var(--secondary) 0%, #241a12 55%, #2b1408 100%);
    color: #fff; padding: 4rem 0 5rem;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-badge {
    display: inline-block; background: rgba(249, 115, 22, .18); color: #FDBA74;
    border: 1px solid rgba(249, 115, 22, .4); padding: .3rem .9rem; border-radius: 999px;
    font-size: .9rem; font-weight: 600; margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 700; }
.hero p.lead { color: #D1D5DB; font-size: 1.1rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-price { margin-top: 1.8rem; display: flex; align-items: baseline; gap: .8rem; }
.hero-price .now { font-size: 2.2rem; font-weight: 700; color: var(--primary); }
.hero-price .was { color: #9CA3AF; text-decoration: line-through; }
.hero-image-wrap {
    border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
    background: var(--primary-soft); aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-placeholder { color: var(--primary-dark); font-weight: 700; text-align: center; padding: 2rem; }

@media (max-width: 820px) {
    .hero { padding: 2.5rem 0 3rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section:nth-of-type(even) { background: var(--surface); }
.section-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .4rem; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.4rem; }

/* ---------- Product ---------- */
.product-card-main {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 2rem;
}
.product-gallery img, .product-image-placeholder { border-radius: 12px; }
.product-image-placeholder {
    background: var(--primary-soft); color: var(--primary-dark);
    display: grid; place-items: center; aspect-ratio: 4 / 3; font-weight: 700; text-align: center; padding: 2rem;
}
.price-row { display: flex; align-items: baseline; gap: .8rem; margin: .8rem 0; }
.price-now { font-size: 2rem; font-weight: 700; color: var(--primary-dark); }
.price-was { color: var(--muted); text-decoration: line-through; }
.badge-discount { background: #FEF2F2; color: var(--danger); font-weight: 700; padding: .15rem .6rem; border-radius: 999px; font-size: .9rem; }
.stock-in { color: var(--success); font-weight: 600; }
.stock-out { color: var(--danger); font-weight: 600; }
.feature-list { margin: 1rem 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .3rem 0; }
.feature-list li::before { content: '✔'; color: var(--success); font-weight: 700; }
.product-desc { white-space: pre-line; color: var(--secondary-soft); }

@media (max-width: 820px) {
    .product-card-main { grid-template-columns: 1fr; padding: 1.2rem; gap: 1.4rem; }
}

/* ---------- Additional product cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.product-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card .thumb { aspect-ratio: 16 / 10; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary-dark); font-weight: 700; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card .body h3 { font-size: 1.1rem; margin: 0; }
.product-card .body p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.product-card .price-row { margin: .3rem 0; }
.price-sm { font-size: 1.25rem; font-weight: 700; color: var(--primary-dark); }

/* ---------- Benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.3rem; }
.benefit {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.6rem 1.3rem; text-align: center; box-shadow: var(--shadow);
}
.benefit .icon {
    display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
    background: var(--primary-soft); color: var(--primary-dark); margin-bottom: .9rem;
}
.benefit h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.benefit p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.testimonial blockquote { margin: 0 0 .8rem; color: var(--secondary-soft); }
.testimonial .who { font-weight: 700; color: var(--primary-dark); }
.stars { color: #F59E0B; letter-spacing: 2px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: 1.1rem 1.3rem; font: 600 1rem var(--font); color: var(--text);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--primary); transition: .2s; }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 1.3rem 1.1rem; color: var(--muted); }
.faq-a.open { display: block; }

/* ---------- Checkout ---------- */
.checkout-wrap {
    display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.6rem; align-items: start;
}
.checkout-form, .order-summary {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.8rem;
}
.order-summary { position: sticky; top: 90px; }
@media (max-width: 820px) {
    .checkout-wrap { grid-template-columns: 1fr; }
    .order-summary { position: static; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field .req { color: var(--danger); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field input[type="number"], .field input[type="password"], .field select,
.field textarea {
    width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--border); border-radius: 10px;
    font: inherit; background: #fff; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .85rem; margin-top: .25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.radio-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-pill {
    display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--border);
    padding: .55rem 1rem; border-radius: 999px; cursor: pointer; background: #fff;
}
.radio-pill:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.radio-pill input { accent-color: var(--primary); }

.summary-line { display: flex; justify-content: space-between; padding: .45rem 0; }
.summary-line.total { border-top: 2px solid var(--secondary); margin-top: .5rem; padding-top: .8rem; font-size: 1.2rem; font-weight: 700; }
.summary-note { background: var(--primary-soft); border-radius: 10px; padding: .8rem 1rem; font-size: .9rem; white-space: pre-line; margin-top: 1rem; }

/* ---------- Alerts ---------- */
.alert { padding: .9rem 1.2rem; border-radius: 10px; margin: 1rem 0; font-weight: 500; }
.alert-error { background: #FEF2F2; color: var(--danger); border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: var(--success); border: 1px solid #BBF7D0; }

/* ---------- Success page ---------- */
.success-card {
    max-width: 640px; margin: 3rem auto; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 2.5rem; text-align: center;
}
.success-check {
    width: 72px; height: 72px; margin: 0 auto 1rem; display: grid; place-items: center;
    background: #F0FDF4; color: var(--success); border-radius: 50%; font-size: 2.2rem;
}
.order-ref { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: 1.3rem; padding: .6rem 1.2rem; border-radius: 10px; display: inline-block; margin: .6rem 0 1.4rem; }

/* ---------- Policy page ---------- */
.policy-page { max-width: 780px; margin: 2.5rem auto; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 2.4rem; }
.policy-body { white-space: pre-line; color: var(--secondary-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary); color: #D1D5DB; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-brand { color: #fff; margin-bottom: .8rem; }
.site-footer h4 { color: #fff; margin-bottom: .8rem; }
.site-footer a { display: block; color: #9CA3AF; padding: .25rem 0; }
.site-footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #2d2d2d; padding: 1.2rem 0; font-size: .9rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

:focus-visible { outline: 3px solid rgba(249, 115, 22, .6); outline-offset: 2px; }
