/* =====================================================================
   David's Spices — public site stylesheet (v2)
   ---------------------------------------------------------------------
   All colours come from the --spice-* variables that layouts/header.php
   prints from Admin → Settings. Change colours there, not here.
   ===================================================================== */

/* Fallback colours for pages that don't print theme variables (e.g. admin login).
   :where() has zero specificity, so the values from header.php always win. */
:where(:root) {
    --spice-primary: #2C5F2D; --spice-primary-rgb: 44, 95, 45;
    --spice-dark: #123821; --spice-dark-rgb: 18, 56, 33;
    --spice-accent: #8BC34A; --spice-accent-rgb: 139, 195, 74;
    --spice-bg: #F4F8F1; --spice-bg-rgb: 244, 248, 241;
    --spice-text: #14241A; --spice-text-rgb: 20, 36, 26;
    --spice-on-primary: #FFFFFF; --spice-on-dark: #FFFFFF; --spice-on-accent: #1A1A1A;
}

:root {
    --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --surface: #FFFFFF;
    --muted: color-mix(in srgb, var(--spice-text) 62%, var(--spice-bg));
    --line: color-mix(in srgb, var(--spice-text) 12%, transparent);
    --primary-soft: color-mix(in srgb, var(--spice-primary) 10%, var(--surface));
    --accent-soft: color-mix(in srgb, var(--spice-accent) 16%, var(--surface));
    --alt-bg: color-mix(in srgb, var(--spice-primary) 5%, var(--spice-bg));

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 16, .06), 0 2px 8px rgba(16, 24, 16, .05);
    --shadow: 0 10px 30px -12px rgba(16, 24, 16, .22);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--spice-text);
    --bs-body-bg: var(--spice-bg);
    --bs-link-color-rgb: var(--spice-primary-rgb);
    --bs-border-radius: var(--radius-sm);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--spice-bg);
    color: var(--spice-text);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
h1, h2, h3, h4, .brand-text, .footer-brand {
    font-family: var(--font-display);
    color: var(--spice-dark);
    letter-spacing: -.01em;
    line-height: 1.2;
}
a { color: var(--spice-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--spice-dark); }
img { max-width: 100%; }
::selection { background: var(--spice-accent); color: var(--spice-on-accent); }

.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: var(--surface); padding: .5rem 1rem; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .6rem 1.4rem; transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s, border-color .2s; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }
.btn:active { transform: translateY(1px); }

.btn-spice { background: var(--spice-primary); border: 1px solid var(--spice-primary); color: var(--spice-on-primary); }
.btn-spice:hover, .btn-spice:focus-visible { background: var(--spice-dark); border-color: var(--spice-dark); color: var(--spice-on-dark); box-shadow: 0 8px 20px -8px rgba(var(--spice-primary-rgb), .7); }
.btn-spice:disabled { background: var(--spice-primary); border-color: var(--spice-primary); color: var(--spice-on-primary); opacity: .55; }

.btn-outline-spice { border: 1.5px solid var(--spice-primary); color: var(--spice-primary); background: transparent; }
.btn-outline-spice:hover, .btn-outline-spice:focus-visible { background: var(--spice-primary); color: var(--spice-on-primary); }

