/* ============================================================
   Samara Investments - Public Site Theme
   Warm cream + deep maroon, elegant Arabian luxury feel
   ============================================================ */

:root {
    --cream: #FBF6EC;
    --cream-soft: #F3E9D8;
    --maroon: #6B1E23;
    --maroon-dark: #4A1319;
    --maroon-light: #8A2F35;
    --gold: #C9A227;
    --gold-soft: #E4C972;
    --text-dark: #2B1A12;
    --text-muted: #6B5B4E;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(43, 26, 18, 0.12);
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(201, 162, 39, 0.06), transparent 40%),
        radial-gradient(circle at 88% 92%, rgba(107, 30, 35, 0.05), transparent 42%);
    background-attachment: fixed;
    line-height: 1.7;
}

h1, h2, h3, h4, .display-font {
    font-family: 'Playfair Display', 'Cairo', serif;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; }

.text-maroon { color: var(--maroon) !important; }
.bg-maroon { background-color: var(--maroon) !important; }
.text-gold { color: var(--gold) !important; }

/* ---------- Section spacing ---------- */
.section { padding: clamp(46px, 8vw, 90px) 0; }
.section-sm { padding: clamp(34px, 6vw, 60px) 0; }

.section-title {
    font-size: clamp(1.55rem, 4vw, 2.4rem);
    margin-bottom: 10px;
    color: var(--maroon);
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 50px;
}

.ornament {
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 22px;
    position: relative;
}
.ornament::before {
    content: "\2726";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--cream);
    color: var(--gold);
    padding: 0 10px;
    font-size: 1rem;
}

/* ---------- Navbar ---------- */
.navbar-samara {
    background-color: rgba(251, 246, 236, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    box-shadow: 0 2px 18px rgba(43, 26, 18, 0.08);
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
/* thin gold hairline accent under the bar */
.navbar-samara::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.6;
}

.navbar-brand-samara {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--maroon) !important;
    letter-spacing: 0.5px;
}
.navbar-brand-samara span { color: var(--gold); }

.navbar-samara .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 14px;
    position: relative;
    padding: 6px 2px !important;
}
.navbar-samara .nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}
.navbar-samara .nav-link:hover::after,
.navbar-samara .nav-link.active::after { width: 100%; }
.navbar-samara .nav-link:hover,
.navbar-samara .nav-link.active { color: var(--maroon) !important; }

.logo-circle {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--maroon);
    background: var(--cream);
}
.logo-img {
    height: 50px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text-block { line-height: 1.25; min-width: 0; }
.brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    color: var(--maroon);
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.brand-sub {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}
.nav-tagline-main {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--maroon);
    font-size: clamp(0.85rem, 1.4vw, 0.98rem);
}
.nav-tagline-sub {
    color: var(--text-muted);
    font-size: clamp(0.72rem, 1.2vw, 0.82rem);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--maroon-dark);
    padding-bottom: 90px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(30,14,16,0.82) 0%, rgba(30,14,16,0.55) 42%, rgba(30,14,16,0.15) 75%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--cream);
    max-width: 720px;
}

/* ---------- Hero (mobile only): text block + full, uncropped photo ---------- */
.hero-mobile {
    background: linear-gradient(160deg, var(--maroon-dark), var(--maroon));
}
.hero-mobile-text {
    padding: 44px 20px 34px;
    color: var(--cream);
}
.hero-mobile-text h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.25;
}
.hero-mobile-text p {
    font-size: 0.95rem;
    color: var(--cream-soft);
    margin-bottom: 22px;
}
.hero-mobile-text .btn-samara,
.hero-mobile-text .btn-samara-outline {
    display: inline-block;
    margin: 5px;
}
.hero-mobile-img {
    display: block;
    width: 100%;
    height: auto; /* always shows the complete photo at its true proportions - never cropped */
}
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-soft);
    font-weight: 700;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(1.9rem, 5.5vw, 3.4rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--cream-soft);
    margin-bottom: 34px;
}

.btn-samara {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: var(--maroon-dark) !important;
    font-weight: 700;
    padding: clamp(11px, 2vw, 14px) clamp(22px, 4vw, 34px);
    border-radius: 50px;
    border: 2px solid var(--gold);
    transition: all 0.28s ease;
    letter-spacing: 0.3px;
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.28);
    overflow: hidden;
}
/* subtle sweeping shine on hover */
.btn-samara::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn-samara:hover::after { left: 130%; }
.btn-samara:hover {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: var(--white) !important;
    border-color: var(--maroon-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(74, 19, 25, 0.32);
}
.btn-samara-outline {
    display: inline-block;
    vertical-align: middle;
    background: transparent;
    color: var(--white) !important;
    font-weight: 700;
    padding: clamp(11px, 2vw, 14px) clamp(22px, 4vw, 34px);
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.6);
    transition: all 0.25s ease;
    font-size: clamp(0.85rem, 1.6vw, 1rem);
}
.btn-samara-outline:hover {
    background: var(--white);
    color: var(--maroon) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* ---------- Overlapping Features Card ---------- */
.features-overlap {
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(43,26,18,0.18);
    margin-top: -72px;
    position: relative;
    z-index: 20;
    padding: clamp(18px, 3vw, 30px) clamp(14px, 3vw, 26px);
}
.feature-icon-v2 {
    width: clamp(46px, 6vw, 58px);
    height: clamp(46px, 6vw, 58px);
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--maroon);
    background: var(--cream);
}
.feature-item-v2 h6 {
    margin: 0 0 2px;
    font-weight: 700;
    color: var(--maroon-dark);
    font-size: clamp(0.82rem, 1.6vw, 0.98rem);
}
.feature-item-v2 small { color: var(--text-muted); font-size: clamp(0.72rem, 1.4vw, 0.85rem); }

