/* Nokshi Kantha Theme */
:root {
    --maroon: #8B1E3F;
    --maroon-dark: #6B1530;
    --green: #1B4332;
    --green-light: #2D6A4F;
    --cream: #FAF6F0;
    --cream-dark: #F1E9DC;
    --gold: #D4A017;
    --text: #2B2B2B;
    --footer-bg: #1B4332;
    --footer-text: #E8F0EA;
    --footer-title: #D4A017;
}

* { box-sizing: border-box; }

body {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    background-color: var(--cream);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

/* Top header */
.top-header {
    background: var(--green);
    color: #fff;
    font-size: 14px;
}
.top-header a { color: #fff; }
.top-header a:hover { color: var(--gold); }
.live-datetime { font-weight: 500; }

/* Navbar */
.main-navbar {
    background: var(--maroon) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.main-navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: all 0.25s ease;
    position: relative;
}
.main-navbar .nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: var(--gold) !important;
    transform: translateY(-1px);
}
.main-navbar .nav-link.active {
    background: rgba(255,255,255,0.2);
    color: var(--gold) !important;
    font-weight: 600;
}
.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}
.brand-logo { font-size: 1.6rem; }
.cart-badge {
    font-size: 0.7rem;
    position: absolute;
    top: 2px;
    right: -4px;
}