.btn-accent { background: var(--spice-accent); border: 1px solid var(--spice-accent); color: var(--spice-on-accent); }
.btn-accent:hover, .btn-accent:focus-visible { background: color-mix(in srgb, var(--spice-accent) 85%, #000); border-color: color-mix(in srgb, var(--spice-accent) 85%, #000); color: var(--spice-on-accent); transform: translateY(-2px); }

.btn-ghost { background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #fff; color: var(--spice-dark); border-color: #fff; }

.btn:focus-visible, .form-control:focus, .form-select:focus { outline: none; box-shadow: 0 0 0 .22rem rgba(var(--spice-primary-rgb), .22); }

/* ---------- Utilities kept for backward compatibility ---------- */
.text-spice { color: var(--spice-primary) !important; }
.bg-spice { background-color: var(--spice-primary) !important; }
.border-spice { border-color: var(--spice-primary) !important; }
.spice-icon { color: var(--spice-primary); }
.spice-accent { color: var(--spice-accent); }
.badge-gst { background: var(--accent-soft); color: var(--spice-dark); }

/* ---------- Top bar ---------- */
.topbar { background: var(--spice-dark); color: var(--spice-on-dark); font-size: .82rem; }
.topbar .container { min-height: 38px; }
.topbar a { color: inherit; opacity: .85; }
.topbar a:hover { opacity: 1; color: var(--spice-accent); }
.topbar-info { display: flex; gap: 1.5rem; }
.topbar-info i { margin-right: .4rem; }
.topbar-social { display: flex; gap: .9rem; font-size: .95rem; }

/* ---------- Navbar ---------- */
.spice-navbar {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    padding: .55rem 0;
    transition: box-shadow .25s, padding .25s;
}
@supports (backdrop-filter: blur(8px)) {
    .spice-navbar { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
}
.spice-navbar.is-scrolled { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .35); padding: .3rem 0; }
.brand-logo { height: 72px; width: auto; transition: height .25s; }
.spice-navbar.is-scrolled .brand-logo { height: 54px; }
.brand-text { font-size: 1.6rem; font-weight: 700; color: var(--spice-primary); }

.spice-navbar .nav-link {
    color: var(--spice-text);
    font-weight: 500;
    padding: .5rem 1rem !important;
    position: relative;
}
.spice-navbar .nav-link::after {
    content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 2px;
    background: var(--spice-accent); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.spice-navbar .nav-link:hover, .spice-navbar .nav-link.active { color: var(--spice-primary); }
.spice-navbar .nav-link:hover::after, .spice-navbar .nav-link.active::after { transform: scaleX(1); }

.nav-cart {
    position: relative; display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary-soft); color: var(--spice-primary); font-size: 1.2rem;
}
.nav-cart:hover { background: var(--spice-primary); color: var(--spice-on-primary); }
.nav-cart-count {
    position: absolute; top: -2px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: var(--spice-accent); color: var(--spice-on-accent);
    font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}
.navbar-toggler { border: 0; font-size: 1.7rem; color: var(--spice-dark); padding: .2rem .4rem; }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
    .brand-logo { height: 52px; }
    .spice-navbar .navbar-collapse { padding: .5rem 0 1rem; }
    .spice-navbar .nav-link::after { display: none; }
    .spice-navbar .nav-link { border-bottom: 1px solid var(--line); }
}

/* ---------- Flash messages ---------- */
.toast-zone { position: fixed; top: 96px; right: 16px; left: 16px; z-index: 1080; display: grid; gap: .5rem; justify-items: end; pointer-events: none; }
.toast-zone .alert { pointer-events: auto; max-width: 460px; margin: 0; border: 0; border-radius: var(--radius-sm); }

/* =====================================================================
   HERO SLIDER — images at full clarity (no glass / blur / fade)
   ===================================================================== */
.hero {
    position: relative;
    min-height: clamp(460px, 78vh, 760px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--spice-dark);
    color: var(--hero-text, #fff);
    isolation: isolate;
}
.hero-carousel, .hero-carousel .carousel-inner, .hero-carousel .carousel-item {
    position: absolute; inset: 0; height: 100%;
}
.hero-carousel { z-index: 0; }
.hero-carousel .carousel-item img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
    transform: scale(1);
}
.hero-carousel .carousel-item.active img { animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.001); } to { transform: scale(1.07); } }
.carousel-fade .carousel-item { transition-duration: .9s; }

