/* ============================================================
   SAREE HOUSE — Design System
   Palette: silk maroon / zari gold / raw-silk cream
   ============================================================ */
:root {
    --maroon:       #7B1E3B;
    --maroon-dark:  #5C142B;
    --gold:         #B8934A;
    --gold-light:   #E4CE9C;
    --cream:        #FBF7F0;
    --ink:          #2B1A1F;
    --muted:        #8A7A7E;
    --line:         #EAE0D3;
    --white:        #FFFFFF;
    --green:        #2E7D4F;
    --red:          #C0392B;
    --radius:       14px;
    --shadow:       0 6px 24px rgba(43, 26, 31, .08);
    --shadow-lg:    0 14px 40px rgba(43, 26, 31, .14);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Jost', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    margin: 0;
    font-size: 15.5px;
    line-height: 1.6;
}

h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-dark); }
img { max-width: 100%; }

/* ---------- zari border signature ---------- */
.zari-top { border-top: 3px solid var(--gold); position: relative; }
.zari-rule {
    height: 3px; width: 72px; margin: 10px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-title { text-align: center; margin-bottom: 34px; }
.section-title .eyebrow {
    text-transform: uppercase; letter-spacing: .22em; font-size: 12px;
    color: var(--gold); font-weight: 600;
}
.section-title h2 { font-size: 34px; margin: 4px 0 0; }

/* ---------- buttons ---------- */
.btn-maroon {
    background: var(--maroon); color: #fff !important; border: none;
    padding: 11px 26px; border-radius: 50px; font-weight: 500;
    letter-spacing: .03em; transition: .25s; display: inline-block;
}
.btn-maroon:hover { background: var(--maroon-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold-outline {
    background: transparent; color: var(--maroon) !important;
    border: 1.5px solid var(--gold); padding: 10px 24px; border-radius: 50px;
    font-weight: 500; transition: .25s; display: inline-block;
}
.btn-gold-outline:hover { background: var(--gold); color: #fff !important; }
.btn-sm-pill { padding: 7px 18px; font-size: 13.5px; }

/* ---------- top strip ---------- */
.top-strip {
    background: var(--maroon-dark); color: var(--gold-light);
    font-size: 13px; letter-spacing: .06em; text-align: center; padding: 7px 12px;
}

/* ---------- navbar ---------- */
.site-header {
    background: var(--white); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 1020; box-shadow: 0 2px 14px rgba(43,26,31,.05);
}
.site-header .navbar-brand { display: flex; align-items: center; gap: 12px; }
.brand-logo-img {
    width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--gold);
}
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--maroon); line-height: 1.1; }
.brand-tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

.nav-search { position: relative; max-width: 480px; width: 100%; }
.nav-search input {
    width: 100%; border: 1.5px solid var(--line); border-radius: 50px;
    padding: 10px 48px 10px 20px; background: var(--cream); font-family: var(--font-body);
    transition: .2s;
}
.nav-search input:focus { outline: none; border-color: var(--gold); background: #fff; }
.nav-search button {
    position: absolute; right: 5px; top: 5px; bottom: 5px; width: 38px;
    border-radius: 50%; border: none; background: var(--maroon); color: #fff; cursor: pointer;
}

.icon-link { position: relative; color: var(--ink) !important; font-size: 20px; padding: 6px 10px; }
.icon-link:hover { color: var(--maroon) !important; }
.icon-badge {
    position: absolute; top: -2px; right: 0; background: var(--gold); color: #fff;
    border-radius: 50%; font-size: 10.5px; min-width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.main-nav-links a {
    color: var(--ink); font-weight: 500; padding: 12px 16px; display: inline-block;
    font-size: 14.5px; letter-spacing: .04em; text-transform: uppercase;
}
.main-nav-links a.active, .main-nav-links a:hover { color: var(--maroon); }

/* ---------- hero banner slider ---------- */
.hero-slider .carousel-item img { width: 100%; height: 440px; object-fit: cover; }
@media (max-width: 767px) { .hero-slider .carousel-item img { height: 220px; } }
.hero-slider .carousel-indicators [data-bs-target] { background-color: var(--gold); }

/* ---------- category chips ---------- */
.cat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    text-align: center; padding: 22px 12px; transition: .25s; display: block; height: 100%;
}
.cat-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card img { width: 86px; height: 86px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold-light); margin-bottom: 12px; }
.cat-card .cat-ph {
    width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--maroon), var(--gold));
    display: flex; align-items: center; justify-content: center; color: #fff;
    font-family: var(--font-display); font-size: 30px;
}
.cat-card h6 { margin: 0; font-size: 15px; }

