:root {
    --bg: #f1eee8;
    --surface: #f7f5f1;
    --ink: #2f2a24;
    --ink-2: #6a6157;
    --brand: #7d6b5a;
    --brand-2: #655648;
    --accent: #4e6e4a;
    --accent-2: #3f5b3d;
    --muted: #c9bfb5;
    --white: #fff;
    --ff-head: "Merriweather", Georgia, serif;
    --ff-ui: "Poppins", ui-sans-serif, system-ui, -apple-system, Segoe UI,
        Roboto, Arial;
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-h2: clamp(1.75rem, 1.2rem + 1vw, 2.25rem);
    --radius-xl: 2rem;
    --radius: 1rem;
    --radius-sm: 0.75rem;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    --container: 1400px;
    --gutter: 24px;
    --ease: cubic-bezier(0.17, 0.67, 0.19, 1);
    --dur-fast: 220ms;
    --dur-med: 460ms;
}
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family: var(--ff-ui);
    font-size: var(--fs-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}
a:hover {
    text-decoration: underline;
}
.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}
.section {
    padding: 5rem 0;
}
.section-title {
    margin: 0 0 1rem;
    font-family: var(--ff-head);
    font-size: var(--fs-h2);
    text-align: center;
    color: var(--brand-2);
}
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}
.skip-link:focus {
    left: 10px;
}

/* header */
.site-header {
    background: var(--brand-2);
    color: #fff;
}
.header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 80px;
}
.center-nav {
    margin-left: auto;
    margin-right: auto;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
}
.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2rem;

    /* Menu open */
    /* position: fixed; */
    z-index: 999;
}
.nav-list a {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.nav-lang-mobile {
    display: none;
}
.right-rail {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}
.right-rail a,
.right-rail button {
    color: #fff;
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 0;
    font-weight: 600;
    cursor: pointer;
}
.brand img {
    height: 40px;
    width: auto;
    display: block;
}

/* hero */
.hero {
    position: relative;
    min-height: 100vh;
    color: #fff;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: brightness(0.85);
    z-index: 0;
}
.hero-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 95vh;
    padding-bottom: 60px;
}
.hero-width {
    width: 100%;
    margin-inline: auto;
}
#heroCarousel {
    overflow-x: hidden;
}

.hero-logo-middle {
    width: 45%;
    position: relative;
    z-index: 2;
    /* filter: drop-shadow(0 0 1rem var(--muted)); */
}

.hero-logo-img {
    width: 100%;
    filter: drop-shadow(0 0 2px rgba(0,0,0,1));
}

/* carousel */
.carousel {
    position: relative;
    overflow: visible;
} /* keep visible to avoid clipping */
.carousel-track {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    justify-content: flex-start;
    will-change: transform;
    transition: transform var(--dur-med) var(--ease);
}
.carousel.dragging .carousel-track {
    transition: none;
}

/* dots */
.dots {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
    margin-top: 0.875rem;
}
.dots button {
    inline-size: 0.625rem;
    block-size: 0.625rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 0;
    background: #fff;
    opacity: 0.5;
    cursor: pointer;
}
.dots button.is-active {
    opacity: 1;
}

/* hero cards */
.carousel[data-carousel="hero"] .carousel-track {
    --hero-gap: 1rem;
    gap: 2rem;
}
.hero-card {
    flex: 0 0 calc((100% - 2 * var(--hero-gap)) / 3);
    max-width: 260px;
    background: #fff;
    padding: 0.5rem;
    border-radius: 0;
    box-shadow: var(--shadow);
    margin: 0;
}
.hero-card .thumb {
    aspect-ratio: 1/1;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    user-select: none;
    -webkit-user-drag: none;
    cursor: default;
}

/* about */
.about {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}
.about-media,
.about-copy {
    flex: 1 1 360px;
}
.about-copy h2 {
    letter-spacing: 2px;
    margin: 0 0 0.5rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 0.2rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: transform var(--dur-fast) var(--ease),
        filter var(--dur-fast) var(--ease);
}
.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}
.btn-pill .btn-content {
    margin: 0 1rem;
}
.btn-accent {
    background: var(--accent);
}
.btn-ico {
    background: #eef0f0;
    color: var(--ink);
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    block-size: calc(100% - 2px);
    aspect-ratio: 1/1;
    padding: 1rem;
}