.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.hero-content { position: relative; z-index: 2; width: 100%; padding: 6rem 0 3.5rem; pointer-events: none; }
.hero-content a, .hero-content button { pointer-events: auto; }
.hero-copy { max-width: 640px; }
.hero-copy, .hero-copy h1, .hero-lead { color: var(--hero-text, #fff); }
.hero-copy h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 700;
    margin: .6rem 0 .8rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
/* Site name over the slider in the Parisienne script font */
.hero-copy h1.hero-title {
    font-family: 'Parisienne', 'Playfair Display', cursive;
    font-weight: 400;
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    letter-spacing: 0;
    line-height: 1.15;
    margin: .4rem 0 .6rem;
    padding: .1em .15em .15em 0;   /* room for the script swashes */
    text-shadow: 0 2px 6px rgba(0, 0, 0, .45), 0 4px 28px rgba(0, 0, 0, .35);
}
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin-bottom: 1.8rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
    padding: .4rem .9rem; border-radius: 999px;
    background: rgba(0, 0, 0, .35); color: #fff;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-indicators { display: flex; gap: .5rem; margin-top: 2.5rem; }
.hero-indicators button {
    width: 46px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer;
    display: flex; align-items: center;
}
.hero-indicators button span {
    display: block; width: 100%; height: 3px; border-radius: 3px;
    background: rgba(255, 255, 255, .45); overflow: hidden; position: relative;
}
.hero-indicators button span::after {
    content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left;
}
.hero-indicators button.active span::after { animation: heroProgress 6s linear forwards; }
.hero-carousel.is-paused ~ .hero-content .hero-indicators button.active span::after,
.hero.is-paused .hero-indicators button.active span::after { animation-play-state: paused; }
@keyframes heroProgress { to { transform: scaleX(1); } }

.hero .carousel-control-prev, .hero .carousel-control-next { width: 8%; z-index: 3; opacity: 1; }
.hero-arrow {
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.3rem;
    background: rgba(0, 0, 0, .28); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
    transition: background .2s, transform .2s;
}
.hero .carousel-control-prev:hover .hero-arrow, .hero .carousel-control-next:hover .hero-arrow { background: var(--spice-accent); color: var(--spice-on-accent); border-color: transparent; transform: scale(1.06); }

.hero-empty { background: linear-gradient(135deg, var(--spice-dark), var(--spice-primary)); }

@media (max-width: 767.98px) {
    .hero { min-height: 74vh; }
    .hero-content { padding: 5rem 0 2.5rem; }
    .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
    .hero-actions .btn { flex: 1 1 0; min-width: 0; padding-left: 1rem; padding-right: 1rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-carousel .carousel-item.active img { animation: none; }
    .hero-indicators button.active span::after { animation: none; transform: scaleX(1); }
}

/* ---------- Trust strip ---------- */
.trust-strip { position: relative; z-index: 3; margin-top: -2.2rem; }
.trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden;
}
.trust-item { display: flex; gap: .9rem; align-items: center; padding: 1.3rem 1.4rem; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item i { font-size: 1.6rem; color: var(--spice-primary); width: 48px; height: 48px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; flex-shrink: 0; }
.trust-item strong { display: block; font-size: .95rem; color: var(--spice-dark); }
.trust-item span { font-size: .82rem; color: var(--muted); }
@media (max-width: 991.98px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(3) { border-left: 0; }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
    .trust-strip { margin-top: -1.5rem; }
    .trust-item { padding: 1rem; flex-direction: column; align-items: flex-start; gap: .5rem; }
    .trust-item i { width: 40px; height: 40px; font-size: 1.3rem; }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--alt-bg); }
.section-head { margin-bottom: 2.5rem; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--spice-primary); margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; margin-bottom: 1rem; color: var(--spice-dark); }
.section-title::after { display: none; }
.lead-muted { font-size: 1.08rem; color: var(--muted); }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(3px); }
@media (max-width: 767.98px) { .section { padding: 3.5rem 0; } }

