/* ==========================================================================
   KUNDAN KHAS — LUXURY DESIGN SYSTEM (OPTIMIZED FOR ALL SCREENS)
   Royal Pakistani Handcrafted Clutches & Bags
   ========================================================================== */

:root {
  --ink: #110a0c;
  --ox: #2a1217;
  --ox2: #3a1921;
  --ox3: #4d212b;
  --gold: #cfa95a;
  --g2: #f1dca0;
  --champ: #efdfb8;
  --ivory: #f7f0e4;
  --em: #173d31;
  --em-dark: #0f261f;
  --crimson: #631825;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --line: rgba(207, 169, 90, 0.28);
  --line-strong: rgba(207, 169, 90, 0.55);
  --shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 0 20px rgba(207, 169, 90, 0.2);
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--ink);
  font-size: 16px;
}

body {
  background: var(--ink);
  color: var(--ivory);
  font: 300 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.lock {
  overflow: hidden;
}

svg, img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   BALANCED TYPOGRAPHY & UTILITIES
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ivory);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 0.6rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

h4 {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}

.w {
  width: min(1200px, 100% - 36px);
  margin-inline: auto;
}

.lede {
  color: var(--champ);
  opacity: 0.85;
  max-width: 54ch;
  font-size: clamp(0.95rem, 1.2vw, 1.04rem);
  line-height: 1.6;
}