/* shop */
.cat {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    margin: 18px 0;
    box-shadow: var(--shadow);
    overflow: clip;
}
.cat[open] {
    border-radius: 28px;
}
.cat-head {
    cursor: pointer;
    list-style: none;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--brand-2);
}
.cat-head::-webkit-details-marker {
    display: none;
}
.cat-icon {
    display: inline-grid;
    place-items: center;
    inline-size: 36px;
    block-size: 36px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--brand-2);
}
.cat-body {
    --gap: 4rem;
    padding: var(--gap);
    overflow: auto;
    scroll-behavior: smooth;
}
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}
.product-card {
    flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    cursor: pointer;
}
.product-card .thumb {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
}

/* news */
.carousel[data-carousel="news"] {
    position: relative;
}
.carousel[data-carousel="news"] .dots {
    display: none;
}
.card.news {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: clamp(280px, 86vw, 360px); /* fixed: size adapts without clipping */
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform var(--dur-fast) var(--ease),
        box-shadow var(--dur-fast) var(--ease);
    cursor: default;
    transform: scale(0.92);
    opacity: 0.95;
}
.card.news .card-frame {
    padding: 16px;
}
.card.news .card-frame img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}
.card.news .card-body {
    padding: 0 16px 16px;
    display: grid;
    gap: 8px;
}
.card.news .card-title {
    margin: 8px 0;
}
.card.news.is-current {
    transform: scale(1.06);
    opacity: 1;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}
.card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}
.read-more i {
    font-size: 0.9rem;
}

/* swipe/scroll hints (mobile/tablet) */
.carousel[data-carousel="news"].fade-edges::before,
.carousel[data-carousel="news"].fade-edges::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to right, var(--bg), transparent);
}
.carousel[data-carousel="news"].fade-edges::after {
    right: 0;
    left: auto;
    transform: scaleX(-1);
}
.carousel[data-carousel="news"].show-hint::after {
    content: "Swipe";
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 0.25rem 0.5rem;
    background: #ffffffd9;
    color: var(--ink);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    z-index: 3;
}

/* feature banner */
.feature-banner {
    background: var(--surface);
}
.media-slot {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}
.media-slot > * {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.play-btn {
    position: absolute;
    inset: auto 50% 50% auto;
    transform: translate(50%, 50%);
    inline-size: 86px;
    block-size: 86px;
    border-radius: 50%;
    border: 3px solid #fff;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    display: grid;
    place-items: center;
    font-size: 28px;
    transition: transform var(--dur-fast) var(--ease),
        background var(--dur-fast) var(--ease);
}
.play-btn:hover {
    transform: translate(50%, 50%) scale(1.05);
    background: rgba(0, 0, 0, 0.35);
}

/* marquee */
section.featured-on {
    overflow-x: hidden;
}
.marquee-wrap {
    position: relative;
}
.full-bleed {
    width: auto;
    margin-inline: calc(50% - 50vw);  /* extend to viewport edges without overflow */
    position: relative;
}
.marquee {
    --gap: 30px;
    --speed: 35s;
    display: grid;
    gap: 18px;
}
.marquee-row {
    display: flex;
    gap: var(--gap);
    overflow: hidden;
    mask-image: linear-gradient(
        90deg,
        transparent 0,
        black 6%,
        black 94%,
        transparent 100%
    );
}
.marquee-track {
    display: flex;
    gap: var(--gap);
    animation: marquee var(--speed) linear infinite;
}
.marquee-row:nth-child(even) .marquee-track {
    animation-delay: calc(var(--speed) / -2);
}
.marquee-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.marquee-item .logo-box {
    inline-size: 240px;
    block-size: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) contrast(1) opacity(0.9);
}
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* RTL marquee animation */
:dir(rtl) .marquee-track {
    animation-name: marquee-rtl;
}