/* ---------- Page banner ---------- */
.page-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(var(--spice-accent-rgb), .35), transparent 45%),
        linear-gradient(135deg, var(--spice-dark), var(--spice-primary));
    color: var(--spice-on-dark);
    padding: 3.5rem 0 3rem;
}
.page-hero h1 { color: inherit; font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.page-hero p { margin: .6rem 0 0; opacity: .85; max-width: 640px; }
.page-hero .breadcrumb { margin-bottom: .8rem; font-size: .85rem; --bs-breadcrumb-divider-color: currentColor; --bs-breadcrumb-item-active-color: currentColor; }
.page-hero .breadcrumb a { color: inherit; opacity: .8; }
.page-hero .breadcrumb a:hover { opacity: 1; }
.page-hero .breadcrumb-item.active { opacity: 1; }
.breadcrumb-plain { font-size: .88rem; }
.breadcrumb-plain .breadcrumb-item.active { color: var(--muted); }

/* ---------- Category cards ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.category-card {
    position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
    border-radius: var(--radius); background: var(--primary-soft); box-shadow: var(--shadow-sm);
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0) 55%); }
.category-card-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: var(--spice-primary); }
.category-card-label {
    position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1;
    display: flex; justify-content: space-between; align-items: center;
    color: #fff; font-weight: 600; font-size: 1.05rem;
}
.category-card-label i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); transition: background .2s; }
.category-card:hover img { transform: scale(1.07); }
.category-card:hover .category-card-label i { background: var(--spice-accent); color: var(--spice-on-accent); }
@media (max-width: 575.98px) { .category-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; } }

/* ---------- Category pills / filter ---------- */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-pills { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.filter-count { color: var(--muted); font-size: .9rem; }
.category-pill {
    display: inline-block; white-space: nowrap; padding: .5rem 1.1rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--spice-text); font-weight: 500; font-size: .92rem;
    transition: all .2s;
}
.category-pill:hover { border-color: var(--spice-primary); color: var(--spice-primary); }
.category-pill.active { background: var(--spice-primary); border-color: var(--spice-primary); color: var(--spice-on-primary); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1199.98px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 575.98px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; } }

.product-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s;
    border: 0;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f3f3f0; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card-media img { transform: scale(1.06); }
.product-tag {
    position: absolute; top: .75rem; left: .75rem; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: .3rem .65rem; border-radius: 999px; background: var(--spice-accent); color: var(--spice-on-accent);
}
.product-tag-muted { background: rgba(0, 0, 0, .65); color: #fff; left: auto; right: .75rem; }
.product-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.product-card-title { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; margin: 0 0 .25rem; }
.product-card-title a { color: var(--spice-text); }
.product-card-title a:hover { color: var(--spice-primary); }
.product-card-desc { font-size: .85rem; color: var(--muted); margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-foot { margin-top: auto; padding-top: .5rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-weight: 700; color: var(--spice-primary); margin: 0; font-size: 1.08rem; }
.price small { color: var(--muted); font-weight: 400; font-size: .78rem; }
.btn-add {
    width: 40px; height: 40px; border-radius: 50%; border: 0; flex-shrink: 0;
    background: var(--primary-soft); color: var(--spice-primary); font-size: 1.1rem;
    display: grid; place-items: center; transition: background .2s, color .2s, transform .2s;
}
.btn-add:hover { background: var(--spice-primary); color: var(--spice-on-primary); transform: scale(1.08); }
@media (max-width: 575.98px) {
    .product-card-body { padding: .75rem; }
    .product-card-title { font-size: .92rem; }
    .price { font-size: .95rem; }
    .btn-add { width: 36px; height: 36px; }
}

/* ---------- About teaser / media ---------- */
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media-badge {
    position: absolute; left: 1.25rem; bottom: 1.25rem; display: flex; align-items: center; gap: .75rem;
    background: var(--surface); padding: .8rem 1.1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow);
    font-family: var(--font-display); color: var(--spice-dark); line-height: 1.25; font-weight: 600;
}
.about-media-badge i { font-size: 1.8rem; color: var(--spice-accent); }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 2rem; display: grid; gap: .6rem; }
.check-list i { color: var(--spice-primary); margin-right: .5rem; font-size: 1.1rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 5rem; }
.cta-inner {
    border-radius: var(--radius-lg); padding: 3rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--spice-accent-rgb), .22), transparent 45%),
        linear-gradient(120deg, var(--spice-dark), var(--spice-primary));
    color: var(--spice-on-dark);
    display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cta-inner h2 { color: inherit; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .4rem; }
