/* =====================================================================
   Ramaraj Crackers - Storefront theme
   Festive Sivakasi palette: deep maroon + antique gold on warm cream
   ===================================================================== */

:root {
  --primary:        #8B0000;
  --primary-light:  #B22222;
  --primary-dark:   #5a0000;
  --gold:           #C8942A;
  --gold-light:     #E8B84B;
  --gold-dark:      #9A6E1A;
  --bg:             #FFFCF5;
  --bg2:            #FFF5E6;
  --text:           #1a0a0a;
  --text-light:     #555;
  --muted:          #8a7f76;
  --white:          #ffffff;
  --border:         #e8d5b0;
  --success:        #16a34a;
  --danger:         #dc2626;
  --warning:        #d97706;
  --info:           #0284c7;

  --shadow-sm: 0 1px 6px rgba(139, 0, 0, .07);
  --shadow:    0 2px 15px rgba(139, 0, 0, .12);
  --shadow-lg: 0 8px 40px rgba(139, 0, 0, .18);

  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --transition: all .28s cubic-bezier(.4, 0, .2, 1);
  --header-h:   auto;
  --font:       'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }

.container-x { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 18px; }

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

/* Scrollbar ---------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--primary-dark));
  border-radius: 99px;
}

/* =====================================================================
   1. Announcement marquee
   ===================================================================== */
.announce-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
  color: #ffe9b8;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 7px 0;
  overflow: hidden;
  position: relative;
  z-index: 1002;
}
.announce-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}
.announce-track span { padding: 0 2.5rem; }
.announce-track i { color: var(--gold-light); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.announce-bar:hover .announce-track { animation-play-state: paused; }

/* =====================================================================
   2. Header / navigation
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: rgba(255, 252, 245, .92);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--gold-light), var(--gold) 45%, var(--primary) 100%);
  display: grid; place-items: center;
  color: #fff; font-size: 1.35rem;
  box-shadow: 0 3px 14px rgba(200, 148, 42, .5);
  animation: brandPulse 3.6s ease-in-out infinite;
}
@keyframes brandPulse {
  0%, 100% { box-shadow: 0 3px 14px rgba(200, 148, 42, .5); }
  50%      { box-shadow: 0 3px 26px rgba(200, 148, 42, .85); }
}
.brand-logo-img {
  max-height: 48px;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.brand-text { line-height: 1.15; }
.brand-name {
  font-size: 1.22rem; font-weight: 800; color: var(--primary);
  letter-spacing: -.02em; display: block;
}
.brand-tag {
  font-size: .6rem; font-weight: 600; color: var(--gold-dark);
  letter-spacing: .16em; text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a, .nav-drop > button {
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  font-weight: 600;
  color: var(--text);
  background: none; border: 0;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.main-nav > a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px;
  height: 2px; background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav > a:hover::after, .main-nav > a.active::after { transform: scaleX(1); }
.main-nav > a:hover, .nav-drop > button:hover { color: var(--primary); background: var(--bg2); }
.main-nav > a.active { color: var(--primary); }

/* Category mega dropdown */
.nav-drop { position: relative; }
.nav-drop-panel {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(88vw, 760px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px 14px;
  max-height: 68vh; overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.nav-drop.open .nav-drop-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-drop-panel a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: 7px;
  font-size: .82rem; color: var(--text);
}
.nav-drop-panel a:hover { background: var(--bg2); color: var(--primary); }
.nav-drop-panel a b {
  font-size: .68rem; color: var(--gold-dark); background: #fdf6e6;
  padding: 1px 7px; border-radius: 99px; flex-shrink: 0;
}

.header-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

.call-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: 99px;
  background: var(--bg2); border: 1px solid var(--border);
  font-weight: 700; font-size: .85rem; color: var(--primary);
}
.call-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.call-btn small {
  display: block; font-size: .58rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; opacity: .7; line-height: 1;
}

.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: 99px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-weight: 700; font-size: .85rem; border: 0;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 4px 16px rgba(139, 0, 0, .3);
}
.cart-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 22px rgba(139, 0, 0, .42); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 99px;
  background: var(--gold); color: #3a2400;
  font-size: .7rem; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump {
  0%, 100% { transform: scale(1); }
  35%      { transform: scale(1.5); }
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg2); color: var(--primary);
  font-size: 1.15rem; cursor: pointer;
}