/* Hero carousel */
.hero-slide {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero-slide .overlay {
    background: linear-gradient(90deg, rgba(27,67,50,0.75), rgba(139,30,63,0.45));
    width: 100%;
    padding: 60px 0;
}
.hero-title { font-size: 2.4rem; font-weight: 700; color: #fff; }
.hero-sub { color: #f5e6d3; font-size: 1.1rem; }

/* Section titles */
.section-title {
    color: var(--maroon);
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}
.section-title.left::after { left: 0; transform: none; }

/* Cards */
.product-card, .info-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(139,30,63,0.15);
}
.product-card img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}
.product-card .card-body { padding: 16px; }
.product-title { color: var(--maroon); font-weight: 600; font-size: 1.05rem; }
.product-price { color: var(--green); font-weight: 700; font-size: 1.2rem; }
.product-size { color: #666; font-size: 0.9rem; }

/* Buttons */
.btn-maroon {
    background: var(--maroon);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-maroon:hover { background: var(--maroon-dark); color: #fff; }
.btn-green {
    background: var(--green);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-green:hover { background: var(--green-light); color: #fff; }
.btn-gold {
    background: var(--gold);
    color: #333;
    border: none;
    font-weight: 600;
}
.btn-gold:hover { background: #b88912; color: #fff; }

.btn-outline-maroon {
    color: var(--maroon);
    border: 2px solid var(--maroon);
    background: transparent;
}
.btn-outline-maroon:hover {
    background: var(--maroon);
    color: #fff;
}

/* Category cards */
.cat-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(139,30,63,0.12); }
.cat-icon { font-size: 3rem; color: var(--maroon); margin-bottom: 12px; }
.cat-card small { font-size: 0.8rem; display: block; margin-top: 4px; color: var(--green); }

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-title { color: var(--footer-title); font-weight: 700; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: #fff;
}
.social-icon:hover { background: var(--gold); color: #333; }
.pay-badge {
    background: #fff; color: var(--green); padding: 4px 10px;
    border-radius: 4px; font-size: 0.8rem; font-weight: 600;
}
.footer-bottom { background: var(--maroon-dark); color: #fff; }

/* Breadcrumb */
.breadcrumb-section {
    background: var(--cream-dark);
    padding: 16px 0;
}
.breadcrumb-section .breadcrumb { margin: 0; }

/* Notice box */
.notice-box {
    background: linear-gradient(135deg, var(--maroon), var(--green));
    color: #fff;
    border-radius: 12px;
    padding: 24px;
}
.notice-box a { color: var(--gold); }
.notice-box a:hover { color: #fff; }

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 0.2rem rgba(139,30,63,0.15);
}
.form-label { font-weight: 600; color: var(--green); }
.alert-info { background: #E8F0EA; border-color: var(--green-light); color: var(--green); }
.alert-info .bi { color: var(--green); }

/* Color swatches */
.swatch {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid #ddd; cursor: pointer; display: inline-block;
    margin: 4px; transition: transform 0.2s;
}
.swatch:hover { transform: scale(1.15); }
.swatch.selected { border: 3px solid var(--maroon); box-shadow: 0 0 0 2px #fff inset; }
.swatch-group label { font-size: 0.85rem; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--maroon); }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item::before {
    content: ''; position: absolute; left: -24px; top: 6px;
    width: 12px; height: 12px; border-radius: 50%; background: var(--gold);
    border: 2px solid var(--maroon);
}
.timeline-item strong { color: var(--maroon); }

/* Price estimator box */
.estimator-box {
    background: var(--cream-dark);
    border: 2px dashed var(--maroon);
    border-radius: 12px;
    padding: 20px;
}
.estimator-box strong { color: var(--green); }

/* Quick contact */
.quick-contact {
    background: var(--maroon);
    padding: 8px 0;
    position: sticky;
    top: 60px;
}
.quick-contact a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: background 0.2s;
}
.quick-contact a:hover { background: rgba(255,255,255,0.15); }
.quick-contact .bi { font-size: 1.3rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 1.7rem; }
    .hero-slide { min-height: 320px; }
    .product-card img { height: 180px; }
    .quick-contact { top: 130px; }
}
@media (max-width: 576px) {
    .product-card img { height: 160px; }
    .cat-card { padding: 20px 12px; }
    .cat-icon { font-size: 2rem; }
}
@media (max-width: 576px) {
    .top-header { font-size: 12px; }
}

/* ------------------------------------------------------------------ *
 * Additional UI: trust strip, product cards, checkout, WhatsApp, etc.
 * ------------------------------------------------------------------ */
a { color: var(--maroon); }
a:hover { color: var(--maroon-dark); }

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid rgba(212,160,23,0.6);
    outline-offset: 2px;
}

.trust-strip {
    background: var(--cream-dark);
    color: var(--green);
    font-weight: 600;
    border-bottom: 1px solid #e6dccb;
}
.trust-strip .bi { color: var(--maroon); font-size: 1.1rem; }

.heritage-img { width: 100%; height: 360px; object-fit: cover; }

.product-img-link { display: block; overflow: hidden; }
.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.product-card:hover .product-img { transform: scale(1.04); }
.product-title {
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-size { color: #5c5c5c; font-size: 0.88rem; }
.product-size .bi { color: var(--gold); }

.shop-group-title {
    color: var(--green);
    font-weight: 700;
    margin: 40px 0 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cream-dark);
}

.cart-thumb {
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid #eee;
}
.cart-qty { width: 72px; }
.cart-table thead th { color: var(--green); white-space: nowrap; }

.summary-card { position: sticky; top: 90px; }

.payment-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fff;
    cursor: pointer;
}
.payment-option:hover { border-color: var(--maroon); background: #fffaf7; }
.payment-option input[type="radio"] { margin-top: 4px; flex: 0 0 auto; }

.thread-colors .form-check { margin-right: 10px; }

.craft-img { height: 220px; object-fit: cover; width: 100%; }
.credit-img { height: 190px; object-fit: cover; width: 100%; }

.footer-links .bi { color: var(--gold); }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: var(--gold); }

.lang-switch {
    border: 1px solid rgba(255,255,255,0.45);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.lang-switch:hover { background: rgba(255,255,255,0.15); color: #fff !important; }

/* Floating WhatsApp + back to top */
.floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 1049;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    color: #fff !important;
}
.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 90px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--maroon);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1048;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--maroon-dark); }

/* Tables inside cards on small screens */
.table-responsive { border-radius: 8px; }

@media (max-width: 768px) {
    .heritage-img { height: 260px; }
    .summary-card { position: static; }
    .floating-whatsapp { width: 52px; height: 52px; font-size: 1.55rem; right: 14px; bottom: 14px; }
    .back-to-top { right: 19px; bottom: 80px; }
}

