/*
 * KunhaR storefront brand theme.
 * Loaded after the Tailwind build, so plain (un-layered) rules and the
 * variable overrides below win over the compiled utilities.
 */
:root {
    --kh-wine: #651c35;
    --kh-wine-dark: #4e1428;
    --kh-wine-soft: #f8eef1;
    --kh-cream: #f6efe3;
    --kh-cream-soft: #fbf7f1;
    --kh-sand: #e9dcc7;
    --kh-ink: #30251f;
    --kh-muted: #75665c;
    --kh-radius: 14px;
    --kh-serif: Georgia, "Times New Roman", serif;

    /* Tailwind "primary" was amber; the brand accent is wine. */
    --color-primary-50: #fbf3f5;
    --color-primary-100: #f5e3e8;
    --color-primary-200: #e9c5cf;
    --color-primary-300: #d79fb0;
    --color-primary-400: #b86a83;
    --color-primary-500: #84304d;
    --color-primary-600: #651c35;
    --color-primary-700: #55172d;
    --color-primary-800: #451225;
    --color-primary-900: #360e1d;
}

/* ---------- Buttons ---------- */
.add-to-cart-btn {
    background: var(--kh-wine) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    letter-spacing: .06em;
    font-size: .75rem;
    padding: .7rem 1rem;
}
.add-to-cart-btn:hover:not(:disabled) { background: var(--kh-wine-dark) !important; transform: none; }
.add-to-cart-btn:disabled { background: #d8d0c8 !important; color: #6f645b !important; }
.add-to-cart-btn.loading { background: #8a4a60 !important; }
.add-to-cart-btn.success, .add-to-cart-btn.added { background: #2f6b4f !important; }

/* ---------- Product cards (listing, search, best sellers) ---------- */
.product-card {
    border: 1px solid #eee4d8;
    border-radius: var(--kh-radius) !important;
    box-shadow: none !important;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.product-card:hover { border-color: var(--kh-sand); box-shadow: 0 14px 30px -18px rgba(70, 30, 20, .35) !important; transform: translateY(-2px); }
.product-card .aspect-square { background: var(--kh-cream-soft); }
.product-card h3, .product-card h3 a { color: var(--kh-ink); font-weight: 600; font-size: .92rem; line-height: 1.35; }
.product-card h3 a:hover { color: var(--kh-wine); }
.product-card .text-lg.font-bold { color: var(--kh-ink) !important; }
.product-card .bg-red-500 { background: var(--kh-wine) !important; }
.product-card .bg-green-100.text-green-700 { background: #eef5ef !important; color: #2f6b4f !important; }

/* ---------- Listing pages: category / search / collections ---------- */
.kh-storefront main :is(h1, h2).text-2xl,
.kh-storefront main :is(h1, h2).text-3xl,
.kh-storefront main h1.font-bold { font-family: var(--kh-serif); font-weight: 500; color: var(--kh-ink); letter-spacing: -.01em; }
.kh-storefront main select,
.kh-storefront main input[type="number"],
.kh-storefront main input[type="search"] { border-radius: 10px; border-color: #ddd2c5; }
.kh-storefront main :is(select, input):focus { outline: none; border-color: var(--kh-wine) !important; box-shadow: 0 0 0 3px rgba(101, 28, 53, .12) !important; }
.kh-storefront main input[type="checkbox"], .kh-storefront main input[type="radio"] { accent-color: var(--kh-wine); }
.kh-storefront main nav[aria-label*="agination"] :is(a, span),
.kh-storefront main .pagination :is(a, span) { border-radius: 10px; }

/* Blue utilities used by older listing templates follow the brand */
.kh-storefront main :is(button, a).bg-blue-600,
.kh-storefront main :is(button, a).bg-blue-500 { background-color: var(--kh-wine) !important; color: #fff !important; }
.kh-storefront main :is(button, a).bg-blue-600:hover,
.kh-storefront main :is(button, a).bg-blue-500:hover { background-color: var(--kh-wine-dark) !important; }
.kh-storefront main .text-blue-600 { color: var(--kh-wine); }

/* ---------- My Account ---------- */
body.kh-account { background: var(--kh-cream-soft) !important; }
body.kh-account main > .bg-gray-50,
body.kh-account main .min-h-screen.bg-gray-50 { background: var(--kh-cream-soft) !important; }
body.kh-account {
    /* Retint decorative accents used across the account templates. */
    --color-orange-500: #84304d;
    --color-orange-600: #651c35;
    --color-orange-700: #55172d;
    --color-amber-500: #84304d;
    --color-amber-600: #651c35;
    --color-amber-700: #55172d;
    --color-purple-500: #84304d;
    --color-purple-600: #651c35;
    --color-purple-700: #55172d;
    --color-purple-50: #fbf3f5;
    --color-purple-100: #f5e3e8;
    --color-purple-200: #e9c5cf;
}
body.kh-account main .bg-white.rounded-xl,
body.kh-account main .bg-white.rounded-lg,
body.kh-account main .bg-white.rounded-2xl { border: 1px solid #eee4d8 !important; box-shadow: none !important; border-radius: var(--kh-radius) !important; }
body.kh-account main h1, body.kh-account main h2 { font-family: var(--kh-serif); font-weight: 500 !important; color: var(--kh-ink); }
body.kh-account main :is(.from-primary-500, .from-purple-500, .from-purple-600, .from-amber-500) :is(h1, h2, h3) { color: #fff; }
body.kh-account main [class*="bg-gradient-to-"].from-primary-500,
body.kh-account main [class*="bg-gradient-to-"].from-purple-500,
body.kh-account main [class*="bg-gradient-to-"].from-purple-600,
body.kh-account main [class*="bg-gradient-to-"].from-amber-500 { background-image: linear-gradient(120deg, #4e1428 0%, #651c35 55%, #8a3a55 100%) !important; }
body.kh-account main :is(.text-primary-100, .text-orange-100, .text-purple-100) { color: #f1dde3 !important; }
body.kh-account main :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { border-radius: 10px; border-color: #ddd2c5; }
body.kh-account main :is(input, select, textarea):focus { outline: none; border-color: var(--kh-wine) !important; box-shadow: 0 0 0 3px rgba(101, 28, 53, .12) !important; }
body.kh-account main input[type="checkbox"], body.kh-account main input[type="radio"] { accent-color: var(--kh-wine); }


/* Stat tiles: neutral icon chips instead of rainbow colours */
body.kh-account main .w-12.h-12.rounded-xl:is(.bg-blue-100, .bg-yellow-100, .bg-green-100, .bg-purple-100),
body.kh-account main .w-14.h-14.rounded-xl:is(.bg-primary-100, .bg-pink-100, .bg-blue-100, .bg-purple-100, .bg-green-100) { background: var(--kh-wine-soft) !important; }
body.kh-account main .w-12.h-12.rounded-xl i,
body.kh-account main .w-14.h-14.rounded-xl i { color: var(--kh-wine) !important; }
body.kh-account main .group:hover .w-14.h-14.rounded-xl { background: var(--kh-wine) !important; }
body.kh-account main .group:hover .w-14.h-14.rounded-xl i { color: #fff !important; }

/* ---------- Static / CMS pages ---------- */
.kh-storefront main .prose :is(h1, h2, h3) { font-family: var(--kh-serif); font-weight: 500; color: var(--kh-ink); }
.kh-storefront main .prose a { color: var(--kh-wine); }

@media (max-width: 640px) {
    .add-to-cart-btn { padding: .6rem .5rem; font-size: .7rem; letter-spacing: .03em; }
    .product-card h3, .product-card h3 a { font-size: .85rem; }
}

/* Dashboard loyalty strip */
.kh-points-strip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--kh-cream); border: 1px solid var(--kh-sand); border-radius: var(--kh-radius); color: var(--kh-ink); text-decoration: none; }
.kh-points-strip:hover { border-color: #d9c6a8; }
.kh-points-icon { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--kh-wine); color: #fff; }
.kh-points-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kh-points-copy strong { font-family: var(--kh-serif); font-weight: 500; font-size: 1.05rem; }
.kh-points-copy small { color: var(--kh-muted); font-size: .8rem; }
.kh-points-cta { margin-left: auto; color: var(--kh-wine); font-weight: 600; font-size: .85rem; white-space: nowrap; }
@media (max-width: 640px) { .kh-points-cta { display: none; } }

body.kh-account {
    --color-amber-50: #fbf7f1;
    --color-amber-100: #efe4d2;
    --color-amber-200: #e4d3b8;
    --color-orange-50: #fbf7f1;
    --color-orange-100: #f6efe3;
    --color-orange-200: #e9dcc7;
}

body.kh-account { --color-amber-400: #b86a83; --color-yellow-400: #c79a3a; --color-orange-400: #b86a83; }
body.kh-account main .bg-clip-text.text-transparent { background-image: none !important; color: var(--kh-ink) !important; -webkit-text-fill-color: currentColor; }
body.kh-account main :is(.w-10, .w-12, .w-14).rounded-xl[class*="bg-gradient-to-"] { background-image: linear-gradient(135deg, #651c35, #8a3a55) !important; }
body.kh-account main :is(.w-10, .w-12, .w-14).rounded-xl[class*="bg-gradient-to-"] i { color: #fff !important; }
body.kh-account main button:is(.bg-green-500, .bg-green-600) { background-color: var(--kh-wine) !important; }
body.kh-account main button:is(.bg-green-500, .bg-green-600):hover { background-color: var(--kh-wine-dark) !important; }
body.kh-account { --color-pink-500: #84304d; --color-pink-600: #651c35; --color-rose-500: #84304d; --color-rose-600: #651c35; }

body.kh-storefront.bg-gray-50, .kh-storefront main > .bg-gray-50 { background-color: var(--kh-cream-soft) !important; }
.kh-storefront main :is(.bg-gray-50, .bg-gray-100):is(.min-h-screen, .py-6, .py-8) ,
.kh-storefront main > :is(.bg-gray-50, .bg-gray-100),
.kh-storefront main > div > :is(.bg-gray-50, .bg-gray-100):first-child { background-color: var(--kh-cream-soft) !important; }


/* ==========================================================================
   Tailwind v4 dropped bg-opacity-*; restore it for the black/white overlays
   still used by older views (otherwise "bg-black bg-opacity-0" is solid black).
   ========================================================================== */
.bg-black.bg-opacity-0, .bg-white.bg-opacity-0 { background-color: transparent; }
.bg-black.bg-opacity-10 { background-color: rgb(0 0 0 / .1); } .bg-black.bg-opacity-20 { background-color: rgb(0 0 0 / .2); }
.bg-black.bg-opacity-25 { background-color: rgb(0 0 0 / .25); } .bg-black.bg-opacity-30 { background-color: rgb(0 0 0 / .3); }
.bg-black.bg-opacity-40 { background-color: rgb(0 0 0 / .4); } .bg-black.bg-opacity-50 { background-color: rgb(0 0 0 / .5); }
.bg-black.bg-opacity-60 { background-color: rgb(0 0 0 / .6); } .bg-black.bg-opacity-70 { background-color: rgb(0 0 0 / .7); }
.bg-black.bg-opacity-75 { background-color: rgb(0 0 0 / .75); } .bg-black.bg-opacity-80 { background-color: rgb(0 0 0 / .8); }
.bg-white.bg-opacity-10 { background-color: rgb(255 255 255 / .1); } .bg-white.bg-opacity-20 { background-color: rgb(255 255 255 / .2); }
.bg-white.bg-opacity-50 { background-color: rgb(255 255 255 / .5); } .bg-white.bg-opacity-90 { background-color: rgb(255 255 255 / .9); }
.group:hover .group-hover\:bg-opacity-10.bg-black { background-color: rgb(0 0 0 / .1); }
.group:hover .group-hover\:bg-opacity-20.bg-black { background-color: rgb(0 0 0 / .2); }

/* ==========================================================================
   My Account shell (all /user/* pages)
   ========================================================================== */
.kh-acc { background: var(--kh-cream-soft); padding: 22px 0 56px; color: var(--kh-ink); }
.kh-acc-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.kh-acc-narrow { max-width: 820px; }
.kh-acc *, .kh-acc *::before, .kh-acc *::after { box-sizing: border-box; }
.kh-acc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--kh-muted); margin-bottom: 14px; }
.kh-acc-crumbs a { color: var(--kh-muted); text-decoration: none; }
.kh-acc-crumbs a:hover { color: var(--kh-wine); }
.kh-acc-crumbs i { font-size: 9px; opacity: .6; }
.kh-acc-crumbs [aria-current] { color: var(--kh-ink); font-weight: 600; }

.kh-acc-tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; margin: 0 0 20px; padding: 5px; background: #fff; border: 1px solid #eee4d8; border-radius: 999px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.kh-acc-tabs::-webkit-scrollbar { display: none; }
.kh-acc-tabs a, .kh-acc-logout button { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--kh-muted); font-size: 14px; font-weight: 500; text-decoration: none; border: 0; background: none; cursor: pointer; font-family: inherit; }
.kh-acc-tabs a i, .kh-acc-logout i { font-size: 13px; opacity: .75; }
.kh-acc-tabs a:hover { color: var(--kh-wine); background: var(--kh-wine-soft); }
.kh-acc-tabs a[aria-current="page"] { background: var(--kh-wine); color: #fff; }
.kh-acc-logout { margin: 0 0 0 auto; padding-right: 18px; }
.kh-acc-logout button:hover { color: #b42318; background: #fef3f2; }

.kh-acc-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.kh-acc-title h1 { margin: 0; font-family: var(--kh-serif); font-weight: 500; font-size: 28px; color: var(--kh-ink); }
.kh-acc-title p { margin: 4px 0 0; color: var(--kh-muted); font-size: 14px; }

:where(body.kh-account) .kh-card { background: #fff; border: 1px solid #eee4d8; border-radius: var(--kh-radius); margin-bottom: 16px; }
.kh-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #f2ebe2; }
.kh-card-head h2 { margin: 0; font-family: var(--kh-serif); font-weight: 500; font-size: 19px; }
.kh-link { color: var(--kh-wine); font-weight: 600; font-size: 14px; text-decoration: none; }
.kh-muted { color: var(--kh-muted); font-size: 13px; }

.kh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--kh-wine); background: var(--kh-wine); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1.2; font-family: inherit; }
.kh-btn:hover { background: var(--kh-wine-dark); border-color: var(--kh-wine-dark); }
.kh-btn.ghost { background: #fff; color: var(--kh-wine) !important; border-color: #e6d3da; }
.kh-btn.ghost:hover { background: var(--kh-wine-soft); }
.kh-btn.ghost.danger, .kh-btn.danger { color: #b42318 !important; border-color: #f3c7c1; background: #fff; }
.kh-btn.ghost.danger:hover { background: #fef3f2; }
.kh-btn.light { background: #fff; color: var(--kh-wine) !important; border-color: #fff; }
.kh-btn.whatsapp { background: #1f7a4d; border-color: #1f7a4d; }
.kh-btn.whatsapp:hover { background: #17603c; }
.kh-btn:disabled { opacity: .6; cursor: progress; }
.kh-icon-btn { border: 0; background: none; color: var(--kh-muted); padding: 4px; cursor: pointer; }
.kh-icon-btn:hover { color: var(--kh-wine); }

.kh-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f3f0ec; color: #5c4f46; white-space: nowrap; }
.kh-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.kh-pill.is-pending { background: #fff7e6; color: #a15c07; }
.kh-pill.is-confirmed, .kh-pill.is-processing { background: #eef4ff; color: #2952a3; }
.kh-pill.is-shipped { background: var(--kh-wine-soft); color: var(--kh-wine); }
.kh-pill.is-delivered { background: #ecf8f1; color: #1f7a4d; }
.kh-pill.is-cancelled { background: #fef3f2; color: #b42318; }

.kh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kh-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kh-stat { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eee4d8; border-radius: var(--kh-radius); padding: 14px 16px; color: inherit; text-decoration: none; min-width: 0; }
a.kh-stat:hover { border-color: #dcc7cf; }
.kh-stat-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--kh-wine-soft); color: var(--kh-wine); }
.kh-stat strong { display: block; font-size: 20px; line-height: 1.15; }
.kh-stat small { display: block; color: var(--kh-muted); font-size: 12.5px; }

.kh-welcome { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--kh-radius); background: linear-gradient(120deg, #4e1428 0%, #651c35 60%, #8a3a55 100%); color: #fff; margin-bottom: 14px; }
.kh-welcome-av { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); font-size: 22px; font-weight: 700; }
body.kh-account .kh-welcome h1 { margin: 0; font-family: var(--kh-serif); font-weight: 500 !important; font-size: 26px; color: #fff; }
.kh-welcome p { margin: 3px 0 0; color: #f1dde3; font-size: 14px; }
.kh-welcome .kh-btn { margin-left: auto; }
.kh-acc .kh-points-strip { margin-bottom: 16px; }

.kh-recent { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid #f4eee6; color: inherit; text-decoration: none; }
.kh-card-head + .kh-recent { border-top: 0; }
.kh-recent:hover { background: #fdfaf6; }
.kh-recent img { width: 52px; height: 52px; flex: none; object-fit: cover; border-radius: 10px; border: 1px solid #eee4d8; background: var(--kh-cream-soft); }
.kh-recent-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.kh-recent-main strong { font-size: 15px; }
.kh-recent-main .kh-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kh-recent-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.kh-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-radius: var(--kh-radius); background: var(--kh-cream); border: 1px solid var(--kh-sand); }
.kh-help h2 { margin: 0; font-family: var(--kh-serif); font-weight: 500; font-size: 19px; }
.kh-help p { margin: 4px 0 0; color: var(--kh-muted); font-size: 14px; }
.kh-help-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Orders list */
.kh-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; }
.kh-filter-search { position: relative; flex: 1 1 240px; margin: 0; }
.kh-filter-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--kh-muted); font-size: 13px; }
.kh-filter input, .kh-filter select { width: 100%; height: 42px; border: 1px solid #ddd2c5; border-radius: 999px; padding: 0 14px; font-size: 14px; background: #fff; color: var(--kh-ink); }
.kh-filter-search input { padding-left: 36px; }
.kh-filter select { width: auto; flex: 0 1 170px; }
.kh-filter :is(input, select):focus { outline: none; border-color: var(--kh-wine); box-shadow: 0 0 0 3px rgba(101,28,53,.12); }
.kh-filter .kh-btn { height: 42px; }

.kh-order { overflow: hidden; }
.kh-order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; background: #fdfaf6; border-bottom: 1px solid #f2ebe2; }
.kh-order-head > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.kh-order-no { font-weight: 700; font-size: 16px; color: var(--kh-ink); text-decoration: none; }
.kh-order-no:hover { color: var(--kh-wine); }
.kh-order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kh-order-total { font-size: 17px; margin-left: 4px; }
.kh-order-items { list-style: none; margin: 0; padding: 6px 20px; }
.kh-order-items li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid #f4eee6; }
.kh-order-items li:first-child { border-top: 0; }
.kh-order-items img { width: 64px; height: 64px; flex: none; object-fit: cover; border-radius: 10px; border: 1px solid #eee4d8; background: var(--kh-cream-soft); }
.kh-order-items li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kh-order-items li a, .kh-item-name { color: var(--kh-ink); font-weight: 600; font-size: 14px; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kh-order-items li a:hover { color: var(--kh-wine); }
.kh-order-items li > strong { font-size: 15px; white-space: nowrap; }
.kh-order-more { display: block; padding: 0 20px 10px; color: var(--kh-wine); font-size: 13px; font-weight: 600; text-decoration: none; }
.kh-order-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid #f2ebe2; }
.kh-order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kh-order-actions .kh-btn { padding: 8px 14px; font-size: 13px; }
.kh-note { font-size: 13px; font-weight: 600; }
.kh-note.is-cancelled { color: #b42318; }
.kh-empty { padding: 40px 20px; text-align: center; color: var(--kh-muted); }
.kh-empty > i { font-size: 30px; color: #d8c8bc; display: block; margin-bottom: 10px; }
.kh-empty h2 { margin: 0 0 6px; font-family: var(--kh-serif); font-weight: 500; font-size: 20px; color: var(--kh-ink); }
.kh-empty p { margin: 0 0 14px; }
.kh-pag { margin-top: 8px; }
.kh-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #2b201b; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 1000; }
.kh-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Legacy account views (wishlist, addresses, profile, order detail, tickets) */
body.kh-account :is(h1, h2, h3), .kh-acc :is(h1, h2, h3) { font-variant-numeric: lining-nums; }
.kh-acc .flex.justify-between > :is(a, button) { white-space: nowrap; }
.pt-gap { margin-top: 16px; }
body.kh-account .kh-acc :is(.p-3.rounded-xl, .w-14.h-14.rounded-xl, .w-12.h-12.rounded-xl, .w-10.h-10.rounded-full)[class*="bg-gradient-to-"] { background-image: linear-gradient(135deg, #651c35, #8a3a55) !important; }
body.kh-account .kh-acc :is(.p-3.rounded-xl, .w-14.h-14.rounded-xl, .w-12.h-12.rounded-xl)[class*="bg-gradient-to-"] :is(i, svg) { color: #fff !important; }
body.kh-account .kh-acc [class*="bg-white/70"] { background: #fff !important; box-shadow: none !important; border: 1px solid #eee4d8 !important; backdrop-filter: none !important; }
body.kh-account .kh-acc .text-3xl { font-size: 28px; line-height: 1.2; }
body.kh-account .kh-acc .kh-acc-title > div { min-width: 0; }
body.kh-account .kh-acc .kh-acc-title h1.text-3xl { margin-bottom: 0; }
.kh-wl-row { display: flex; align-items: center; gap: 16px; }
.kh-wl-row > .flex-grow { flex: 1; min-width: 0; }
.kh-wl-actions { display: flex; flex-direction: column; gap: 8px; flex: none; min-width: 140px; }
.kh-wl-actions .add-to-cart-btn, .kh-wl-actions .kh-btn { width: 100%; }
.kh-field-row { display: flex; gap: 10px; align-items: stretch; }
.kh-field-row > input { flex: 1; min-width: 0; }
.kh-field-row > button { flex: none; }

@media (max-width: 900px) {
    .kh-stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .kh-acc { padding-top: 14px; }
    .kh-acc-wrap { padding: 0 12px; }
    .kh-acc-tabs { border-radius: 14px; margin-bottom: 16px; }
    .kh-acc-tabs a, .kh-acc-logout button { padding: 8px 12px; font-size: 13.5px; }
    .kh-acc-title h1, body.kh-account .kh-acc .text-3xl { font-size: 24px; }
    .kh-acc-title .kh-btn, .kh-acc-title > button { width: 100%; }
    .kh-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .kh-stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
    .kh-stat-ico { width: 34px; height: 34px; border-radius: 10px; }
    .kh-stat strong { font-size: 18px; }
    .kh-welcome { flex-wrap: wrap; padding: 18px; }
    .kh-welcome h1 { font-size: 22px; }
    .kh-welcome .kh-btn { margin-left: 0; width: 100%; }
    .kh-recent { padding: 12px 14px; gap: 12px; }
    .kh-recent img { width: 46px; height: 46px; }
    .kh-filter select { flex: 1 1 calc(50% - 5px); }
    .kh-filter .kh-btn { flex: 1; }
    .kh-order-head, .kh-order-items, .kh-order-foot { padding-left: 14px; padding-right: 14px; }
    .kh-order-meta { width: 100%; }
    .kh-order-total { margin-left: auto; }
    .kh-order-items img { width: 56px; height: 56px; }
    .kh-order-foot > .kh-muted { width: 100%; }
    .kh-order-actions { width: 100%; }
    .kh-order-actions .kh-btn { flex: 1 1 auto; }
    .kh-help { padding: 16px; }
    .kh-help-actions, .kh-help-actions .kh-btn { width: 100%; }
    .kh-wl-row { flex-wrap: wrap; align-items: flex-start; }
    .kh-wl-row > .flex-grow { flex: 1 1 calc(100% - 100px); }
    .kh-wl-actions { flex-direction: row; width: 100%; min-width: 0; }
    .kh-wl-actions > * { flex: 1; }
    body.kh-account .kh-acc .kh-wl-row h3 { font-size: 15px; }
    .kh-field-row { flex-wrap: wrap; }
    .kh-field-row > button { flex: 1 1 100%; }
    body.kh-account .kh-acc :is(.p-6) { padding: 16px; }
    body.kh-account .kh-welcome h1 { font-size: 22px; }
    .kh-legacy-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; margin-bottom: 16px !important; }
    .kh-legacy-stats > div { padding: 12px !important; }
    .kh-legacy-stats > div > .flex { flex-direction: column; align-items: flex-start; gap: 8px; }
    .kh-legacy-stats .ml-4 { margin-left: 0 !important; }
    .kh-legacy-stats .p-3 { padding: 8px !important; }
    .kh-legacy-stats h3 { font-size: 16px !important; }
    .kh-legacy-stats p { font-size: 12px !important; line-height: 1.25; }
}

/* ==========================================================================
   KunhaR Points history (front/loyalty/history)
   ========================================================================== */
.lh { max-width: 860px; margin: 28px auto 56px; padding: 0 16px; }
.lh-card { background: #fff; border: 1px solid #eadfe3; border-radius: 18px; padding: 24px; box-shadow: 0 6px 20px rgba(101,28,53,.06); margin-bottom: 18px; }
.lh-balance { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; background: linear-gradient(135deg, #651c35, #b96b35); color: #fff; }
.lh-balance small { display: block; opacity: .85; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.lh-balance strong { display: block; font-size: 40px; line-height: 1.1; margin-top: 4px; }
.lh-balance span { font-size: 14px; opacity: .9; }
.lh h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; color: #2a1a18; }
.lh ul.rules { margin: 0; padding-left: 18px; color: #4b5563; line-height: 1.8; font-size: 14px; }
.lh table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lh th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; padding: 10px 8px; border-bottom: 1px solid #f1e7df; }
.lh td { padding: 12px 8px; border-bottom: 1px solid #f6efe9; }
.lh td.pts { text-align: right; font-weight: 700; }
.lh .plus { color: #15803d; } .lh .minus { color: #b91c1c; }
.lh .empty { text-align: center; color: #6b7280; padding: 30px 0; }
.kh-acc .lh { max-width: none; margin: 0; padding: 0; }

/* ==========================================================================
   Public order tracking: lookup form (front/orders/track-lookup)
   ========================================================================== */
.tl { max-width: 520px; margin: 40px auto 60px; padding: 0 16px; }
.tl-card { background: #fff; border: 1px solid #eadfe3; border-radius: 18px; padding: 28px; box-shadow: 0 8px 24px rgba(115,37,68,.07); }
.tl h1 { font-size: 24px; font-weight: 700; color: #651c35; margin: 0 0 6px; }
.tl p.sub { color: #6b7280; margin: 0 0 22px; font-size: 14px; }
.tl label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; color: #374151; }
.tl input { width: 100%; border: 1px solid #d1d5db; border-radius: 10px; padding: 11px 13px; font-size: 15px; margin-bottom: 16px; }
.tl input:focus { outline: none; border-color: #651c35; box-shadow: 0 0 0 3px rgba(101,28,53,.14); }
.tl button { width: 100%; background: linear-gradient(135deg, #651c35, #b96b35); color: #fff; font-weight: 700; border: 0; border-radius: 10px; padding: 13px; font-size: 15px; cursor: pointer; }
.tl .err { background: #fef2f2; color: #991b1b; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 16px; }
.tl .help { font-size: 13px; color: #6b7280; margin-top: 16px; text-align: center; }
.tl .help a { color: #651c35; font-weight: 600; }

/* ==========================================================================
   Public order tracking: result (front/orders/public-track)
   ========================================================================== */
.pt { max-width: 720px; margin: 24px auto 48px; padding: 0 16px; color: #1f2937; }
.pt-card { background: #fff; border: 1px solid #eadfe3; border-radius: 16px; padding: 20px; box-shadow: 0 2px 10px rgba(115,37,68,.06); margin-bottom: 16px; }
.pt h1 { font-size: 22px; font-weight: 700; color: #732544; margin: 0 0 4px; }
.pt-sub { color: #6b7280; font-size: 14px; margin: 0; }
.pt-steps { display: flex; justify-content: space-between; position: relative; margin: 24px 0 8px; }
.pt-steps::before { content: ""; position: absolute; top: 14px; left: 12%; right: 12%; height: 3px; background: #eee; }
.pt-step { position: relative; flex: 1; text-align: center; font-size: 12px; color: #9ca3af; }
.pt-dot { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 6px; background: #f3f4f6; border: 3px solid #fff; box-shadow: 0 0 0 1px #e5e7eb; display: flex; align-items: center; justify-content: center; font-weight: 700; position: relative; }
.pt-step.on { color: #732544; font-weight: 600; }
.pt-step.on .pt-dot { background: #732544; color: #fff; box-shadow: 0 0 0 1px #732544; }
.pt-cancel { background: #fef2f2; color: #991b1b; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.pt-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #f3f4f6; font-size: 14px; }
.pt-row:first-child { border-top: 0; }
.pt-row span:first-child { color: #6b7280; }
.pt-btn { display: inline-block; background: #732544; color: #fff !important; border-radius: 10px; padding: 10px 18px; font-weight: 600; text-decoration: none; margin-top: 10px; }
.pt-help { font-size: 14px; color: #4b5563; }
.pt-help a { color: #732544; font-weight: 600; }

/* ==========================================================================
   Footer (front/partials/footer). Warm palette on the dark wine background:
   cream text, gold accents, soft white dividers.
   ========================================================================== */
.kh-footer { --kh-ft-bg: #29121a; --kh-ft-gold: #e9b567; --kh-ft-text: #e7d7cc; --kh-ft-muted: #b9a196; --kh-ft-line: rgba(255, 255, 255, .12); background: var(--kh-ft-bg) !important; border-top: 1px solid #70424a; color: #fff; }
.kh-footer .kh-festival-footer-band { background: linear-gradient(90deg, #4a1525, var(--kh-festival-accent, #8a2437), #a85d31); color: #fffaf2; }
.kh-footer .kh-festival-trust, .kh-footer .bg-gradient-to-r.from-primary-600 { background: #3d1723 !important; border-bottom: 1px solid #70424a; }
html body footer.kh-footer.kh-footer :is(.text-primary-500, .text-primary-400, .text-primary-600) { color: var(--kh-ft-gold) !important; }
html body footer.kh-footer.kh-footer .bg-primary-500 { background-color: var(--kh-ft-gold) !important; }
.kh-footer :is(.text-gray-400, p.text-gray-400) { color: var(--kh-ft-text) !important; }
.kh-footer .text-gray-500 { color: var(--kh-ft-muted) !important; }
html body footer.kh-footer.kh-footer a:hover, html body footer.kh-footer.kh-footer a:hover i { color: #fff !important; }

.kh-footer .bg-gray-800 { background-color: rgba(255, 255, 255, .07) !important; }
.kh-footer .border-gray-800, .kh-footer .kh-footer-bottom { border-color: var(--kh-ft-line) !important; }
.kh-footer .kh-footer-bottom a { color: #fff; }
/* Link groups are <details>: always open on larger screens, tap-to-open on phones. */
.kh-footer .kh-footer-acc>summary{list-style:none;cursor:default;pointer-events:none;display:flex;align-items:center;justify-content:space-between}
.kh-footer .kh-footer-acc>summary::-webkit-details-marker{display:none}
.kh-footer .kh-footer-acc .kh-acc-icon{display:none}
@media(max-width:767px){
.kh-footer .kh-footer-acc{border-top:1px solid rgba(255,255,255,.12)}
.kh-footer .kh-footer-acc+div{border-top:1px solid rgba(255,255,255,.12);padding-top:18px}
.kh-footer .kh-footer-acc>summary{pointer-events:auto;cursor:pointer;padding:14px 2px;-webkit-tap-highlight-color:transparent}
.kh-footer .kh-footer-acc>summary h4{margin:0 !important}
.kh-footer .kh-footer-acc .kh-acc-icon{display:inline-block;color:#edc993;font-size:12px;transition:transform .2s}
.kh-footer .kh-footer-acc[open] .kh-acc-icon{transform:rotate(180deg)}
.kh-footer .kh-footer-acc>ul{margin:0 0 16px !important;padding-left:2px}
body:has(#productStickyBar) .kh-footer .kh-footer-bottom>.container{padding-bottom:128px}
}
@media(min-width:768px){body:has(#productStickyBar) .kh-footer .kh-footer-bottom>.container{padding-bottom:100px}}
/* The floating WhatsApp button steps aside while the footer end is in view. */
[data-whatsapp-support]{transition:opacity .2s}
body.kh-footer-end-visible [data-whatsapp-support]{opacity:0;pointer-events:none}

/* ==========================================================================
   Homepage catalog (front/index, below the festive hero).
   Decorative Tailwind hues follow the wine palette; red/green/yellow keep
   their meaning (discounts, savings, ratings).
   ========================================================================== */
.kh-seasonal-catalog {
    --color-blue-50: #fbf3f5; --color-blue-100: #f5e3e8; --color-blue-200: #e9c5cf; --color-blue-300: #d79fb0; --color-blue-400: #b86a83; --color-blue-500: #84304d; --color-blue-600: #651c35; --color-blue-700: #55172d; --color-blue-800: #451225; --color-blue-900: #360e1d;
    --color-sky-50: #fbf3f5; --color-sky-100: #f5e3e8; --color-sky-200: #e9c5cf; --color-sky-300: #d79fb0; --color-sky-400: #b86a83; --color-sky-500: #84304d; --color-sky-600: #651c35; --color-sky-700: #55172d; --color-sky-800: #451225; --color-sky-900: #360e1d;
    --color-cyan-50: #fbf3f5; --color-cyan-100: #f5e3e8; --color-cyan-200: #e9c5cf; --color-cyan-300: #d79fb0; --color-cyan-400: #b86a83; --color-cyan-500: #84304d; --color-cyan-600: #651c35; --color-cyan-700: #55172d; --color-cyan-800: #451225; --color-cyan-900: #360e1d;
    --color-indigo-50: #fbf3f5; --color-indigo-100: #f5e3e8; --color-indigo-200: #e9c5cf; --color-indigo-300: #d79fb0; --color-indigo-400: #b86a83; --color-indigo-500: #84304d; --color-indigo-600: #651c35; --color-indigo-700: #55172d; --color-indigo-800: #451225; --color-indigo-900: #360e1d;
    --color-violet-50: #fbf3f5; --color-violet-100: #f5e3e8; --color-violet-200: #e9c5cf; --color-violet-300: #d79fb0; --color-violet-400: #b86a83; --color-violet-500: #84304d; --color-violet-600: #651c35; --color-violet-700: #55172d; --color-violet-800: #451225; --color-violet-900: #360e1d;
    --color-purple-50: #fbf3f5; --color-purple-100: #f5e3e8; --color-purple-200: #e9c5cf; --color-purple-300: #d79fb0; --color-purple-400: #b86a83; --color-purple-500: #84304d; --color-purple-600: #651c35; --color-purple-700: #55172d; --color-purple-800: #451225; --color-purple-900: #360e1d;
    --color-fuchsia-50: #fbf3f5; --color-fuchsia-100: #f5e3e8; --color-fuchsia-200: #e9c5cf; --color-fuchsia-300: #d79fb0; --color-fuchsia-400: #b86a83; --color-fuchsia-500: #84304d; --color-fuchsia-600: #651c35; --color-fuchsia-700: #55172d; --color-fuchsia-800: #451225; --color-fuchsia-900: #360e1d;
    --color-pink-50: #fbf3f5; --color-pink-100: #f5e3e8; --color-pink-200: #e9c5cf; --color-pink-300: #d79fb0; --color-pink-400: #b86a83; --color-pink-500: #84304d; --color-pink-600: #651c35; --color-pink-700: #55172d; --color-pink-800: #451225; --color-pink-900: #360e1d;
    --color-rose-50: #fbf3f5; --color-rose-100: #f5e3e8; --color-rose-200: #e9c5cf; --color-rose-300: #d79fb0; --color-rose-400: #b86a83; --color-rose-500: #84304d; --color-rose-600: #651c35; --color-rose-700: #55172d; --color-rose-800: #451225; --color-rose-900: #360e1d;
    --color-teal-50: #fbf3f5; --color-teal-100: #f5e3e8; --color-teal-200: #e9c5cf; --color-teal-300: #d79fb0; --color-teal-400: #b86a83; --color-teal-500: #84304d; --color-teal-600: #651c35; --color-teal-700: #55172d; --color-teal-800: #451225; --color-teal-900: #360e1d;
    --color-lime-50: #fbf3f5; --color-lime-100: #f5e3e8; --color-lime-200: #e9c5cf; --color-lime-300: #d79fb0; --color-lime-400: #b86a83; --color-lime-500: #84304d; --color-lime-600: #651c35; --color-lime-700: #55172d; --color-lime-800: #451225; --color-lime-900: #360e1d;
    --color-amber-50: #fbf3f5; --color-amber-100: #f5e3e8; --color-amber-200: #e9c5cf; --color-amber-300: #d79fb0; --color-amber-400: #b86a83; --color-amber-500: #84304d; --color-amber-600: #651c35; --color-amber-700: #55172d; --color-amber-800: #451225; --color-amber-900: #360e1d;
    --color-orange-50: #fbf3f5; --color-orange-100: #f5e3e8; --color-orange-200: #e9c5cf; --color-orange-300: #d79fb0; --color-orange-400: #b86a83; --color-orange-500: #84304d; --color-orange-600: #651c35; --color-orange-700: #55172d; --color-orange-800: #451225; --color-orange-900: #360e1d;
}
.kh-seasonal-catalog h2.font-bold { font-family: var(--kh-serif); font-weight: 500; color: var(--kh-ink); letter-spacing: -.01em; }
.kh-seasonal-catalog > section:last-child h2.font-bold { color: #fff; }
.kh-sec-ico { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--kh-wine); color: #fff; }
.kh-sec-ico i, .kh-sec-ico svg { color: #fff !important; }
.kh-dining { border: 1px solid #eee4d8; }
.kh-dining .group > div { border-color: #eee4d8 !important; }
.kh-dining .group:hover > div { border-color: #dcc7cf !important; }
.kh-dining .group:hover h3 { color: var(--kh-wine) !important; }
.kh-chip-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; background: var(--kh-wine-soft); color: var(--kh-wine); font-size: 12px; font-weight: 600; }
.group:hover .kh-chip-link { background: var(--kh-wine); color: #fff; }
.kh-nl-btn { background: #e9b567; color: #2b1418; }
.kh-nl-btn:hover { background: #f3c985; }
.kh-nl-divider { border-color: rgba(255, 255, 255, .15) !important; }
.kh-seasonal-catalog > section:last-child .text-gray-400 { color: #ecd8dd !important; }

/* Homepage helpers moved from front/index */
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
/* Content stays visible even when scripts are blocked or fail. */
section .bg-white.rounded { opacity: 1; transform: none; }
.zc-animate { opacity: 1; transform: none; }
.zc-visible, section .bg-white.rounded.zc-visible { opacity: 1 !important; transform: translateY(0) !important; }
/* Fallback for no-JS or before observer kicks in */
@media (prefers-reduced-motion: reduce) {
    section .bg-white.rounded, .zc-animate { opacity: 1; transform: none; transition: none; }
}
/* Full-width split banner inspired by the reference: image left, clean offer panel right. */
.kh-home-hero { background: #fff; }
.kh-home-hero__frame { width: 100%; overflow: hidden; border-top: 1px solid #f0ece7; border-bottom: 1px solid #f0ece7; }
.kh-home-hero__slide { display: grid; grid-template-columns: minmax(0, 60%) minmax(20rem, 40%); min-height: clamp(430px, 37vw, 590px); background: #fff; color: #111; }
.kh-home-hero__image, .kh-home-hero__image-file { width: 100%; height: 100%; }
.kh-home-hero__image { min-height: 100%; overflow: hidden; background: #eee4d8; }
.kh-home-hero__image-file { display: block; object-fit: cover; object-position: center; transition: transform .7s ease; }
.kh-home-hero__slide:hover .kh-home-hero__image-file { transform: scale(1.018); }
.kh-home-hero__content { display: flex; align-items: center; min-width: 0; padding: clamp(2.5rem, 5vw, 6.4rem); background: #fff; }
.kh-home-hero__copy { max-width: 29rem; color: #111; }
.kh-home-hero__eyebrow { margin: 0 0 1.15rem; color: #77685b; font-size: .68rem; font-weight: 700; letter-spacing: .18em; line-height: 1.3; text-transform: uppercase; }
.kh-home-hero__title { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.15rem, 3.6vw, 4.15rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.04; }
.kh-home-hero__description { margin: 1.45rem 0 1.85rem; max-width: 28rem; color: #37332f; font-size: clamp(.95rem, 1.35vw, 1.25rem); line-height: 1.55; }
.kh-home-hero__cta { display: inline-flex; align-items: center; gap: 1.1rem; padding: 1rem 1.35rem; background: #111; color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; transition: background .2s ease, transform .2s ease; }
.kh-home-hero__slide:hover .kh-home-hero__cta { background: #3c3027; transform: translateY(-2px); }
.kh-home-hero__cta .fas { font-size: .68rem; }
.hero-swiper .kh-home-hero__pagination { display: none; }
.hero-swiper .kh-home-hero__arrow { top: auto; bottom: 1.35rem; display: flex; width: 2.7rem; height: 2.7rem; margin: 0; border: 1px solid #e7e2dc; border-radius: 50%; background: #fff; color: #171717 !important; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: background .2s ease, border-color .2s ease, color .2s ease; }
.hero-swiper .kh-home-hero__arrow:hover { border-color: #111; background: #111; color: #fff !important; }
.hero-swiper .kh-home-hero__arrow:after { font-size: .75rem !important; }
.hero-swiper .kh-home-hero__arrow--prev { right: 4.6rem; left: auto; }
.hero-swiper .kh-home-hero__arrow--next { right: 1.3rem; }
@media (min-width: 768px) { .hero-swiper .kh-home-hero__arrow { display: flex; } }
@media (max-width: 640px) {
    .kh-home-hero__slide { display: flex; flex-direction: column; min-height: 0; }
    .kh-home-hero__image { aspect-ratio: 4 / 3; }
    .kh-home-hero__content { min-height: 295px; padding: 2rem 1.5rem 2.4rem; }
    .kh-home-hero__title { font-size: clamp(2rem, 10vw, 3rem); }
    .kh-home-hero__description { margin: 1rem 0 1.4rem; font-size: .95rem; }
    .hero-swiper .kh-home-hero__arrow { bottom: .9rem; width: 2.45rem; height: 2.45rem; }
    .hero-swiper .kh-home-hero__arrow--prev { right: 3.85rem; }
    .hero-swiper .kh-home-hero__arrow--next { right: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .kh-home-hero__image-file, .kh-home-hero__cta { transition: none; } }

/* ==========================================================================
   Homepage hero: right-hand panel when the banner artwork carries its own
   headline (front/partials/festive-homepage, .kh-hero--baked).
   ========================================================================== */
.kh-festival .kh-hero--baked .kh-copy { align-items: stretch; text-align: left; }
.kh-hero-panel { width: 100%; max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.kh-hero-kicker { margin: 0; color: var(--kh-wine); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.kh-hero-line { margin: -6px 0 0; font-family: var(--kh-serif); font-size: clamp(26px, 2.3vw, 36px); line-height: 1.15; letter-spacing: -.02em; color: var(--kh-ink); }
.kh-hero-offer { position: relative; padding: 16px 18px; border: 1px dashed #c9a989; border-radius: 14px; background: #fffaf3; }
.kh-hero-offer-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.kh-hero-offer-top strong { font-family: var(--kh-serif); font-size: 28px; font-weight: 500; color: var(--kh-wine); line-height: 1; }
.kh-hero-offer-top span { color: var(--kh-muted); font-size: 14px; }
.kh-hero-code { display: flex; align-items: stretch; border: 1px solid #e6d3da; border-radius: 10px; overflow: hidden; background: #fff; }
.kh-hero-code code { flex: 1; padding: 10px 14px; font: 700 15px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: var(--kh-ink); }
.kh-hero-code button { border: 0; padding: 0 16px; background: var(--kh-wine); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.kh-hero-code button:hover { background: var(--kh-wine-dark); }
.kh-hero-offer small { display: block; margin-top: 8px; color: var(--kh-muted); font-size: 12px; line-height: 1.5; }
.kh-hero-offer .kh-offer-status { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: #1f7a4d; min-height: 0; }
.kh-hero-offer .kh-offer-status:empty { display: none; }
.kh-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.kh-hero-ctas .kh-cta { flex: 1 1 auto; }
.kh-festival .kh-cta.kh-cta--ghost { background: transparent; color: var(--kh-wine); border: 1px solid var(--kh-wine); }
.kh-festival .kh-cta.kh-cta--ghost:hover { background: var(--kh-wine); color: #fff; }
.kh-hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid #eadcca; color: #5c4f46; font-size: 13px; }
.kh-hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.kh-hero-trust i { color: var(--kh-wine); font-size: 13px; }
@media (max-width: 640px) {
    .kh-hero-panel { gap: 14px; max-width: none; }
    .kh-hero-line { font-size: 24px; }
    .kh-hero-offer { padding: 14px; }
    .kh-hero-offer-top strong { font-size: 24px; }
    .kh-hero-trust { justify-content: space-between; gap: 6px; font-size: 12px; }
}
.kh-hero-panel { text-align: center; }
.kh-hero-offer-top { justify-content: center; }
@media (min-width: 641px) { .kh-hero-trust { justify-content: center; } }

/* Homepage festival product cards: equal rows, footer pinned to bottom */
.kh-festival .kh-products > .kh-card { display: flex; flex-direction: column; height: 100%; border: 0; border-radius: 0; margin: 0; background: transparent; }
.kh-festival .kh-card .kh-product-image { border-radius: 14px; }
.kh-festival .kh-card-text { flex: 1; display: flex; flex-direction: column; }
.kh-festival .kh-card h3 { min-height: 3em; }
.kh-festival .kh-card .kh-product-link { margin-top: auto; }
@media (max-width: 640px) {
    .kh-festival .kh-card h3 { font-size: 13px; }
    .kh-festival .kh-card .kh-product-image { border-radius: 10px; }
}

/* Homepage "Shop the edits" collection tiles */
.kh-festival .kh-collections { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; padding-bottom: 20px; }
.kh-festival .kh-collection { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.kh-festival .kh-collection-visual { position: relative; overflow: hidden; border-radius: 16px; background: var(--cream, #f6efe3); }
.kh-festival .kh-collection-visual::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(101, 28, 53, .08); pointer-events: none; }
.kh-festival .kh-collection img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s ease; }
.kh-festival .kh-collection:hover img { transform: scale(1.04); }
.kh-festival .kh-collection-body { padding: 14px 2px 0; }
.kh-festival .kh-collection h3 { margin: 0 0 6px; font-family: var(--kh-serif, Georgia, serif); font-size: 19px; font-weight: 500; line-height: 1.25; color: #2b1d17; }
.kh-festival .kh-collection p { margin: 0 0 8px; font-size: 13px; line-height: 1.55; color: #786855; }
.kh-festival .kh-collection-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--wine, #651c35); }
.kh-festival .kh-collection-cta span { transition: transform .25s ease; }
.kh-festival .kh-collection:hover .kh-collection-cta span { transform: translateX(4px); }
@media (max-width: 1100px) {
    .kh-festival .kh-collections { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .kh-festival .kh-collections { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 12px; scroll-padding: 0 16px; scrollbar-width: none; }
    .kh-festival .kh-collections::-webkit-scrollbar { display: none; }
    .kh-festival .kh-collection { flex: 0 0 42%; scroll-snap-align: start; }
    .kh-festival .kh-collection-visual { border-radius: 12px; }
    .kh-festival .kh-collection-body { padding-top: 10px; }
    .kh-festival .kh-collection h3 { font-size: 15px; margin-bottom: 4px; }
    .kh-festival .kh-collection p { display: none; }
    .kh-festival .kh-collection-cta { font-size: 12px; }
}

/* Homepage "Shop by category" strip */
.kh-catnav { background: #fff; border-bottom: 1px solid #efe6da; padding: 18px 0 14px; }
.kh-catnav-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.kh-catnav-head h2 { margin: 0; font-family: var(--kh-serif, Georgia, serif); font-size: 22px; font-weight: 500; color: #2b1d17; }
.kh-catnav-head a { font-size: 13px; font-weight: 600; color: var(--kh-wine, #651c35); white-space: nowrap; }
.kh-catnav-head a:hover { text-decoration: underline; }
.kh-catnav-wrap { position: relative; }
.kh-catnav-wrap::before, .kh-catnav-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 48px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.kh-catnav-wrap::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.kh-catnav-wrap::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.kh-catnav-wrap.fade-start::before, .kh-catnav-wrap.fade-end::after { opacity: 1; }
.kh-catnav-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 6px; }
.kh-catnav-track::-webkit-scrollbar { display: none; }
.kh-catnav-item { flex: 0 0 112px; display: flex; flex-direction: column; align-items: center; gap: 8px; scroll-snap-align: start; text-decoration: none; padding: 4px 2px; border-radius: 12px; }
.kh-catnav-img { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f6efe3; box-shadow: 0 0 0 1px #eadfce; transition: box-shadow .2s, transform .2s; }
.kh-catnav-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.kh-catnav-img i { color: #b9a58f; font-size: 22px; }
.kh-catnav-item:hover .kh-catnav-img, .kh-catnav-item:focus-visible .kh-catnav-img { box-shadow: 0 0 0 2px var(--kh-wine, #651c35), 0 6px 16px rgba(101,28,53,.14); transform: translateY(-2px); }
.kh-catnav-item:hover .kh-catnav-img img { transform: scale(1.06); }
.kh-catnav-name { font-size: 12.5px; font-weight: 500; line-height: 1.3; color: #4a3b33; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.kh-catnav-item:hover .kh-catnav-name { color: var(--kh-wine, #651c35); }
.kh-catnav-btn { position: absolute; top: 34px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #eadfce; background: #fff; color: var(--kh-wine, #651c35); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(43,29,23,.12); cursor: pointer; font-size: 13px; }
.kh-catnav-btn[hidden] { display: none; }
.kh-catnav-btn:hover { background: var(--kh-wine, #651c35); color: #fff; }
.kh-catnav-btn.is-prev { left: -6px; }
.kh-catnav-btn.is-next { right: -6px; }
@media (max-width: 767px) {
    .kh-catnav { padding: 14px 0 10px; }
    .kh-catnav-head h2 { font-size: 18px; }
    .kh-catnav-track { gap: 4px; margin: 0 -16px; padding: 4px 16px 6px; scroll-padding: 0 16px; }
    .kh-catnav-item { flex-basis: 84px; gap: 6px; }
    .kh-catnav-img { width: 68px; height: 68px; }
    .kh-catnav-name { font-size: 11.5px; }
    .kh-catnav-btn { display: none; }
    .kh-catnav-wrap::before, .kh-catnav-wrap::after { width: 28px; }
}

/* Footer: long email/phone links must wrap inside narrow columns (1024px) */
html body footer.kh-footer.kh-footer .flex > a[href^="mailto:"], html body footer.kh-footer.kh-footer .flex > a[href^="tel:"] { min-width: 0; overflow-wrap: anywhere; }

/* Mobile homepage rhythm: tighter, consistent gaps between sections */
@media (max-width: 767px) {
    html body .kh-festival .kh-products { padding-bottom: 28px; }
    html body .kh-festival .kh-editorials { padding-top: 0; padding-bottom: 24px; }
    html body .kh-festival .kh-editorial { margin-top: 0; }
    html body .kh-festival .kh-editorial + .kh-editorial { margin-top: 20px; }
    html body .kh-festival .kh-collections { padding-bottom: 4px; }
    html body .kh-festival .kh-section { padding: 28px 0 18px; }

    html body footer.kh-footer.kh-footer > .container { padding-top: 32px; padding-bottom: 28px; }
    html body footer.kh-footer.kh-footer .grid.gap-8 { row-gap: 0; }
    html body footer.kh-footer.kh-footer .grid.gap-8 > :first-child { padding-bottom: 20px; }
    html body footer.kh-footer.kh-footer .grid.gap-8 > :first-child p:last-child,
    html body footer.kh-footer.kh-footer .grid.gap-8 > :first-child > :last-child { margin-bottom: 0; }
    html body footer.kh-footer.kh-footer .kh-footer-acc summary h4 { margin-bottom: 0; }
}
