:root {
  --bg: #F0F4FA;
  --surface: #FFFFFF;
  --surface-soft: #DFE9F7;
  --surface-soft2: #EAE3F8;
  --ink: #1B2335;
  --muted: #788397;
  --terracotta: #405ED1;
  --terracotta-dark: #2C45A8;
  --sage: #278D91;
  --lavender: #A18AE8;
  --gold: #D94D86;
  --line: rgba(27, 35, 53, .09);
  --shadow-soft: 0 24px 50px -20px rgba(27, 35, 53, .22);
  --shadow-pop: 0 14px 28px -10px rgba(64, 94, 209, .35);
  --blob: 30px 12px 30px 12px;
}

html[data-theme="dark"] {
  --bg: #0E1421;
  --surface: #171F30;
  --surface-soft: #202D43;
  --surface-soft2: #29223D;
  --ink: #F1F4FC;
  --muted: #A2AEC4;
  --terracotta: #8CA5FF;
  --terracotta-dark: #6F8BEF;
  --sage: #56C2BE;
  --lavender: #C0AEFF;
  --gold: #F27EAD;
  --line: rgba(241, 244, 252, .1);
  --shadow-soft: 0 24px 50px -18px rgba(0, 0, 0, .55);
  --shadow-pop: 0 14px 30px -10px rgba(140, 165, 255, .3);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  transition: background .5s ease, color .5s ease;
  overflow-x: hidden;
}
h1, h2, h3, h4, .head-font { font-family: "Poppins", sans-serif; letter-spacing: -0.01em; }
.script { font-family: "Caveat", cursive; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--terracotta); color: #fff; }