/* =====================================================================
   3. Hero
   ===================================================================== */
.hero {
  position: relative;
  padding: 70px 0 60px;
  background:
    radial-gradient(900px 480px at 15% 0%,  rgba(200, 148, 42, .18), transparent 60%),
    radial-gradient(900px 480px at 85% 10%, rgba(139, 0, 0, .16),   transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  overflow: hidden;
}
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; opacity: .75;
}
.hero-inner { position: relative; z-index: 2; text-align: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 20px; border-radius: 99px;
  background: rgba(139, 0, 0, .08);
  border: 1px solid rgba(139, 0, 0, .18);
  color: var(--primary);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow i { color: var(--gold-dark); }

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  font-weight: 800; letter-spacing: -.03em;
  margin: 0 0 20px;
}
.hero h1 .shine {
  background: linear-gradient(100deg, var(--gold-dark), var(--gold-light) 45%, var(--gold) 70%, var(--gold-dark));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 4.5s linear infinite;
}
@keyframes shine { to { background-position: 220% center; } }

.hero p.lead {
  max-width: 660px; margin: 0 auto 32px;
  font-size: 1.02rem; color: var(--text-light);
}

.hero-cta { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 820px;
  margin: 52px auto 0;
}
.hero-stat {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: var(--transition);
}
.hero-stat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.hero-stat b {
  display: block;
  font-size: 1.65rem; font-weight: 800;
  color: var(--primary); line-height: 1.1;
}
.hero-stat span {
  font-size: .65rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .11em;
}

/* =====================================================================
   4. Buttons
   ===================================================================== */
.btn-x {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  border-radius: 99px; border: 2px solid transparent;
  font-family: inherit; font-size: .92rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: var(--transition);
}
.btn-primary-x {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 5px 20px rgba(139, 0, 0, .32);
}
.btn-primary-x:hover {
  color: #fff; transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 0, 0, .45);
}
.btn-gold-x {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #3a2400;
  box-shadow: 0 5px 20px rgba(200, 148, 42, .38);
}
.btn-gold-x:hover { color: #3a2400; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(200, 148, 42, .5); }
.btn-outline-x { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline-x:hover { background: var(--primary); color: #fff; }
.btn-wa {
  background: linear-gradient(135deg, #1faa59, #25D366);
  color: #fff; box-shadow: 0 5px 20px rgba(37, 211, 102, .35);
}
.btn-wa:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37, 211, 102, .5); }
.btn-sm-x { padding: 9px 18px; font-size: .82rem; }
.btn-x:disabled,
.btn-x.is-disabled,
.btn-x[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
  pointer-events: none;      /* also blocks <a> elements, which ignore `disabled` */
}

/* =====================================================================
   5. Section furniture
   ===================================================================== */
.section { padding: 62px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 42px; }
.section-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  color: var(--primary); margin-bottom: 12px;
}
.section-head p { color: var(--text-light); margin: 0; font-size: .96rem; }
.section-rule {
  width: 84px; height: 4px; margin: 0 auto 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
}

/* =====================================================================
   6. Legal / notice cards
   ===================================================================== */
.notice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 22px; }
.notice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.notice-card.is-secure { border-left-color: var(--gold); }
.notice-card h3 {
  font-size: 1.05rem; color: var(--primary);
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.notice-card.is-secure h3 { color: var(--gold-dark); }
.notice-card ul { list-style: none; margin: 0; padding: 0; }
.notice-card li {
  position: relative; padding: 7px 0 7px 26px;
  font-size: .89rem; color: var(--text-light);
  border-bottom: 1px dashed #f0e6d2;
}
.notice-card li:last-child { border-bottom: 0; }
.notice-card li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 8px;
  color: var(--success); font-size: .76rem;
}
.notice-card.is-secure li::before { content: '\f3ed'; color: var(--gold-dark); }
.notice-card li strong { color: var(--primary); }