@keyframes marquee-rtl {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(50%);
    }
}

/* footer + loader + modal */
.site-footer {
    background: var(--brand-2);
    color: #eee;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 42px;
    padding-top: 36px;
}
.footer-left {
    padding-right: 20px;
}
.footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.footer-title {
    margin: 0 0 10px;
    font-family: var(--ff-head);
    color: #fff;
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.footer-list a {
    color: #eee;
}
.footer-contact,
.footer-contact a {
    color: #fff;
    font-size: 1rem;
}
.location .loc-title {
    font-weight: 700;
    margin: 16px 0 6px;
}
.footer-bottom {
    padding: 16px 0 28px;
}
.footer-rule {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin: 14px 0;
}

#loader {
    position: fixed;
    inset: 0;
    background: var(--brand-2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader img {
    width: 160px;
    height: auto;
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}
#loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* PRODUCT MODAL */
.modal[hidden] {
    display: none;
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}
.modal-dialog {
    position: absolute;
    left: 50%;
    top: 5%;
    bottom: 5%;
    transform: translateX(-50%);
    width: min(95vw, 1100px);
    height: 90vh;
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    inline-size: 40px;
    block-size: 40px;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
}
.modal-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    height: 100%;
}
.modal-media {
    background: #000;
}
.modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.modal-body {
    padding: 1.25rem 1.5rem;
    overflow: auto;
    display: grid;
    gap: 0.75rem;
}
.pm-desc {
    color: var(--ink-2);
}
.pm-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--ink-2);
}
.pm-meta .price img {
    inline-size: 14px;
    block-size: 14px;
    vertical-align: -2px;
    margin-right: 4px;
}

/* ABOUT MODAL CUSTOM STYLES */
.about-modal-dialog {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 48px rgba(125, 107, 90, 0.18);
    padding: 0;
    max-width: 600px;
    width: 96vw;
    height: auto;
    top: 8%;
    bottom: auto;
    color: var(--ink);
    font-family: var(--ff-ui);
    display: flex;
    flex-direction: column;
}

.about-modal-header {
    background: var(--brand-2);
    color: #fff;
    padding: 1.25rem 1.5rem 0.5rem 1.5rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-modal-current-tab {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.about-modal-arrows {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: var(--surface);
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    border-top: 1px solid var(--muted);
    padding: 0.75rem 2rem 1.1rem 2rem;
    min-height: 64px;
    position: relative;
    z-index: 2;
    direction: ltr;
}
[dir="rtl"] .about-modal-arrows {
    flex-direction: row-reverse;
    direction: rtl;
}
.about-arrow {
    background: var(--brand-2);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(125, 107, 90, 0.12);
    transition: background 0.2s, color 0.2s;
    touch-action: manipulation;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.about-modal-content {
    padding: 2rem 2rem 2.5rem 2rem;
    background: var(--surface);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: 0 2px 12px rgba(125, 107, 90, 0.04);
    min-height: 220px;
    position: relative;
    height: 80vh; /* Consistent height */
    max-height: 560px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.about-tab-panel {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 100%;
    display: none;
}
.about-tab-panel[hidden] {
    display: none;
}
.about-tab-panel:not([hidden]) {
    display: block;
    animation: fadeIn 0.4s;
}
@media (max-width: 600px) {
    .about-modal-header {
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 1rem;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .about-modal-content {
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 0 0 var(--radius) var(--radius);
        height: 70vh;
        max-height: 70vh;
    }
    .about-modal-arrows {
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 0 0 var(--radius) var(--radius);
        min-height: 54px;
    }
    .about-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}
@media (max-width: 600px) {
    .about-modal-dialog {
        max-width: 98vw;
        padding: 0;
        border-radius: var(--radius);
    }
    .about-modal-tabs, .about-modal-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* Responsive stacking for modal */
@media (max-width: 900px) {
    .modal-dialog {
        width: min(96vw, 760px);
    }
    .modal-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    .modal-media {
        max-height: 45vh;
    }
}

/* remove motifs */
.motif,
.motif-left-wrap,
.motif-right-wrap {
    display: none !important;
}