/* ---------- Eyebrow ornament (diamond-flanked label) ---------- */
.eyebrow-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 16px;
}
.eyebrow-ornament .line {
    width: 44px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow-ornament .line:last-of-type {
    background: linear-gradient(90deg, var(--gold), transparent);
}
.eyebrow-ornament .diamond { font-size: 0.9rem; }

/* Product card underline accent */
.product-underline {
    display: block;
    width: 34px;
    height: 3px;
    background: var(--maroon);
    border-radius: 2px;
    margin: 10px auto 0;
}

/* ---------- Features Bar ---------- */
.features-bar {
    background: var(--maroon);
    padding: 46px 0;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--cream);
    padding: 10px 16px;
}
.feature-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold-soft);
}
.feature-item h6 {
    margin: 0 0 2px;
    font-weight: 700;
    color: var(--white);
}
.feature-item small {
    color: var(--cream-soft);
    opacity: 0.85;
}

/* ---------- Products ---------- */
.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(107,30,35,0.08);
    cursor: pointer;
}
/* gold accent line that grows in on hover */
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    z-index: 5;
    transition: width 0.4s ease;
}
.product-card:hover::before,
.product-card:focus-visible::before { width: 100%; }
.product-card:hover,
.product-card:focus-visible {
    box-shadow: 0 22px 46px rgba(43,26,18,0.22);
}
.product-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.product-img-wrap { position: relative; overflow: hidden; }
.product-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.product-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,14,16,0.75), rgba(30,14,16,0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}
/* the label reads as a gold pill button that slides up */
.product-hover-overlay span {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: var(--maroon-dark);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    transform: translateY(10px);
    transition: transform 0.35s ease;
}
.product-card:hover .product-hover-overlay,
.product-card:focus-visible .product-hover-overlay { opacity: 1; }
.product-card:hover .product-hover-overlay span,
.product-card:focus-visible .product-hover-overlay span { transform: translateY(0); }

.product-photo-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(30,14,16,0.65);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 20px;
}

.product-card .product-body {
    padding: 18px 18px 22px;
    text-align: center;
}
.product-card h3 {
    font-size: 1.1rem;
    color: var(--maroon-dark);
    margin-bottom: 8px;
}
.product-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0;
}
.category-group:last-child { margin-bottom: 0 !important; }
.category-heading {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--maroon-dark);
    margin-bottom: 28px;
    padding-bottom: 0;
    border-bottom: none;
    display: block;
    text-align: center;
}
.category-heading span {
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}
.category-heading span::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
/* small diamond centered above the underline */
.category-heading span::before {
    content: '\2726';
    position: absolute;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 0.6rem;
    background: var(--cream);
    padding: 0 6px;
    z-index: 1;
}
.product-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* ---------- About / Heritage strip ---------- */
.heritage-strip {
    position: relative;
    background:
        linear-gradient(160deg, var(--cream-soft), #efe2cb);
    border-top: 1px solid rgba(201,162,39,0.28);
    border-bottom: 1px solid rgba(201,162,39,0.28);
    overflow: hidden;
}
/* faint decorative diamond watermark */
.heritage-strip::before,
.heritage-strip::after {
    content: '\2726';
    position: absolute;
    font-size: 9rem;
    line-height: 1;
    color: rgba(201, 162, 39, 0.08);
    pointer-events: none;
}
.heritage-strip::before { top: -20px; left: -10px; }
.heritage-strip::after { bottom: -30px; right: -6px; }
.heritage-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4.5vw, 2.6rem);
    color: var(--maroon);
    font-weight: 700;
    position: relative;
}
.heritage-strip .col-6,
.heritage-strip [class*="col-"] { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer-samara {
    position: relative;
    background:
        radial-gradient(circle at 85% 0%, rgba(201,162,39,0.10), transparent 45%),
        var(--maroon-dark);
    color: var(--cream-soft);
    padding: 60px 0 24px;
}
/* gold gradient hairline across the very top */
.footer-samara::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-soft), var(--gold), transparent);
}
.footer-samara h5 {
    position: relative;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    padding-bottom: 10px;
}
/* small gold underline under each footer heading */
.footer-samara h5::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 34px;
    height: 2px;
    background: var(--gold);
}
.footer-samara a {
    color: var(--cream-soft);
    opacity: 0.85;
}
.footer-samara a:hover { color: var(--gold-soft); opacity: 1; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 36px;
    padding-top: 20px;
    font-size: 0.88rem;
    opacity: 0.7;
    text-align: center;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    margin-right: 10px;
}
.social-icons a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--maroon-dark) !important;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 1200;
    background: #25D366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, opacity 0.25s ease, visibility 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
