/* ==========================================================================
   7 Hills Crackers — Theme: Royal Blue & Steel Grey
   ========================================================================== */

:root{
  /* Surfaces & Cool Grey Background */
  --white:#FFFFFF;
  --bg:linear-gradient(180deg, #F7F9FC 0%, #E9EFF6 100%);  /* cool blue-grey background */
  --bg-solid:#F7F9FC;
  --bg-soft:#EDF1F7;        /* alternating section band */
  --bg-tint:#DCE5F0;        /* blue-grey wash */
  --surface:#FFFFFF;        /* card surface */

  /* Blue Primary Palette */
  --blue:#1D6FE0;           /* Primary theme color */
  --blue-600:#1557BE;
  --blue-700:#0E3F8C;
  --blue-100:#E4EEFC;
  --navy:#0B2545;           /* deep navy for bars */
  --navy-2:#123763;

  /* Steel Grey Secondary Palette */
  --slate:#4A5D75;
  --slate-600:#37485E;
  --slate-700:#26364A;
  --slate-soft:#EDF1F6;

  /* Legacy accent tokens remapped to the blue/grey scheme */
  --orange:#2E86F0;
  --orange-600:#1557BE;
  --orange-700:#0E3F8C;
  --orange-soft:#EAF2FD;

  --red:#DC2626;            /* reserved for danger / errors */
  --red-600:#B91C1C;
  --red-700:#991B1B;
  --red-800:#7F1D1D;
  --red-soft:#FEECEC;

  --sky:#5FA5F0;
  --sky-2:#8CC0F7;
  --sky-3:#C6DEF9;
  --sky-50:#F1F6FD;

  /* Accents */
  --gold:#E3B23C;
  --amber:#D9930B;
  --violet:#4A6B8A;         /* blue-grey accent */
  --violet-600:#33506B;
  --violet-soft:#EDF2F7;
  --green:#16A34A;
  --wa:#25D366;
  --wa-ink:#06331A;

  /* Ink (Deep Navy / Slate Tones) */
  --head:#12233B;
  --text:#334155;
  --muted:#64748B;
  --muted-2:#94A3B8;
  --line:#DCE3EC;
  --line-2:#C2CEDD;

  /* Gradients */
  --grad-blue:linear-gradient(135deg,#2E86F0 0%,#0E3F8C 100%);
  --grad-accent:linear-gradient(135deg,#4A9BF5 0%,#1D6FE0 52%,#41586F 100%);
  --grad-soft:linear-gradient(160deg,#FBFCFE 0%,#E8EFF7 100%);
  --grad-hero:radial-gradient(1100px 480px at 12% -12%,rgba(29,111,224,.26),transparent 62%),
              radial-gradient(820px 420px at 92% 4%,rgba(100,116,139,.22),transparent 64%),
              radial-gradient(680px 380px at 62% 108%,rgba(14,63,140,.18),transparent 62%),
              linear-gradient(170deg,#F4F8FD 0%,#E5ECF5 100%);

  /* Elevation */
  --shadow-sm:0 1px 3px rgba(16,44,80,.08);
  --shadow:0 8px 24px rgba(16,44,80,.12);
  --shadow-lg:0 22px 55px rgba(16,44,80,.18);
  --glow:0 0 0 1px rgba(29,111,224,.4),0 10px 28px rgba(29,111,224,.22);

  --r-sm:8px; --r:12px; --r-lg:18px; --r-xl:26px;
  --font:'Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  --head-h:70px;
  --container:1240px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--font);
  background:var(--bg);
  background-attachment:fixed;
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
  padding-bottom:env(safe-area-inset-bottom);
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
table{border-collapse:collapse;width:100%}
h1,h2,h3,h4,h5{color:var(--head)}

::selection{background:var(--blue);color:#fff}

/* Scrollbar */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:var(--bg-soft)}
::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:20px}
::-webkit-scrollbar-thumb:hover{background:var(--blue)}

/* ---------- Layout ---------- */
.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:18px}
.section{padding:64px 0}
.section-sm{padding:40px 0}
.row{display:flex;flex-wrap:wrap}
.center{text-align:center}
.hide{display:none !important}

.section-head{text-align:center;max-width:720px;margin:0 auto 40px}
.section-head .eyebrow{
  display:inline-block;font-size:.74rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;
  color:var(--violet);background:var(--violet-soft);border:1px solid rgba(74,107,138,.22);
  padding:6px 14px;border-radius:999px;margin-bottom:14px;
}
.section-head h2{font-size:clamp(1.6rem,3.4vw,2.4rem);line-height:1.2;letter-spacing:-.02em}
.section-head h2 span{color:var(--blue)}
.section-head p{color:var(--muted);margin-top:12px;font-size:1rem}
.section-head .rule{width:78px;height:4px;border-radius:4px;background:var(--grad-accent);margin:16px auto 0}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:12px 22px;border-radius:var(--r);font-weight:700;font-size:.94rem;
  border:1px solid transparent;transition:.22s ease;white-space:nowrap;line-height:1.2;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--grad-blue);color:#fff;box-shadow:0 8px 20px rgba(29,111,224,.28)}
.btn-primary:hover{filter:brightness(1.06);box-shadow:0 12px 26px rgba(29,111,224,.36)}
.btn-accent{background:var(--grad-accent);color:#fff;box-shadow:0 8px 20px rgba(74,107,138,.26)}
.btn-accent:hover{filter:brightness(1.06)}
.btn-outline{border-color:var(--line-2);color:var(--blue);background:var(--white)}
.btn-outline:hover{background:var(--blue-100);border-color:var(--blue)}
.btn-light{background:var(--blue-100);color:var(--blue-700)}
.btn-light:hover{background:var(--sky-3)}
.btn-wa{background:var(--wa);color:var(--wa-ink);box-shadow:0 8px 20px rgba(37,211,102,.3)}
.btn-wa:hover{filter:brightness(1.05)}
.btn-ghost{border-color:var(--line);color:var(--muted);background:var(--white)}
.btn-ghost:hover{color:var(--head);border-color:var(--line-2);background:var(--bg-soft)}
.btn-danger{background:var(--red-soft);border-color:rgba(220,38,38,.35);color:var(--red-600)}
.btn-danger:hover{background:#FFD9D9}
.btn-sm{padding:8px 14px;font-size:.84rem;border-radius:9px}
.btn-lg{padding:15px 30px;font-size:1.02rem}
.btn-block{width:100%}
.btn[disabled]{opacity:.5;pointer-events:none}

/* ---------- Top bar ---------- */
.topbar{background:var(--navy);border-bottom:1px solid rgba(255,255,255,.14);font-size:.83rem;color:#CBD9EA}
.topbar .container{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:40px;flex-wrap:wrap}
.topbar a:hover{color:#fff}
.topbar-left{display:flex;gap:20px;flex-wrap:wrap}
.topbar-left span,.topbar-left a{display:inline-flex;align-items:center;gap:7px}
.topbar-social{display:flex;gap:8px}
.topbar-social a{
  width:26px;height:26px;display:grid;place-items:center;border-radius:50%;
  border:1px solid rgba(255,255,255,.25);transition:.2s;
}
.topbar-social a:hover{background:var(--orange);color:#fff;border-color:var(--orange)}

/* ---------- Header ---------- */
.header{
  position:sticky;top:0;z-index:900;
  background:rgba(247,250,253,.95);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.header.scrolled{box-shadow:var(--shadow)}
.header .container{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:var(--head-h)}

.logo{display:flex;align-items:center;gap:12px;flex-shrink:0}
.brand-logo-img{
  height:48px;width:auto;max-width:180px;object-fit:contain;
  /* Blue plate behind the transparent gold logo */
  background:linear-gradient(135deg,#123763 0%,#0B2545 55%,#17497F 100%);
  padding:6px 12px;border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 6px 18px rgba(11,37,69,.28);
  transition:transform .2s ease,box-shadow .2s ease;
}
.logo:hover .brand-logo-img{transform:scale(1.04);box-shadow:0 10px 24px rgba(11,37,69,.34)}
.logo-mark{
  width:44px;height:44px;border-radius:13px;display:grid;place-items:center;
  background:var(--grad-accent);color:#fff;font-size:1.35rem;
  box-shadow:0 6px 16px rgba(29,111,224,.34);flex-shrink:0;
}
.logo-text b{display:block;font-size:1.12rem;font-weight:800;letter-spacing:-.02em;line-height:1.15;color:var(--head)}
.logo-text small{display:block;font-size:.68rem;color:var(--orange-600);letter-spacing:.1em;text-transform:uppercase;font-weight:700}

.nav{display:flex;align-items:center;gap:4px}
.nav a{
  padding:9px 15px;border-radius:9px;font-weight:600;font-size:.93rem;color:var(--text);transition:.2s;position:relative;
}
.nav a:hover{color:var(--orange-600);background:var(--blue-100)}
.nav a.active{color:var(--blue-700)}
.nav a.active::after{
  content:'';position:absolute;left:15px;right:15px;bottom:2px;height:2px;border-radius:2px;background:var(--grad-blue);
}

.header-actions{display:flex;align-items:center;gap:10px}

.cart-btn{
  position:relative;display:inline-flex;align-items:center;gap:9px;
  padding:10px 16px;border-radius:var(--r);background:var(--grad-blue);
  border:1px solid transparent;color:#fff;font-weight:700;font-size:.9rem;transition:.2s;
  box-shadow:0 6px 16px rgba(29,111,224,.26);
}
.cart-btn:hover{filter:brightness(1.06)}
.cart-btn .badge{
  min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:var(--gold);color:var(--head);
  font-size:.72rem;font-weight:900;display:grid;place-items:center;
}
.nav-toggle{display:none;width:44px;height:44px;border-radius:11px;border:1px solid var(--line-2);color:var(--blue);font-size:1.3rem;background:var(--white)}

/* Mobile drawer */
.drawer-backdrop{position:fixed;inset:0;background:rgba(11,37,69,.5);backdrop-filter:blur(3px);z-index:998;opacity:0;visibility:hidden;transition:.25s}
.drawer-backdrop.open{opacity:1;visibility:visible}
.drawer{
  position:fixed;top:0;right:0;height:100%;width:290px;max-width:86vw;z-index:999;
  background:var(--white);border-left:1px solid var(--line);
  transform:translateX(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);
  display:flex;flex-direction:column;padding:22px;overflow-y:auto;box-shadow:var(--shadow-lg);
}
.drawer.open{transform:translateX(0)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.drawer-close{width:38px;height:38px;border-radius:10px;border:1px solid var(--line);color:var(--muted);font-size:1.2rem}
.drawer nav a{display:block;padding:13px 14px;border-radius:10px;font-weight:600;color:var(--text);border-bottom:1px solid var(--line)}
.drawer nav a.active,.drawer nav a:hover{color:var(--blue-700);background:var(--blue-100)}
.drawer-foot{margin-top:auto;padding-top:22px;font-size:.85rem;color:var(--muted);display:grid;gap:10px}

/* ---------- Marquee Notice & Announcement ---------- */
.marquee-notice {
  background: linear-gradient(90deg, #0B2545 0%, #1D6FE0 50%, #0B2545 100%);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  overflow: hidden;
  padding: 10px 0;
  position: relative;
  z-index: 60;
  border-bottom: 2px solid var(--sky);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee-content:hover {
  animation-play-state: paused;
}
.marquee-content span {
  padding-left: 60px;
  white-space: nowrap;
  display: inline-block;
}
.marquee-content strong {
  color: var(--gold);
}
@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.announce {
  background: linear-gradient(90deg, #DCE5F0, #EDF1F7 50%, #DCE5F0);
  border-bottom: 1px solid var(--line-2);
  color: var(--head);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  padding: 8px 16px;
  position: relative;
  z-index: 55;
  letter-spacing: .02em;
}

.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--head); font-size: 1.05rem;
  border: 1px solid var(--line-2); transition: .2s ease; position: relative; flex-shrink: 0;
}
.icon-btn:hover { transform: translateY(-2px); background: var(--white); box-shadow: var(--shadow-sm); }
.icon-btn.wa { background: var(--wa); color: var(--wa-ink); border-color: transparent; }
.icon-btn.wa:hover { filter: brightness(1.08); }
.icon-btn.call { background: var(--blue-100); color: var(--blue-700); border-color: rgba(29,111,224,.2); }

/* ---------- Side-by-Side Hero (kaleeswaricrackers.com style) ---------- */
.hero {
  position: relative; background: var(--grad-hero); overflow: hidden;
  border-bottom: 1px solid var(--line); padding: 42px 0 54px;
}
.hero::after {
  content:''; position:absolute; inset:0; pointer-events:none;
  background-image: radial-gradient(2px 2px at 20% 30%,rgba(29,111,224,.55),transparent),
    radial-gradient(2px 2px at 70% 20%,rgba(227,178,60,.45),transparent),
    radial-gradient(1.6px 1.6px at 40% 70%,rgba(100,116,139,.5),transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}

.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center;
}

.hero-copy {
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; background: var(--blue-100); border: 1px solid rgba(29,111,224,.3);
  color: var(--blue-700); font-size: .78rem; font-weight: 800; text-transform: uppercase; margin-bottom: 14px;
}
.hero-copy h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem); line-height: 1.16; margin-bottom: 14px; color: var(--head); letter-spacing: -.02em;
}
.hero-copy h1 .hl {
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p.lead {
  font-size: 1.02rem; color: var(--muted); margin-bottom: 24px; line-height: 1.6;
}

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px;
}

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%;
}
.hero-stat {
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 14px 10px; text-align: center; box-shadow: var(--shadow-sm); transition: .22s;
}
.hero-stat:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: var(--shadow); }
.hero-stat b { display: block; font-size: 1.45rem; color: var(--blue-700); line-height: 1.1; letter-spacing: -.02em; }
.hero-stat span { font-size: .74rem; color: var(--muted); font-weight: 700; display: block; margin-top: 2px; }

/* Visual Side (Banner Slider) */
.hero-visual {
  position: relative; width: 100%; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 3px solid var(--blue);
  background: linear-gradient(135deg,#123763 0%,#0B2545 55%,#17497F 100%);
}
.hero-visual .slider {
  border-radius: var(--r-xl); border: 0; box-shadow: none; margin-bottom: 0;
}
.hero-visual .slide img {
  width: 100%; height: 380px; object-fit: cover; display: block; transition: transform .6s ease;
}
.hero-visual:hover .slide img { transform: scale(1.03); }

/* Floating Discount Badge */
.hero-badge {
  position: absolute; top: 16px; right: 16px; z-index: 15;
  background: var(--grad-accent); color: #fff; border-radius: 50%;
  width: 86px; height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; box-shadow: 0 8px 24px rgba(29,111,224,.45); border: 2px solid #fff;
  animation: pulseBadge 3s ease-in-out infinite alternate;
}
@keyframes pulseBadge { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-badge .pct { font-size: 1.4rem; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.hero-badge .lbl { font-size: .65rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; margin-top: 2px; }

/* ---------- Category Navigation Bar (`cat-bar`) ---------- */
.cat-bar {
  background: var(--white); border-block: 1px solid var(--line); padding: 12px 0;
  position: sticky; top: var(--head-h); z-index: 650; box-shadow: var(--shadow-sm);
}
.cat-scroll {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 2px 0;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-soft); color: var(--head);
  font-size: .86rem; font-weight: 700; white-space: nowrap; transition: .2s ease; cursor: pointer;
}
.cat-chip i { color: var(--orange); }
.cat-chip:hover { color: var(--blue); border-color: var(--blue); background: var(--white); }
.cat-chip.active, .cat-chip.on {
  background: var(--grad-blue); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(29,111,224,.28);
}
.cat-chip.active i, .cat-chip.on i { color: #fff; }
.cat-chip .n {
  background: rgba(0,0,0,.1); padding: 2px 7px; border-radius: 999px; font-size: .72rem; font-weight: 800;
}
.cat-chip.active .n, .cat-chip.on .n { background: rgba(255,255,255,.25); color: #fff; }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-copy { align-items: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-visual .slide img { height: 300px; }
}


/* ---------- Feature strip ---------- */
.features{background:var(--bg-soft);border-bottom:1px solid var(--line)}
.features-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line)}
.feature{background:var(--white);padding:28px 22px;display:flex;gap:15px;align-items:flex-start;transition:.25s}
.feature:hover{background:var(--sky-50)}
.feature .ic{
  width:46px;height:46px;border-radius:13px;display:grid;place-items:center;flex-shrink:0;
  background:var(--blue-100);border:1px solid var(--line-2);color:var(--blue);font-size:1.25rem;font-weight:800;
}
.feature h4{font-size:.99rem;margin-bottom:3px}
.feature p{font-size:.85rem;color:var(--muted);line-height:1.5}

/* ---------- Category cards ---------- */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px}
.cat-card{
  position:relative;background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:26px 20px;text-align:center;transition:.28s;overflow:hidden;box-shadow:var(--shadow-sm);
}
.cat-card:hover{transform:translateY(-6px);border-color:var(--violet);box-shadow:0 14px 34px rgba(74,107,138,.18)}
.cat-card .ic{
  width:62px;height:62px;margin:0 auto 14px;border-radius:18px;display:grid;place-items:center;
  background:var(--violet-soft);border:1px solid rgba(74,107,138,.2);color:var(--violet);font-size:1.7rem;transition:.28s;
}
.cat-card:hover .ic{background:var(--grad-accent);color:#fff;transform:scale(1.08) rotate(-6deg);border-color:transparent}
.cat-card h4{font-size:.98rem;line-height:1.3;margin-bottom:5px}
.cat-card span{font-size:.8rem;color:var(--muted)}

/* ---------- Toolbar (products page) ---------- */
.toolbar{
  position:sticky;top:var(--head-h);z-index:700;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);
  border-block:1px solid var(--line);padding:14px 0;
}
.toolbar .container{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.search-box{position:relative;flex:1;min-width:220px}
.search-box input{
  width:100%;padding:11px 16px 11px 42px;border-radius:var(--r);
  background:var(--white);border:1px solid var(--line-2);color:var(--text);
}
.search-box input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(29,111,224,.15)}
.search-box .ic{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted-2)}
select.field,input.field,textarea.field{
  padding:11px 14px;border-radius:var(--r);background:var(--white);
  border:1px solid var(--line-2);color:var(--text);
}
select.field:focus,input.field:focus,textarea.field:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(29,111,224,.15)}

.chips{display:flex;gap:9px;overflow-x:auto;padding:4px 0;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{
  padding:8px 16px;border-radius:999px;border:1px solid var(--line-2);background:var(--white);
  color:var(--text);font-size:.86rem;font-weight:600;white-space:nowrap;transition:.2s;
}
.chip:hover{color:var(--blue);border-color:var(--blue)}
.chip.on{background:var(--grad-blue);color:#fff;border-color:transparent;box-shadow:0 6px 14px rgba(29,111,224,.28)}

/* ---------- Product grid ---------- */
.prod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:20px}
.prod{
  background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);
  overflow:hidden;display:flex;flex-direction:column;transition:.26s;position:relative;box-shadow:var(--shadow-sm);
}
.prod:hover{transform:translateY(-5px);border-color:var(--line-2);box-shadow:var(--shadow)}
.prod.in-cart{border-color:var(--blue);box-shadow:var(--glow)}
.prod-media{position:relative;aspect-ratio:4/3;background:var(--bg-soft);overflow:hidden}
.prod-media img{width:100%;height:100%;object-fit:cover;transition:.4s}
.prod:hover .prod-media img{transform:scale(1.07)}
.off-badge{
  position:absolute;top:10px;left:10px;background:var(--grad-blue);color:#fff;
  font-size:.72rem;font-weight:900;padding:4px 10px;border-radius:7px;letter-spacing:.03em;
  box-shadow:0 4px 10px rgba(14,63,140,.32);
}
.code-badge{
  position:absolute;top:10px;right:10px;background:rgba(255,255,255,.92);border:1px solid var(--line-2);
  color:var(--blue);font-size:.7rem;font-weight:700;padding:4px 9px;border-radius:7px;
}
.oos{position:absolute;inset:0;background:rgba(255,255,255,.82);display:grid;place-items:center;
  font-weight:800;color:var(--red-600);letter-spacing:.08em;font-size:.85rem}
.prod-body{padding:15px;display:flex;flex-direction:column;gap:9px;flex:1}
.prod-cat{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:var(--violet);font-weight:700}
.prod-name{font-size:.97rem;font-weight:700;line-height:1.32;min-height:2.6em;color:var(--head);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prod-content{font-size:.8rem;color:var(--muted)}
.prod-price{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin-top:auto}
.prod-price .now{font-size:1.24rem;font-weight:900;color:var(--blue-700);letter-spacing:-.02em}
.prod-price .was{font-size:.86rem;color:var(--muted);text-decoration:line-through}
.prod-foot{padding:0 15px 15px;display:flex;gap:9px;align-items:center}

/* Quantity stepper */
.qty{display:flex;align-items:center;border:1px solid var(--line-2);border-radius:10px;overflow:hidden;background:var(--white);flex-shrink:0}
.qty button{width:34px;height:38px;color:var(--blue);font-size:1.05rem;font-weight:700;transition:.15s}
.qty button:hover{background:var(--blue-100)}
.qty input{width:46px;height:38px;text-align:center;background:transparent;border:0;font-weight:700;font-size:.92rem;
  color:var(--head);-moz-appearance:textfield}
.qty input::-webkit-outer-spin-button,.qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty input:focus{outline:none}

.add-btn{flex:1;height:38px;border-radius:10px;background:var(--grad-blue);color:#fff;font-weight:800;font-size:.86rem;
  display:grid;place-items:center;transition:.2s;box-shadow:0 4px 12px rgba(29,111,224,.25)}
.add-btn:hover{filter:brightness(1.06)}
.add-btn.added{background:var(--green);box-shadow:0 4px 12px rgba(22,163,74,.28)}

/* ---------- Price-list table ---------- */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--white)}
table.price{min-width:760px}
table.price thead th{
  background:var(--grad-blue);color:#fff;font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;
  padding:14px 12px;text-align:left;font-weight:800;position:sticky;top:0;z-index:2;
}
table.price td{padding:12px;border-top:1px solid var(--line);font-size:.9rem;vertical-align:middle}
table.price tbody tr:hover{background:var(--sky-50)}
table.price tbody tr.in-cart{background:var(--blue-100)}
table.price .cat-row td{
  background:var(--violet-soft);color:var(--violet-600);font-weight:800;text-transform:uppercase;
  letter-spacing:.09em;font-size:.79rem;padding:11px 12px;
}
table.price .thumb{width:52px;height:52px;border-radius:9px;object-fit:cover;background:var(--bg-soft)}
table.price .p-name{font-weight:700;color:var(--head)}
table.price .p-sub{font-size:.78rem;color:var(--muted)}
table.price .strike{color:var(--muted);text-decoration:line-through;font-size:.84rem}
table.price .rate{color:var(--blue-700);font-weight:800}
table.price .line-total{font-weight:800;white-space:nowrap;color:var(--head)}

.view-switch{display:flex;border:1px solid var(--line-2);border-radius:10px;overflow:hidden;background:var(--white)}
.view-switch button{padding:9px 14px;color:var(--muted);font-size:.85rem;font-weight:600}
.view-switch button.on{background:var(--grad-blue);color:#fff}

/* ---------- Sticky cart bar ---------- */
.cartbar{
  position:fixed;left:0;right:0;bottom:0;z-index:850;
  background:rgba(255,255,255,.98);backdrop-filter:blur(14px);border-top:2px solid var(--blue);
  box-shadow:0 -8px 30px rgba(16,44,80,.14);transform:translateY(110%);transition:transform .3s cubic-bezier(.4,0,.2,1);
  padding-bottom:env(safe-area-inset-bottom);
}
.cartbar.show{transform:translateY(0)}
.cartbar .container{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:13px;flex-wrap:wrap}
.cartbar-info{display:flex;gap:26px;flex-wrap:wrap}
.cartbar-info .it small{display:block;font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.cartbar-info .it b{font-size:1.12rem;color:var(--head)}
.cartbar-info .it.tot b{color:var(--blue-700);font-size:1.3rem}
.cartbar-actions{display:flex;gap:10px;flex-wrap:wrap}
body.has-cartbar{padding-bottom:86px}

/* ---------- Cart page ---------- */
.cart-layout{display:grid;grid-template-columns:1fr 370px;gap:26px;align-items:start}
.panel{background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-sm)}
.panel-head{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--bg-soft)}
.panel-head h3{font-size:1.06rem}
.panel-body{padding:22px}
.summary{position:sticky;top:calc(var(--head-h) + 18px)}
.sum-row{display:flex;justify-content:space-between;gap:14px;padding:11px 0;font-size:.93rem;color:var(--muted)}
.sum-row b{color:var(--head)}
.sum-row.save b{color:var(--green)}
.sum-total{display:flex;justify-content:space-between;align-items:center;padding:16px 0 4px;border-top:1px dashed var(--line-2);margin-top:8px}
.sum-total span{font-weight:700;color:var(--head)}
.sum-total b{font-size:1.6rem;color:var(--blue-700);letter-spacing:-.02em}

.empty{text-align:center;padding:70px 22px}
.empty .ic{font-size:3.6rem;margin-bottom:16px;opacity:.6}
.empty h3{margin-bottom:8px}
.empty p{color:var(--muted);margin-bottom:22px}

/* ---------- Forms ---------- */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.fg{display:flex;flex-direction:column;gap:7px}
.fg.full{grid-column:1/-1}
.fg label{font-size:.84rem;font-weight:700;color:var(--head)}
.fg label .req{color:var(--red)}
.fg input,.fg select,.fg textarea{
  padding:12px 14px;border-radius:var(--r);background:var(--white);
  border:1px solid var(--line-2);color:var(--text);width:100%;transition:.18s;
}
.fg input:focus,.fg select:focus,.fg textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(29,111,224,.15)}
.fg input::placeholder,.fg textarea::placeholder{color:var(--muted-2)}
.fg textarea{resize:vertical;min-height:100px}
.fg .hint{font-size:.78rem;color:var(--muted)}
.fg .err{font-size:.8rem;color:var(--red)}

/* ---------- Alerts ---------- */
.alert{padding:14px 18px;border-radius:var(--r);margin-bottom:16px;font-size:.92rem;display:flex;gap:11px;align-items:flex-start;border:1px solid}
.alert-success{background:#E9F9EF;border-color:#A7E4BF;color:#14713C}
.alert-error,.alert-danger{background:var(--red-soft);border-color:#F5B5B3;color:var(--red-600)}
.alert-info{background:var(--blue-100);border-color:var(--line-2);color:var(--blue-700)}
.alert-warn{background:#FFF6E5;border-color:#F7D9A0;color:#96620A}

/* ---------- Notice / policy box ---------- */
.notice-box{
  background:linear-gradient(135deg,var(--violet-soft),var(--sky-50));
  border:1px solid rgba(74,107,138,.22);border-radius:var(--r-lg);padding:22px 24px;
}
.notice-box h4{color:var(--violet-600);font-size:1rem;margin-bottom:10px;display:flex;gap:9px;align-items:center}
.notice-box ul{display:grid;gap:8px}
.notice-box li{font-size:.9rem;color:var(--text);padding-left:20px;position:relative;line-height:1.55}
.notice-box li::before{content:'▸';position:absolute;left:0;color:var(--blue)}

/* ---------- About / content ---------- */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center}
.prose p{color:var(--muted);margin-bottom:14px}
.prose h3{margin:22px 0 10px;font-size:1.15rem}
.check-list{display:grid;gap:11px;margin-top:18px}
.check-list li{display:flex;gap:11px;align-items:flex-start;font-size:.93rem;color:var(--text)}
.check-list li i{color:var(--green);flex-shrink:0;margin-top:3px}

.stat-band{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.stat{background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);padding:26px 20px;text-align:center;transition:.25s;box-shadow:var(--shadow-sm)}
.stat:hover{border-color:var(--blue);transform:translateY(-4px);box-shadow:var(--shadow)}
.stat b{display:block;font-size:2.1rem;color:var(--blue);letter-spacing:-.03em;line-height:1.1}
.stat span{font-size:.85rem;color:var(--muted)}

/* Contact */
.contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:26px;align-items:start}
.contact-card{display:flex;gap:15px;padding:18px;border:1px solid var(--line);border-radius:var(--r);background:var(--white);margin-bottom:14px;box-shadow:var(--shadow-sm)}
.contact-card .ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;flex-shrink:0;
  background:var(--blue-100);border:1px solid var(--line-2);color:var(--blue);font-size:1.15rem}
.contact-card h5{font-size:.92rem;margin-bottom:3px}
.contact-card p,.contact-card a{font-size:.9rem;color:var(--muted);line-height:1.5}
.contact-card a:hover{color:var(--blue)}
.map-wrap{border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--line);height:320px}
.map-wrap iframe{width:100%;height:100%;border:0}

/* Safety tips */
.tip-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.tip{background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);padding:22px;box-shadow:var(--shadow-sm)}
.tip.do{border-left:4px solid var(--green)}
.tip.dont{border-left:4px solid var(--red)}
.tip h4{margin-bottom:12px;display:flex;gap:9px;align-items:center;font-size:1rem}
.tip.do h4{color:#14713C} .tip.dont h4{color:var(--red-600)}
.tip li{font-size:.89rem;color:var(--text);padding:6px 0 6px 20px;position:relative;line-height:1.55}
.tip li::before{content:'•';position:absolute;left:4px;color:var(--blue)}

/* ---------- Order success ---------- */
.success-card{max-width:640px;margin:0 auto;text-align:center;background:var(--white);
  border:1px solid var(--line);border-radius:var(--r-xl);padding:44px 34px;box-shadow:var(--shadow-lg)}
.success-card .tick{width:88px;height:88px;margin:0 auto 22px;border-radius:50%;display:grid;place-items:center;
  background:#E9F9EF;border:2px solid var(--green);color:var(--green);font-size:2.4rem}
.success-card h2{margin-bottom:10px}
.success-card .ono{display:inline-block;margin:14px 0 20px;padding:10px 22px;border-radius:10px;
  background:var(--blue-100);border:1px dashed var(--blue);color:var(--blue-700);font-weight:800;letter-spacing:.06em}

/* ---------- Footer ---------- */
.footer{background:var(--bg-soft);border-top:1px solid var(--line);padding:54px 0 0;margin-top:20px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.3fr;gap:38px;padding-bottom:38px}
.footer h5{font-size:.94rem;margin-bottom:16px;color:var(--head);letter-spacing:.03em}
.footer p,.footer li,.footer a{font-size:.88rem;color:var(--muted);line-height:1.75}
.footer a:hover{color:var(--blue)}
.footer li{padding:3px 0}
.footer .f-contact li{display:flex;gap:10px;align-items:flex-start}
.footer .f-contact i{color:var(--blue);margin-top:5px;flex-shrink:0}
.footer-bottom{border-top:1px solid var(--line);padding:18px 0;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:.83rem;color:var(--muted)}
.footer-bottom a{color:var(--blue);font-weight:600}
.f-social{display:flex;gap:10px;margin-top:16px}
.f-social a{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;border:1px solid var(--line-2);background:var(--white);transition:.2s;color:var(--blue)}
.f-social a:hover{background:var(--grad-accent);color:#fff;border-color:transparent}

.legal-note{background:var(--red-soft);border:1px solid rgba(220,38,38,.22);border-radius:var(--r);
  padding:14px 18px;margin-bottom:30px;font-size:.8rem;color:var(--red-600);line-height:1.65}

/* ---------- Floating WhatsApp ---------- */
/* Base sits low; when the sticky cart bar is showing the FAB lifts above it.
   Both state rules share the same specificity so source order decides — the
   responsive override below therefore always wins on small screens. */
.fab-wa{
  position:fixed;right:18px;bottom:24px;z-index:840;width:54px;height:54px;border-radius:50%;
  background:var(--wa);color:var(--wa-ink);display:grid;place-items:center;font-size:1.6rem;
  box-shadow:0 10px 24px rgba(37,211,102,.42);transition:.25s;
}
.fab-wa:hover{transform:scale(1.09)}
.fab-wa::after{content:'';position:absolute;inset:0;border-radius:50%;border:2px solid var(--wa);animation:pulse 2s infinite}
@keyframes pulse{0%{transform:scale(1);opacity:.8}100%{transform:scale(1.6);opacity:0}}
body.has-cartbar .fab-wa{bottom:96px}

/* ---------- Toast ---------- */
#toasts{position:fixed;top:86px;right:18px;z-index:1200;display:flex;flex-direction:column;gap:10px}
.toast{
  background:var(--white);border:1px solid var(--line-2);border-left:4px solid var(--blue);
  border-radius:var(--r);padding:13px 18px;min-width:230px;box-shadow:var(--shadow-lg);
  font-size:.9rem;font-weight:600;color:var(--head);animation:toastIn .3s ease;
}
.toast.ok{border-left-color:var(--green)}
.toast.err{border-left-color:var(--red)}
@keyframes toastIn{from{transform:translateX(120%);opacity:0}to{transform:translateX(0);opacity:1}}

/* ---------- Pagination ---------- */
.pager{display:flex;gap:7px;justify-content:center;margin-top:34px;flex-wrap:wrap}
.pager a,.pager span{padding:9px 14px;border-radius:9px;border:1px solid var(--line-2);font-size:.88rem;color:var(--text);background:var(--white)}
.pager a:hover{border-color:var(--blue);color:var(--blue)}
.pager .on{background:var(--grad-blue);color:#fff;border-color:transparent;font-weight:700}

/* ---------- Responsive (All Device Sizes) ---------- */

/* Laptops & Tablets (<= 1024px) */
@media (max-width: 1024px) {
  :root { --container: 100%; }
  .container { padding-inline: 20px; }
  .slide img { height: 340px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-copy { align-items: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); max-width: 640px; margin-inline: auto; }
  .hero-visual .slide img { height: 320px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

/* Small Tablets & Large Phones (<= 860px) */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .topbar-left span:nth-child(n+3), .topbar-left a:nth-child(n+2) { display: none; }
  .topbar .container { justify-content: center; }
  .topbar-social { display: none; }
  .slider-nav-btn { width: 38px; height: 38px; font-size: 1rem; }
  .slider-nav-btn.prev { left: 10px; }
  .slider-nav-btn.next { right: 10px; }
}

/* Standard Smartphones (<= 640px) */
@media (max-width: 640px) {
  :root { --head-h: 62px; }
  .container { padding-inline: 14px; }
  .section { padding: 36px 0; }
  .section-sm { padding: 24px 0; }

  /* Header & Marquee */
  .marquee-notice { font-size: 0.8rem; padding: 7px 0; }
  .marquee-content span { padding-left: 36px; }
  .announce { font-size: 0.78rem; padding: 6px 10px; }
  .brand-logo-img { height: 38px; max-width: 140px; padding: 4px 9px; border-radius: 10px; }
  .logo-text b { font-size: 0.98rem; }
  .logo-text small { font-size: 0.6rem; }
  .icon-btn { width: 36px; height: 36px; font-size: 0.95rem; border-radius: 9px; }
  .cart-btn { padding: 8px 12px; font-size: 0.82rem; }

  /* Hero Section */
  .hero { padding: 24px 0 32px; }
  .hero-eyebrow { font-size: 0.72rem; padding: 5px 12px; margin-bottom: 10px; }
  .hero-copy h1 { font-size: clamp(1.4rem, 5.5vw, 1.95rem); margin-bottom: 10px; }
  .hero-copy p.lead { font-size: 0.92rem; margin-bottom: 18px; line-height: 1.5; }
  .hero-actions { width: 100%; flex-direction: column; gap: 9px; margin-bottom: 22px; }
  .hero-actions .btn { width: 100%; padding: 13px 18px; font-size: 0.94rem; justify-content: center; }
  
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-stat { padding: 10px 6px; border-radius: 10px; }
  .hero-stat b { font-size: 1.25rem; }
  .hero-stat span { font-size: 0.7rem; }

  .hero-visual { border-radius: var(--r-lg); border-width: 2px; }
  .hero-visual .slide img { height: 230px; }
  .hero-badge { width: 66px; height: 66px; top: 10px; right: 10px; }
  .hero-badge .pct { font-size: 1.12rem; }
  .hero-badge .lbl { font-size: 0.55rem; }
  .slide-cap { padding: 16px; gap: 3px; }
  .slide-cap h3 { font-size: 1.05rem; }
  .slide-cap p { font-size: 0.82rem; }

  /* Category Bar */
  .cat-bar { padding: 8px 0; }
  .cat-chip { padding: 7px 14px; font-size: 0.8rem; }

  /* Toolbar */
  .toolbar { padding: 10px 0; }
  .toolbar .container { gap: 8px; }
  .search-box { width: 100%; min-width: 100%; }
  .search-box input { font-size: 16px; padding: 10px 14px 10px 38px; border-radius: 10px; } /* 16px prevents iOS zoom */
  select.field { flex: 1; min-width: 130px; font-size: 0.82rem; padding: 9px 10px; border-radius: 10px; }
  .view-switch { width: 100%; justify-content: center; }
  .view-switch button { flex: 1; padding: 8px 12px; font-size: 0.82rem; text-align: center; }
  .chips { padding: 2px 0; }
  .chip { padding: 7px 13px; font-size: 0.8rem; }

  /* Price List Table (Touch Scrollable) */
  .table-wrap {
    border-radius: var(--r);
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  }
  table.price { min-width: 620px; }
  table.price thead th { padding: 10px 8px; font-size: 0.72rem; }
  table.price td { padding: 8px; font-size: 0.83rem; }
  table.price .cat-row td { padding: 9px 10px; font-size: 0.75rem; }
  table.price .thumb { width: 42px; height: 42px; border-radius: 7px; }
  table.price .p-name { font-size: 0.86rem; }

  /* Quantity Stepper on Mobile */
  .qty { border-radius: 8px; }
  .qty button { width: 30px; height: 34px; font-size: 0.95rem; }
  .qty input { width: 36px; height: 34px; font-size: 0.86rem; }

  /* Product Grid View on Mobile */
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prod { border-radius: var(--r); }
  .prod-body { padding: 10px; gap: 5px; }
  .prod-cat { font-size: 0.65rem; }
  .prod-name { font-size: 0.84rem; min-height: 2.5em; line-height: 1.25; }
  .prod-content { font-size: 0.75rem; }
  .prod-price .now { font-size: 1.05rem; }
  .prod-price .was { font-size: 0.78rem; }
  .prod-foot { padding: 0 10px 10px; flex-direction: column; gap: 6px; }
  .add-btn { height: 34px; font-size: 0.8rem; border-radius: 8px; }
  .off-badge { font-size: 0.66rem; padding: 3px 7px; top: 6px; left: 6px; }
  .code-badge { font-size: 0.65rem; padding: 3px 7px; top: 6px; right: 6px; }

  /* Forms & Alerts */
  .form-grid { grid-template-columns: 1fr; }
  .tip-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding-top: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer .f-contact li { justify-content: center; }
  .f-social { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; font-size: 0.78rem; }

  /* Sticky Bottom Cartbar & FAB */
  .cartbar { border-top-width: 1px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .cartbar .container { padding-block: 9px; gap: 8px; }
  .cartbar-info { gap: 10px; width: 100%; justify-content: space-between; }
  .cartbar-info .it small { font-size: 0.65rem; }
  .cartbar-info .it b { font-size: 0.95rem; }
  .cartbar-info .it.tot b { font-size: 1.15rem; }
  .cartbar-actions { width: 100%; gap: 8px; }
  .cartbar-actions .btn { flex: 1; padding: 10px 12px; font-size: 0.84rem; justify-content: center; }
  body.has-cartbar { padding-bottom: 140px; }

  .fab-wa { width: 48px; height: 48px; font-size: 1.35rem; right: 14px; bottom: 18px; }
  body.has-cartbar .fab-wa { bottom: 154px; }

  #toasts { left: 12px; right: 12px; top: 70px; }
  .toast { min-width: 0; width: 100%; font-size: 0.85rem; padding: 11px 14px; }
}

/* Compact Smartphones (<= 400px - iPhone SE, Galaxy A-series) */
@media (max-width: 400px) {
  .container { padding-inline: 10px; }
  .hero-visual .slide img { height: 195px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .hero-stat { padding: 8px 4px; }
  .hero-stat b { font-size: 1.12rem; }
  .hero-stat span { font-size: 0.66rem; }
  
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .prod-body { padding: 8px; }
  .prod-name { font-size: 0.8rem; }
  .prod-price .now { font-size: 0.98rem; }

  table.price { min-width: 580px; }
  .qty button { width: 26px; height: 30px; font-size: 0.9rem; }
  .qty input { width: 32px; height: 30px; font-size: 0.82rem; }
}

/* ---------- Print (price list) ---------- */
@media print{
  .header,.topbar,.ticker,.cartbar,.fab-wa,.footer,.toolbar,.no-print{display:none !important}
  body{background:#fff;color:#000}
  .table-wrap{border:0}
  table.price thead th{background:#eee;color:#000}
  table.price td{border-color:#ccc}
}
