:root {
  --bg: #171a24;
  --bg-soft: #232735;
  --panel: #232735;
  --panel-2: #2e3342;
  --border: rgba(255, 255, 255, 0.10);
  --text: #eef0f6;
  --muted: #a2a8bd;
  --accent: #7c5cff;
  --accent-2: #12b894;
  --accent-3: #ff5c8a;
  --radius: 18px;
  --shadow: 0 24px 60px -28px rgba(124, 92, 255, 0.38);
  --shadow-soft: 0 20px 50px -30px rgba(20, 22, 60, 0.22);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background — soft color washes on light */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.26; animation: float 18s ease-in-out infinite; }
.orb.a { width: 520px; height: 520px; background: var(--accent); top: -140px; left: -90px; }
.orb.b { width: 460px; height: 460px; background: var(--accent-2); bottom: -160px; right: -70px; animation-delay: -6s; }
.orb.c { width: 380px; height: 380px; background: var(--accent-3); top: 40%; left: 55%; animation-delay: -12s; opacity: 0.14; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-50px) scale(1.08); }
  66% { transform: translate(-30px,30px) scale(0.95); }
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ============ HEADER ============ */
header { position: sticky; top: 0; z-index: 60; background: rgba(22,25,35,0.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); box-shadow: 0 6px 30px -22px rgba(0,0,0,0.6); }
.top-bar { text-align: center; font-size: 0.8rem; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(124,92,255,0.10), rgba(18,184,148,0.08)); }
.top-bar strong { color: var(--text); }

.head-main { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; box-shadow: 0 8px 22px -6px var(--accent);
  transition: transform 0.3s ease;
}
.brand .mark::after { content: ""; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center/contain no-repeat; }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
.brand .store { color: var(--muted); font-weight: 500; }

/* Search */
.search-box { position: relative; flex: 1; max-width: 560px; }
.search-box input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px 12px 44px; color: var(--text); font-family: var(--font); font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { outline: none; border-color: rgba(124,92,255,0.5); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 4px rgba(124,92,255,0.12); }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.head-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-action {
  position: relative; width: 46px; height: 46px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--border);
  display: grid; place-items: center; cursor: pointer; color: var(--text); text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.icon-action:hover { border-color: rgba(124,92,255,0.4); background: rgba(255,255,255,0.09); transform: translateY(-1px); }
.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #fff; font-size: 0.7rem; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 4px 12px -2px rgba(255,92,138,0.6); transform: scale(0); transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.cart-badge.show { transform: scale(1); }
.menu-toggle { display: none; }

/* ============ CATEGORY NAV + MEGA MENU ============ */
.cat-nav { border-top: 1px solid var(--border); }
.cat-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.menu-item { position: relative; }
.menu-item > .menu-link {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px; color: var(--muted);
  font-size: 0.92rem; font-weight: 600; cursor: pointer; text-decoration: none;
  border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease;
  background: none; font-family: var(--font);
}
.menu-item > .menu-link .ico { font-size: 1.05rem; }
.menu-item > .menu-link .caret { transition: transform 0.25s ease; opacity: 0.6; }
.menu-item:hover > .menu-link { color: var(--text); border-color: var(--accent); }
.menu-item:hover > .menu-link .caret { transform: rotate(180deg); }
.menu-item.active-dept > .menu-link { color: var(--accent); border-color: var(--accent); }