.gold {
  background: linear-gradient(120deg, var(--g2) 0%, var(--gold) 48%, #b38b34 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.82rem 1.8rem;
  border: 1px solid var(--gold);
  font: 400 0.88rem var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--ivory);
  transition: all 0.28s var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn.s {
  background: linear-gradient(135deg, var(--g2) 0%, var(--gold) 55%, #a8842f 100%);
  color: var(--ink);
  font-weight: 500;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(207, 169, 90, 0.22);
}

.btn.s:hover {
  background: var(--champ);
  color: var(--ink);
  box-shadow: 0 6px 22px rgba(241, 220, 160, 0.35);
  transform: translateY(-2px);
}

.btn.outline:hover {
  background: rgba(207, 169, 90, 0.12);
  border-color: var(--g2);
  color: var(--g2);
}

.btn.wa-btn {
  background: #1f7a40;
  border-color: #2bb45e;
  color: #fff;
}

.btn.wa-btn:hover {
  background: #25a244;
  color: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.68rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--gold);
  color: var(--ink);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.promo {
  background: var(--em);
  color: var(--champ);
  font-size: 0.8rem;
  padding: 0.45rem 0;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(207, 169, 90, 0.2);
}

.promo-inner {
  display: inline-block;
  animation: mq 36s linear infinite;
  padding-left: 100%;
}

.promo-inner span {
  margin-right: 3.8rem;
}

.promo-inner span::before {
  content: "♦ ";
  color: var(--gold);
  margin-right: 0.5rem;
}

@keyframes mq {
  to { transform: translateX(-100%); }
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 10, 12, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.logo {
  font: 500 1.6rem var(--serif);
  letter-spacing: 0.22em;
  line-height: 1;
  display: flex;
  flex-direction: column;
}

.logo small {
  display: block;
  font: 300 0.58rem var(--sans);
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.nav-links a {
  padding: 0.35rem 0;
  position: relative;
  opacity: 0.85;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover, .nav-links a.active {
  opacity: 1;
  color: var(--g2);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

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

.ib {
  position: relative;
  background: transparent;
  border: 1px solid var(--gold);
  height: 40px;
  padding: 0 1.1rem;
  cursor: pointer;
  color: var(--gold);
  transition: all 0.25s ease;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ib:hover {
  background: var(--gold);
  color: var(--ink);
}

.ib b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ib:hover b {
  background: var(--ink);
  color: var(--gold);
}

.burger {
  display: none;
  width: 40px;
  padding: 0;
  font-size: 1.25rem;
  place-items: center;
}

/* ==========================================================================
   PROPORTIONED SECTIONS
   ========================================================================== */

main {
  flex: 1;
}

section {
  padding: clamp(48px, 6vw, 84px) 0;
}

.page-hero {
  padding: clamp(44px, 6vw, 76px) 0 clamp(32px, 4vw, 50px);
  background: radial-gradient(ellipse at 80% 30%, #541d2a 0%, var(--ink) 65%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--champ);
  opacity: 0.7;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.breadcrumbs a:hover {
  color: var(--gold);
  opacity: 1;
}

.breadcrumbs span {
  opacity: 0.4;
}

.ticker-strip {
  border-block: 1px solid var(--line);
  background: var(--ox);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.95rem 0;
}

.ticker-strip-inner {
  display: inline-block;
  animation: mq 38s linear infinite;
  padding-left: 100%;
  font: italic 400 clamp(1.2rem, 2.4vw, 1.65rem) var(--serif);
  color: var(--champ);
}

.ticker-strip-inner span {
  margin-right: 3rem;
}

.ticker-strip-inner span::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  margin-left: 3rem;
  vertical-align: middle;
}

/* ==========================================================================
   PRODUCT CARDS & GRIDS
   ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: linear-gradient(180deg, var(--ox) 0%, #1c0d12 100%);
  border: 1px solid rgba(207, 169, 90, 0.2);
  transition: transform 0.3s var(--transition), border-color 0.3s var(--transition), box-shadow 0.3s var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(207, 169, 90, 0.12);
}

.pic {
  position: relative;
  aspect-ratio: 1;
  max-height: 380px;
  display: grid;
  place-items: center;
  padding: 8%;
  background: radial-gradient(circle at 50% 40%, #561f2c 0%, #1e0d12 75%);
  border: none;
  cursor: pointer;
  overflow: hidden;
  width: 100%;
}

.pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition);
}

.card:hover .pic img {
  transform: scale(1.04);
}

.pic .qv {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 12px);
  opacity: 0;
  background: rgba(17, 10, 12, 0.95);
  border: 1px solid var(--gold);
  color: var(--champ);
  padding: 0.38rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  z-index: 3;
}

.card:hover .qv, .pic:focus-visible .qv {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.65rem;
}

.card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  flex: 1;
}

.card h3 {
  font-size: 1.45rem;
  line-height: 1.15;
}

.card h3 a:hover {
  color: var(--g2);
}

.card .meta {
  font-size: 0.82rem;
  color: var(--champ);
  opacity: 0.7;
}

.swatches {
  display: flex;
  gap: 6px;
  margin: 0.35rem 0;
  align-items: center;
}

.swatches i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.swatches i:hover {
  transform: scale(1.15);
}

.card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0.2rem 0 0.9rem;
}

.card .pr {
  font: 500 1.4rem var(--serif);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
}

/* ==========================================================================
   PROPORTIONED SHOPPING CART DRAWER
   ========================================================================== */

#ov {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

body.cart-open #ov {
  opacity: 1;
  visibility: visible;
}

#dr {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--ox);
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.34s var(--transition);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--gold);
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.75);
}

body.cart-open #dr {
  transform: translateX(0);
}

#dr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 10, 12, 0.45);
}

#dr-header h2 {
  font-size: 1.7rem;
  margin: 0;
}

.close-btn {
  background: transparent;
  border: 1px solid var(--line);
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  border-color: var(--gold);
  color: var(--g2);
}

#cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem 1.4rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-item .thumb {
  aspect-ratio: 1;
  background: #1d0e12;
  border: 1px solid rgba(207, 169, 90, 0.2);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 4px;
}

.cart-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item h4 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.cart-item .color-tag {
  font-size: 0.78rem;
  color: var(--champ);
  opacity: 0.7;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  margin-top: 0.3rem;
}

.qty-control button {
  background: transparent;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
  font-size: 0.85rem;
}

.qty-control button:hover {
  background: rgba(207, 169, 90, 0.15);
  color: var(--g2);
}

.qty-control span {
  min-width: 24px;
  text-align: center;
  font-size: 0.85rem;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 0.76rem;
  text-decoration: underline;
  display: inline-block;
  margin-top: 0.3rem;
}

.cart-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--champ);
  opacity: 0.85;
}

.cart-empty p {
  margin-bottom: 1.2rem;
}

.cart-footer {
  padding: 1.2rem 1.4rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  background: rgba(17, 10, 12, 0.55);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font: 500 1.4rem var(--serif);
}

.cart-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

input, select, textarea {
  background: rgba(17, 10, 12, 0.65);
  border: 1px solid rgba(207, 169, 90, 0.4);
  color: var(--ivory);
  padding: 0.75rem 1rem;
  font: 300 0.94rem var(--sans);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(207, 169, 90, 0.2);
}