/* ---------- product card ---------- */
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: .25s; height: 100%; display: flex; flex-direction: column;
    position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gold-light); }
.product-card .img-box { position: relative; overflow: hidden; aspect-ratio: 3/4; background: #F3ECE1; }
.product-card .img-box img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.product-card:hover .img-box img { transform: scale(1.06); }

.badge-new {
    position: absolute; top: 12px; left: 12px; background: var(--maroon); color: #fff;
    font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 50px; z-index: 2;
}
.badge-stock {
    position: absolute; top: 12px; right: 12px; background: var(--gold); color: #fff;
    font-size: 11px; padding: 4px 10px; border-radius: 50px; z-index: 2; font-weight: 600;
}
.badge-out {
    position: absolute; top: 12px; right: 12px; background: var(--red); color: #fff;
    font-size: 11px; padding: 4px 10px; border-radius: 50px; z-index: 2; font-weight: 600;
}
.card-actions {
    position: absolute; bottom: 12px; right: 12px; display: flex; flex-direction: column;
    gap: 8px; opacity: 0; transform: translateX(10px); transition: .3s; z-index: 3;
}
.product-card:hover .card-actions { opacity: 1; transform: translateX(0); }
.card-actions a, .card-actions button {
    width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; color: var(--ink);
    box-shadow: var(--shadow); cursor: pointer; transition: .2s; font-size: 15px;
}
.card-actions a:hover, .card-actions button:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }

.product-card .card-body-x { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card .p-cat { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.product-card .p-name {
    font-family: var(--font-display); font-size: 17px; margin: 4px 0 8px; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .p-price { font-size: 20px; font-weight: 600; color: var(--maroon); margin-top: auto; }
.p-colors { display: flex; gap: 5px; margin: 6px 0 10px; }
.p-colors span { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--line); display: inline-block; }

/* ---------- filter sidebar ---------- */
.filter-side {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; position: sticky; top: 96px;
}
.filter-block { border-bottom: 1px dashed var(--line); padding: 16px 0; }
.filter-block:last-child { border-bottom: none; padding-bottom: 4px; }
.filter-block h6 {
    font-family: var(--font-body); text-transform: uppercase; letter-spacing: .14em;
    font-size: 12.5px; color: var(--maroon); font-weight: 700; margin-bottom: 12px;
}
.filter-check { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.filter-check input { accent-color: var(--maroon); width: 16px; height: 16px; cursor: pointer; }
.filter-check .cnt { margin-left: auto; font-size: 12px; color: var(--muted); }
.price-inputs { display: flex; gap: 10px; align-items: center; }
.price-inputs input {
    width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px;
    font-size: 14px; background: var(--cream);
}
.price-inputs input:focus { outline: none; border-color: var(--gold); }

.shop-toolbar {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px;
}
.shop-toolbar select {
    border: 1.5px solid var(--line); border-radius: 50px; padding: 8px 36px 8px 16px;
    background: var(--cream); font-family: var(--font-body); font-size: 14px; cursor: pointer;
}
.result-count { color: var(--muted); font-size: 14px; }
.active-filter-tag {
    background: var(--maroon); color: #fff; font-size: 12.5px; border-radius: 50px;
    padding: 4px 12px; display: inline-flex; align-items: center; gap: 6px;
}
.active-filter-tag a { color: var(--gold-light); font-weight: 700; }

/* ---------- pagination ---------- */
.paginate { display: flex; gap: 8px; justify-content: center; margin: 34px 0 10px; flex-wrap: wrap; }
.paginate a, .paginate span {
    min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    font-weight: 500; padding: 0 12px;
}
.paginate a:hover { border-color: var(--gold); color: var(--maroon); }
.paginate .current { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* ---------- product view ---------- */
.pv-gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pv-main-img { aspect-ratio: 3/4; background: #F3ECE1; }
.pv-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pv-thumbs { display: flex; gap: 10px; padding: 12px; flex-wrap: wrap; }
.pv-thumbs img {
    width: 66px; height: 84px; object-fit: cover; border-radius: 8px; cursor: pointer;
    border: 2px solid transparent; transition: .2s;
}
.pv-thumbs img.active, .pv-thumbs img:hover { border-color: var(--gold); }
.pv-info h1 { font-size: 32px; margin: 6px 0 8px; }
.pv-price { font-size: 30px; font-weight: 700; color: var(--maroon); }
.pv-meta { color: var(--muted); font-size: 14px; }
.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch {
    width: 58px; height: 74px; border-radius: 10px; overflow: hidden; cursor: pointer;
    border: 2px solid var(--line); position: relative; transition: .2s;
}
.color-swatch img { width: 100%; height: 100%; object-fit: cover; }
.color-swatch.selected { border-color: var(--maroon); box-shadow: 0 0 0 2px var(--gold-light); }
.color-swatch .cname {
    position: absolute; bottom: 0; left: 0; right: 0; background: rgba(43,26,31,.72);
    color: #fff; font-size: 9.5px; text-align: center; padding: 2px 1px; text-transform: capitalize;
}
.qty-box { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 50px; overflow: hidden; background: #fff; }
.qty-box button { width: 42px; height: 44px; border: none; background: transparent; font-size: 18px; cursor: pointer; color: var(--maroon); }
.qty-box input { width: 52px; text-align: center; border: none; font-size: 16px; font-weight: 600; background: transparent; }
.qty-box input:focus { outline: none; }
.trust-strip { display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 18px; }
.trust-strip div { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.trust-strip i { color: var(--gold); font-size: 17px; }

/* ---------- cart / tables ---------- */
.cart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row { display: flex; gap: 16px; padding: 18px; border-bottom: 1px dashed var(--line); align-items: center; }
.cart-row:last-child { border-bottom: none; }
.cart-row img { width: 84px; height: 106px; object-fit: cover; border-radius: 10px; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.summary-card .line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary-card .total { border-top: 2px solid var(--gold-light); margin-top: 8px; padding-top: 14px; font-size: 19px; font-weight: 700; color: var(--maroon); }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-card label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.form-card .form-control, .form-card .form-select {
    border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px;
    background: var(--cream); font-family: var(--font-body);
}
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--gold); box-shadow: none; background: #fff; }
.auth-wrap { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 40px 15px; }
.auth-card { max-width: 460px; width: 100%; }
.auth-card .auth-head { text-align: center; margin-bottom: 26px; }
.pay-option {
    border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer;
    display: flex; align-items: center; gap: 12px; transition: .2s; background: var(--cream);
}
.pay-option:hover, .pay-option.selected { border-color: var(--maroon); background: #fff; }
.pay-option input { accent-color: var(--maroon); width: 18px; height: 18px; }

/* ---------- order status ---------- */
.status-pill { padding: 5px 14px; border-radius: 50px; font-size: 12.5px; font-weight: 600; text-transform: capitalize; }
.st-place_order { background: #FFF4DE; color: #A47B1E; }
.st-shipped, .st-dispatch { background: #E3EDFF; color: #2C55A8; }
.st-delivered, .st-complete { background: #E3F5E9; color: var(--green); }
.st-cancel, .st-cancelled { background: #FCE5E1; color: var(--red); }

/* ---------- footer ---------- */
.site-footer { background: var(--maroon-dark); color: #E9D9C8; margin-top: 60px; }
.site-footer .zari-line { height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); }
.site-footer h6 { color: var(--gold-light); font-family: var(--font-body); text-transform: uppercase; letter-spacing: .16em; font-size: 13px; margin-bottom: 16px; }
.site-footer a { color: #E9D9C8; display: block; padding: 4px 0; font-size: 14.5px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(228,206,156,.2); padding: 16px 0; font-size: 13px; text-align: center; color: #C9B39B; }

/* ---------- toast ---------- */
.sh-toast {
    position: fixed; bottom: 26px; right: 26px; background: var(--ink); color: #fff;
    padding: 13px 22px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 2000;
    display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(16px);
    transition: .3s; pointer-events: none; font-size: 14.5px;
}
.sh-toast.show { opacity: 1; transform: translateY(0); }
.sh-toast i { color: var(--gold); }

/* ---------- empty state ---------- */
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state i { font-size: 56px; color: var(--gold-light); }
.empty-state h4 { margin: 18px 0 8px; }
.empty-state p { color: var(--muted); }

/* ---------- breadcrumb band ---------- */
.page-band {
    background: linear-gradient(120deg, var(--maroon-dark), var(--maroon));
    color: #fff; padding: 36px 0; position: relative; overflow: hidden;
}
.page-band::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.page-band h1 { color: #fff; font-size: 30px; margin: 0; }
.page-band .crumbs { font-size: 13.5px; color: var(--gold-light); letter-spacing: .06em; }
.page-band .crumbs a { color: #fff; }

@media (max-width: 991px) {
    .filter-side { position: static; margin-bottom: 22px; }
    .pv-info h1 { font-size: 26px; }
}