.cta-inner p { margin: 0; opacity: .85; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 575.98px) { .cta-inner { padding: 2rem 1.5rem; } .cta-actions .btn { flex: 1 1 100%; } }

/* ---------- About page ---------- */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.value-card { background: var(--surface); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.value-card i { font-size: 1.6rem; color: var(--spice-primary); width: 56px; height: 56px; border-radius: 14px; background: var(--primary-soft); display: grid; place-items: center; margin-bottom: 1.2rem; }
.value-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.value-card p { color: var(--muted); margin: 0; }
.info-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.info-item, .contact-card {
    display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); padding: 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm);
    color: var(--spice-text); word-break: break-word;
}
.info-item i, .contact-card i { font-size: 1.2rem; color: var(--spice-primary); width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; flex-shrink: 0; }
.info-item small, .contact-card small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ---------- Contact / forms ---------- */
.contact-cards { display: grid; gap: 1rem; }
a.contact-card { transition: transform .2s, box-shadow .2s; }
a.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--spice-text); }
.form-card, .summary-card, .enquiry-card { background: var(--surface); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.form-card h2, .summary-card h2 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--line); padding: .7rem .9rem; background: color-mix(in srgb, var(--spice-bg) 40%, #fff); }
.form-control:focus, .form-select:focus { border-color: var(--spice-primary); background: #fff; }
@media (max-width: 575.98px) { .form-card, .summary-card, .enquiry-card { padding: 1.4rem; } }

/* ---------- Product detail ---------- */
.pd-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); aspect-ratio: 1 / 1; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.pd-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.pd-thumb { width: 78px; height: 78px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: none; opacity: .7; transition: all .2s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover, .pd-thumb.active { opacity: 1; border-color: var(--spice-primary); }
.pd-info { position: sticky; top: 110px; }
.pd-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; background: var(--accent-soft); color: var(--spice-dark); }
.chip-success { background: #E6F4EA; color: #1E6B34; }
.chip-muted { background: #EEE; color: #555; }
.pd-title { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: .5rem; }
.pd-price { font-size: 1.9rem; font-weight: 700; color: var(--spice-primary); margin-bottom: 1rem; }
.pd-price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.pd-short { color: var(--muted); font-size: 1.05rem; }
.pd-buy { display: flex; gap: .75rem; align-items: stretch; margin: 1.5rem 0; flex-wrap: wrap; }
.pd-perks { list-style: none; padding: 1rem 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: .5rem; font-size: .93rem; }
.pd-perks i { color: var(--spice-primary); margin-right: .55rem; }
.pd-desc h2, .enquiry-card h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; }
.pd-desc p { color: var(--muted); }
.enquiry-card { margin-top: 1.5rem; background: var(--alt-bg); box-shadow: none; border: 1px solid var(--line); }
.enquiry-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.enquiry-card-head h2 { margin: 0; }
@media (max-width: 991.98px) { .pd-info { position: static; } }

/* Quantity stepper */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; height: 52px; }
.qty-stepper button { width: 44px; height: 100%; border: 0; background: transparent; color: var(--spice-dark); font-size: 1.1rem; }
.qty-stepper button:hover { background: var(--primary-soft); color: var(--spice-primary); }
.qty-stepper input { width: 48px; border: 0; text-align: center; font-weight: 600; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty-stepper input:focus { outline: none; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper.qty-sm { height: 40px; }
.qty-stepper.qty-sm button { width: 36px; }
.qty-stepper.qty-sm input { width: 38px; }

/* ---------- Cart / checkout ---------- */
.cart-list { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 76px 1fr auto 110px 40px; gap: 1rem; align-items: center; padding: 1.1rem 1.4rem; }
.cart-row + .cart-row { border-top: 1px solid var(--line); }
.cart-thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.cart-info h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0 0 .15rem; }
.cart-info span { color: var(--muted); font-size: .88rem; }
.cart-sub { text-align: right; color: var(--spice-dark); }
.btn-icon { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.btn-icon:hover { background: #FDECEC; color: #C62828; }
@media (max-width: 575.98px) {
    .cart-row { grid-template-columns: 64px 1fr 36px; grid-template-areas: "img info del" "img qty sub"; row-gap: .6rem; padding: 1rem; }
    .cart-thumb { grid-area: img; width: 64px; height: 64px; }
    .cart-info { grid-area: info; }
    .cart-qty { grid-area: qty; }
    .cart-sub { grid-area: sub; grid-column: 2 / 4; justify-self: end; }
    .cart-row > form:last-child { grid-area: del; }
}
.summary-card { position: sticky; top: 110px; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .95rem; }
.summary-total { font-size: 1.2rem; font-weight: 700; color: var(--spice-dark); border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; }
.summary-note { font-size: .85rem; color: var(--muted); margin: .5rem 0 1.25rem; }
.summary-secure { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.summary-secure i { color: var(--spice-primary); }

.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state i { font-size: 4rem; color: color-mix(in srgb, var(--spice-primary) 40%, transparent); }
.empty-state p { color: var(--muted); margin: 1rem 0 1.5rem; font-size: 1.1rem; }

.success-head { text-align: center; margin-bottom: 2.5rem; }
.success-icon { width: 84px; height: 84px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 2.6rem; background: #E6F4EA; color: #1E6B34; margin-bottom: 1rem; }
.success-head p { color: var(--muted); }

/* ---------- Map ---------- */
.map-section { position: relative; margin-top: 0; }
.map-frame { height: 360px; filter: grayscale(.25); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-open {
    position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
    background: var(--surface); color: var(--spice-dark); padding: .55rem 1.1rem; border-radius: 999px;
    box-shadow: var(--shadow); font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.map-open i { color: var(--spice-primary); }

/* ---------- Footer ---------- */
.footer-main { background: var(--spice-dark); color: color-mix(in srgb, var(--spice-on-dark) 78%, transparent); padding: 4.5rem 0 1.5rem; font-size: .93rem; }
.footer-brand { color: var(--spice-on-dark); font-size: 1.6rem; margin-bottom: .8rem; }
.footer-tagline { margin-bottom: 1.4rem; }
.footer-heading { color: var(--spice-on-dark); font-family: var(--font-body); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.2rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer-main a { color: inherit; }
.footer-main a:hover { color: var(--spice-accent); }
.footer-contact li { display: flex; gap: .7rem; word-break: break-word; }
.footer-contact i { color: var(--spice-accent); }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); color: var(--spice-on-dark); transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--spice-accent); color: var(--spice-on-accent); }
.footer-badges { display: grid; gap: .75rem; }
.footer-badge { display: flex; gap: .75rem; align-items: center; padding: .7rem .9rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); }
.footer-badge i { font-size: 1.3rem; color: var(--spice-accent); }
.footer-badge small { display: block; font-size: .72rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer-pay i { color: var(--spice-accent); }
/* legacy footer classes */
.footer-link { color: inherit; }

/* ---------- Floating buttons ---------- */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 1050;
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: #25D366; color: #fff; font-size: 1.7rem; box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .8);
    transition: transform .2s;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.back-to-top {
    position: fixed; right: 26px; bottom: 88px; z-index: 1049;
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--surface); color: var(--spice-dark); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--spice-primary); color: var(--spice-on-primary); }
body:not(:has(.whatsapp-float)) .back-to-top { bottom: 24px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Bootstrap's g-5 gutter is wider than the container padding on phones */
@media (max-width: 767.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; } }