/* ---------- Announcement rotator ---------- */
.announce {
  background: var(--ink); color: var(--bg); text-align: center; font-size: .82rem;
  font-weight: 500; padding: .55rem 1rem; letter-spacing: .02em; position: relative; overflow: hidden;
}
.announce span { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.announce span.show { opacity: 1; transform: translateY(0); }

/* ---------- Floating pill nav ---------- */
.nav-wrap { position: sticky; top: 14px; z-index: 1030; padding: 0 16px; }
.nav-pill-bar {
  max-width: 1180px; margin: 0 auto; background: var(--surface); border-radius: 999px;
  box-shadow: var(--shadow-soft); display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .7rem .6rem 1.4rem; border: 1px solid var(--line);
}
.logo-mark { display: flex; align-items: center; gap: .5rem; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.25rem; }
.logo-mark .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--terracotta); display: inline-block; }
.pill-links { display: flex; align-items: center; gap: .2rem; }
.pill-links a { font-size: .88rem; font-weight: 600; padding: .55rem 1rem; border-radius: 999px; transition: .25s; color: var(--muted); }
.pill-links a:hover { background: var(--surface-soft); color: var(--ink); }
.pill-links a.active { background: var(--surface-soft); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: .4rem; }
.circle-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-soft);
  display: inline-flex; align-items: center; justify-content: center; position: relative; color: var(--ink); transition: .25s;
}
.circle-btn:hover { background: var(--terracotta); color: #fff; transform: translateY(-2px); }
.cart-dot {
  position: absolute; top: -4px; right: -4px; background: var(--terracotta); color: #fff; font-size: .62rem;
  font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; border: 2px solid var(--surface);
}
.theme-pill { width: 60px; height: 34px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--line); position: relative; cursor: pointer; }
.theme-pill .knob {
  width: 26px; height: 26px; border-radius: 50%; background: var(--terracotta); color: #fff; position: absolute;
  top: 3px; left: 3px; display: flex; align-items: center; justify-content: center; font-size: .75rem;
  transition: .35s cubic-bezier(.34, 1.56, .64, 1);
}
html[data-theme="dark"] .theme-pill .knob { left: 31px; background: var(--lavender); color: #241E2C; }
.menu-btn { display: none; }
@media (max-width: 991px) {
  .pill-links { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Fullscreen mobile menu */
.mobile-menu {
  position: fixed; inset: 0; background: var(--bg); z-index: 1055; display: flex; flex-direction: column;
  padding: 2rem; transform: translateY(-100%); transition: transform .5s cubic-bezier(.34, 1, .64, 1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: "Poppins", sans-serif; font-size: 1.7rem; font-weight: 700; padding: .6rem 0; border-bottom: 1px solid var(--line); }

/* ---------- Hero: banner only ---------- */
.hero-zone { padding: 2.2rem 16px 1rem; }
.hero-frame { max-width: 1400px; margin: 0 auto; position: relative; perspective: 1200px; }
.hero-banner-btn {
  display: block; width: 100%; aspect-ratio: 17/7; border-radius: 34px; overflow: hidden; position: relative;
  box-shadow: var(--shadow-soft); border: 1px solid var(--line); cursor: pointer; transform-style: preserve-3d; transition: transform .25s ease-out;
}
.hero-banner-btn img {
  width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.1); opacity: 0;
  transition: transform 1.6s cubic-bezier(.16, .84, .44, 1), opacity 1s ease;
}
.hero-banner-btn.loaded img { transform: scale(1); opacity: 1; }
.hero-shop-badge {
  position: absolute; right: 26px; bottom: 26px; z-index: 3; width: 118px; height: 118px; border-radius: 50%;
  background: var(--terracotta); color: #fff; display: flex; align-items: center; justify-content: center;
  text-align: center; font-family: "Poppins", sans-serif; font-weight: 700; font-size: .85rem; line-height: 1.2;
  box-shadow: var(--shadow-pop); animation: pulseBadge 2.6s ease-in-out infinite;
}
.hero-shop-badge i { font-size: 1.2rem; display: block; margin-bottom: 2px; }
@keyframes pulseBadge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.hero-idx-chip {
  position: absolute; left: 26px; top: 26px; z-index: 3; background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px);
  color: #2B2320; font-size: .75rem; font-weight: 600; padding: .5rem .9rem; border-radius: 999px; letter-spacing: .03em;
}
@media (max-width:768px) {
  .hero-banner-btn { aspect-ratio: 16/11; border-radius: 24px; }
  .hero-shop-badge { width: 88px; height: 88px; font-size: .7rem; right: 16px; bottom: 16px; }
}

/* ---------- Section shell ---------- */
.zone { padding: 5.5rem 0; }
.zone-soft { background: var(--surface-soft); }
.eyebrow-script { font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--terracotta); font-weight: 700; }
.zone-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; margin: .2rem 0 0; }
.pop-in { opacity: 0; transform: scale(.9) translateY(24px); transition: opacity .7s cubic-bezier(.34, 1.2, .4, 1), transform .7s cubic-bezier(.34, 1.2, .4, 1); }
.pop-in.in { opacity: 1; transform: scale(1) translateY(0); }
.pop-stagger>* { transition-delay: calc(var(--i, 0)*90ms); }

