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

:root {
    --primary: #0e7c66;
    --primary-dark: #0a5c4b;
    --accent: #f6a821;
    --bg: #f7f8fa;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --danger: #dc2626;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Hind Siliguri', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* Header */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
    flex-wrap: wrap;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo img { height: 40px; width: auto; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--text); transition: color .15s; }
.nav-links a:hover { color: var(--primary); }
.search-box { display: flex; flex: 1; max-width: 420px; }
.search-box input {
    flex: 1; padding: 9px 14px; border: 1px solid var(--border);
    border-radius: 8px 0 0 8px; font-family: inherit; font-size: 14px;
}
.search-box button {
    background: var(--primary); color: #fff; border: none; padding: 0 16px;
    border-radius: 0 8px 8px 0; cursor: pointer;
}
.cart-btn {
    background: var(--accent); color: #1f2937; padding: 8px 16px;
    border-radius: 999px; font-weight: 600; position: relative; display: inline-flex; gap: 6px; align-items: center;
}
.cart-badge {
    background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; padding: 0 4px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; padding: 56px 0; text-align: center;
}
.hero h1 { font-size: 32px; margin: 0 0 12px; }
.hero p { font-size: 16px; opacity: .92; max-width: 560px; margin: 0 auto 24px; }
.hero .btn { display: inline-block; }

/* Category chips */
.cat-strip { display: flex; gap: 10px; overflow-x: auto; padding: 20px 0; }
.cat-chip {
    background: var(--card); border: 1px solid var(--border); padding: 9px 18px;
    border-radius: 999px; white-space: nowrap; font-weight: 500; font-size: 14px;
}
.cat-chip.active, .cat-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Product grid */
.section-title {
    display: flex; align-items: center; justify-content: space-between;
    margin: 34px 0 16px;
}
.section-title h2 { font-size: 20px; margin: 0; }
.section-title a { color: var(--primary); font-weight: 600; font-size: 14px; }

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

.product-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow .15s, transform .15s;
    display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.product-thumb {
    aspect-ratio: 3/4; background: #eef1f4; overflow: hidden; position: relative;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
    position: absolute; top: 8px; left: 8px; background: var(--primary);
    color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600;
}
.badge.book { background: #6d28d9; }
.product-info { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-info h3 { font-size: 15px; margin: 0; font-weight: 600; line-height: 1.4; }
.product-cat { font-size: 12px; color: var(--muted); }
.price-row { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.price { font-weight: 700; color: var(--primary); font-size: 16px; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 13px; }

.btn {
    background: var(--primary); color: #fff; border: none; padding: 10px 18px;
    border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px;
    font-family: inherit; display: inline-block; text-align: center;
}
.btn:hover { background: var(--primary-dark); }
.btn.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn.btn-accent { background: var(--accent); color: #1f2937; }
.btn.btn-block { width: 100%; }
.btn.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn.btn-danger { background: var(--danger); }

/* Product details */
.product-detail { display: grid; grid-template-columns: 340px 1fr; gap: 32px; padding: 30px 0; }
.product-detail img { border-radius: var(--radius); border: 1px solid var(--border); }
.product-detail h1 { font-size: 24px; margin: 0 0 8px; }
.product-detail .price { font-size: 26px; }
.qty-box { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.qty-box input { width: 60px; padding: 8px; text-align: center; border: 1px solid var(--border); border-radius: 8px; }

/* Cart & checkout */
.cart-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: right; }
.cart-table th:first-child, .cart-table td:first-child { text-align: right; }
.cart-item-info { display: flex; align-items: center; gap: 10px; }
.cart-item-info img { width: 52px; height: 68px; object-fit: cover; border-radius: 6px; }

.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.card-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
    font-family: inherit; font-size: 14px;
}
.pay-methods { display: flex; gap: 12px; margin: 10px 0 16px; }
.pay-method {
    flex: 1; border: 2px solid var(--border); border-radius: 10px; padding: 14px;
    text-align: center; cursor: pointer; font-weight: 600;
}
.pay-method.selected { border-color: var(--primary); background: #f0faf7; color: var(--primary); }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-row.total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.status-pill { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-block; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-paid { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

footer.site-footer { background: #14211d; color: #cbd5e1; margin-top: 60px; padding: 40px 0 20px; }
footer.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer.site-footer h4 { color: #fff; margin: 0 0 12px; }
footer.site-footer p, footer.site-footer a { color: #cbd5e1; font-size: 14px; }
.footer-bottom { text-align: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid #2b3b36; font-size: 13px; color: #94a3b8; }

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

@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