/* =====================================================================
   7. Category grid
   ===================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 16px; }
.cat-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  overflow: hidden;
  transition: var(--transition);
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  opacity: 0; transition: var(--transition);
}
.cat-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.cat-card:hover::before { opacity: 1; }
.cat-card > * { position: relative; z-index: 1; }
.cat-ico {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bg2), #fdf0d8);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 1.4rem; color: var(--primary);
  transition: var(--transition);
}
.cat-card:hover .cat-ico {
  background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .35);
  color: var(--gold-light); transform: rotate(-8deg) scale(1.08);
}
.cat-card h3 { font-size: .87rem; margin: 0 0 5px; color: var(--text); transition: var(--transition); }
.cat-card span { font-size: .72rem; color: var(--muted); font-weight: 600; transition: var(--transition); }
.cat-card:hover h3 { color: #fff; }
.cat-card:hover span { color: rgba(255, 255, 255, .8); }

/* =====================================================================
   8. Featured price table
   ===================================================================== */
.price-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.price-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.price-panel-head h3 { margin: 0; font-size: 1.05rem; }
.price-panel-head .off {
  background: var(--gold); color: #3a2400;
  padding: 4px 14px; border-radius: 99px;
  font-size: .74rem; font-weight: 800; letter-spacing: .05em;
}
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.price-table thead th {
  background: var(--bg2);
  padding: 12px 16px;
  font-size: .68rem; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: .09em;
  text-align: left; white-space: nowrap;
  border-bottom: 2px solid var(--border);
}
.price-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #f5ece0;
  font-size: .88rem; vertical-align: middle;
}
.price-table tbody tr { transition: background .2s; }
.price-table tbody tr:hover { background: #fffaf0; }
.price-table .p-id { color: var(--muted); font-weight: 700; font-size: .78rem; }
.price-table .p-name { font-weight: 600; color: var(--text); }
.price-table .p-cat {
  display: block; font-size: .68rem; color: var(--gold-dark);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}
.price-table .p-mrp { color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.price-table .p-rate { font-weight: 800; color: var(--primary); font-size: 1rem; white-space: nowrap; }
.price-table .p-save {
  color: var(--success); font-weight: 700; font-size: .8rem; white-space: nowrap;
}

/* =====================================================================
   9. Quantity stepper
   ===================================================================== */
.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 99px;
  background: var(--white); overflow: hidden;
}
.qty-stepper button {
  width: 32px; height: 32px;
  border: 0; background: var(--bg2);
  color: var(--primary); font-size: 1rem; font-weight: 700;
  cursor: pointer; display: grid; place-items: center;
  transition: var(--transition); font-family: inherit;
}
.qty-stepper button:hover { background: var(--primary); color: #fff; }
.qty-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.qty-stepper input {
  width: 46px; height: 32px;
  border: 0; text-align: center;
  font-family: inherit; font-size: .88rem; font-weight: 700;
  color: var(--text); background: transparent;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; background: #fffaf0; }

/* =====================================================================
   10. Combo packs
   ===================================================================== */
.combo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.combo-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 22px 26px;
  text-align: center;
  transition: var(--transition);
}
.combo-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.combo-card.is-popular { border-color: var(--primary); box-shadow: var(--shadow); }
.combo-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; padding: 5px 18px; border-radius: 99px;
  font-size: .66rem; font-weight: 800; letter-spacing: .1em;
  white-space: nowrap; box-shadow: var(--shadow);
}
.combo-price {
  font-size: 2.1rem; font-weight: 800; color: var(--primary);
  line-height: 1; margin-bottom: 6px;
}
.combo-card h3 { font-size: 1.02rem; margin: 0 0 4px; }
.combo-card .sub { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.combo-card ul {
  list-style: none; padding: 0; margin: 0 0 22px;
  text-align: left; border-top: 1px dashed var(--border); padding-top: 16px;
}
.combo-card li {
  position: relative; padding: 5px 0 5px 24px;
  font-size: .84rem; color: var(--text-light);
}
.combo-card li::before {
  content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; color: var(--gold); font-size: .8rem;
}

/* =====================================================================
   11. Steps / why-choose
   ===================================================================== */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.step-card { position: relative; text-align: center; padding: 14px 16px; }
.step-num {
  width: 62px; height: 62px; margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 1.5rem; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(139, 0, 0, .3);
  position: relative; z-index: 1;
}
.step-card:not(:last-child)::after {
  content: ''; position: absolute; top: 31px; left: 76%; width: 48%;
  border-top: 2px dashed var(--border);
}
.step-card h3 { font-size: .98rem; margin-bottom: 8px; }
.step-card p { font-size: .86rem; color: var(--text-light); margin: 0; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 20px; }
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.why-ico {
  width: 54px; height: 54px; margin-bottom: 16px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 1.3rem;
  display: grid; place-items: center;
  box-shadow: 0 5px 16px rgba(139, 0, 0, .26);
}
.why-card h3 { font-size: 1rem; margin-bottom: 9px; color: var(--primary); }
.why-card p { font-size: .87rem; color: var(--text-light); margin: 0; }

/* Terms list */
.terms-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.terms-box h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 16px; }
.terms-box ul {
  list-style: none; padding: 0; margin: 0;
  columns: 2; column-gap: 34px;
}
.terms-box li {
  position: relative; padding: 6px 0 6px 24px;
  font-size: .87rem; color: var(--text-light);
  break-inside: avoid;
}
.terms-box li::before {
  content: '\f0da'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 4px; color: var(--gold-dark); font-size: .78rem;
}

/* =====================================================================
   12. Contact
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; }
.contact-list { display: grid; gap: 14px; }
.contact-row {
  display: flex; align-items: center; gap: 15px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  transition: var(--transition);
}
.contact-row:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.contact-row .ico {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: grid; place-items: center; font-size: 1.05rem;
}
.contact-row small {
  display: block; font-size: .66rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em;
}
.contact-row b { font-size: .95rem; color: var(--text); font-weight: 700; }

.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-light); margin-bottom: 6px;
}
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 15px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .92rem; color: var(--text);
  background: #fffdf8; transition: var(--transition);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 148, 42, .16); background: #fff;
}
.field .hint { font-size: .74rem; color: var(--muted); margin-top: 5px; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field .err { font-size: .76rem; color: var(--danger); margin-top: 5px; display: none; }
.field.has-error .err { display: block; }

/* =====================================================================
   13. Footer
   ===================================================================== */
.site-footer {
  background: linear-gradient(180deg, #2a0505, #1a0303);
  color: #d8cfc4; padding: 54px 0 0; margin-top: 10px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px; padding-bottom: 38px;
}
.site-footer h4 {
  color: var(--gold-light); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .13em; margin-bottom: 18px;
}
.site-footer p { font-size: .86rem; color: #a99e92; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #d8cfc4; font-size: .87rem; }
.site-footer a:hover { color: var(--gold-light); padding-left: 5px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: var(--gold); }
.footer-note {
  font-size: .78rem; color: #8a8078;
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 18px 0; line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 16px 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  font-size: .8rem; color: #8a8078;
}
.footer-social { display: flex; gap: 9px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  display: grid; place-items: center; color: #d8cfc4;
}
.footer-social a:hover { background: var(--gold); color: #2a0505; padding-left: 0; }

/* =====================================================================
   14. Cart drawer
   ===================================================================== */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 1400;
  background: rgba(26, 3, 3, .55);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1401;
  width: min(420px, 100vw);
  background: var(--bg);
  display: flex; flex-direction: column;
  box-shadow: -10px 0 50px rgba(0, 0, 0, .3);
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.4, 0, .2, 1);
}
.cart-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; flex-shrink: 0;
}
.drawer-head h3 {
  margin: 0; font-size: .92rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.drawer-close {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(255, 255, 255, .15); border: 0;
  color: #fff; font-size: 1rem; cursor: pointer;
}
.drawer-close:hover { background: rgba(255, 255, 255, .3); transform: rotate(90deg); }

.drawer-body { flex: 1; overflow-y: auto; padding: 16px; }

.drawer-empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.drawer-empty i { font-size: 2.6rem; color: var(--border); margin-bottom: 16px; display: block; }
.drawer-empty b { display: block; color: var(--text); font-size: 1rem; margin-bottom: 6px; }
.drawer-empty p { font-size: .86rem; margin: 0 0 20px; }

.cart-line {
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px; align-items: start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px;
  margin-bottom: 10px;
  animation: lineIn .3s ease;
}
@keyframes lineIn { from { opacity: 0; transform: translateX(16px); } }
.cart-line.removing { animation: lineOut .26s ease forwards; }
@keyframes lineOut { to { opacity: 0; transform: translateX(40px); height: 0; } }
.cart-line h4 { font-size: .86rem; margin: 0 0 3px; font-weight: 600; }
.cart-line .cat {
  font-size: .66rem; color: var(--gold-dark); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 7px;
}
.cart-line .rate { font-size: .78rem; color: var(--muted); }
.cart-line .line-total { font-weight: 800; color: var(--primary); font-size: .95rem; }
.cart-line .line-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 9px;
}
.line-remove {
  background: none; border: 0; color: var(--danger);
  font-size: .82rem; cursor: pointer; padding: 4px;
}
.line-remove:hover { transform: scale(1.2); }

.drawer-foot {
  border-top: 1px solid var(--border);
  background: var(--white); padding: 16px 18px;
  flex-shrink: 0;
}
.drawer-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .87rem; padding: 4px 0; color: var(--text-light);
}
.drawer-row.save { color: var(--success); font-weight: 600; }
.drawer-row.grand {
  border-top: 2px dashed var(--border); margin-top: 8px; padding-top: 12px;
  font-size: 1.05rem; font-weight: 800; color: var(--primary);
}
.min-warn {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: var(--radius-sm); padding: 9px 12px;
  font-size: .78rem; margin: 10px 0 0;
}
.drawer-actions { display: grid; gap: 9px; margin-top: 14px; }