/* hide the floating WhatsApp button while a product popup is open */
body.modal-open-active .whatsapp-float {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ---------- Back to Top button (stacked above the WhatsApp button) ---------- */
.back-to-top-btn {
    position: fixed;
    bottom: 96px;
    right: 26px;
    z-index: 1200;
    background: var(--maroon);
    color: var(--white);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
    display: flex;
}
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top-btn:hover { background: var(--maroon-dark); transform: translateY(-3px); }

/* ---------- Product Detail Popup ---------- */
.product-modal .modal-content {
    border-radius: 18px;
    overflow: hidden;
    border: none;
}
.product-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 30;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234A1319'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.85em auto;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    opacity: 1;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.product-modal-close:hover { background-color: var(--cream-soft); }
.product-carousel { background: var(--cream-soft); height: 100%; min-height: 320px; }
.product-carousel .carousel-inner { height: 100%; min-height: 320px; }
.product-carousel .carousel-item { height: 100%; min-height: 320px; }
.product-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: 560px;
    object-fit: contain;
    object-position: center;
}
.product-carousel .carousel-control-prev,
.product-carousel .carousel-control-next {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30,14,16,0.55);
    border-radius: 50%;
    opacity: 0.85;
}
.product-carousel .carousel-control-prev { left: 14px; }
.product-carousel .carousel-control-next { right: 14px; }
.product-carousel .carousel-control-prev:hover,
.product-carousel .carousel-control-next:hover { opacity: 1; background: var(--maroon); }
.product-carousel-indicators {
    position: absolute;
    bottom: 12px;
    margin: 0;
}
.product-carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--white);
    opacity: 0.6;
    border: none;
}
.product-carousel-indicators .active { opacity: 1; background-color: var(--gold); }

.product-modal-body {
    padding: clamp(28px, 4vw, 46px) clamp(24px, 4vw, 40px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-modal-category {
    display: inline-block;
    background: var(--cream-soft);
    color: var(--maroon);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    align-self: flex-start;
}
.product-modal-body h3 {
    color: var(--maroon-dark);
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    margin-bottom: 14px;
}
.product-modal-body p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ---------- Contact Page ---------- */
.contact-hero {
    position: relative;
    background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 55%, var(--maroon-light) 100%);
    color: var(--cream);
    padding: 70px 0 50px;
    text-align: center;
    overflow: hidden;
}
/* faint diamond watermark echoing the brand ornament */
.contact-hero::after {
    content: '\2726';
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10rem;
    color: rgba(201, 162, 39, 0.12);
    pointer-events: none;
}
.contact-hero .container { position: relative; z-index: 1; }
.contact-hero .ornament::before {
    background: var(--maroon);
    color: var(--gold);
}
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(22px, 4vw, 34px);
    height: 100%;
    text-align: center;
    border-top: 4px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 46px rgba(43,26,18,0.20);
}
.contact-card .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cream-soft), #ecdcc0);
    color: var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 18px;
    transition: transform 0.4s ease, background 0.3s ease, color 0.3s ease;
}
.contact-card:hover .icon-circle {
    transform: rotate(-8deg) scale(1.06);
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: var(--gold-soft);
}
.contact-card h5 { color: var(--maroon); margin-bottom: 8px; }
.contact-card p { color: var(--text-muted); margin-bottom: 16px; }

