/* ===== Textile Cart theme: maroon + temple gold on ivory ===== */
:root {
    --maroon: #7b1e2b;
    --maroon-dark: #5a1520;
    --gold: #c9a227;
    --gold-soft: #f3e6bf;
    --ivory: #fbf7f2;
    --ink: #2b2024;
    --line: #eadfd3;
    --radius: 14px;
}

html { font-size: 15px; }
body { font-family: 'Mulish', system-ui, sans-serif; color: var(--ink); background: var(--ivory); }
h1, h2, h3, .brand, .page-title, .product-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; }
a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-dark); }
.tiny { font-size: .75rem; letter-spacing: .04em; }
.text-maroon { color: var(--maroon) !important; }

/* Buttons */
.btn-maroon { background: var(--maroon); color: #fff; border: none; }
.btn-maroon:hover, .btn-maroon:focus { background: var(--maroon-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #2b1a00; border: none; font-weight: 700; }
.btn-gold:hover { background: #b38d17; color: #2b1a00; }
.btn-size { min-width: 52px; border-radius: 8px; }
.btn-check:checked + .btn-size { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* Header */
.topbar { background: var(--maroon-dark); color: var(--gold-soft); padding: 6px 0; letter-spacing: .03em; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.brand { color: var(--maroon) !important; font-size: 1.8rem; }
.brand-mark { color: var(--gold); }
.site-header .nav-link { color: var(--ink); font-weight: 600; }
.site-header .nav-link:hover { color: var(--maroon); }
.search-box { position: relative; }
.search-box .form-control { border-radius: 30px; padding-right: 40px; min-width: 230px; background: var(--ivory); }
.search-box .btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.cart-link { position: relative; }
.cart-count { position: absolute; top: 2px; right: -4px; background: var(--gold); color: #2b1a00; border-radius: 10px; font-size: .7rem; font-weight: 700; padding: 1px 6px; }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.5); } }

/* Hero slider: maroon panel with copy on the left, photo on the right fading into it */
.hero-slider {
    background:
        radial-gradient(circle at 20% 30%, rgba(201,162,39,.22), transparent 45%),
        repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px),
        linear-gradient(120deg, var(--maroon-dark), var(--maroon));
    color: #fff;
}
.hero-slide { position: relative; min-height: 540px; overflow: hidden; }
.hero-slide .container { display: flex; align-items: center; min-height: 540px; z-index: 2; }
.hero-copy { flex: 0 1 560px; min-width: 0; padding: 48px 0 64px; }
.hero-copy .display-4 { line-height: 1.08; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-copy .lead { opacity: .88; }
.hero-slider .eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; overflow: hidden; }
.hero-media { /* fade the photo out on the left so it melts into the maroon panel */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 16%, #000 38%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 16%, #000 38%);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43,10,15,.35), transparent 30%); }
.carousel-item.active .hero-img { animation: hero-zoom 7s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inset {
    position: absolute; z-index: 3; left: calc(50% - 90px); bottom: 48px; width: 150px; aspect-ratio: 3/4; object-fit: cover;
    border-radius: 12px; border: 4px solid #fff; box-shadow: 0 14px 34px rgba(0,0,0,.35); transform: rotate(-4deg);
}
.hero-slider .carousel-indicators { z-index: 4; margin-bottom: 18px; }
.hero-slider .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 2px; background-color: var(--gold-soft); }
.hero-slider .carousel-indicators .active { background-color: var(--gold); width: 44px; }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { z-index: 4; width: 6%; }
.hero-slider .carousel-control-prev:focus-visible, .hero-slider .carousel-control-next:focus-visible { outline: 2px solid var(--gold); }
@media (max-width: 991px) {
    /* phones/tablets: photo fills the slide, copy sits on a dark fade at the bottom */
    .hero-slide, .hero-slide .container { min-height: 520px; }
    .hero-slide .container { align-items: flex-end; }
    .hero-media { width: 100%; -webkit-mask-image: none; mask-image: none; }
    .hero-media::after { background: linear-gradient(0deg, rgba(43,10,15,.92) 0%, rgba(90,21,32,.6) 45%, rgba(90,21,32,.05) 75%); }
    .hero-copy { padding: 0 0 56px; }
    .hero-copy .display-4 { font-size: 2.3rem; }
    .hero-copy .lead { font-size: 1rem; }
    .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .carousel-item.active .hero-img { animation: none; }
}
.section-head h2 { font-size: 2.1rem; margin-bottom: 1rem; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 6px; }
.link-more { font-weight: 700; margin-bottom: 1rem; }

/* Category tiles */
.cat-tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 18px; text-align: center; height: 100%; transition: .2s; color: var(--ink); }
.cat-tile:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(123,30,43,.08); }
.cat-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.cat-icon { font-size: 2.4rem; color: var(--maroon); }
.cat-name { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; margin-top: 6px; }
.cat-desc { font-size: .8rem; color: #7a6c66; }

/* Product cards */
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: .2s; }
.product-card:hover { box-shadow: 0 12px 28px rgba(43,32,36,.1); }
.product-img-wrap { position: relative; display: block; aspect-ratio: 3/4; background: #f3ece4; overflow: hidden; }
.product-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.product-img-wrap .img-hover { opacity: 0; }
.product-card:hover .img-hover { opacity: 1; }
.product-card:hover .img-main { transform: scale(1.04); }
.badge-off { position: absolute; top: 10px; left: 10px; background: var(--gold); color: #2b1a00; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.badge-oos { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: .72rem; padding: 3px 8px; border-radius: 6px; }
.product-name { color: var(--ink); font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 800; color: var(--ink); }
.mrp { text-decoration: line-through; color: #9a8f8a; font-size: .9rem; }
.off { color: #2e7d32; font-weight: 700; }
.mini-swatches { display: flex; gap: 4px; align-items: center; }
.mini-swatches span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

/* Alternate-shade thumbnail strip on product cards */
.shade-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.shade-thumb { position: relative; display: block; aspect-ratio: 3/4; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; outline-offset: 2px; box-shadow: 0 0 0 1px var(--line); }
.shade-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shade-thumb:hover { box-shadow: 0 0 0 1px var(--gold); }
.shade-thumb.active { border-color: var(--maroon); box-shadow: 0 0 0 1px var(--gold-soft); }
.shade-thumb.oos img { opacity: .45; }
.shade-more span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; font-weight: 700; font-size: .8rem; }
.product-card.shade-picked .img-hover { display: none; }
.shade-more-sm { display: none; }
@media (max-width: 575.98px) {
    /* two cards per row on phones: 3 larger tiles so they stay tappable */
    .shade-strip { grid-template-columns: repeat(3, 1fr); }
    .shade-strip .shade-thumb:nth-child(n+4):not(.shade-more-sm) { display: none; }
    .shade-strip:has(.shade-more-sm) .shade-thumb:nth-child(n+3):not(.shade-more-sm) { display: none; }
    .shade-strip .shade-more-sm { display: block; }
}

/* Shop */
.page-title { font-size: 2.3rem; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 90px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 3rem; color: var(--gold); }
.pagination .page-link { color: var(--maroon); }
.pagination .active .page-link { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* Product detail gallery */
.gallery { display: flex; gap: 12px; }
.gallery .thumbs { display: flex; flex-direction: column; gap: 10px; width: 78px; flex-shrink: 0; }
.gallery .thumb { border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; background: none; aspect-ratio: 3/4; }
.gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumb.active { border-color: var(--maroon); }
.gallery .thumb.hidden { display: none; }
.main-image { position: relative; flex: 1; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: #f3ece4; cursor: zoom-in; }
.main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease-out; }
.main-image.zooming img { transform: scale(2); }
.main-image .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); border: none; background: rgba(255,255,255,.85); border-radius: 50%; width: 40px; height: 40px; }
.main-image .prev { left: 10px; } .main-image .next { right: 10px; }
@media (max-width: 767px) {
    .gallery { flex-direction: column-reverse; }
    .gallery .thumbs { flex-direction: row; width: 100%; overflow-x: auto; }
    .gallery .thumb { width: 64px; flex-shrink: 0; }
}
.product-title { font-size: 2.4rem; line-height: 1.1; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 42px; height: 42px; border-radius: 50%; padding: 3px; border: 2px solid var(--line); cursor: pointer; position: relative; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }
.btn-check:checked + .swatch { border-color: var(--maroon); box-shadow: 0 0 0 2px var(--gold-soft); }
.swatch.swatch-img { width: 54px; height: 72px; border-radius: 8px; overflow: hidden; }
.swatch.swatch-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; display: block; }
.swatch.oos { opacity: .4; cursor: not-allowed; }
.swatch.oos::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; background: #555; transform: rotate(45deg); }

.qty-box { display: inline-flex; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: #fff; }
.qty-box button { border: none; background: none; width: 38px; font-size: 1.2rem; }
.qty-box input { width: 48px; border: none; text-align: center; -moz-appearance: textfield; }
.qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.spec-table th { width: 38%; color: #7a6c66; font-weight: 600; }

/* Cart & checkout */
.cart-card, .summary-card, .card { border: 1px solid var(--line); border-radius: var(--radius); }
.cart-line { display: flex; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: none; }
.cart-line.has-problem { background: #fff5f5; }
.cart-thumb { width: 84px; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }
.mini-thumb { width: 46px; height: 58px; object-fit: cover; border-radius: 8px; }
.mini-thumb.stacked { margin-right: -14px; border: 2px solid #fff; }
.dot-swatch { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); vertical-align: middle; }
.ship-meter { background: var(--gold-soft); border-radius: 10px; padding: 12px 16px; font-size: .9rem; }
.ship-meter .progress-bar { background: var(--maroon); }
.pay-option { border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 12px 36px; margin-bottom: 8px; }
.success-tick { width: 72px; height: 72px; border-radius: 50%; background: #2e7d32; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem; }

/* Order timeline */
.order-steps { display: flex; justify-content: space-between; position: relative; }
.order-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 16px; height: 3px; background: var(--line); }
.order-steps .step { text-align: center; position: relative; flex: 1; }
.order-steps .dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin: 0 auto; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.order-steps .step.done .dot { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.order-steps .lbl { font-size: .8rem; margin-top: 6px; }
.order-row:hover { border-color: var(--gold); }

.auth-card { box-shadow: 0 12px 30px rgba(43,32,36,.06); }
.usp-row i { font-size: 1.8rem; color: var(--maroon); }
.usp-row div { font-size: .85rem; font-weight: 600; }

/* Footer */
.site-footer { background: #2b1a1e; color: #e9dfd6; }
.site-footer h6 { color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.site-footer a { color: #e9dfd6; }
.site-footer a:hover { color: var(--gold); }
.toast { background: var(--ink); color: #fff; }
.toast.error { background: #b3261e; }
.site-footer .brand { color: var(--gold) !important; }

/* ===== About / Contact pages ===== */
.page-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(201,162,39,.25), transparent 45%),
        repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px),
        linear-gradient(120deg, var(--maroon-dark), var(--maroon));
    color: #fff; padding: 64px 0;
}
.page-hero-sm { padding: 48px 0; }
.page-hero .eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700; }
.page-hero .lead { opacity: .88; max-width: 620px; }
.about-collage { position: relative; height: 420px; }
.about-collage img { position: absolute; object-fit: cover; border-radius: 16px; border: 5px solid #fff; box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.about-collage .c1 { left: 0; top: 0; width: 62%; height: 100%; object-position: center 25%; }
.about-collage .c2 { right: 0; top: 18px; width: 36%; aspect-ratio: 3/4; transform: rotate(3deg); }
.about-collage .c3 { right: 6%; bottom: -10px; width: 30%; aspect-ratio: 3/4; transform: rotate(-4deg); }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 8px; }
.stat-tile .v { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.4rem; font-weight: 700; color: var(--maroon); line-height: 1; }
.stat-tile .l { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #7a6c66; margin-top: 6px; }
.about-wide { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--radius); }
.section-head.text-center h2::after { margin-left: auto; margin-right: auto; }
.promise { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; }
.promise i { font-size: 1.8rem; color: var(--maroon); background: var(--gold-soft); width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.promise h3 { font-size: 1.35rem; margin: 14px 0 6px; }
.promise p { font-size: .9rem; color: #5f524d; margin: 0; }
.about-cat { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); height: 100%; transition: .2s; }
.about-cat:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(123,30,43,.08); color: var(--ink); }
.about-cat img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.visit-band { background: var(--gold-soft); border-radius: var(--radius); padding: 32px; }
.visit-band h2 { font-size: 1.9rem; }
.contact-card { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); transition: .2s; }
.contact-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(123,30,43,.08); color: var(--ink); }
.contact-card i { font-size: 1.6rem; color: var(--maroon); }
.contact-card .t { font-weight: 700; margin-top: 8px; }
.contact-card .v { font-size: .9rem; color: #5f524d; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: #eee; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; font-size: .9rem; color: #5f524d; }
@media (max-width: 991px) {
    .page-hero { padding: 40px 0; }
    .about-collage { height: 320px; }
}
/* header: keep menu items on one line; slimmer search on small laptops */
.site-header .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .search-box .form-control { min-width: 170px; }
    .site-header .navbar-nav .nav-link { padding-left: .45rem; padding-right: .45rem; }
}
