:root {
    --brand: #1f7a3a;
    --brand-dark: #165c2b;
    --accent: #f5a623;
    --sale: #e53935;
    --bg: #f4f6f3;
    --text: #222;
}

body {
    font-family: 'Hind Siliguri', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-bottom: 64px;
}

@media (min-width: 992px) {
    body { padding-bottom: 0; }
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

.btn-brand { background: var(--brand); color: #fff; border: 0; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #111; border: 0; font-weight: 600; }
.btn-accent:hover { background: #e0941a; color: #111; }
.text-brand { color: var(--brand) !important; }

/* Notice ticker */
.notice-bar { background: var(--brand-dark); color: #fff; overflow: hidden; white-space: nowrap; font-size: .9rem; }
.notice-track { display: inline-block; padding: 4px 0 4px 100%; animation: ticker 40s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* Header */
.site-header { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.site-header a { color: #fff; }
.brand img { max-height: 48px; max-width: 170px; object-fit: contain; }
.brand span { font-weight: 700; font-size: 1.4rem; }
.search-box { background: #fff; border-radius: 6px; overflow: hidden; max-width: 560px; }
.search-box .form-control { border: 0; box-shadow: none; }
.search-box .btn { background: var(--accent); border-radius: 0; color: #111; }
.cart-count { position: absolute; top: -6px; right: -10px; background: var(--accent); color: #111; border-radius: 10px; font-size: .7rem; padding: 0 6px; font-weight: 700; }
.category-nav { background: var(--brand-dark); }
.category-nav .nav-link { color: #fff; padding: .55rem .9rem; font-weight: 500; }
.category-nav .nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.category-nav .dropdown:hover .dropdown-menu { display: block; margin-top: 0; }
.category-nav .dropdown-item { color: #222; }

/* Sections */
.section-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--brand); margin-bottom: 1rem; }
.section-title h2 { font-size: 1.25rem; font-weight: 700; background: var(--brand); color: #fff; padding: .4rem 1rem; margin: 0; border-radius: 6px 6px 0 0; }
.section-title a { font-size: .9rem; color: var(--brand); font-weight: 600; }

.hero-carousel img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: 8px; }
.ad-banner img { width: 100%; border-radius: 8px; }

.category-tile { background: #fff; border-radius: 8px; padding: .75rem .5rem; text-align: center; height: 100%; transition: box-shadow .2s; }
.category-tile:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.category-tile img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; margin-bottom: .4rem; }
.category-tile span { display: block; font-size: .9rem; font-weight: 600; line-height: 1.2; }

/* Product card */
.product-card { background: #fff; border-radius: 8px; overflow: hidden; height: 100%; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s; }
.product-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.product-card .thumb { aspect-ratio: 1; background: #fafafa; display: block; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: .6rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-card .name { font-size: .95rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.price { color: var(--brand); font-weight: 700; font-size: 1.05rem; }
.price del { color: #999; font-weight: 400; font-size: .85em; margin-right: .3rem; }
.sale-badge { position: absolute; top: 8px; left: 8px; background: var(--sale); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; z-index: 2; }
.product-card .order-btn { margin-top: auto; }

/* Product detail */
.gallery-main { background: #fff; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: var(--brand); }
.qty-control { display: inline-flex; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; }
.qty-control button { border: 0; background: #eee; width: 36px; }
.qty-control input { width: 54px; border: 0; text-align: center; }
.rich-content img { max-width: 100%; height: auto; }
.rating i { color: var(--accent); }

.card-box { background: #fff; border-radius: 8px; padding: 1rem; }

/* Checkout payment options */
.payment-option { display: flex; align-items: center; gap: .75rem; border: 1px solid #dcdcdc; border-radius: 8px; padding: .6rem .8rem; margin-bottom: .5rem; cursor: pointer; }
.payment-option:has(input:checked) { border-color: var(--brand); background: #f1f8f3; box-shadow: 0 0 0 1px var(--brand); }
.payment-option .form-check-input { margin: 0; flex-shrink: 0; }
.payment-logo { width: 64px; height: 27px; flex-shrink: 0; }
.free-badge { position: absolute; top: 8px; right: 8px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; z-index: 2; }
.free-progress { background: #fff8e6; border: 1px dashed var(--accent); border-radius: 8px; padding: .6rem .8rem; }

/* Customer account */
.account-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #eef2ee; flex-shrink: 0; }
.account-avatar-lg { width: 88px; height: 88px; }
.header-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.6); }
.min-w-0 { min-width: 0; }
.account-sidebar { position: sticky; top: 140px; }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .75rem; border-radius: 6px; font-weight: 500; color: #333; background: none; border: 0; text-align: left; }
.account-nav a:hover, .account-nav button:hover { background: #f1f6f2; color: var(--brand); }
.account-nav a.active { background: #e7f3ea; color: var(--brand); font-weight: 600; }
.account-nav button { color: #c62828; }
.account-title { font-size: 1.15rem; font-weight: 700; padding-bottom: .75rem; margin-bottom: 1rem; border-bottom: 1px solid #e5e5e5; }
.account-table th { width: 32%; font-weight: 500; color: #666; }
.account-stat { display: flex; align-items: center; gap: .8rem; background: #f4f8f5; border-radius: 8px; padding: .8rem 1rem; }
.account-stat i { font-size: 1.6rem; color: var(--brand); }
@media (max-width: 991.98px) { .account-sidebar { position: static; } }

/* Footer */
.site-footer { background: #10391d; color: #d6e5d9; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: .8rem; }
.site-footer a { color: #d6e5d9; }
.site-footer a:hover { color: #fff; }
.footer-logo { max-height: 50px; }
.footer-bottom { background: #0b2914; }

.whatsapp-float { position: fixed; right: 16px; bottom: 80px; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; z-index: 1040; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.whatsapp-float:hover { color: #fff; }
@media (min-width: 992px) { .whatsapp-float { bottom: 24px; } }

.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; display: flex; justify-content: space-around; border-top: 1px solid #ddd; z-index: 1035; height: 58px; }
.mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .75rem; color: #333; flex: 1; }
.mobile-bottom-nav i { font-size: 1.25rem; }