/* ---------- Admin panel ---------- */
.admin-body { background: #F4F1EC; font-family: 'Cairo', 'Segoe UI', sans-serif; }
.admin-sidebar {
    background: var(--maroon-dark);
    color: var(--cream);
    width: 100%;
    flex-shrink: 0;
}
.admin-sidebar .brand {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    line-height: 1.3;
}
.admin-sidebar .brand img { flex-shrink: 0; }
.admin-sidebar .brand span {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.admin-sidebar .nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-sidebar .nav-item { flex-shrink: 0; }
.admin-sidebar .nav-link {
    color: var(--cream-soft);
    padding: 12px 16px;
    border-radius: 0;
    font-weight: 600;
    white-space: nowrap;
}
.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-right: none;
    border-bottom: 3px solid var(--gold);
}

@media (min-width: 992px) {
    .admin-sidebar {
        width: 240px;
        min-height: 100vh;
    }
    .admin-sidebar .brand { font-size: 1.3rem; padding: 22px 20px; }
    .admin-sidebar .nav {
        flex-direction: column;
        overflow-x: visible;
    }
    .admin-sidebar .nav-link { padding: 12px 20px; }
    .admin-sidebar .nav-link.active,
    .admin-sidebar .nav-link:hover {
        border-right: 3px solid var(--gold);
        border-bottom: none;
    }
}
.admin-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}
.admin-topbar {
    background: var(--white);
    padding: 16px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
}
.login-card {
    background: var(--cream);
    border-radius: 16px;
    padding: clamp(26px, 6vw, 44px);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.login-wrapper { padding: 20px; }
.thumb-sm {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

/* ---------- Responsive ---------- */
/* Font sizes and spacing above already scale fluidly via clamp().
   These rules only handle structural/layout changes per breakpoint. */

@media (max-width: 991px) {
    .nav-tagline { display: none !important; }
}

@media (max-width: 767px) {
    .features-overlap { margin-top: -28px; }
    .brand-sub { display: none !important; }
}

@media (max-width: 575.98px) {
    .feature-item-v2 {
        flex-direction: column;
        text-align: center;
        gap: 8px !important;
    }
    .product-card img { height: 150px; }
    .logo-circle { width: 42px; height: 42px; font-size: 1.05rem; }
    .logo-img { height: 38px; max-width: 90px; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.35rem; bottom: 18px; right: 18px; }
    .back-to-top-btn { width: 42px; height: 42px; font-size: 1.1rem; bottom: 78px; right: 20px; }
}

/* Prevent any element from forcing horizontal scroll on narrow viewports */
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ============================================================
   Enhancements — decorative accents & motion (same theme)
   ============================================================ */

/* Feature card icons react on hover */
.feature-icon-v2 {
    transition: transform 0.4s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.feature-item-v2:hover .feature-icon-v2 {
    transform: translateY(-3px) scale(1.06);
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: var(--gold-soft);
    border-color: var(--maroon-dark);
}

/* Features card gets a soft gold hairline on top (keeps rounded corners) */
.features-overlap { position: relative; }
.features-overlap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Social icons lift on hover */
.social-icons a { transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.social-icons a:hover { transform: translateY(-3px); }

/* Heritage numbers pop with a subtle scale on hover */
.heritage-strip [class*="col-"]:hover .heritage-number { transform: scale(1.08); }

/* WhatsApp floating button gentle pulse to draw the eye */
@keyframes samara-pulse {
    0%   { box-shadow: 0 8px 22px rgba(0,0,0,0.25), 0 0 0 0 rgba(37, 211, 102, 0.45); }
    70%  { box-shadow: 0 8px 22px rgba(0,0,0,0.25), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 22px rgba(0,0,0,0.25), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float { animation: samara-pulse 2.6s infinite; }

/* Hero text gently fades up on load */
@keyframes samara-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
.hero-content > * { animation: samara-fade-up 0.8s ease both; }
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4),
.hero-content > *:nth-child(5) { animation-delay: 0.35s; }

/* ---------- Scroll-reveal utility ---------- */
/* Gated behind .js so that if scripts don't run, content stays fully visible. */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }


/* ============================================================
   Mobile motion - phones have no hover, so lean on scroll + tap
   ============================================================ */

/* Direction variants for reveal (share the same .reveal observer) */
.js .reveal.from-left  { transform: translateX(-34px); }
.js .reveal.from-right { transform: translateX(34px); }
.js .reveal.zoom-in    { transform: scale(0.9); }
.js .reveal.from-left.is-visible,
.js .reveal.from-right.is-visible,
.js .reveal.zoom-in.is-visible { transform: none; }

/* fade-in helper (opacity only) */
@keyframes samara-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 767px) {
    /* Bigger, slower travel so the effect actually reads on a small screen */
    .js .reveal { transform: translateY(42px); transition-duration: 0.8s; }

    /* Product cards alternate sliding in from left / right as you scroll */
    .js .category-group .row > .reveal:nth-child(odd)  { transform: translateX(-30px) translateY(24px); }
    .js .category-group .row > .reveal:nth-child(even) { transform: translateX(30px) translateY(24px); }
    .js .category-group .row > .reveal.is-visible { transform: none; }

    /* Feature cards and heritage stats alternate too, for a livelier feed */
    .js .features-overlap .row > .reveal:nth-child(odd),
    .js .heritage-strip .row > .reveal:nth-child(odd) { transform: translateX(-26px) translateY(20px); }
    .js .features-overlap .row > .reveal:nth-child(even),
    .js .heritage-strip .row > .reveal:nth-child(even) { transform: translateX(26px) translateY(20px); }
    .js .features-overlap .row > .reveal.is-visible,
    .js .heritage-strip .row > .reveal.is-visible { transform: none; }

    /* Reveal the product card's gold top line as it scrolls into view */
    .reveal.is-visible .product-card::before { width: 100%; }

    /* Mobile hero: text rises in, photo fades in under it */
    .hero-mobile-text > * { animation: samara-fade-up 0.7s ease both; }
    .hero-mobile-text > *:nth-child(1) { animation-delay: 0.05s; }
    .hero-mobile-text > *:nth-child(2) { animation-delay: 0.15s; }
    .hero-mobile-text > *:nth-child(3) { animation-delay: 0.25s; }
    .hero-mobile-text > *:nth-child(4),
    .hero-mobile-text > *:nth-child(5) { animation-delay: 0.35s; }
    .hero-mobile-img { animation: samara-fade-in 1s ease 0.3s both; }

    /* Tap feedback replaces hover on touch devices */
    .product-card:active { transform: scale(0.97); transition: transform 0.1s ease; }
    .btn-samara:active,
    .btn-samara-outline:active { transform: scale(0.96); }
    .contact-card:active { transform: translateY(-4px); }

    /* Section titles gently rise too */
    .js .section-title.reveal { transform: translateY(30px); }
}

/* ============================================================
   Bolder, more theatrical motion (mobile-first, still on-theme)
   ============================================================ */

/* Base reveal: bigger travel, spring easing, blur-to-focus */
.js .reveal {
    transform: translateY(48px) scale(0.94);
    filter: blur(6px);
    transition: opacity 0.7s ease,
                transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

@keyframes samara-kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes samara-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes samara-pop { 0% { transform: scale(0.4); } 100% { transform: scale(1); } }

@media (max-width: 767px) {
    /* Much bigger, springy entrances */
    .js .reveal { transform: translateY(80px) scale(0.86); transition-duration: 1.05s; }

    /* Product cards swing in from alternating sides with a tilt */
    .js .category-group .row > .reveal:nth-child(odd)  { transform: translateX(-60px) translateY(44px) rotate(-4deg) scale(0.9); }
    .js .category-group .row > .reveal:nth-child(even) { transform: translateX(60px) translateY(44px) rotate(4deg) scale(0.9); }
    .js .category-group .row > .reveal.is-visible { transform: none; }

    .js .features-overlap .row > .reveal:nth-child(odd),
    .js .heritage-strip .row > .reveal:nth-child(odd)  { transform: translateX(-48px) translateY(32px) scale(0.88); }
    .js .features-overlap .row > .reveal:nth-child(even),
    .js .heritage-strip .row > .reveal:nth-child(even) { transform: translateX(48px) translateY(32px) scale(0.88); }
    .js .features-overlap .row > .reveal.is-visible,
    .js .heritage-strip .row > .reveal.is-visible { transform: none; }

    .reveal.is-visible .product-card::before { width: 100%; }

    /* Ambient life (phones have no hover): slow Ken Burns on product photos */
    .product-img-wrap img { animation: samara-kenburns 14s ease-in-out infinite alternate; }

    /* Hero photo fades in, then gently floats */
    .hero-mobile-img { animation: samara-fade-in 1s ease 0.3s both; }

    /* Mobile hero text rises in */
    .hero-mobile-text > * { animation: samara-fade-up 0.7s ease both; }
    .hero-mobile-text > *:nth-child(1) { animation-delay: 0.05s; }
    .hero-mobile-text > *:nth-child(2) { animation-delay: 0.18s; }
    .hero-mobile-text > *:nth-child(3) { animation-delay: 0.31s; }
    .hero-mobile-text > *:nth-child(4),
    .hero-mobile-text > *:nth-child(5) { animation-delay: 0.44s; }

    /* Heritage numbers spring in */
    .heritage-number { display: inline-block; }
    .reveal.is-visible .heritage-number { animation: samara-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

    /* Tap feedback replaces hover */
    .product-card:active { transform: scale(0.96); transition: transform 0.1s ease; }
    .btn-samara:active,
    .btn-samara-outline:active { transform: scale(0.95); }
    .contact-card:active { transform: translateY(-4px); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .js .reveal,
    .js .category-group .row > .reveal,
    .js .features-overlap .row > .reveal,
    .js .heritage-strip .row > .reveal { opacity: 1 !important; transform: none !important; transition: none !important; filter: none !important; }
    .whatsapp-float,
    .product-img-wrap img,
    .hero-mobile-img,
    .hero-content > *,
    .hero-mobile-text > * { animation: none !important; }
    .reveal.is-visible .heritage-number { animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   Media Gallery - aspect-ratio-aware mosaic + lightbox
   ============================================================ */
.media-section { background:
        radial-gradient(circle at 10% 0%, rgba(201,162,39,0.05), transparent 40%),
        var(--cream); }

/* True masonry via CSS columns: each item keeps its natural shape,
   so portrait (phone) videos stay tall and landscape ones stay wide.
   Single column on phones (the priority), more columns as space allows. */
.media-mosaic { column-count: 1; column-gap: 16px; margin-top: 8px; }
@media (min-width: 576px) { .media-mosaic { column-count: 2; } }
@media (min-width: 992px) { .media-mosaic { column-count: 3; } }

.media-item {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 16px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    box-shadow: 0 10px 26px rgba(43,26,18,0.14);
    border: 1px solid rgba(107,30,35,0.08);
    background: var(--maroon-dark);
}
.media-item img,
.media-item video {
    display: block;
    width: 100%;
    height: auto;              /* natural aspect ratio - never cropped */
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.media-item:hover img,
.media-item:hover video { transform: scale(1.06); }

/* gold play button for videos */
.media-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 62px; height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: var(--maroon-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}
.media-item:hover .media-play { transform: translate(-50%, -50%) scale(1.12); }

.media-type-badge {
    position: absolute;
    top: 12px; right: 12px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(30,14,16,0.6);
    color: var(--gold-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.media-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px 14px 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    background: linear-gradient(to top, rgba(30,14,16,0.85), transparent);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.media-item:hover .media-caption,
.media-item:focus-visible .media-caption { opacity: 1; transform: none; }
.media-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Lightbox ---------- */
.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(20,10,11,0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.media-lightbox.is-open { opacity: 1; visibility: visible; }
.media-lightbox-inner {
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.94);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.media-lightbox.is-open .media-lightbox-inner { transform: scale(1); }
.media-lightbox-inner img,
.media-lightbox-inner video {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    background: #000;
}
.media-lightbox-close {
    position: absolute;
    top: 18px; right: 22px;
    width: 46px; height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.media-lightbox-close:hover { background: var(--gold); color: var(--maroon-dark); transform: rotate(90deg); }

/* ---------- Admin media tiles ---------- */
.admin-media-tile {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #1c0e10;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.admin-media-tile img,
.admin-media-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.admin-media-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(30,14,16,0.7);
    color: var(--gold-soft);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
}
.admin-media-del {
    position: absolute;
    top: 8px; right: 8px;
}
.admin-media-del .btn { padding: 2px 8px; }

@media (max-width: 575.98px) {
    .media-play { width: 54px; height: 54px; font-size: 1.6rem; }
}

/* ============================================================
   Media Gallery on PHONES: centered "peek" carousel + dots
   One card centered, the next peeking at the edge, dot indicators
   below (Samsung-style). Fixed height, so the page never grows long.
   Tablet/desktop keep the mosaic above.
   ============================================================ */
@media (max-width: 767.98px) {
    .media-mosaic {
        column-count: unset;
        display: flex;
        flex-wrap: nowrap;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 4px 11vw 6px;      /* the 11vw side gutters make neighbours peek */
        scroll-padding: 0 11vw;
        scrollbar-width: none;
    }
    .media-mosaic::-webkit-scrollbar { display: none; }

    .media-item {
        flex: 0 0 78vw;
        width: 78vw;
        height: 66vh;
        max-height: 560px;
        margin: 0;
        scroll-snap-align: center;
        border-radius: 20px;
        background: var(--maroon-dark);
    }
    .media-item img,
    .media-item video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* lighter reveal so the centered card isn't shoved around */
    .js .media-mosaic .reveal { transform: translateY(16px); }
    .js .media-mosaic .reveal.is-visible { transform: none; }

    /* the swipe hint is replaced by the dots */
    .media-section .section-subtitle::after { content: none; }
    .media-play { width: 60px; height: 60px; font-size: 1.8rem; }
}

/* Dot indicators (built by JS) - only shown on phones */
.media-dots { display: none; }
@media (max-width: 767.98px) {
    .media-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 7px;
        margin-top: 18px;
    }
    .media-dots button {
        width: 8px;
        height: 8px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: rgba(107, 30, 35, 0.25);
        cursor: pointer;
        transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
    }
    .media-dots button.active {
        width: 24px;
        border-radius: 6px;
        background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    }
}

/* While a small clip is auto-previewing (centered on phone), fade its play
   button out so it reads as "already playing"; tap still opens full-screen. */
.media-item.is-playing .media-play { opacity: 0; visibility: hidden; }
.media-item .media-play { transition: opacity 0.3s ease, transform 0.3s ease; }

/* Rounded frame around the carousel dots (phone) */
@media (max-width: 767.98px) {
    .media-dots {
        display: inline-flex;
        gap: 8px;
        margin-top: 18px;
        padding: 9px 16px;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(201, 162, 39, 0.4);
        border-radius: 50px;
        box-shadow: 0 4px 12px rgba(43, 26, 18, 0.08);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }
}

/* ---------- Hero background video ---------- */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero::before { z-index: 1; }   /* keep the dark overlay above the video */
.hero .container { position: relative; z-index: 2; }  /* text above both */

/* ============================================================
   Language switcher + Chinese typography
   ============================================================ */
.lang-switch .dropdown-toggle {
    font-weight: 700;
    color: var(--maroon) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.lang-switch .dropdown-toggle::after { vertical-align: middle; margin-left: 4px; }
.lang-menu {
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 6px;
    min-width: 168px;
}
.lang-menu .dropdown-item {
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 12px;
    color: var(--text-dark);
}
.lang-menu .dropdown-item:hover { background: var(--cream-soft); color: var(--maroon); }
.lang-menu .dropdown-item.active,
.lang-menu .dropdown-item:active {
    background: var(--maroon);
    color: #fff;
}

/* Chinese: switch to Noto fonts (Cairo/Playfair don't cover Chinese glyphs) */
.lang-zh body,
.lang-zh { font-family: 'Noto Sans SC', 'Cairo', sans-serif; }
.lang-zh h1, .lang-zh h2, .lang-zh h3, .lang-zh h4,
.lang-zh .display-font, .lang-zh .section-title,
.lang-zh .brand-name, .lang-zh .heritage-number {
    font-family: 'Noto Serif SC', 'Playfair Display', serif;
}

/* ============================================================
   Products carousel: show 4, arrows to scroll when there are more
   ============================================================ */
.product-scroller-wrap { position: relative; }

/* Only categories with >4 products become a horizontal scroller. */
.has-carousel .product-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 6px;
    scroll-padding-left: 4px;
}
.has-carousel .product-track::-webkit-scrollbar { display: none; }
.has-carousel .product-track > [class*="col-"] {
    scroll-snap-align: start;
    flex: 0 0 25%;
    max-width: 25%;
}
@media (max-width: 991.98px) {
    .has-carousel .product-track > [class*="col-"] { flex-basis: 33.333%; max-width: 33.333%; }
}
@media (max-width: 767.98px) {
    .has-carousel .product-track > [class*="col-"] { flex-basis: 50%; max-width: 50%; }
}

/* Prev / next arrows */
.prod-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: var(--maroon-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 6px 18px rgba(43,26,18,0.28);
    z-index: 15;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.25s ease, background 0.2s ease;
}
.prod-arrow:hover { transform: translateY(-50%) scale(1.1); }
.prod-arrow:active { transform: translateY(-50%) scale(0.96); }
.prod-prev { left: -8px; }
.prod-next { right: -8px; }
.prod-arrow.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

@media (max-width: 575.98px) {
    .prod-arrow { width: 40px; height: 40px; font-size: 1.15rem; }
    .prod-prev { left: -4px; }
    .prod-next { right: -4px; }
}

/* ============================================================
   DARK MODE  — toggled by #themeToggle, remembered in localStorage
   ============================================================ */
.theme-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--maroon);
    font-size: 1.2rem;
    line-height: 1;
    padding: 6px 10px !important;
    transition: color 0.2s ease, transform 0.2s ease;
}
.theme-toggle::after { display: none !important; }
@media (hover: hover) {
    .theme-toggle:hover { color: var(--gold); transform: rotate(-12deg) scale(1.1); }
}

/* top-bar controls: language + theme + hamburger, kept tight and right-aligned */
.nav-controls { margin-left: auto; gap: 2px; }
.nav-controls .navbar-nav .nav-link { margin: 0 4px !important; }
.nav-controls .theme-toggle { font-size: 1.15rem; padding: 4px 6px !important; }
.nav-controls .lang-switch .nav-link { padding: 6px 4px !important; }
.nav-controls .navbar-toggler { padding: 6px 9px; }

@media (max-width: 991.98px) {
    .navbar-brand-samara { gap: 0.4rem !important; min-width: 0; flex-shrink: 1; }
    .navbar-samara .logo-img { height: 40px; }
    .navbar-samara .brand-name { font-size: 0.98rem; }
    .navbar-samara .brand-sub { font-size: 0.6rem; letter-spacing: 1px; }
    .nav-controls { flex-shrink: 0; }
    /* the menu always drops onto its own full-width line below */
    #mainNav.navbar-collapse { flex-basis: 100%; }
}

/* Desktop: even out the top bar — brand | centered tagline | links | controls */
@media (min-width: 992px) {
    .navbar-samara .nav-tagline { flex: 1 1 0; margin: 0 32px; }
    .navbar-samara #mainNav { flex-grow: 0; }
    .navbar-samara .navbar-nav .nav-link { margin: 0 12px; }
    .navbar-samara .nav-controls { margin-left: 22px; padding-left: 18px; border-left: 1px solid rgba(201,162,39,0.28); }
    [data-theme="dark"] .navbar-samara .nav-controls { border-left-color: rgba(217,180,76,0.25); }
}

[data-theme="dark"] {
    --cream:      #160F0E;
    --cream-soft: #251A19;
    --white:      #211514;
    --text-dark:  #EFE4D6;
    --text-muted: #B3A498;
    --gold:       #D9B44C;
    --gold-soft:  #ECD494;
    --shadow: 0 12px 34px rgba(0,0,0,0.55);
    --rose: #E9A9AF;
}
[data-theme="dark"] body {
    background-image:
        radial-gradient(circle at 12% 8%, rgba(217,180,76,0.05), transparent 40%),
        radial-gradient(circle at 88% 92%, rgba(233,169,175,0.05), transparent 42%);
}
[data-theme="dark"] .theme-toggle { color: var(--gold-soft); }

/* deep-maroon text turns rose so it stays readable on dark */
[data-theme="dark"] .section-title,
[data-theme="dark"] .category-heading,
[data-theme="dark"] .product-card h3,
[data-theme="dark"] .heritage-number,
[data-theme="dark"] .feature-icon-v2,
[data-theme="dark"] .feature-item-v2 h6,
[data-theme="dark"] .nav-tagline-main,
[data-theme="dark"] .brand-name,
[data-theme="dark"] .logo-circle,
[data-theme="dark"] .product-modal-body h3,
[data-theme="dark"] .product-modal-category,
[data-theme="dark"] .contact-card h5,
[data-theme="dark"] .contact-card .icon-circle,
[data-theme="dark"] .text-maroon,
[data-theme="dark"] .navbar-samara .nav-link:hover,
[data-theme="dark"] .navbar-samara .nav-link.active { color: var(--rose) !important; }

[data-theme="dark"] .feature-icon-v2,
[data-theme="dark"] .logo-circle { border-color: var(--rose); }

/* navbar background is a hardcoded light colour — darken it */
[data-theme="dark"] .navbar-samara {
    background-color: rgba(20,13,12,0.92);
    border-bottom-color: rgba(217,180,76,0.22);
    box-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
[data-theme="dark"] .navbar-brand-samara { color: var(--gold-soft) !important; }

/* soft cream gradients contain a fixed light hex — swap for dark */
[data-theme="dark"] .heritage-strip {
    background: linear-gradient(160deg, var(--cream-soft), #120C0B);
}
[data-theme="dark"] .contact-card .icon-circle {
    background: linear-gradient(135deg, var(--cream-soft), #17100F);
}

/* These sit on maroon backgrounds (hero, footer, features, contact hero),
   so their text must stay LIGHT — the cream/white vars were darkened. */
[data-theme="dark"] .hero-content,
[data-theme="dark"] .hero p,
[data-theme="dark"] .hero-mobile-text,
[data-theme="dark"] .hero-mobile-text p,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .feature-item small,
[data-theme="dark"] .footer-samara,
[data-theme="dark"] .footer-samara a,
[data-theme="dark"] .contact-hero,
[data-theme="dark"] .contact-hero p { color: #E9DBC6 !important; }

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero-mobile-text h1,
[data-theme="dark"] .feature-item h6,
[data-theme="dark"] .footer-samara h5 { color: #FBF6EC !important; }

[data-theme="dark"] .btn-samara-outline { color: #FBF6EC !important; }

/* Bootstrap's grey .text-muted is unreadable on dark — lighten it */
[data-theme="dark"] .text-muted { color: #C3B4A4 !important; }

/* Product cards stay perfectly still on hover — no lift, no image zoom,
   no sliding overlay — so scrolling the wheel over them never shifts them. */
.product-card:hover,
.product-card:focus-visible { transform: none !important; }
.product-card:hover .product-img-wrap img,
.product-card:focus-visible .product-img-wrap img { transform: none !important; }
.product-hover-overlay,
.product-hover-overlay span { transform: none !important; }

/* Product cards simply fade in — no sliding, rising, tilting, or zooming. */
.js .category-group .row > .reveal {
    transform: none !important;
    filter: none !important;
    transition: opacity 0.7s ease !important;
}
.js .category-group .row > .reveal.is-visible {
    transform: none !important;
    filter: none !important;
}
.product-img-wrap img { animation: none !important; }

/* "Read more" hint on the card, so visitors know it opens full details. */
.product-readmore {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    color: var(--gold);
    text-transform: uppercase;
}
.product-readmore i { font-size: 0.9rem; vertical-align: -1px; }
.product-card:hover .product-readmore,
.product-card:focus-visible .product-readmore { color: var(--maroon); }
[data-theme="dark"] .product-readmore { color: var(--gold-soft); }
[data-theme="dark"] .product-card:hover .product-readmore { color: var(--rose); }

/* ---- Dark mode: product popup ---- */
[data-theme="dark"] .product-modal .modal-content { background-color: #1c1512; }
[data-theme="dark"] .product-modal-body { background-color: #1c1512; }
[data-theme="dark"] .product-modal-body p { color: #D9CCBE; }
[data-theme="dark"] .product-modal-category {
    background: rgba(233,169,175,0.12);
    color: var(--rose) !important;
}
[data-theme="dark"] .product-carousel { background: #120c0b; }
[data-theme="dark"] .product-modal-close { background-color: rgba(255,255,255,0.12); color: #fff; }
[data-theme="dark"] .product-modal-close:hover { background-color: var(--maroon); }

/* ---- Dark mode: language dropdown ---- */
[data-theme="dark"] .lang-menu {
    background-color: #1c1512;
    border-color: rgba(217,180,76,0.3);
    box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}
[data-theme="dark"] .lang-menu .dropdown-item { color: #EFE4D6; }
[data-theme="dark"] .lang-menu .dropdown-item:hover { background: rgba(255,255,255,0.08); color: var(--gold-soft); }
[data-theme="dark"] .lang-menu .dropdown-item.active,
[data-theme="dark"] .lang-menu .dropdown-item:active { background: var(--maroon); color: #fff; }