/* ---------- Buttons ---------- */
.btn-blob {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: .9rem; border-radius: 999px; padding: .85rem 1.7rem;
  background: var(--terracotta); color: #fff; border: none; box-shadow: var(--shadow-pop);
  transition: .3s cubic-bezier(.34, 1.4, .6, 1); display: inline-flex; align-items: center; gap: .5rem;
}
.btn-blob:hover { transform: translateY(-3px) scale(1.03); color: #fff; }
.btn-outline-blob {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: .9rem; border-radius: 999px; padding: .82rem 1.7rem;
  background: transparent; color: var(--ink); border: 2px solid var(--ink); transition: .3s;
}
.btn-outline-blob:hover { background: var(--ink); color: var(--bg); }

/* ---------- About: bento ---------- */
.about-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.about-bento .lead-card {
  grid-column: span 3; grid-row: span 2; background: var(--ink); color: var(--bg); border-radius: 34px;
  padding: 2.4rem; display: flex; flex-direction: column; justify-content: space-between;
}
.about-bento .mini-card { grid-column: span 3; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 1.7rem; box-shadow: var(--shadow-soft); }
@media (max-width:860px) {
  .about-bento { grid-template-columns: repeat(2, 1fr); }
  .about-bento .lead-card { grid-column: span 2; }
  .about-bento .mini-card { grid-column: span 2; }
}
.about-ico {
  width: 52px; height: 52px; border-radius: 18px; background: var(--surface-soft2); display: flex;
  align-items: center; justify-content: center; font-size: 1.3rem; color: var(--terracotta); margin-bottom: 1rem;
}

/* ---------- Categories: bento grid ---------- */
.cat-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 1.1rem; }
.cat-tile {
  border-radius: var(--blob); padding: 1.4rem; position: relative; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-end; color: #241C16;
  transition: .4s cubic-bezier(.2, .8, .3, 1); border: 1px solid var(--line);
}
.cat-tile:hover { transform: translateY(-6px) rotate(-0.6deg); }
.cat-tile .emoji { position: absolute; top: 1.2rem; left: 1.3rem; font-size: 2.1rem; }
.cat-tile h6 { font-family: "Poppins", sans-serif; font-weight: 700; margin-bottom: .15rem; }
.cat-tile .cnt { font-size: .75rem; opacity: .75; }
.cat-tile.c1 { grid-column: span 2; grid-row: span 2; background: linear-gradient(150deg, #FFD9BE, #F4B695); }
.cat-tile.c2 { background: linear-gradient(150deg, #DCEAD9, #B9D6B4); }
.cat-tile.c3 { background: linear-gradient(150deg, #E8DFF7, #C9B6E4); }
.cat-tile.c4 { grid-column: span 2; background: linear-gradient(150deg, #FCEBBD, #F3D77A); }
.cat-tile.c5 { background: linear-gradient(150deg, #D9EDEF, #A9D4D8); }
.cat-tile.c6 { background: linear-gradient(150deg, #F6D6D9, #E8A5AC); }
.cat-tile.c7 { grid-row: span 1; background: linear-gradient(150deg, #DDE3F5, #B7C2EC); }
.cat-tile.c8 { background: linear-gradient(150deg, #F3E1D3, #E3BE9E); }
@media (max-width:860px) {
  .cat-bento { grid-template-columns: repeat(2, 1fr); }
  .cat-tile.c1, .cat-tile.c4, .cat-tile.c7 { grid-column: span 2; grid-row: span 1; }
}

/* ---------- Featured: spotlight carousel ---------- */
.spotlight-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.6rem; }
@media (max-width:991px) { .spotlight-wrap { grid-template-columns: 1fr; } }
.spotlight-main {
  background: var(--surface); border-radius: 34px; border: 1px solid var(--line); overflow: hidden;
  box-shadow: var(--shadow-soft); display: grid; grid-template-columns: 1fr 1fr; min-height: 360px;
}
@media (max-width:640px) { .spotlight-main { grid-template-columns: 1fr; } }
.spotlight-main img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; opacity: 0; transition: opacity .5s ease; }
.spotlight-main img.show { opacity: 1; }
.spotlight-info { padding: 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.spotlight-progress { height: 4px; border-radius: 99px; background: var(--surface-soft); overflow: hidden; margin-top: 1.4rem; }
.spotlight-progress .bar { height: 100%; width: 0%; background: var(--terracotta); transition: width linear; }
.thumb-rail { display: flex; flex-direction: column; gap: .85rem; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.thumb-item {
  display: flex; gap: .9rem; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: .7rem; cursor: pointer; transition: .25s;
}
.thumb-item.active, .thumb-item:hover { border-color: var(--terracotta); background: var(--surface-soft); }
.thumb-item img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }

/* ---------- Products: sidebar + bento pagination grid ---------- */
.product-shell { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
@media (max-width:900px) { .product-shell { grid-template-columns: 1fr; } }
.filter-side {
  position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 26px; padding: 1.6rem; box-shadow: var(--shadow-soft);
}
.filter-side h6 { font-family: "Poppins", sans-serif; font-weight: 700; margin-bottom: .9rem; }
.filter-cat-btn {
  width: 100%; text-align: left; background: transparent; border: none; padding: .6rem .8rem; border-radius: 14px;
  font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: .15rem; transition: .2s;
}
.filter-cat-btn.active, .filter-cat-btn:hover { background: var(--surface-soft); color: var(--ink); }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; }
@media (max-width:1200px) { .bento-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:640px) { .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; } }
.bento-card {
  border-radius: 26px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; position: relative;
  display: flex; flex-direction: column; box-shadow: 0 8px 18px -12px rgba(43, 35, 32, .2);
  transition: .3s cubic-bezier(.2, .8, .3, 1);
}
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.bento-card.big { grid-column: span 1; grid-row: span 1; }
.bento-card .img-holder { flex: 1; overflow: hidden; position: relative; }
.bento-card .img-holder img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.bento-card:hover .img-holder img { transform: scale(1.08); }
.bento-card .info { padding: .8rem .95rem 1rem; background: var(--surface); }
.bento-card .cat-tag { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--terracotta); }
.bento-card .price-line { font-weight: 700; font-family: "Poppins", sans-serif; }
.bento-hover-actions {
  position: absolute; top: .7rem; right: .7rem; display: flex; flex-direction: column; gap: .4rem;
  opacity: 0; transform: translateX(8px); transition: .25s;
}
.bento-card:hover .bento-hover-actions { opacity: 1; transform: translateX(0); }
.mini-round-btn {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #241C16; border: none;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}
.mini-round-btn:hover { background: var(--terracotta); color: #fff; }
.toolbar-shell { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.search-pill {
  display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: .55rem 1.1rem; flex: 1; min-width: 220px;
}
.search-pill input { border: none; outline: none; background: transparent; width: 100%; color: var(--ink); font-family: "DM Sans"; }
.sort-pill { border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; background: var(--surface); color: var(--ink); font-family: "DM Sans"; }
.sort-pill:focus { outline: none; }
.page-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; align-items: center; }
.page-num {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-weight: 600; font-size: .85rem; display: flex; align-items: center; justify-content: center;
}
.page-num.active { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.page-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.page-arrow:disabled { opacity: .35; }

/* ---------- Why: zig zag rows ---------- */
.zig-row { display: flex; gap: 2rem; align-items: center; padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.zig-row:nth-child(even) { flex-direction: row-reverse; }
.zig-row:last-child { border-bottom: none; }
.zig-num { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 3.2rem; color: var(--surface-soft2); min-width: 90px; }
html[data-theme="dark"] .zig-num { color: var(--surface-soft); }
.zig-ico {
  width: 64px; height: 64px; border-radius: 20px; background: var(--surface-soft); display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; color: var(--terracotta); flex: none;
}
@media (max-width:700px) {
  .zig-row, .zig-row:nth-child(even) { flex-direction: column; text-align: center; }
  .zig-num { min-width: auto; }
}

/* ---------- FAQ chat bubbles ---------- */
.chat-faq { max-width: 760px; margin: 0 auto; }
.bubble-q {
  background: var(--terracotta); color: #fff; border-radius: 22px 22px 4px 22px; padding: 1rem 1.4rem;
  max-width: 82%; margin-left: auto; font-weight: 600; cursor: pointer; margin-bottom: .6rem; box-shadow: var(--shadow-pop);
}
.bubble-a {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px 22px 22px 4px;
  padding: 1rem 1.4rem; max-width: 82%; margin-bottom: 1.6rem; display: none; color: var(--muted);
}
.bubble-a.show { display: block; }
.bubble-q .bi { margin-left: .4rem; }

/* ---------- Newsletter ---------- */
.news-panel {
  background: linear-gradient(135deg, var(--sage), var(--terracotta)); border-radius: 38px; padding: 3rem;
  color: #fff; position: relative; overflow: hidden;
}
.news-panel::before { content: "✿"; position: absolute; font-size: 14rem; opacity: .12; right: -30px; top: -60px; }
.news-panel .form-control, .news-panel .form-select { border-radius: 16px; border: none; padding: .8rem 1rem; background: rgba(255, 255, 255, .92); }
.news-panel label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }

/* ---------- Contact ---------- */
.contact-chip-row {
  display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; box-shadow: 0 8px 18px -14px rgba(43, 35, 32, .3);
}
.contact-chip-ico {
  width: 48px; height: 48px; border-radius: 16px; background: var(--surface-soft2); color: var(--terracotta);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.map-frame { width: 100%; height: 250px; border: 1px solid var(--line); border-radius: 24px; filter: grayscale(35%); }

/* ---------- Inner pages (about / legal / checkout etc.) ---------- */
.doc-shell { max-width: 900px; margin: 0 auto; }
.doc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 2.4rem; box-shadow: var(--shadow-soft); }
.doc-card h6 { font-family: "Poppins", sans-serif; font-weight: 700; margin-top: 1.3rem; }
.doc-card p { color: var(--muted); }
.checkout-summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 1.6rem;
  box-shadow: var(--shadow-soft); position: sticky; top: 100px;
}
@media (max-width:900px) { .checkout-summary { position: static; } }

/* ---------- Footer ---------- */
.footer-sunk { background: var(--ink); color: var(--bg); border-radius: 44px 44px 0 0; margin-top: 2rem; padding-top: 3.5rem; }
.footer-sunk a { color: var(--bg); opacity: .75; }
.footer-sunk a:hover { opacity: 1; color: var(--gold); }
.foot-logo { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 2rem; }

/* ---------- Cart offcanvas ---------- */
.offcanvas { background: var(--surface); color: var(--ink); border-radius: 26px 0 0 26px; }
.cart-row { display: flex; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.qty-pill { display: flex; align-items: center; gap: .5rem; background: var(--surface-soft); border-radius: 999px; padding: .25rem .5rem; }
.qty-pill button { width: 24px; height: 24px; border-radius: 50%; border: none; background: var(--surface); font-weight: 700; }
.cod-note { background: var(--surface-soft2); border-radius: 16px; padding: .8rem 1rem; font-size: .82rem; font-weight: 600; color: var(--terracotta-dark); }

/* ---------- Modals ---------- */
.modal-content { border-radius: 26px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.form-control, .form-select { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 4px rgba(232, 115, 74, .15); border-color: var(--terracotta);
  background: var(--surface); color: var(--ink);
}
.related-mini { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; transition: .2s; background: var(--surface); }
.related-mini:hover { transform: translateY(-3px); }
.related-mini img { width: 100%; height: 80px; object-fit: contain; }

/* ---------- Toast (bottom center pill) ---------- */
.toast-zone { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1090; }
.pill-toast {
  background: var(--ink); color: var(--bg); border-radius: 999px; padding: .9rem 1.6rem; box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .9rem; opacity: 0;
  transform: translateY(20px) scale(.9); transition: .4s cubic-bezier(.34, 1.4, .6, 1);
}
.pill-toast.show { opacity: 1; transform: translateY(0) scale(1); }

/* Back to top */
.back-top-circle {
  position: fixed; right: 22px; bottom: 22px; z-index: 1040; width: 52px; height: 52px; border-radius: 50%;
  background: var(--terracotta); color: #fff; border: none; display: none; align-items: center;
  justify-content: center; box-shadow: var(--shadow-pop);
}
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { background: var(--terracotta); border-radius: 99px; }
::-webkit-scrollbar-track { background: var(--bg); }