/* =========================================================
   Al Noor Shopping — storefront styles
   Colours, font, radius and grid columns come from the admin
   panel (Settings → Appearance) as CSS variables in <head>.
   ========================================================= */

:root {
    --primary: #db2777; --primary-dark: #b31d61; --primary-soft: #fde8f1;
    --accent: #f5b301; --accent-dark: #d09801; --accent-soft: #fef7e0;
    --dark: #0c4a6e; --dark-2: #2a6185;
    --sky: #0ea5e9; --sky-dark: #0b87bf; --sky-soft: #e2f4fd;
    --bg: #fdf7fa; --surface: #ffffff; --text: #231a2b; --muted: #6f6479; --border: #f0e1ea;
    --danger: #dc2626; --success: #0b81b6; --info: #2563eb;
    --radius: 10px; --radius-sm: 6px; --font: 'Hind Siliguri'; --cols: 5; --cols-md: 4; --shop-cols: 4;
    --shadow-sm: 0 1px 2px rgba(120, 20, 70, .06);
    --shadow: 0 6px 20px -8px rgba(120, 20, 70, .18);
    --shadow-lg: 0 18px 40px -16px rgba(120, 20, 70, .28);
    --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--font), 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt { margin-top: 1.25rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.site-main { min-height: 50vh; padding-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .7em 1.25em; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s, transform .1s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #1b1404; }
.btn-accent:hover { background: var(--accent-dark); color: #1b1404; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); color: #fff; }
.btn-light { background: #fff; border-color: var(--border); color: var(--text); }
.btn-light:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb457; color: #fff; }
.btn-sm { padding: .5em .9em; font-size: .85rem; }
.btn-lg { padding: .85em 1.5em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .7; }
.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: transparent; color: inherit; font-size: 1.05rem; transition: background .15s;
}
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.icon-btn.danger:hover { background: #fdecec; color: var(--danger); }

/* ---------- Forms ---------- */
input, select, textarea {
    width: 100%; font: inherit; color: var(--text); background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .65em .85em;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--primary); }
textarea { resize: vertical; }
label { font-weight: 600; font-size: .9rem; display: inline-block; margin-bottom: .35em; }
.field { margin-bottom: 1rem; }
.field-full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.req { color: var(--danger); }
.check { display: flex; align-items: center; gap: .5em; font-weight: 500; cursor: pointer; margin-bottom: .5em; }

/* ---------- Notice bar ---------- */
.notice-bar { background: var(--accent); color: #1b1404; font-size: .85rem; font-weight: 600; overflow: hidden; white-space: nowrap; }
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { padding: 6px 3rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark); color: rgba(255, 255, 255, .82); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.topbar-social { display: inline-flex; gap: .8rem; padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, .15); }

/* ---------- Header ---------- */
.site-header { background: #fff; box-shadow: var(--shadow-sm); z-index: 40; }
.sticky-on .site-header { position: sticky; top: 0; }
.header-main { display: flex; align-items: center; gap: 1.5rem; padding-top: 6px; padding-bottom: 6px; }
.menu-toggle { display: none; }
.logo { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo img { height: 58px; width: auto; }
/* Text logo (shown until a logo image is uploaded in Settings → General) */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; padding: 2px 0; }
.wm-main {
    font-family: var(--logo-font, 'Playfair Display'), Georgia, 'Times New Roman', serif; font-size: 1.85rem; font-weight: 700; letter-spacing: -.01em;
    background: linear-gradient(115deg, var(--primary) 0%, var(--primary-dark) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-bottom: 3px;
}
.wm-sub {
    display: flex; align-items: center; gap: .5em; margin-top: 4px; padding-left: .45em;
    font-size: .62rem; font-weight: 700; letter-spacing: .45em; text-transform: uppercase; color: var(--dark);
}
.wm-sub::before, .wm-sub::after { content: ''; width: 16px; height: 2px; border-radius: 2px; background: var(--accent); }
.logo-light .wm-main { background: none; color: #fff; }
.logo-light .wm-sub { color: rgba(255, 255, 255, .78); }

.search { position: relative; flex: 1; display: flex; max-width: 640px; border: 2px solid var(--primary); border-radius: var(--radius); background: #fff; }
.search select { width: auto; max-width: 170px; border: 0; border-right: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); background: #fcf5f9; font-size: .875rem; }
.search input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.search input:focus, .search select:focus { box-shadow: none; }
.search button { border: 0; background: var(--primary); color: #fff; padding: 0 1.25rem; border-radius: 0 calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0; font-size: 1.05rem; }
.search button:hover { background: var(--primary-dark); }
.search-suggest {
    position: absolute; left: -2px; right: -2px; top: calc(100% + 6px); background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; z-index: 60;
}
.search-suggest a { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; border-bottom: 1px solid var(--border); }
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:hover, .search-suggest a.active { background: var(--primary-soft); color: inherit; }
.search-suggest img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }
.search-suggest .s-name { flex: 1; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.search-suggest .s-name small { display: block; font-weight: 400; color: var(--muted); }
.search-suggest .s-price { color: var(--primary); font-weight: 700; font-size: .9rem; }
.search-suggest .s-all { justify-content: center; font-weight: 600; color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.action { display: flex; align-items: center; gap: .55rem; }
.action > i, .action .icon-wrap > i { font-size: 1.45rem; color: var(--primary); }
.action span { display: flex; flex-direction: column; line-height: 1.15; }
.action small { font-size: .75rem; color: var(--muted); }
.action strong { font-size: .92rem; }
.icon-wrap { position: relative; display: inline-block !important; }
.cart-count {
    position: absolute; top: -8px; right: -10px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
    background: var(--accent); color: #1b1404; font-size: .7rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ---------- Main nav ---------- */
.main-nav { background: var(--primary); color: #fff; }
.nav-inner { display: flex; align-items: center; gap: 1rem; min-height: 46px; }
.all-cats { position: relative; align-self: stretch; }
.all-cats-btn {
    height: 100%; display: flex; align-items: center; gap: .6rem; padding: 0 1.1rem; min-width: 240px;
    border: 0; background: var(--primary-dark); color: #fff; font-weight: 600;
}
.all-cats-btn .fa-chevron-down { margin-left: auto; }
.cat-dropdown {
    position: absolute; top: 100%; left: 0; width: 100%; min-width: 240px; background: #fff; color: var(--text);
    box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius); padding: .4rem 0;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 50;
}
.all-cats:hover .cat-dropdown, .all-cats:focus-within .cat-dropdown { opacity: 1; visibility: visible; transform: none; }
.cat-dropdown li { position: relative; }
.cat-dropdown a { display: flex; align-items: center; gap: .7rem; padding: .55rem 1.1rem; font-size: .92rem; }
.cat-dropdown a > i:first-child { width: 18px; text-align: center; color: var(--primary); }
.cat-dropdown a:hover { background: var(--primary-soft); }
.cat-dropdown .sub-arrow { margin-left: auto; color: var(--muted); }
.cat-dropdown .sub {
    position: absolute; left: 100%; top: 0; min-width: 210px; background: #fff; box-shadow: var(--shadow-lg);
    border-radius: var(--radius); padding: .4rem 0; display: none;
}
.cat-dropdown li:hover > .sub { display: block; }
.nav-links { display: flex; align-items: center; gap: .25rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-links a { display: block; padding: .7rem .9rem; font-weight: 600; font-size: .93rem; color: rgba(255, 255, 255, .9); border-radius: var(--radius-sm); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-offer { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: 30px; background: var(--accent); color: #1b1404; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.nav-offer:hover { color: #1b1404; filter: brightness(1.05); }

/* ---------- Drawer (mobile menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 15, 12, .5); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
    position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #fff; display: flex; flex-direction: column;
    transform: translateX(-100%); transition: transform .28s ease; box-shadow: var(--shadow-lg);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; background: var(--primary); color: #fff; }
.drawer-head .icon-btn:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.drawer-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.drawer-tabs button { border: 0; background: #fff; padding: .8rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.drawer-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.drawer-list { overflow-y: auto; flex: 1; padding: .4rem 0; }
.drawer-list a { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.1rem; font-weight: 500; border-bottom: 1px solid #f8edf3; }
.drawer-list a i { width: 18px; text-align: center; color: var(--primary); }
.drawer-list li.child a { padding-left: 3rem; font-size: .9rem; color: var(--muted); }
.drawer-call { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; background: var(--primary-soft); color: var(--primary); font-weight: 700; }

/* ---------- Toasts & alerts ---------- */
.toast-stack { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast {
    background: #fff; border-left: 4px solid var(--primary); box-shadow: var(--shadow-lg); border-radius: var(--radius-sm);
    padding: .85rem 1rem; font-weight: 500; font-size: .92rem; animation: toastIn .3s ease;
}
.toast-error { border-left-color: var(--danger); }
.toast-info { border-left-color: var(--info); }
.toast.hide { opacity: 0; transform: translateX(20px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1rem; font-size: .93rem; }
.alert i { margin-top: 3px; }
.alert ul { margin: 0; padding-left: 1rem; list-style: disc; }
.alert-error { background: #fdeeee; color: #991b1b; border: 1px solid #f8d0d0; }
.alert-info { background: #eaf1fe; color: #1e40af; border: 1px solid #cfdcfb; }
.alert-success { background: var(--sky-soft); color: var(--success); border: 1px solid var(--sky-soft); }

/* ---------- Hero ---------- */
.hero { padding: 18px 0 6px; }
.hero-grid { display: grid; gap: 16px; }
.hero-sidebar .hero-grid { grid-template-columns: 250px minmax(0, 1fr); }
.hero-sidebar.has-side .hero-grid { grid-template-columns: 250px minmax(0, 1fr) 270px; }
.hero-full.has-side .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.hero-cats { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.hero-cats h3 { margin: 0; padding: .8rem 1.1rem; font-size: 1rem; background: var(--primary-soft); color: var(--primary); display: flex; gap: .6rem; align-items: center; }
.hero-cats a { display: flex; align-items: center; gap: .75rem; padding: .56rem 1.1rem; font-size: .92rem; font-weight: 500; transition: background .15s, padding .15s; }
.hero-cats a > i:first-child { width: 18px; text-align: center; color: var(--primary); }
.hero-cats a span { flex: 1; }
.hero-cats a .fa-chevron-right { color: #dcc7d3; }
.hero-cats a:hover { background: var(--primary-soft); padding-left: 1.35rem; }

.slider { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--dark); min-height: 220px; aspect-ratio: 16 / 7; box-shadow: var(--shadow-sm); }
.hero-sidebar .slider { aspect-ratio: auto; height: 100%; min-height: 400px; }
.slider-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 20, 15, .72) 0%, rgba(5, 20, 15, .35) 45%, rgba(5, 20, 15, 0) 75%); }
.slide-empty { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); }
.slide-content { position: absolute; z-index: 2; left: 6%; top: 50%; transform: translateY(-50%); max-width: 460px; color: #fff; }
.slide.is-active .slide-content { animation: slideUp .7s ease both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(-40%); } }
.slide-content h2 { font-size: clamp(1.5rem, 3.4vw, 2.6rem); margin-bottom: .35em; }
.slide-content p { font-size: clamp(.92rem, 1.4vw, 1.1rem); opacity: .92; margin-bottom: 1.3em; }
.slide-link { position: absolute; inset: 0; z-index: 2; }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .85); color: var(--dark); opacity: 0; transition: opacity .2s, background .2s;
}
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: #fff; }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 7px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; padding: 0; background: rgba(255, 255, 255, .55); transition: width .25s, background .25s; }
.slider-dots button.active { width: 26px; background: var(--accent); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.hero-side .promo-banner { height: 100%; min-height: 0; aspect-ratio: auto; }

/* ---------- Sections ---------- */
.section { padding: 26px 0 6px; }
.section-tight { padding: 16px 0 4px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 16px; }
.section-head h2 { margin: 0; position: relative; padding-left: 14px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 4px; background: var(--accent); }
.section-head p { margin: 4px 0 0 14px; color: var(--muted); font-size: .92rem; }
.view-all { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--primary); white-space: nowrap; }
.view-all:hover i { transform: translateX(3px); }
.view-all i { transition: transform .2s; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; }
.feature + .feature { border-left: 1px solid var(--border); }
.feature > i { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: var(--primary-soft); color: var(--primary); }
.feature strong { display: block; font-size: .97rem; }
.feature span { font-size: .84rem; color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1rem .5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; transition: transform .2s, box-shadow .2s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--primary); }
.cat-img { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--primary-soft); display: grid; place-items: center; font-size: 1.8rem; color: var(--primary); border: 3px solid var(--primary-soft); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cat-tile:hover .cat-img img { transform: scale(1.08); }
.cat-name { font-weight: 600; font-size: .9rem; line-height: 1.3; }

.banner-grid { display: grid; gap: 16px; }
.banner-grid-2 { grid-template-columns: repeat(2, 1fr); }
.banner-grid-3 { grid-template-columns: repeat(3, 1fr); }
.banner-grid-4 { grid-template-columns: repeat(4, 1fr); }
.promo-banner { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: var(--dark); }
.banner-grid-1 .promo-banner { aspect-ratio: 16 / 4; }
.shop-banners { margin-bottom: 16px; }
.shop-banners.banner-grid-2 .promo-banner { aspect-ratio: 16 / 6; }
.promo-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.promo-banner:hover img { transform: scale(1.06); }
.promo-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 1.25rem 1.5rem; color: #fff; background: linear-gradient(90deg, rgba(5, 20, 15, .75), rgba(5, 20, 15, .1) 80%); }
.promo-text small { font-size: .82rem; opacity: .9; }
.promo-text strong { font-size: 1.35rem; line-height: 1.2; margin: .15rem 0 .6rem; }
.promo-text em { font-style: normal; font-weight: 600; font-size: .82rem; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }
.hero-side .promo-text strong { font-size: 1.1rem; }

.flash-head {
    display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: 16px; padding: .9rem 1.25rem;
    background: linear-gradient(100deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: var(--radius);
}
.flash-title { display: flex; align-items: center; gap: .75rem; }
.flash-title > i { font-size: 1.6rem; color: var(--accent); animation: flash 1.6s ease-in-out infinite; }
@keyframes flash { 50% { opacity: .45; } }
.flash-title h2 { margin: 0; font-size: 1.3rem; }
.flash-title p { margin: 0; font-size: .85rem; opacity: .85; }
.countdown { display: flex; align-items: center; gap: .4rem; }
.cd-label { font-size: .85rem; margin-right: .3rem; opacity: .9; }
.cd-box { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: .3rem .4rem; background: rgba(0, 0, 0, .22); border-radius: var(--radius-sm); line-height: 1.1; }
.cd-box b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cd-box small { font-size: .65rem; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.flash-head .view-all { margin-left: auto; color: #fff; }

/* ---------- Product grid & card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 16px; }
.product-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s; }
.card-shadow .product-card { box-shadow: var(--shadow-sm); }
.card-shadow .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-border .product-card { border: 1px solid var(--border); }
.card-border .product-card:hover { border-color: var(--primary); }
.pc-image { position: relative; display: block; aspect-ratio: 1 / 1; background: #fbf4f8; overflow: hidden; }
.pc-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .pc-image img { transform: scale(1.06); }
.pc-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--danger); color: #fff; font-weight: 700; font-size: .75rem; padding: .2rem .5rem; border-radius: 5px; }
.pc-badge-out { background: #4b5563; }
.pc-body { padding: .75rem .85rem .25rem; flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.pc-cat { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pc-title { font-size: .94rem; font-weight: 600; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pc-rating { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--muted); }
.stars { color: var(--accent); font-size: .78rem; letter-spacing: 1px; white-space: nowrap; }
.pc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; margin-top: auto; padding-top: .3rem; }
.pc-price strong { color: var(--primary); font-size: 1.08rem; }
.pc-price del, .pd-price del { color: var(--muted); font-size: .85rem; }
.pc-actions { padding: .5rem .85rem .85rem; }

/* ---------- Page head / breadcrumb ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--border); padding: 18px 0 20px; margin-bottom: 22px; }
.page-head h1 { margin: .2rem 0 .25rem; }
.page-head p { margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); }
.breadcrumb a:not(:last-child)::after, .breadcrumb > *:not(:last-child)::after { content: '/'; margin-left: .4rem; color: #dcc7d3; }
.breadcrumb span { color: var(--text); }
.breadcrumb-plain { padding: 16px 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.chip { padding: .35rem .85rem; border-radius: 30px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: .85rem; }
.chip:hover { background: var(--primary); color: #fff; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.shop-filters { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 14px; }
.filters-head { display: none; }
.filter-box { background: #fff; border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.filter-box h4 { font-size: .95rem; margin: 0 0 .7rem; }
.filter-box h4:not(:first-of-type) { margin-top: 1rem; }
.filter-cats a { display: block; padding: .32rem 0; font-size: .9rem; color: var(--text); }
.filter-cats a.active { color: var(--primary); font-weight: 700; }
.filter-cats ul { padding-left: .9rem; border-left: 2px solid var(--border); margin: .15rem 0 .3rem .2rem; }
.filter-cats ul a { font-size: .86rem; color: var(--muted); }
.price-range { display: flex; align-items: center; gap: .4rem; }
.price-range input { padding: .5em .6em; }
.filter-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.shop-toolbar { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: var(--radius); padding: .65rem 1rem; margin-bottom: 16px; box-shadow: var(--shadow-sm); font-size: .9rem; }
.filters-toggle { display: none; }
.sort-form { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.sort-form label { margin: 0; font-weight: 500; color: var(--muted); white-space: nowrap; }
.sort-form select { width: auto; padding: .45em 2em .45em .7em; }
.product-grid-shop { grid-template-columns: repeat(var(--shop-cols), minmax(0, 1fr)); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; margin-top: 26px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 .6rem; display: grid; place-items: center; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--border); font-weight: 600; font-size: .9rem; }
.pagination a:hover { border-color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty-state { text-align: center; background: #fff; border-radius: var(--radius); padding: 3.5rem 1.5rem; box-shadow: var(--shadow-sm); margin: 10px 0; }
.empty-state > i { font-size: 3.2rem; color: var(--primary); opacity: .35; margin-bottom: 1rem; }
.empty-state p { color: var(--muted); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pd-gallery { position: sticky; top: 140px; align-self: start; }
.pd-main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: #fbf4f8; cursor: zoom-in; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, opacity .2s; }
.pd-main.zoom img { transform: scale(1.9); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.pd-thumbs button { flex: 0 0 74px; height: 74px; padding: 0; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.pd-thumbs button.active { border-color: var(--primary); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-brand { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: .2rem .6rem; border-radius: 5px; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .04em; }
.pd-info h1 { font-size: 1.6rem; margin-bottom: .5rem; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; font-size: .88rem; color: var(--muted); padding-bottom: 1rem; border-bottom: 1px dashed var(--border); }
.in-stock { color: var(--success); font-weight: 600; }
.out-stock { color: var(--danger); font-weight: 600; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem .9rem; margin: 1rem 0; }
.pd-price strong { font-size: 2rem; color: var(--primary); line-height: 1; }
.pd-price del { font-size: 1.1rem; }
.pd-price .save { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: .85rem; padding: .2rem .6rem; border-radius: 5px; }
.pd-short { color: #463a4f; }
.opt-group { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: 1rem; }
.opt-label { min-width: 70px; font-weight: 600; font-size: .92rem; }
.opt-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt-chips input { position: absolute; opacity: 0; pointer-events: none; }
.opt-chips label { margin: 0; cursor: pointer; }
.opt-chips span { display: inline-block; min-width: 44px; text-align: center; padding: .4rem .8rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; font-size: .88rem; transition: .15s; }
.opt-chips input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.opt-chips input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 40px; border: 0; background: #fbf1f6; font-size: 1.15rem; font-weight: 600; }
.qty button:hover { background: var(--primary-soft); color: var(--primary); }
.qty input { width: 54px; height: 40px; border: 0; border-radius: 0; text-align: center; padding: 0; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 32px; height: 34px; }
.qty-sm input { width: 42px; height: 34px; }
.low-stock { color: var(--danger); font-weight: 600; font-size: .85rem; }
.pd-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.25rem 0 .75rem; }
.pd-contact { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.pd-perks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.25rem 0; font-size: .88rem; color: #463a4f; }
.pd-perks i { color: var(--primary); margin-right: .35rem; }
.pd-delivery { border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; background: #fef9fc; }
.pd-delivery h4 { font-size: .95rem; margin-bottom: .6rem; }
.pd-delivery h4 i { color: var(--primary); }
.pd-delivery div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .9rem; border-top: 1px dashed var(--border); }
.pd-delivery p { margin: .5rem 0 0; font-size: .85rem; }

.tabs { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-top: 22px; }
.tab-buttons { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); padding: 0 1rem; overflow-x: auto; }
.tab-buttons button { border: 0; background: none; padding: 1rem 1.1rem; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; scroll-margin-top: 160px; }
.tab-buttons button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { padding: 1.5rem; }
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.review { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.review:first-child { padding-top: 0; }
.review-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .4rem; }
.review-head > div { flex: 1; line-height: 1.25; }
.review-head small { display: block; color: var(--muted); }
.review p { margin: 0; color: #463a4f; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; flex-shrink: 0; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.3rem; }
.review-form { background: #fef9fc; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; margin-bottom: .8rem; }
.rating-input input { display: none; }
.rating-input label { font-size: 1.5rem; color: #e5d5de; cursor: pointer; margin: 0; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--accent); }
.review-form textarea, .review-form input[type=text] { margin-bottom: .8rem; }

/* ---------- Cards / summary / cart ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.25rem; }
.card h3 { margin-bottom: 1rem; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 22px; align-items: start; }
.cart-lines { padding: .5rem 1.25rem; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 110px 40px; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); transition: opacity .25s; }
.cart-line:last-child { border-bottom: 0; }
.cart-line.removing { opacity: 0; }
.cl-img img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); }
.cl-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cl-name { font-weight: 600; line-height: 1.35; }
.cl-price { font-size: .9rem; color: var(--muted); }
.cl-total { text-align: right; color: var(--primary); }
.summary { position: sticky; top: 140px; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .95rem; }
.sum-row.discount strong { color: var(--success); }
.sum-total { border-top: 1px solid var(--border); margin-top: .4rem; padding-top: .9rem; font-size: 1.15rem; }
.sum-total strong { color: var(--primary); font-size: 1.3rem; }
.summary .btn { margin-top: .75rem; }
.free-ship { background: var(--accent-soft); color: #7a4e04; border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .88rem; margin: .6rem 0; }

.checkout-card { margin-bottom: 18px; }
.checkout-card h3 { display: flex; align-items: center; gap: .65rem; }
.step { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: .9rem; }
.radio-cards { display: grid; gap: .65rem; margin-bottom: 1rem; }
.radio-card { display: flex; align-items: center; gap: .85rem; margin: 0; padding: .85rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; transition: .15s; }
.radio-card:hover { border-color: color-mix(in srgb, var(--primary) 50%, white); }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.rc-body { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.rc-body strong i { color: var(--primary); margin-right: .25rem; }
.rc-body small { color: var(--muted); font-weight: 400; }
.rc-price { font-weight: 700; color: var(--primary); }
.pay-box { background: #fff8eb; border: 1px dashed #f3c46b; border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1rem; font-size: .92rem; }
.pay-box ol { margin: 0; padding-left: 1.2rem; }
.pay-box li { margin: .2rem 0; }
.pay-number { font-size: 1.05rem; letter-spacing: .03em; }
.copy-btn { border: 1px solid var(--border); background: #fff; border-radius: 5px; padding: .1rem .5rem; font-size: .78rem; margin-left: .3rem; }
.bank-details { white-space: normal; background: #fff; padding: .6rem .8rem; border-radius: 5px; }
.coupon-box { display: flex; gap: .5rem; margin: 1rem 0 .3rem; }
.coupon-box input { text-transform: uppercase; }
.coupon-msg { min-height: 1.2em; margin: 0 0 .5rem; }
.coupon-msg.ok { color: var(--success); }
.coupon-msg.err { color: var(--danger); }
.mini-lines { display: flex; flex-direction: column; gap: .75rem; max-height: 320px; overflow-y: auto; padding: .25rem 0; }
.mini-line { display: flex; align-items: center; gap: .8rem; font-size: .9rem; }
.ml-img { position: relative; flex-shrink: 0; }
.ml-img img { width: 54px; height: 54px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--border); }
.ml-img b { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--dark); color: #fff; font-size: .7rem; display: grid; place-items: center; padding: 0 4px; }
.ml-name { flex: 1; min-width: 0; line-height: 1.3; font-weight: 500; }
.ml-name small { display: block; color: var(--muted); font-weight: 400; }

/* ---------- Order / tracking ---------- */
.success-hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 2rem; background: var(--success); color: #fff; box-shadow: 0 0 0 10px var(--sky-soft); margin-bottom: 1.25rem; animation: pop .5s ease; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.order-box { margin-bottom: 1.25rem; }
.order-box-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.order-box-head h3 { margin: .1rem 0; font-size: 1.35rem; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 1.5rem; padding: 0; list-style: none; counter-reset: s; }
.timeline li { position: relative; text-align: center; font-size: .82rem; color: var(--muted); font-weight: 600; }
.timeline li::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.done::before { background: var(--primary); }
.timeline .dot { position: relative; z-index: 1; width: 32px; height: 32px; margin: 0 auto .4rem; border-radius: 50%; display: grid; place-items: center; background: var(--border); color: #fff; font-size: .8rem; }
.timeline li.done .dot { background: var(--primary); }
.timeline li.done { color: var(--text); }
.timeline li.current .dot { box-shadow: 0 0 0 5px var(--primary-soft); }
.order-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin-bottom: 1rem; font-size: .92rem; }
.order-cols h4 { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.order-totals { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: .5rem; max-width: 360px; margin-left: auto; }
.pay-paid { color: var(--success); font-weight: 600; }
.pay-unpaid { color: var(--accent-dark); font-weight: 600; }
.history { margin-top: 1rem; font-size: .9rem; }
.history summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.history ul { margin-top: .6rem; border-left: 2px solid var(--border); padding-left: 1rem; }
.history li { margin-bottom: .6rem; }
.track-form { margin-bottom: 1.25rem; }
.track-form .alert { margin-top: 1rem; }

.badge { display: inline-block; padding: .25rem .65rem; border-radius: 30px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dbeafe; color: #1e40af; }
.badge-processing { background: #e0e7ff; color: #3730a3; }
.badge-shipped { background: #cffafe; color: #155e75; }
.badge-delivered { background: var(--sky-soft); color: var(--success); }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-returned { background: #f3e8ff; color: #6b21a8; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ---------- Contact / auth / account ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 22px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; }
.contact-card > i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.15rem; flex-shrink: 0; }
.contact-card strong { display: block; }
.contact-card span { color: var(--muted); font-size: .9rem; }
.auth-wrap { display: flex; justify-content: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 460px; padding: 2rem; }
.auth-card h1 { font-size: 1.5rem; }
.account-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.account-nav { padding: .5rem 0; }
.account-user { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: .4rem; }
.account-user strong { display: block; }
.account-user small { color: var(--muted); }
.account-nav a { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; font-weight: 500; border-left: 3px solid transparent; }
.account-nav a i { width: 18px; color: var(--primary); }
.account-nav a.active { background: var(--primary-soft); border-left-color: var(--primary); color: var(--primary); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat span { display: block; color: var(--muted); font-size: .85rem; }
.stat strong { font-size: 1.4rem; color: var(--primary); }
.narrow-form { max-width: 480px; }

/* ---------- Rich text (admin-written HTML) ---------- */
.rich-text { line-height: 1.75; color: #352b3d; }
.rich-text h2, .rich-text h3 { margin-top: 1.4em; color: var(--text); }
.rich-text h2:first-child, .rich-text h3:first-child { margin-top: 0; }
.rich-text ul, .rich-text ol { padding-left: 1.4rem; margin: 0 0 1em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin: .25em 0; }
.rich-text img { border-radius: var(--radius-sm); margin: 1rem 0; height: auto; }
.rich-text a { color: var(--primary); text-decoration: underline; }
.rich-text table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.rich-text td, .rich-text th { border: 1px solid var(--border); padding: .5rem .7rem; }
.page-content { padding: 2rem; }

/* ---------- Newsletter & footer ---------- */
.newsletter { background: linear-gradient(100deg, var(--primary-dark), var(--primary)); color: #fff; margin-top: 30px; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.newsletter-text { display: flex; align-items: center; gap: 1rem; }
.newsletter-text > i { font-size: 2.2rem; color: var(--accent); }
.newsletter-text h3 { margin: 0; font-size: 1.25rem; }
.newsletter-text p { margin: 0; opacity: .85; font-size: .92rem; }
.newsletter-form { display: flex; flex: 1; max-width: 480px; background: #fff; border-radius: var(--radius); padding: 5px; }
.newsletter-form input { border: 0; }
.newsletter-form input:focus { box-shadow: none; }
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .72); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 30px; padding-top: 44px; padding-bottom: 36px; }
.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 1rem; position: relative; padding-bottom: .6rem; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--accent); }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col a:hover { color: var(--accent); }
.footer-about .logo { margin-bottom: 1rem; }
.footer-about .logo img { height: 72px; }
.contact-list li { display: flex; gap: .65rem; align-items: flex-start; }
.contact-list i { color: var(--accent); margin-top: 4px; width: 16px; }
.social { display: flex; flex-wrap: wrap; gap: .5rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: .2s; }
.social a:hover { background: var(--accent); color: var(--dark); }
.pay-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pay-chips span { padding: .3rem .65rem; border-radius: 5px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding-top: 16px; padding-bottom: 16px; }
.footer-bottom .muted { color: rgba(255, 255, 255, .5); }
.footer-bottom-inner { align-items: center; padding-right: 84px; } /* room for the floating WhatsApp button */
.dev-credit {
    display: inline-flex; align-items: center; gap: .65rem; padding: .3rem .35rem .3rem .95rem; border-radius: 40px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .75);
    font-size: .82rem; white-space: nowrap; transition: border-color .2s, background .2s, color .2s;
}
.dev-credit strong { color: var(--accent); font-weight: 600; }
.dev-credit:hover { color: #fff; border-color: var(--accent); background: rgba(255, 255, 255, .1); }
.dev-wa { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .75rem; border-radius: 30px; background: #25d366; color: #fff; font-weight: 600; letter-spacing: .02em; }
.dev-wa i { font-size: .95rem; }

.whatsapp-float { position: fixed; right: 20px; bottom: 22px; z-index: 70; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 1.75rem; box-shadow: 0 8px 22px -6px rgba(37, 211, 102, .7); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.back-to-top { position: fixed; right: 26px; bottom: 88px; z-index: 70; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--dark); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.bottom-nav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(var(--cols-md), minmax(0, 1fr)); }
    .product-grid-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-sidebar.has-side .hero-grid { grid-template-columns: 230px minmax(0, 1fr); }
    .hero-sidebar.has-side .hero-side { display: none; }
    .hotline { display: none; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
    .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 992px) {
    .menu-toggle { display: inline-grid; margin-left: -8px; }
    .header-main { flex-wrap: wrap; gap: .75rem 1rem; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .search select { display: none; }
    .main-nav { display: none; }
    .hero .hero-grid, .hero-sidebar.has-side .hero-grid, .hero-full.has-side .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-cats, .hero-side { display: none; }
    .hero-sidebar .slider { aspect-ratio: 16 / 7; height: auto; min-height: 220px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .feature:nth-child(3) { border-left: 0; }
    .feature:nth-child(n+3) { border-top: 1px solid var(--border); }
    .product-grid, .product-grid-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shop-layout { grid-template-columns: minmax(0, 1fr); }
    .shop-filters {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 110; width: min(320px, 88vw); overflow-y: auto; padding: 1rem;
        background: var(--bg); transform: translateX(-105%); transition: transform .28s ease; box-shadow: var(--shadow-lg);
    }
    .shop-filters.open { transform: none; }
    .filters-head { display: flex; justify-content: space-between; align-items: center; }
    .filters-toggle { display: inline-flex; }
    .product-detail { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 16px; }
    .pd-gallery { position: static; }
    .reviews-layout, .contact-layout, .account-layout { grid-template-columns: minmax(0, 1fr); }
    .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); }
    .summary { position: static; }
    .banner-grid-3, .banner-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .banner-grid-3 .promo-banner:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 5; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .header-main .logo img { height: 44px; }
    body { font-size: 14.5px; padding-bottom: 62px; }
    .topbar .hide-sm, .hide-sm { display: none !important; }
    .topbar-inner { justify-content: space-between; }
    .header-main { padding-top: 6px; padding-bottom: 6px; }
    .wm-main { font-size: 1.45rem; }
    .wm-sub { font-size: .52rem; margin-top: 3px; }
    .wm-sub::before, .wm-sub::after { width: 11px; }
    .account-link, .cart-link span:not(.icon-wrap) { display: none; }
    .header-actions { gap: .75rem; }
    .action > i, .action .icon-wrap > i { font-size: 1.35rem; }
    .slider, .hero-sidebar .slider { aspect-ratio: 16 / 9; min-height: 0; }
    .slide::after { background: linear-gradient(0deg, rgba(5, 20, 15, .78) 0%, rgba(5, 20, 15, .1) 70%); }
    .slide-content { top: auto; bottom: 34px; transform: none; left: 18px; right: 18px; }
    .slide.is-active .slide-content { animation: none; }
    .slide-content p { display: none; }
    .slide-content .btn { padding: .55em 1em; font-size: .85rem; }
    .slider-arrow { display: none; }
    .section { padding-top: 20px; }
    .section-head h2 { font-size: 1.15rem; }
    .section-head p { display: none; }
    .product-grid, .product-grid-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pc-body { padding: .6rem .65rem .2rem; }
    .pc-actions { padding: .4rem .65rem .7rem; }
    .pc-title { font-size: .88rem; }
    .pc-actions .btn { font-size: .8rem; padding: .5em .4em; }
    .cat-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 96px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
    .cat-tile { scroll-snap-align: start; padding: .75rem .35rem; }
    .cat-img { width: 64px; height: 64px; }
    .cat-name { font-size: .8rem; }
    .banner-grid-2, .banner-grid-3, .banner-grid-4 { grid-template-columns: 1fr; }
    .banner-grid-3 .promo-banner:last-child { aspect-ratio: 16 / 8; }
    .flash-head { padding: .8rem 1rem; }
    .flash-head .view-all { margin-left: 0; }
    .countdown { order: 3; width: 100%; }
    .features { grid-template-columns: 1fr 1fr; }
    .feature { padding: .8rem; gap: .6rem; }
    .feature > i { width: 38px; height: 38px; font-size: 1rem; }
    .feature span { display: none; }
    .page-head { padding: 12px 0 14px; margin-bottom: 16px; }
    .page-head h1 { font-size: 1.35rem; }
    .shop-toolbar { flex-wrap: wrap; padding: .6rem .75rem; gap: .5rem .75rem; }
    .shop-toolbar > .muted { order: 3; width: 100%; font-size: .82rem; }
    .pd-info h1 { font-size: 1.3rem; }
    .pd-price strong { font-size: 1.6rem; }
    .tab-pane { padding: 1rem; }
    .cart-line { grid-template-columns: 70px minmax(0, 1fr) 36px; grid-template-areas: 'img info remove' 'img qty total'; gap: .4rem .8rem; }
    .cart-line .cl-img { grid-area: img; }
    .cart-line .cl-img img { width: 70px; height: 70px; }
    .cart-line .cl-info { grid-area: info; }
    .cart-line .qty { grid-area: qty; justify-self: start; }
    .cart-line .cl-total { grid-area: total; grid-column: 2 / 4; justify-self: end; }
    .cart-line form { grid-area: remove; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .order-cols { grid-template-columns: 1fr; }
    .timeline li { font-size: .7rem; }
    .stat-row { grid-template-columns: 1fr 1fr; }
    .stat-row .stat:last-child { grid-column: 1 / -1; }
    .newsletter-text > i { display: none; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: .6rem; padding-right: 16px; }
    .footer-grid { gap: 24px; padding-top: 32px; }
    .whatsapp-float { bottom: 76px; right: 14px; width: 48px; height: 48px; font-size: 1.5rem; }
    .back-to-top { bottom: 134px; right: 18px; }
    .toast-stack { top: auto; bottom: 74px; left: 16px; right: 16px; max-width: none; }
    .bottom-nav {
        display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
        background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 16px -8px rgba(0, 0, 0, .15); padding-bottom: env(safe-area-inset-bottom);
    }
    .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px; border: 0; background: none; font-size: .72rem; font-weight: 600; color: var(--muted); }
    .bottom-nav i { font-size: 1.15rem; }
    .bottom-nav .active { color: var(--primary); }
    .bottom-nav .cart-count { top: -6px; right: -12px; }
}

@media (max-width: 420px) {
    .pd-buttons, .pd-contact { grid-template-columns: 1fr; }
    .auth-card { padding: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Pink · Yellow · Sky theme polish — gradients, glow, motion
   ========================================================= */
body { background: radial-gradient(1200px 500px at 0% 0%, var(--sky-soft), transparent 60%), radial-gradient(1000px 500px at 100% 0%, var(--primary-soft), transparent 60%) var(--bg); background-attachment: fixed; }
::selection { background: var(--primary); color: #fff; }
.text-gradient { background: linear-gradient(90deg, var(--primary), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Notice + top bars */
.notice-bar { background: linear-gradient(90deg, var(--accent), #ffd84d, var(--accent)); background-size: 200% 100%; animation: shine 6s linear infinite; }
.topbar { background: linear-gradient(90deg, var(--dark), var(--sky-dark)); }
@keyframes shine { to { background-position: -200% 0; } }

/* Header: tri-colour line, glassy white, logo spin on hover */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header::before { content: ''; display: block; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--sky)); }
.logo img { filter: drop-shadow(0 2px 5px rgba(219, 39, 119, .2)); transition: transform .5s cubic-bezier(.2, .9, .3, 1.3); }
.logo:hover img { transform: rotate(-8deg) scale(1.06); }
.search { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, var(--primary), var(--sky)) border-box; }
.search:focus-within { box-shadow: 0 0 0 4px var(--primary-soft); }

/* Menu bar: pink → sky gradient */
.main-nav { background: linear-gradient(90deg, var(--primary-dark), var(--primary) 45%, var(--sky)); }
.all-cats-btn { background: rgba(0, 0, 0, .14); }
.nav-offer { box-shadow: 0 6px 16px -6px rgba(245, 179, 1, .8); animation: pulse-glow 2.4s ease-in-out infinite; }
@keyframes pulse-glow { 50% { box-shadow: 0 0 0 6px rgba(245, 179, 1, .18), 0 6px 16px -6px rgba(245, 179, 1, .8); } }

/* Buttons */
.btn { transition: transform .18s, box-shadow .18s, background .18s, filter .18s; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 8px 18px -10px var(--primary); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary), var(--sky)); transform: translateY(-2px); box-shadow: 0 12px 22px -10px var(--primary); }
.btn-accent { background: linear-gradient(135deg, #ffd84d, var(--accent)); }
.btn-accent:hover { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); transform: translateY(-2px); }

/* Section headings */
.section-head h2::before { background: linear-gradient(180deg, var(--primary), var(--accent), var(--sky)); width: 5px; }
.hero-cats h3 { background: linear-gradient(90deg, var(--primary-soft), var(--sky-soft)); }

/* Product cards: glow + gradient top edge */
.product-card { border: 1px solid rgba(219, 39, 119, .06); }
.product-card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .35s; z-index: 2; }
.product-card:hover::after { transform: scaleX(1); }
.card-shadow .product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px -16px rgba(219, 39, 119, .45), 0 6px 14px -8px rgba(14, 165, 233, .35); }
.pc-image img { image-rendering: auto; }

/* Newsletter + footer */
.newsletter { background: linear-gradient(110deg, var(--primary) 0%, #ec4899 40%, var(--sky) 100%); }
.site-footer { position: relative; background: radial-gradient(800px 300px at 90% 0%, rgba(14, 165, 233, .25), transparent 70%), radial-gradient(700px 300px at 0% 100%, rgba(219, 39, 119, .22), transparent 70%), var(--dark); }
.site-footer::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--sky)); }
.footer-col h4::after { background: linear-gradient(90deg, var(--accent), var(--primary)); width: 40px; }
.footer-about .logo img { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35)); }

/* Social icons in brand colours */
.social { gap: .65rem; }
.social a { width: 44px; height: 44px; font-size: 1.15rem; color: #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); transition: transform .25s cubic-bezier(.2, .9, .3, 1.4), box-shadow .25s; }
.social a:hover { transform: translateY(-4px) scale(1.08); color: #fff; box-shadow: 0 12px 20px -8px rgba(0, 0, 0, .6); }
.social .s-facebook { background: #1877f2; }
.social .s-tiktok { background: #111; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
.social .s-tiktok:hover { box-shadow: -3px -3px 0 #25f4ee, 3px 3px 0 #fe2c55; }
.social .s-youtube { background: #ff0000; }
.social .s-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social .s-x-twitter { background: #000; }
.social .s-whatsapp { background: #25d366; }
.social a:hover, .social .s-facebook:hover, .social .s-youtube:hover { color: #fff; }

/* Bottom nav + back to top */
.bottom-nav a.active, .bottom-nav a.active i { color: var(--primary); }
.back-to-top { background: linear-gradient(135deg, var(--primary), var(--sky)); color: #fff; }

/* Scroll reveal (added by app.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .notice-bar, .nav-offer { animation: none; }
    .reveal { opacity: 1; transform: none; }
}