/* =====================================================================
   15. Catalogue (products page)
   ===================================================================== */
.catalog-layout {
  display: grid; grid-template-columns: 252px 1fr;
  gap: 26px; align-items: start;
}
.cat-sidebar {
  position: sticky; top: 126px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  max-height: calc(100vh - 150px); display: flex; flex-direction: column;
}
.cat-sidebar h3 {
  margin: 0; padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: .76rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.cat-sidebar-scroll { overflow-y: auto; padding: 8px; }
.cat-sidebar a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 11px; border-radius: 7px;
  font-size: .8rem; color: var(--text); margin-bottom: 2px;
}
.cat-sidebar a:hover { background: var(--bg2); color: var(--primary); }
.cat-sidebar a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-weight: 600;
}
.cat-sidebar a b {
  font-size: .68rem; background: #fdf6e6; color: var(--gold-dark);
  padding: 1px 7px; border-radius: 99px; flex-shrink: 0;
}
.cat-sidebar a.active b { background: rgba(255, 255, 255, .22); color: #fff; }

.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px;
}
.catalog-toolbar .count { font-size: .85rem; color: var(--text-light); }
.catalog-toolbar .count b { color: var(--primary); }
.search-box { position: relative; flex: 1; max-width: 340px; }
.search-box input {
  width: 100%; padding: 10px 15px 10px 40px;
  border: 1.5px solid var(--border); border-radius: 99px;
  font-family: inherit; font-size: .88rem; background: #fffdf8;
}
.search-box input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 148, 42, .16);
}
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.cat-section { margin-bottom: 44px; scroll-margin-top: 130px; }
.cat-section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 12px 20px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius); color: #fff;
}
.cat-section-head h2 {
  margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 11px;
}
.cat-section-head .pill {
  background: var(--gold); color: #3a2400;
  padding: 3px 13px; border-radius: 99px;
  font-size: .7rem; font-weight: 800;
}
.cat-section-head a { color: #ffd98a; font-size: .76rem; font-weight: 600; }
.cat-section-head a:hover { color: #fff; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 16px; }

.product-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--transition); position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.product-card.in-cart { border-color: var(--success); box-shadow: 0 0 0 2px rgba(22, 163, 74, .18); }

.pc-media {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg2), #fdf0d8);
  display: grid; place-items: center; overflow: hidden;
}
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.product-card:hover .pc-media img { transform: scale(1.07); }
.pc-media .ph { font-size: 2.1rem; color: var(--gold); opacity: .55; }
.pc-off {
  position: absolute; top: 9px; left: 9px;
  background: linear-gradient(135deg, var(--danger), #ef4444);
  color: #fff; font-size: .66rem; font-weight: 800;
  padding: 3px 10px; border-radius: 99px;
}
.pc-stock-tag {
  position: absolute; top: 9px; right: 9px;
  font-size: .62rem; font-weight: 800; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 99px; text-transform: uppercase;
}
.pc-stock-tag.low { background: #fef3c7; color: #92400e; }
.pc-stock-tag.out { background: #fee2e2; color: #991b1b; }

.pc-body { padding: 13px 14px 0; flex: 1; }
.pc-category {
  font-size: .62rem; font-weight: 800; color: var(--gold-dark);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px;
}
.pc-name {
  font-size: .87rem; font-weight: 600; margin: 0 0 7px;
  line-height: 1.4; min-height: 2.4em;
}
.pc-contents { font-size: .74rem; color: var(--muted); margin-bottom: 11px; }
.pc-contents i { color: var(--gold-dark); }
.pc-pricing {
  display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 12px; flex-wrap: wrap;
}
.pc-mrp { font-size: .78rem; color: var(--muted); text-decoration: line-through; }
.pc-price { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.pc-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 11px 14px;
  border-top: 1px solid #f5ece0; background: #fffdf8;
}
.pc-row-total { font-weight: 800; color: var(--success); font-size: .9rem; }
.pc-row-total.zero { color: var(--muted); font-weight: 600; }
.pc-out { text-align: center; font-size: .8rem; color: var(--danger); font-weight: 700; padding: 6px; }

/* Sticky mobile cart bar */
.sticky-cart {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  z-index: 1200;
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: 99px;
  padding: 11px 13px 11px 22px;
  box-shadow: 0 10px 34px rgba(139, 0, 0, .45);
  transition: transform .34s cubic-bezier(.4, 0, .2, 1);
  max-width: calc(100vw - 32px);
}
.sticky-cart.show { transform: translateX(-50%) translateY(0); }
.sticky-cart small {
  display: block; font-size: .62rem; opacity: .75;
  text-transform: uppercase; letter-spacing: .1em;
}
.sticky-cart b { font-size: 1rem; }
.sticky-cart .go {
  background: var(--gold); color: #3a2400;
  border: 0; border-radius: 99px;
  padding: 9px 20px; font-family: inherit;
  font-weight: 800; font-size: .84rem; cursor: pointer;
  white-space: nowrap;
}
.sticky-cart .go:hover { background: var(--gold-light); }

/* =====================================================================
   16. Badges, alerts, tables (shared with checkout / order pages)
   ===================================================================== */
.badge-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 99px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.badge-warning   { background: #fef3c7; color: #92400e; }
.badge-info      { background: #dbeafe; color: #1e40af; }
.badge-primary   { background: #ede9fe; color: #5b21b6; }
.badge-success   { background: #dcfce7; color: #15803d; }
.badge-danger    { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: #f1f5f9; color: #475569; }

.alert-x {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: .89rem; margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert-x i { margin-top: 3px; flex-shrink: 0; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.page-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 40px 0 34px; position: relative; overflow: hidden;
}
.page-head::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% 0%, rgba(200, 148, 42, .3), transparent);
}
.page-head h1 { position: relative; margin: 0 0 8px; font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.page-head p  { position: relative; margin: 0; opacity: .82; font-size: .94rem; }
.crumbs { position: relative; font-size: .8rem; opacity: .8; margin-bottom: 10px; }
.crumbs a { color: var(--gold-light); }
.crumbs span { opacity: .6; }

.panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; margin-bottom: 22px;
}
.panel-head {
  padding: 15px 20px; border-bottom: 1px solid var(--border);
  background: var(--bg2);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.panel-head h3 {
  margin: 0; font-size: .95rem; color: var(--primary);
  display: flex; align-items: center; gap: 9px;
}
.panel-body { padding: 20px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--bg2); padding: 11px 14px;
  font-size: .68rem; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: .08em;
  text-align: left; white-space: nowrap; border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 12px 14px; border-bottom: 1px solid #f5ece0;
  font-size: .87rem; vertical-align: middle;
}
.data-table tbody tr:hover { background: #fffaf0; }
.data-table tfoot td {
  background: var(--bg2); font-weight: 700;
  border-top: 2px solid var(--border); border-bottom: 0;
}
.text-end { text-align: right; }
.text-center { text-align: center; }

.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-state i { font-size: 2.8rem; color: var(--border); display: block; margin-bottom: 16px; }
.empty-state b { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 6px; }
.empty-state p { font-size: .88rem; margin: 0 0 20px; }

/* Order summary rail */
.summary-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  position: sticky; top: 126px;
}
.summary-card h3 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--primary); padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 2px dashed var(--border);
}
.summary-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: .89rem; color: var(--text-light);
}
.summary-row.total {
  border-top: 2px dashed var(--border); margin-top: 10px; padding-top: 14px;
  font-size: 1.1rem; font-weight: 800; color: var(--primary);
}
.summary-row.save { color: var(--success); font-weight: 600; }

/* =====================================================================
   17. Floating action buttons
   ===================================================================== */
.fab-stack {
  position: fixed; right: 18px; bottom: 18px; z-index: 1150;
  display: flex; flex-direction: column; gap: 11px;
}
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.25rem; color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
  transition: var(--transition); position: relative;
}
.fab:hover { transform: scale(1.1) translateY(-3px); color: #fff; }
.fab-wa { background: linear-gradient(135deg, #1faa59, #25D366); }
.fab-wa::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid #25D366; animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0%   { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.45); opacity: 0; }
}
.fab-call { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.fab-top  { background: #46372f; opacity: 0; visibility: hidden; }
.fab-top.show { opacity: 1; visibility: visible; }
.fab-label {
  position: absolute; right: calc(100% + 11px); top: 50%; transform: translateY(-50%);
  background: #2a0505; color: #fff;
  font-size: .74rem; font-weight: 600; white-space: nowrap;
  padding: 6px 12px; border-radius: 7px;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.fab:hover .fab-label { opacity: 1; }

/* =====================================================================
   18. Sparkle / firework effects
   ===================================================================== */
#fxLayer {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
}

.spark {
  position: fixed; z-index: 9999;
  pointer-events: none;
  width: var(--s, 7px); height: var(--s, 7px);
  border-radius: 50%;
  background: var(--c, var(--gold-light));
  box-shadow: 0 0 8px 1px var(--c, var(--gold-light));
  animation: sparkFly var(--d, 750ms) cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes sparkFly {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  70%  { opacity: .9; }
  100% { transform: translate(var(--tx), var(--ty)) scale(.25); opacity: 0; }
}

.spark-star {
  position: fixed; z-index: 9999; pointer-events: none;
  color: var(--c, var(--gold-light));
  font-size: var(--s, 13px);
  text-shadow: 0 0 10px currentColor;
  animation: starFly var(--d, 900ms) ease-out forwards;
}
@keyframes starFly {
  0%   { transform: translate(0, 0) rotate(0) scale(.5); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) rotate(320deg) scale(1.15); opacity: 0; }
}

/* Cart fly-to-cart pellet */
.fly-dot {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--primary));
  box-shadow: 0 0 14px var(--gold);
}

/* Toast */
.toast-stack {
  position: fixed; top: 82px; right: 18px; z-index: 9997;
  display: flex; flex-direction: column; gap: 9px;
  max-width: min(340px, calc(100vw - 36px));
}
.toast-x {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-sm); padding: 12px 16px;
  box-shadow: var(--shadow-lg); font-size: .87rem;
  animation: toastIn .3s cubic-bezier(.2, 1.2, .3, 1);
}
.toast-x.out { animation: toastOut .26s ease forwards; }
.toast-x.is-error { border-left-color: var(--danger); }
.toast-x.is-warn  { border-left-color: var(--warning); }
.toast-x i { font-size: 1.05rem; color: var(--success); }
.toast-x.is-error i { color: var(--danger); }
.toast-x.is-warn i  { color: var(--warning); }
@keyframes toastIn  { from { opacity: 0; transform: translateX(60px) scale(.94); } }
@keyframes toastOut { to   { opacity: 0; transform: translateX(60px) scale(.94); } }

/* Scroll reveal.
   The hidden state is applied only when JavaScript is running (html.js), so the
   page still renders fully if a script fails to load or is blocked. */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1);
}
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .07s; }
.reveal-d2 { transition-delay: .14s; }
.reveal-d3 { transition-delay: .21s; }
.reveal-d4 { transition-delay: .28s; }

/* Confetti burst on success pages */
.confetti {
  position: fixed; top: -12px; z-index: 9996;
  width: 9px; height: 15px; pointer-events: none;
  animation: confFall linear forwards;
}
@keyframes confFall {
  to { transform: translateY(105vh) rotate(720deg); opacity: .15; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; }
}

/* =====================================================================
   19. Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .cat-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(310px, 82vw);
    background: var(--bg);
    flex-direction: column; align-items: stretch;
    padding: 84px 16px 24px; gap: 4px;
    box-shadow: -8px 0 40px rgba(0, 0, 0, .22);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto; z-index: 1300;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > a, .nav-drop > button { width: 100%; text-align: left; padding: 12px 14px; }
  .nav-drop-panel {
    position: static; transform: none; width: 100%;
    grid-template-columns: 1fr; box-shadow: none;
    max-height: 0; overflow: hidden; padding: 0;
    border: 0; opacity: 1; visibility: visible;
    transition: max-height .3s ease;
  }
  .nav-drop.open .nav-drop-panel {
    max-height: 320px; overflow-y: auto; padding: 6px 0 6px 12px; transform: none;
  }
  .nav-toggle { display: grid; place-items: center; }
  .call-btn .call-text { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .step-card::after { display: none; }
  .terms-box ul { columns: 1; }
}

@media (max-width: 680px) {
  .section { padding: 44px 0; }
  .hero { padding: 48px 0 42px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .pc-name { font-size: .81rem; }
  .pc-price { font-size: 1.02rem; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .combo-grid { grid-template-columns: 1fr; }
  .toast-stack { top: auto; bottom: 88px; right: 12px; left: 12px; max-width: none; }
  .fab { width: 46px; height: 46px; font-size: 1.1rem; }
  .cart-drawer { width: 100vw; }
  .summary-card { position: static; }
}

@media print {
  .site-header, .site-footer, .fab-stack, .cart-drawer, .drawer-backdrop,
  .sticky-cart, .announce-bar, .no-print { display: none !important; }
  body { background: #fff; }
  .panel { border: 1px solid #ccc; box-shadow: none; }
}

/* ---------- Product image popup ---------- */
.pc-media img, img[data-zoom] { cursor: zoom-in; }
.lb-overlay {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 5, 5, .88);
}
.lb-overlay.open { display: flex; }
.lb-overlay figure { margin: 0; max-width: 96vw; text-align: center; }
.lb-overlay img {
  max-width: 96vw; max-height: 82vh; border-radius: 12px; background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5); cursor: default;
}
.lb-overlay figcaption { margin-top: 10px; color: #fff; font-weight: 600; }
.lb-close {
  position: absolute; top: 14px; right: 18px; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: #fff; color: #8B0000;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
body.lb-lock { overflow: hidden; }
