/* =========================================================
   Main Stylesheet — Blue / Mint / Pink Palette
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    /* ── Core Brand ── */
    --blue:        #2563eb;   /* primary CTA, buttons */
    --blue-dark:   #1d4ed8;   /* hover state */
    --blue-soft:   #eff6ff;   /* light tint bg */

    --mint:        #10b981;   /* success, stock, positive */
    --mint-dark:   #059669;
    --mint-soft:   #ecfdf5;

    --pink:        #ec4899;   /* badges, accents, avatar */
    --pink-dark:   #db2777;
    --pink-soft:   #fdf2f8;

    /* ── Neutrals ── */
    --red:         #ef4444;   /* errors, delete */
    --dark:        #1e293b;   /* headings, body text */
    --gray:        #64748b;   /* secondary text */
    --gray-light:  #f1f5f9;   /* card bg, input bg */
    --white:       #ffffff;
    --bg:          #ffffff;   /* page background */

    /* ── Shadows ── */
    --shadow:      0 2px 12px rgba(37, 99, 235, 0.07);
    --shadow-lg:   0 8px 32px rgba(37, 99, 235, 0.13);

    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Hind Siliguri', sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.7;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

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

/* ──────────────── Buttons ──────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.97rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    letter-spacing: 0.01em;
}
.btn-primary  { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.30); }
.btn-primary:hover  { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37,99,235,.38); }
.btn-outline  { background: transparent; border: 2px solid var(--blue); color: var(--blue); }
.btn-outline:hover  { background: var(--blue); color: #fff; }
.btn-full     { width: 100%; }
.btn-secondary { background: var(--dark); color: #fff; }
.btn-secondary:hover { background: #0f172a; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ──────────────── Header ──────────────── */
.site-header {
    background: #fff;
    box-shadow: 0 2px 16px rgba(37,99,235,.09);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 16px;
}
.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    white-space: nowrap;
}
.main-nav {
    display: flex;
    gap: 22px;
    flex: 1;
    justify-content: center;
}
.main-nav a {
    font-weight: 600;
    color: var(--dark);
    position: relative;
    padding: 4px 2px;
    font-size: 0.95rem;
}
.main-nav a:hover { color: var(--blue); }
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.phone-link {
    font-weight: 700;
    color: var(--mint-dark);
    white-space: nowrap;
}
.cart-link {
    position: relative;
    font-size: 1.3rem;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--pink);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 860px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 10px 20px 18px;
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .phone-link { display: none; }
}

/* ──────────────── Hero ──────────────── */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #fdf2f8 60%, #ecfdf5 100%);
    padding: 56px 0 80px;
    overflow: hidden;
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 280px; }
.hero-badge {
    display: inline-block;
    background: var(--pink-soft);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pink-dark);
    margin-bottom: 16px;
    border: 1.5px solid #fbcfe8;
}
.hero-text h1 {
    font-size: 2.3rem;
    line-height: 1.35;
    margin: 0 0 16px;
    color: var(--dark);
    font-weight: 700;
}
.hero-text h1 em {
    color: var(--blue);
    font-style: normal;
}
.hero-text p {
    color: var(--gray);
    margin-bottom: 28px;
    max-width: 480px;
    font-size: 1.02rem;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { flex: 1; min-width: 280px; text-align: center; }
.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 380px;
    margin: 0 auto;
}

/* ──────────────── Stats Strip ──────────────── */
.stats-strip {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    background: #fff;
    padding: 30px 20px;
    margin-top: -40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}
.stat-item { text-align: center; min-width: 100px; }
.stat-item .num { font-size: 1.9rem; font-weight: 700; color: var(--blue); }
.stat-item .label { font-size: 0.85rem; color: var(--gray); font-weight: 500; }

/* ──────────────── Section Headers ──────────────── */
.section { padding: 72px 0; }
.section-tag {
    text-align: center;
    color: var(--pink);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}
.section-title {
    text-align: center;
    font-size: 1.85rem;
    margin: 0 0 12px;
    color: var(--dark);
    font-weight: 700;
}
.section-desc {
    text-align: center;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto 42px;
    font-size: 1rem;
}

/* ──────────────── Product Grid ──────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e8f0fe;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card .img-wrap {
    position: relative;
    aspect-ratio: 1/1;
    background: var(--gray-light);
    overflow: hidden;
}
.product-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--pink);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}
.product-badge.out-of-stock { background: var(--red); color: #fff; }
.product-info { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-info h3 { margin: 0; font-size: 1.05rem; color: var(--dark); font-weight: 700; }
.product-info .desc {
    color: var(--gray);
    font-size: 0.88rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-now { font-size: 1.2rem; font-weight: 700; color: var(--blue); }
.price-old { font-size: 0.85rem; color: var(--gray); text-decoration: line-through; }
.product-info .btn { margin-top: 10px; }

/* ──────────────── Features ──────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #fff;
    padding: 28px 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--blue-soft);
    transition: border-color 0.2s;
}
.feature-card:hover { border-top-color: var(--blue); }
.feature-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--dark); font-weight: 700; }
.feature-card p { color: var(--gray); font-size: 0.92rem; margin: 0; }

/* ──────────────── Testimonials ──────────────── */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: #fff;
    padding: 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--pink-soft);
}
.stars { color: #f59e0b; margin-bottom: 10px; font-size: 1.05rem; }
.testimonial-card p.quote { color: var(--gray); margin-bottom: 16px; font-size: 0.95rem; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.author-name { font-weight: 700; font-size: 0.92rem; color: var(--dark); }
.author-loc { font-size: 0.78rem; color: var(--gray); }

/* ──────────────── Forms / Cards ──────────────── */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #dbeafe;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.97rem;
    background: var(--blue-soft);
    color: var(--dark);
    transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }

/* ──────────────── Alerts ──────────────── */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}
.alert-success { background: var(--mint-soft); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: var(--blue-soft); color: #1e40af; border: 1px solid #bfdbfe; }

/* ──────────────── Cart Page ──────────────── */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th, .cart-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--gray-light); color: var(--dark); }
.cart-table th { background: var(--blue-soft); font-size: 0.88rem; font-weight: 700; color: var(--blue-dark); }
.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control button {
    width: 30px; height: 30px;
    border-radius: 6px;
    border: 1.5px solid #dbeafe;
    background: var(--blue-soft);
    cursor: pointer;
    font-weight: 700;
    color: var(--blue);
}
.qty-control input {
    width: 42px;
    text-align: center;
    border: 1.5px solid #dbeafe;
    border-radius: 6px;
    padding: 4px;
    font-family: inherit;
    color: var(--dark);
}
.remove-link { color: var(--red); font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.cart-summary {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    max-width: 360px;
    margin-left: auto;
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--gray); font-size: 0.97rem; }
.summary-row.total { font-weight: 700; font-size: 1.18rem; color: var(--dark); border-top: 1.5px solid var(--gray-light); padding-top: 12px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }

/* ──────────────── Product Detail ──────────────── */
.product-detail { display: flex; gap: 40px; flex-wrap: wrap; }
.pd-gallery { flex: 1; min-width: 280px; }
.pd-main-img {
    aspect-ratio: 1/1;
    background: var(--gray-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumbs img {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.pd-thumbs img.active { border-color: var(--blue); }
.pd-info { flex: 1; min-width: 280px; }
.pd-info h1 { font-size: 1.65rem; margin: 0 0 10px; color: var(--dark); font-weight: 700; }
.pd-price { font-size: 1.75rem; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.pd-price .old { font-size: 1rem; color: var(--gray); text-decoration: line-through; margin-left: 10px; font-weight: 400; }
.pd-stock { margin-bottom: 18px; font-weight: 700; font-size: 0.97rem; }
.pd-stock.in  { color: var(--mint-dark); }
.pd-stock.out { color: var(--red); }
.pd-desc { color: var(--gray); margin-bottom: 24px; white-space: pre-line; font-size: 0.97rem; }
.pd-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ──────────────── Breadcrumb ──────────────── */
.breadcrumb { padding: 18px 0; font-size: 0.9rem; color: var(--gray); }
.breadcrumb a { color: var(--blue); font-weight: 600; }

/* ──────────────── Footer ──────────────── */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 52px 0 0;
    margin-top: 60px;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-bottom: 30px; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h3 { color: #fff; margin: 0 0 12px; font-size: 1.1rem; }
.footer-col h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; font-weight: 700; }
.footer-col p  { font-size: 0.9rem; line-height: 1.75; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
    text-align: center;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 0.83rem;
    color: #64748b;
}

/* ──────────────── Page Header ──────────────── */
.page-header {
    background: linear-gradient(135deg, var(--blue-soft) 0%, var(--pink-soft) 100%);
    padding: 44px 0;
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 1.5px solid #e0e7ff;
}
.page-header h1 { margin: 0 0 8px; font-size: 1.85rem; color: var(--dark); font-weight: 700; }
.page-header p  { color: var(--gray); margin: 0; font-size: 1rem; }

/* ──────────────── Tracking ──────────────── */
.tracking-result { margin-top: 20px; }
.tracking-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--gray-light);
}
.tracking-step:last-child { border-bottom: none; }
.tracking-step .dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--gray-light);
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
}
.tracking-step.done .dot {
    background: var(--mint);
    border-color: var(--mint);
    box-shadow: 0 0 0 3px var(--mint-soft);
}
.tracking-step .label { font-weight: 600; color: var(--gray); font-size: 0.97rem; }
.tracking-step.done .label { color: var(--dark); }
.tracking-step .time { font-size: 0.8rem; color: var(--gray); margin-left: auto; }

/* ──────────────── Responsive ──────────────── */
@media (max-width: 600px) {
    .hero-text h1  { font-size: 1.75rem; }
    .stats-strip   { margin-top: -20px; gap: 14px; padding: 22px 14px; }
    .stat-item .num { font-size: 1.45rem; }
    .section       { padding: 46px 0; }
    .product-detail { gap: 24px; }
    .cart-summary  { max-width: 100%; }
}

/* ──────────────── Improvements ──────────────── */

/* Active nav link */
.main-nav a.active {
    color: var(--blue);
}
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 9999;
    transform: translateY(80px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), opacity 0.3s;
    pointer-events: none;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.success { background: var(--mint-dark); }
.toast.error   { background: var(--red); }

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px; height: 44px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
    z-index: 900;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--blue-dark); }

/* Lazy image fade-in */
img.lazy { opacity: 0; transition: opacity 0.4s; }
img.lazy.loaded { opacity: 1; }

/* Product card hover lift */
.product-card {
    transition: transform 0.22s, box-shadow 0.22s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Better focus visibility */
:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Back-to-top and toast avoid each other on small screens */
@media (max-width: 480px) {
    .toast { right: 12px; left: 12px; bottom: 16px; }
    .scroll-top { bottom: 72px; }
}

/* WhatsApp / order-now floating button */
.whatsapp-fab {
    position: fixed;
    bottom: 80px;
    right: 24px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    z-index: 800;
    text-decoration: none;
    display: flex; align-items: center; gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.5); }
@media (max-width: 480px) { .whatsapp-fab { bottom: 90px; right: 12px; padding: 10px 14px; font-size: 0.82rem; } }