input::placeholder, textarea::placeholder {
  color: #a4947d;
}

/* ==========================================================================
   MODAL / QUICK VIEW
   ========================================================================== */

dialog {
  margin: auto;
  max-width: min(860px, calc(100% - 28px));
  width: 100%;
  background: var(--ox);
  color: var(--ivory);
  border: 1px solid var(--gold);
  padding: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.quickview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.quickview-pic {
  background: radial-gradient(circle at 50% 40%, #561f2c 0%, #1e0d12 78%);
  display: grid;
  place-items: center;
  padding: 8%;
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.quickview-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quickview-content {
  padding: 2rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.quickview-content .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
}

.quickview-content h3 {
  font-size: 1.85rem;
  margin-bottom: 0.25rem;
}

.quickview-features {
  list-style: none;
  margin: 0.9rem 0;
  font-size: 0.88rem;
  color: var(--champ);
  opacity: 0.85;
  display: grid;
  gap: 0.35rem;
}

.quickview-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quickview-features li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ==========================================================================
   TOAST & FLOATING BUTTONS
   ========================================================================== */

#ts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 30px);
  background: linear-gradient(135deg, var(--g2), var(--gold));
  color: var(--ink);
  padding: 0.7rem 1.4rem;
  z-index: 150;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  font-weight: 500;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border-radius: 2px;
}

#ts.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   FLOATING WHATSAPP CONCIERGE BUTTON (BOTTOM-RIGHT WITH LUXURY EFFECTS)
   ========================================================================== */

.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: auto;
  z-index: 99;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  border: 1.5px solid rgba(241, 220, 160, 0.65);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.45), 0 0 18px rgba(37, 211, 102, 0.25);
  cursor: pointer;
  animation: waFloat 4s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

/* Pulsing radiating aura rings */
.fab::before,
.fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.fab::before {
  border: 2px solid rgba(37, 211, 102, 0.65);
  animation: waPulseRing 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.fab::after {
  border: 1.5px solid rgba(241, 220, 160, 0.5);
  animation: waPulseRing 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.8s infinite;
}

.fab svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.35s ease;
}

.fab:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 32px rgba(18, 140, 126, 0.6), 0 0 24px rgba(207, 169, 90, 0.45);
  border-color: var(--g2);
  color: #ffffff;
  animation-play-state: paused;
}

.fab:hover svg {
  transform: scale(1.15) rotate(-10deg);
}

@keyframes waFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes waPulseRing {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.35;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .fab {
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }
  .fab svg {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  border-top: 1px solid var(--line);
  background: #140b0e;
  padding: 56px 0 28px;
  font-size: 0.88rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
}

footer h4 {
  font: 500 1.15rem var(--serif);
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

footer ul {
  list-style: none;
  display: grid;
  gap: 0.42rem;
  opacity: 0.85;
}

footer ul a:hover {
  color: var(--g2);
}

.footer-bottom {
  grid-column: 1 / -1;
  opacity: 0.6;
  border-top: 1px solid rgba(207, 169, 90, 0.15);
  padding-top: 20px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ==========================================================================
   FINE-TUNED RESPONSIVE BREAKPOINTS (ALL SCREENS)
   ========================================================================== */

/* Laptops & Tablets (1024px to 1280px) */
@media (max-width: 1280px) {
  .w {
    width: min(100% - 40px, 1140px);
  }
}

/* Small Laptops & Medium Tablets (769px to 1024px) */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Tablets & Large Mobile (581px to 768px) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .burger {
    display: grid;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 1.2rem 20px 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--gold);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
  }
  .nav-links.open {
    display: flex;
  }
  .quickview-grid {
    grid-template-columns: 1fr;
  }
  .quickview-pic {
    min-height: 240px;
  }
}

/* Mobile Screens (up to 580px) */
@media (max-width: 580px) {
  .w {
    width: min(100% - 24px, 1200px);
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .cart-input-row {
    grid-template-columns: 1fr;
  }
  .tools .ib span {
    display: none;
  }
}

/* Ultra-Compact Mobile (< 380px) */
@media (max-width: 380px) {
  .logo {
    font-size: 1.35rem;
  }
  .ib {
    padding: 0 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