/* Dropdown panel */
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 260px; z-index: 55;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 0 0 18px 18px; box-shadow: 0 30px 60px -24px rgba(0,0,0,0.55);
  padding: 12px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.menu-item:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dropdown a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px;
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
.dropdown a .sub-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 1.1rem; background: linear-gradient(135deg, rgba(124,92,255,0.14), rgba(18,184,148,0.12)); border: 1px solid var(--border); flex-shrink: 0; }
.dropdown a:hover { background: rgba(124,92,255,0.10); color: var(--text); padding-left: 18px; }
.dropdown a .sub-count { margin-left: auto; font-size: 0.75rem; color: var(--muted); background: var(--panel-2); padding: 2px 8px; border-radius: 999px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px;
  border-radius: 12px; font-weight: 600; font-size: 0.92rem; text-decoration: none;
  cursor: pointer; border: none; font-family: var(--font);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #6a48ff); color: #fff; box-shadow: 0 16px 34px -14px rgba(124,92,255,0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -18px rgba(124,92,255,0.7); }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--panel-2); }
.btn-lg { padding: 14px 26px; font-size: 0.98rem; border-radius: 13px; }
.btn-block { width: 100%; }

/* ============ HERO ============ */
.hero { padding: 14px 0 10px; }
#shop { padding-top: 16px; }
.breadcrumb { margin-bottom: 4px; }
.shop-head { margin-bottom: 14px; }
.shop-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.shop-head .tag { font-size: 0.7rem; }
.chips { margin-bottom: 16px; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center;
  background: linear-gradient(135deg, rgba(124,92,255,0.12), rgba(18,184,148,0.10));
  border: 1px solid var(--border); border-radius: 28px; padding: 40px 48px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero .pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); margin-bottom: 20px;
  box-shadow: 0 6px 20px -12px rgba(0,0,0,0.4);
}
.hero .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-3) 50%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; max-width: 460px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-emoji { font-size: 8.4rem; text-align: center; filter: drop-shadow(0 20px 34px rgba(20,22,60,0.22)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ============ SHOP ============ */
section { padding: 46px 0; }
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.shop-head .tag { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem; color: var(--accent); font-weight: 700; }
.shop-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; }
.shop-head .count { color: var(--muted); font-size: 0.9rem; }
.breadcrumb { color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb b { color: var(--accent); font-weight: 600; }

/* Category chip row */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.chip {
  padding: 9px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: var(--font);
  display: inline-flex; align-items: center; gap: 7px; transition: all 0.2s ease; text-decoration: none;
}
.chip:hover { color: var(--text); border-color: rgba(124,92,255,0.35); box-shadow: 0 8px 20px -14px rgba(124,92,255,0.6); }
.chip.active { color: #fff; background: linear-gradient(135deg, var(--accent), #6a48ff); border-color: transparent; box-shadow: 0 12px 26px -14px rgba(124,92,255,0.7); }

/* Product grid */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product {
  background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px -22px rgba(20,22,60,0.35);
}
.product:hover { transform: translateY(-6px); border-color: rgba(124,92,255,0.4); box-shadow: 0 30px 55px -28px rgba(124,92,255,0.4); }
.product .thumb {
  aspect-ratio: 1/1; position: relative; overflow: hidden; cursor: pointer;
  display: grid; place-items: center; font-size: 4.2rem;
  background: radial-gradient(120% 120% at 30% 20%, rgba(124,92,255,0.22), rgba(18,184,148,0.12) 60%, transparent);
}
.product .thumb .emoji { transition: transform 0.4s cubic-bezier(.34,1.56,.64,1); filter: drop-shadow(0 12px 20px rgba(20,22,60,0.18)); }
.product:hover .thumb .emoji { transform: scale(1.12) rotate(-4deg); }
.product .qv { position: absolute; inset: 0; background: rgba(15,16,30,0.42); backdrop-filter: blur(2px); display: grid; place-items: center; opacity: 0; transition: opacity 0.25s ease; }
.product .thumb:hover .qv { opacity: 1; }
.qv .qv-btn { padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.6); color: #15171f; font-size: 0.85rem; font-weight: 700; backdrop-filter: blur(8px); }
.ptag { position: absolute; top: 12px; left: 12px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; z-index: 2; }
.ptag.new { background: linear-gradient(135deg, var(--accent-2), #0ea983); color: #fff; }
.ptag.sale { background: linear-gradient(135deg, var(--accent-3), #e0447a); color: #fff; }
.product .body { padding: 18px; display: flex; flex-direction: column; flex: 1; gap: 5px; }
.product .cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 700; }
.product h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.product .rating { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.stars { color: #f5a623; letter-spacing: 1px; }
.product .foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-tag { display: flex; align-items: baseline; gap: 7px; }
.price-tag .now { font-size: 1.24rem; font-weight: 800; letter-spacing: -0.02em; }
.price-tag .was { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; }
.add-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: 12px; border: none; cursor: pointer; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #6a48ff); color: #fff; font-size: 1.25rem;
  display: grid; place-items: center; transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 26px -12px rgba(124,92,255,0.7);
}
.add-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 18px 32px -14px rgba(124,92,255,0.85); }
.add-btn:active { transform: scale(0.92); }
/* Hover tooltip on the + add-to-cart button (opens leftward so it never clips) */
.add-btn::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 12px); right: 0; left: auto;
  transform: translateY(6px) scale(0.85); transform-origin: bottom right;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.01em;
  padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  box-shadow: 0 12px 28px -8px rgba(124,92,255,0.75), 0 0 0 3px rgba(255,255,255,0.06);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.25s cubic-bezier(.34,1.56,.64,1); z-index: 6;
}
.add-btn::before {
  content: ""; position: absolute; bottom: calc(100% + 5px); right: 12px;
  transform: translateY(6px) scale(0.85);
  border: 6px solid transparent; border-top-color: var(--accent-3);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.25s cubic-bezier(.34,1.56,.64,1); z-index: 6;
}
.add-btn:hover::after { opacity: 1; transform: translateY(0) scale(1); }
.add-btn:hover::before { opacity: 1; transform: translateY(0) scale(1); }
.empty { text-align: center; padding: 70px 0; color: var(--muted); grid-column: 1/-1; }
.empty .big { font-size: 3rem; margin-bottom: 12px; }

/* Feature strip */
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fs-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-align: center; box-shadow: 0 10px 30px -24px rgba(20,22,60,0.35); }
.fs-item .ico { font-size: 1.8rem; margin-bottom: 10px; }
.fs-item h4 { font-size: 1rem; margin-bottom: 4px; }
.fs-item p { color: var(--muted); font-size: 0.86rem; }

/* ============ CART DRAWER ============ */
.overlay { position: fixed; inset: 0; background: rgba(6,7,16,0.66); backdrop-filter: blur(6px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; z-index: 100;
  background: var(--bg-soft); border-left: 1px solid var(--border);
  box-shadow: -30px 0 70px -30px rgba(0,0,0,0.6); transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: all 0.2s ease; }
.icon-btn:hover { color: var(--text); border-color: rgba(124,92,255,0.4); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-items::-webkit-scrollbar { width: 6px; }
.cart-items::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 3px; }
.cart-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-row .ci-thumb { width: 66px; height: 66px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-size: 2rem; background: radial-gradient(120% 120% at 30% 20%, rgba(124,92,255,0.20), rgba(18,184,148,0.12) 60%, transparent); border: 1px solid var(--border); }
.cart-row .ci-info { flex: 1; min-width: 0; }
.cart-row .ci-info h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 2px; }
.cart-row .ci-info .ci-price { color: var(--accent-2); font-size: 0.9rem; font-weight: 700; }
.qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty button { width: 28px; height: 28px; background: var(--panel-2); border: none; color: var(--text); cursor: pointer; font-size: 1rem; display: grid; place-items: center; transition: background 0.15s ease; }
.qty button:hover { background: rgba(124,92,255,0.16); }
.qty span { min-width: 32px; text-align: center; font-size: 0.9rem; font-weight: 600; }
.ci-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.78rem; align-self: flex-start; margin-left: auto; transition: color 0.2s ease; }
.ci-remove:hover { color: var(--accent-3); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty .big { font-size: 3.4rem; margin-bottom: 14px; opacity: 0.7; }
.drawer-foot { padding: 22px 24px; border-top: 1px solid var(--border); background: rgba(255,255,255,0.03); }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 0.92rem; }
.sum-row.total { color: var(--text); font-size: 1.25rem; font-weight: 800; margin: 14px 0 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.promo-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: 720px; max-width: 100%; max-height: 90vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr;
  background: linear-gradient(180deg, #2c3143, #20242f); border: 1px solid rgba(124,92,255,0.32); border-radius: 24px;
  box-shadow: 0 45px 100px -24px rgba(0,0,0,0.8), 0 24px 70px -30px rgba(124,92,255,0.5); transform: scale(0.94); transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.modal.open .modal-card { transform: scale(1); }
.modal-visual { position: relative; display: grid; place-items: center; font-size: 7rem; background: radial-gradient(130% 130% at 30% 20%, rgba(124,92,255,0.28), rgba(18,184,148,0.14) 55%, transparent); min-height: 300px; }
.modal-body { padding: 34px 30px; position: relative; }
.modal-body .close { position: absolute; top: 16px; right: 16px; }
.modal-body .cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); font-weight: 700; }
.modal-body h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 10px; }
.modal-body .desc { color: var(--muted); font-size: 0.95rem; margin: 14px 0 20px; }
.modal-body .m-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.modal-body .m-price .now { font-size: 2rem; font-weight: 800; }
.modal-body .m-price .was { color: var(--muted); text-decoration: line-through; }

/* Quick-view: clickable left visual */
.modal-visual { cursor: pointer; }
.mv-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; color: #fff;
  background: rgba(0,0,0,0.42); padding: 6px 13px; border-radius: 999px; backdrop-filter: blur(4px);
  white-space: nowrap; transition: background 0.2s ease, transform 0.2s ease;
}
.modal-visual:hover .mv-hint { background: linear-gradient(135deg, var(--accent), var(--accent-3)); transform: translateX(-50%) translateY(-2px); }

/* Detailed product view */
.modal-card.detail { display: block; grid-template-columns: none; padding: 30px; }
.detail-head { display: flex; gap: 20px; align-items: center; margin-bottom: 8px; padding-right: 40px; }
.detail-emoji { width: 110px; height: 110px; flex-shrink: 0; border-radius: 20px; display: grid; place-items: center; font-size: 3.6rem; background: radial-gradient(130% 130% at 30% 20%, rgba(124,92,255,0.28), rgba(18,184,148,0.14) 55%, transparent); border: 1px solid var(--border); }
.detail-head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 8px; }
.detail-head .m-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.detail-head .m-price .now { font-size: 1.6rem; font-weight: 800; }
.detail-head .m-price .was { color: var(--muted); text-decoration: line-through; }
.detail-h { font-size: 0.95rem; font-weight: 800; margin: 18px 0 8px; }
.detail-specs { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.ds-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 15px; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.ds-row:last-child { border-bottom: none; }
.ds-row span { color: var(--muted); }
.detail-badges { margin-top: 14px; color: var(--muted); font-size: 0.82rem; }
.detail-actions { display: flex; gap: 12px; margin-top: 22px; }
.detail-actions .btn-ghost { flex-shrink: 0; }
@media (max-width: 560px) {
  .detail-head { flex-direction: column; align-items: flex-start; }
  .detail-emoji { width: 90px; height: 90px; font-size: 3rem; }
}

/* ============ CHECKOUT MODAL ============ */
.co-card {
  width: 460px; max-width: 100%; max-height: 90vh; overflow: auto; position: relative;
  background: linear-gradient(180deg, #2c3143, #20242f); border: 1px solid rgba(124,92,255,0.32); border-radius: 24px; padding: 32px 30px;
  box-shadow: 0 45px 100px -24px rgba(0,0,0,0.8), 0 24px 70px -30px rgba(124,92,255,0.5); transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.modal.open .co-card { transform: scale(1); }
.co-card .co-close { position: absolute; top: 16px; right: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 11px;
  padding: 11px 13px; color: var(--text); font-family: var(--font); font-size: 0.92rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: rgba(124,92,255,0.5); }
.field textarea { resize: vertical; min-height: 66px; }
.co-summary { margin: 6px 0 18px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,0.02); }
.co-summary .sum-row:last-child { margin-bottom: 0; }

/* bKash advance-payment box */
.bkash-box { margin: 4px 0 16px; padding: 16px; border: 1px solid rgba(226,19,110,0.45); border-radius: 14px; background: rgba(226,19,110,0.06); }
.bk-head { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
.bk-logo { background: #e2136e; color: #fff; font-weight: 800; font-size: 0.72rem; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.02em; }
.bk-num { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 8px; }
.bk-copy { background: #e2136e; color: #fff; border: none; border-radius: 8px; padding: 6px 12px; font-size: 0.75rem; font-weight: 700; cursor: pointer; font-family: var(--font); }
.bk-copy:hover { background: #c40f5f; }
.bk-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }

/* ============ TOAST ============ */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--bg-soft); border: 1px solid rgba(18,184,148,0.5);
  color: var(--text); padding: 13px 20px; border-radius: 14px; font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 20px 45px -18px rgba(20,22,60,0.35); display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.35s cubic-bezier(.34,1.56,.64,1);
}
.toast .t-ico { color: var(--accent-2); font-size: 1.1rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ============ FOOTER ============ */
footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 30px; background: #14161f; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 36px; margin-bottom: 40px; }
.foot-brand p { color: var(--muted); max-width: 280px; margin-top: 16px; font-size: 0.94rem; }
.foot-col h4 { font-size: 0.9rem; margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: 0.92rem; margin-bottom: 11px; transition: color 0.2s ease; cursor: pointer; }
.foot-col a:hover { color: var(--text); }
.newsletter input { width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; color: var(--text); font-family: var(--font); font-size: 0.88rem; margin-bottom: 10px; }
.newsletter input::placeholder { color: var(--muted); }
.newsletter input:focus { outline: none; border-color: rgba(124,92,255,0.5); background: rgba(255,255,255,0.06); }
.pay-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.pay-row span { padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.72rem; color: var(--muted); background: var(--panel); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; flex-wrap: wrap; gap: 14px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); text-decoration: none; transition: all 0.2s ease; }
.socials a:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) { .products { grid-template-columns: repeat(3, 1fr); } .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px) {
  .search-box { order: 3; flex-basis: 100%; max-width: none; }
  .head-main { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .menu-toggle { display: grid; width: 46px; height: 46px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); cursor: pointer; place-items: center; }
  .cat-nav { display: none; }
  .cat-nav.open { display: block; }
  .cat-list { flex-direction: column; align-items: stretch; max-height: 60vh; overflow-y: auto; }
  .menu-item > .menu-link { justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .menu-item > .menu-link .caret { transform: none; }
  .menu-item.open > .menu-link .caret { transform: rotate(180deg); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-radius: 0; padding: 0 0 8px 0; min-width: 0; background: transparent;
    display: none;
  }
  .menu-item.open > .dropdown { display: block; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding: 40px 28px; }
  .hero-emoji { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .feature-strip { grid-template-columns: repeat(2,1fr); }
  .modal-card { grid-template-columns: 1fr; }
  .modal-visual { min-height: 200px; font-size: 5rem; }
}
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product .thumb { font-size: 3.2rem; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============ SOFT LIGHT BACKGROUND (white cards pop) ============ */
body { background: #f6f8fb; }
.bg-orbs { display: none; }            /* keep it clean */
.grain { opacity: 0.018; }
/* dark hero card floats nicely on the bright gradient */
.hero-inner { background: linear-gradient(160deg, #262b3a, #1c2030); }
/* headings that sit directly on the bright background -> dark & readable */
.shop-head h2, .shop-head .count { color: #0f1119; }
.breadcrumb, .breadcrumb a { color: #1f2a3a; }
.breadcrumb a:hover { color: #000; }
.breadcrumb b { color: #6a3df0; }
.empty { color: #1c2233; }

/* --- Light header to match the off-white page --- */
header { background: linear-gradient(115deg, #efe9ff 0%, #e6f7f1 40%, #fdeef4 74%, #eef1ff 100%); border-bottom: 1px solid rgba(20,22,55,0.10); box-shadow: 0 6px 26px -20px rgba(20,22,60,0.4); }
.top-bar { color: #55596b; border-bottom-color: rgba(20,22,55,0.10); background: linear-gradient(90deg, rgba(124,92,255,0.08), rgba(18,184,148,0.06)); }
.top-bar strong { color: #15171f; }
.brand { color: #15171f; }
.brand .store { color: #5f6478; }
.search-box input { background: #ffffff; border-color: rgba(20,22,55,0.14); color: #15171f; }
.search-box input::placeholder { color: #7a8092; }
.search-box input:focus { background: #ffffff; }
.search-box svg { color: #7a8092; }
.icon-action { background: #ffffff; border-color: rgba(20,22,55,0.14); color: #15171f; }
.icon-action:hover { background: #f1f2f5; }
/* 3D raised category menu bar */
.cat-nav {
  background: linear-gradient(180deg, #ffffff 0%, #e9edf4 100%);
  border-top: 2px solid #d7dce6;
  border-bottom: 3px solid #cdd3e0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -1px 0 rgba(20,22,60,0.05),
              0 8px 16px -6px rgba(20,22,60,0.22), 0 18px 32px -16px rgba(20,22,60,0.20);
}
.menu-item:hover > .menu-link {
  background: #ffffff; border-radius: 10px; border-bottom-color: transparent;
  box-shadow: 0 6px 14px -6px rgba(124,92,255,0.42), inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translateY(-1px);
}
.menu-item.active-dept > .menu-link {
  background: #ffffff; border-radius: 10px; border-bottom-color: transparent;
  box-shadow: 0 6px 14px -7px rgba(124,92,255,0.45), inset 0 1px 0 rgba(255,255,255,0.9);
}
.menu-item > .menu-link { color: #4c5164; }
.menu-item:hover > .menu-link { color: #15171f; }
.menu-item.active-dept > .menu-link { color: var(--accent); }
.menu-toggle { background: #ffffff !important; border-color: rgba(20,22,55,0.14) !important; }
/* light dropdown popovers */
.dropdown { background: #ffffff; border-color: rgba(20,22,55,0.12); box-shadow: 0 30px 60px -24px rgba(20,22,60,0.28); }
.dropdown a { color: #4c5164; }
.dropdown a:hover { background: rgba(124,92,255,0.10); color: #15171f; }
.dropdown a .sub-count { background: #eef0f6; color: #5f6478; }

/* --- Colourful hero that complements the cream background --- */
.hero-inner { background: linear-gradient(135deg, #6a47d4 0%, #4a2fa8 48%, #1f6f86 100%); border-color: rgba(255,255,255,0.12); box-shadow: 0 34px 80px -34px rgba(74,47,168,0.6); }
.hero .pill { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.26); color: #ffffff; }
.hero p { color: rgba(255,255,255,0.85); }
.hero h1 { color: #ffffff; }
.hero h1 .grad { background: linear-gradient(120deg, #ffd36e, #ff9ec4 55%, #8ef7d6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* --- Clean white product cards & content for a modern look --- */
.product { background: #ffffff; border: 1px solid #D7DEE8; box-shadow: 0 1px 2px rgba(16,24,40,0.05), 0 16px 32px -18px rgba(16,24,40,0.22); }
.product:hover { border-color: rgba(124,92,255,0.5); box-shadow: 0 2px 6px rgba(16,24,40,0.07), 0 28px 54px -24px rgba(124,92,255,0.38); }
.product .thumb { background: #ffffff; }
.product .thumb .emoji { filter: drop-shadow(0 8px 16px rgba(20,22,60,0.14)); }
.product h3 { color: #0f1117; }
.product .rating { color: #565c6c; }
.price-tag .now { color: #0f1117; }
.price-tag .was { color: #868c9c; }

/* Category filter chips */
.chip { background: #ffffff; border: 1px solid #E2E8F0; color: #55596b; }
.chip:hover { color: #15171f; border-color: rgba(124,92,255,0.45); }

/* "Why shop with us" cards */
.fs-item { background: #ffffff; border: 1px solid #E2E8F0; box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 12px 28px -16px rgba(16,24,40,0.14); }
.fs-item h4 { color: #15171f; }
.fs-item p { color: #6a6f82; }

/* --- Light footer to match the theme --- */
footer { background: #eef1f6; border-top: 1px solid #E2E8F0; }
.foot-col h4 { color: #15171f; }
.foot-col a { color: #565c6c; }
.foot-col a:hover { color: #15171f; }
.foot-brand p { color: #565c6c; }
.foot-bottom { color: #565c6c; border-top-color: #dfe4ec; }
.newsletter input { background: #ffffff; border-color: #E2E8F0; color: #15171f; }
.newsletter input::placeholder { color: #868c9c; }
.newsletter p { color: #565c6c !important; }
.pay-row span { background: #ffffff; border-color: #E2E8F0; color: #565c6c; }
.socials a { background: #ffffff; border-color: #E2E8F0; color: #565c6c; }
.socials a:hover { color: #15171f; border-color: var(--accent); }

/* --- Side product slideshow rails --- */
.side-rail {
  position: fixed; top: 140px; height: min(47vh, 460px); width: 176px; overflow: hidden; z-index: 20;
  display: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 90%, transparent);
}
/* centred inside each side gutter so no empty strip is left over */
.side-rail.left { left: calc(25% - 398px); }
.side-rail.right { left: calc(75% + 222px); }
.rail-track { display: block; animation: railUp linear infinite; will-change: transform; }
.side-rail.right .rail-track { animation-direction: reverse; }
.side-rail:hover .rail-track { animation-play-state: paused; }
@keyframes railUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.rail-card {
  pointer-events: auto; background: #fff; border: 1px solid #E2E8F0; border-radius: 14px;
  padding: 12px 12px 13px; margin-bottom: 14px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16,24,40,0.05), 0 12px 24px -18px rgba(16,24,40,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rail-card:hover { transform: translateY(-2px); border-color: rgba(124,92,255,0.5); box-shadow: 0 16px 30px -18px rgba(124,92,255,0.4); }
.rail-card .r-thumb { font-size: 2.4rem; text-align: center; line-height: 1; margin-bottom: 8px; filter: drop-shadow(0 6px 12px rgba(20,22,60,0.14)); }
.rail-card .r-name { font-size: 0.78rem; font-weight: 700; color: #15171f; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-card .r-price { font-size: 0.86rem; font-weight: 800; color: var(--accent); }
@media (min-width: 1720px) { .side-rail { display: block; } }

/* --- Boxed header rows with colourful borders --- */
.top-bar {
  border: 1px solid #e2e8f0; border-radius: 8px; margin-top: 5px;
  padding: 1px 0; font-size: 0.72rem; line-height: 1.4;
}
.head-main {
  border: 2px solid transparent; border-radius: 16px; padding: 8px 18px; margin: 10px 0; height: auto; min-height: 66px;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(90deg, #7c5cff, #12b894, #ff5c8a) border-box;
  box-shadow: 0 8px 20px -14px rgba(124,92,255,0.5);
}

/* --- Floating category menu bar --- */
.cat-nav { background: transparent; border-top: none; border-bottom: none; box-shadow: none; }
.cat-nav .wrap {
  max-width: none; background: #ffffff; border: 1px solid #e5e9f0; border-radius: 18px;
  box-shadow: 0 16px 34px -14px rgba(20,22,60,0.32), 0 4px 10px -4px rgba(20,22,60,0.10);
  margin: 4px 18px 16px; padding: 3px 34px;
}
@media (min-width: 901px) { .cat-nav .cat-list { justify-content: space-between; } }
/* search row spans full width; its empty area is clickable → home */
header > .wrap:not(.top-bar) { max-width: none; padding: 0 18px; }
.head-main { cursor: pointer; }
.head-main .search-box input { cursor: text; }
