@import"https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap";

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }
input[type="checkbox"], input[type="radio"] { -webkit-appearance: auto !important; appearance: auto !important; }

/* ===== CSS VARIABLES ===== */
:root {
  --black: #1a1a1a;
  --gold: #b8935a;
  --gold-bg: #fdf6ec;
  --border: #e8e4de;
  --border2: #d5cfc6;
  --text: #2d2d2d;
  --text2: #666;
  --text3: #999;
  --pink: #c4748a;
  --green: #4a7c59;
  --red: #c0392b;
  --shadow: rgba(0,0,0,.06);
  --shadow-md: rgba(0,0,0,.12);
  --theme-bg: #ffffff;
  --theme-surface: #fafaf8;
  --theme-text: #1a1a1a;
  --theme-accent: #b8935a;
  --theme-font: "Inter", sans-serif;
  --bg: var(--theme-bg, #fafaf8);
  --bg2: var(--theme-bg, #f5f3ef);
  /* iPhone safe area */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

/* ===== BODY/ROOT ===== */
html {
  background: var(--theme-bg, #ffffff);
  /* Fix iPhone 100vh bug */
  height: -webkit-fill-available;
}
body {
  background: var(--theme-bg, #ffffff);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  max-width: 100vw;
  font-family: Inter, sans-serif;
  color: var(--theme-text, #2d2d2d);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent iOS text size adjust on rotation */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Prevent horizontal bounce/overscroll */
  overscroll-behavior-x: none;
  /* iOS momentum scrolling */
  -webkit-overflow-scrolling: touch;
}
#root {
  background: var(--theme-bg, #ffffff);
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* ===== FOOTER ===== */
footer {
  background: #000000 !important;
  color: rgba(255,255,255,0.7) !important;
  /* iPhone home bar safe area */
  padding-bottom: calc(24px + var(--sab)) !important;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f5f3ef; }
::-webkit-scrollbar-thumb { background: #b8935a; border-radius: 2px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 24px; background: var(--theme-text, #1a1a1a);
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; border: 2px solid var(--theme-text, #1a1a1a);
  cursor: pointer; transition: all .3s; text-decoration: none; border-radius: 4px;
  /* iOS tap highlight */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Prevent double-tap zoom on iOS */
  user-select: none;
  -webkit-user-select: none;
}
.btn-primary:hover { background: var(--theme-accent, #b8935a); border-color: var(--theme-accent, #b8935a); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 22px; background: transparent;
  color: var(--theme-text, #1a1a1a); font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; border: 1.5px solid #d5cfc6;
  cursor: pointer; transition: all .3s; text-decoration: none; border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-outline:hover { border-color: var(--theme-accent, #b8935a); color: var(--theme-accent, #b8935a); }
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 24px; background: var(--theme-accent, #b8935a);
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; border: none; cursor: pointer; transition: all .3s;
  text-decoration: none; border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-gold:hover { filter: brightness(.88); }

/* ===== ALL CLICKABLE ELEMENTS - iOS fixes ===== */
a, button, [role="button"], input[type="submit"], input[type="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ===== INPUTS - iOS fix: min 16px to prevent auto-zoom ===== */
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  font-size: 16px; /* Prevents iOS auto-zoom on focus */
  border-radius: 0; /* Prevents iOS default styling */
  -webkit-appearance: none;
  appearance: none;
}
/* Restore font size for desktop admin inputs */
@media (min-width: 769px) {
  .admin-input, .admin-textarea, .admin-select { font-size: 13px !important; }
}

/* ===== ADMIN INPUTS ===== */
.admin-input {
  width: 100%; padding: 10px 13px; background: #fff; border: 1.5px solid #e8e4de;
  color: #333; border-radius: 7px; font-size: 16px; font-family: Inter,sans-serif;
  transition: border-color .2s; box-sizing: border-box;
  -webkit-appearance: none; appearance: none;
}
.admin-input:focus { border-color: #b8935a; }
.admin-textarea {
  width: 100%; padding: 10px 13px; background: #fff; border: 1.5px solid #e8e4de;
  color: #333; border-radius: 7px; font-size: 16px; font-family: Inter,sans-serif;
  resize: vertical; min-height: 80px; box-sizing: border-box;
  -webkit-appearance: none;
}
.admin-textarea:focus { border-color: #b8935a; }
.admin-select {
  width: 100%; padding: 10px 13px; background: #fff; border: 1.5px solid #e8e4de;
  color: #333; border-radius: 7px; font-size: 16px; box-sizing: border-box;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { 0%{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { 0%{opacity:0} to{opacity:1} }
@keyframes shimmer { 0%{background-position:-400px 0} to{background-position:400px 0} }
@keyframes spin { to{transform:rotate(360deg)} }

.skeleton {
  background: linear-gradient(90deg,#f0ede9 25%,#e8e4de 50%,#f0ede9 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
}

/* ===== PRODUCT CARDS ===== */
.product-card-wrap {
  transition: transform .35s ease, box-shadow .35s ease;
  background: var(--theme-surface, #ffffff);
  /* Prevent iOS callout on long press */
  -webkit-touch-callout: none;
}
/* Only apply hover on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  .product-card-wrap:hover { transform: translateY(-5px); box-shadow: 0 14px 40px var(--shadow-md); }
  .product-card-wrap:hover .quick-add-btn { opacity: 1 !important; }
  .product-card-wrap:hover .card-action-btn { transform: scale(1) !important; opacity: 1 !important; }
  .product-card-wrap:hover .card-action-btn:nth-child(2) { transition-delay: .05s !important; }
}
/* On touch devices, always show quick-add */
@media (hover: none) {
  .quick-add-btn { opacity: 1 !important; }
  .card-action-btn { transform: scale(1) !important; opacity: 1 !important; }
}

/* ===== LAYOUT ===== */
.container { max-width: 1400px; margin: 0 auto; width: 100%; }
.section-pad { padding: 72px clamp(20px,5vw,64px); }
.section-pad-sm { padding: 48px clamp(20px,5vw,64px); }

/* ===== GRIDS ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.pg-grid, .vid-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.ig-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 2px; }
.promo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.co-grid { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: flex-start; }
.ct-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 52px; }
.wish-grid, .sale-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.shop-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.dash-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.quick-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.ord-exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ord-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ab-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.hero-stats { display: flex; gap: 36px; }
.coll-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ===== CATEGORY ROW ===== */
.cat-row {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  width: 100% !important; max-width: 100% !important;
  padding: 0 8px !important; box-sizing: border-box !important;
  overflow-x: hidden !important;
}
.cat-row::-webkit-scrollbar { display: none; }

/* ===== NAV ===== */
nav {
  /* iPhone notch safe area */
  padding-left: var(--sal);
  padding-right: var(--sar);
}
/* Prevent nav from covering iPhone notch */
nav[style*="position:fixed"],
nav[style*="position: fixed"] {
  top: 0;
  top: constant(safe-area-inset-top);
  top: env(safe-area-inset-top);
  padding-top: 0;
}

/* ===== NAV ICONS HIDDEN ON MOBILE ===== */
@media (max-width: 900px) {
  .nav-wish-icon { display: none !important; }
  .nav-prof-icon { display: none !important; }
  .desk-nav { display: none !important; }
  .mob-ham { display: flex !important; }
}

/* ===== SETTINGS TABS ===== */
.settings-tabs {
  display: flex !important; flex-wrap: wrap !important;
  gap: 6px !important; overflow: visible !important; width: 100% !important;
}
.settings-tabs button { flex-shrink: 0 !important; white-space: nowrap !important; }
.tab-label { display: inline !important; }

/* ===== HAMBURGER ===== */
.mob-ham { min-width: 40px !important; flex-shrink: 0 !important; overflow: visible !important; }

/* ===== SHOP HEADER ===== */
.shop-header { padding: 28px clamp(16px,4vw,60px) 20px !important; }

/* ===== CONTACT BUTTON ===== */
.ct-grid button[type="submit"] {
  background: var(--gold, #b8935a) !important; color: #fff !important;
  border: none !important; padding: 16px 28px !important; border-radius: 10px !important;
  font-size: 14px !important; font-weight: 600 !important; cursor: pointer !important;
  width: 100% !important; transition: all .3s !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ct-grid button[type="submit"]:hover { filter: brightness(0.9) !important; }

/* ===== PRODUCT CARD SHADOWS ===== */
.shop-grid .product-card-wrap,
.pg-grid .product-card-wrap {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

/* ===== IMAGE - prevent iOS long-press save ===== */
.product-card-wrap img,
.hero-section img {
  -webkit-touch-callout: none;
  pointer-events: none;
}

/* ===== FIXED POSITION ELEMENTS - iPhone fix ===== */
/* Modals, drawers, overlays */
[style*="position:fixed"],
[style*="position: fixed"] {
  /* Prevent iOS rubber-band on fixed elements */
  -webkit-overflow-scrolling: touch;
}

/* ===== MOBILE DRAWER / SIDEBAR ===== */
div[style*="width: 420px"],
div[style*="width:420px"] {
  /* Fullscreen on small phones */
  max-width: 100vw !important;
}

/* ===== HERO SECTION - iPhone viewport fix ===== */
.hero-section {
  /* Use dvh (dynamic viewport height) for iPhone */
  min-height: min(520px, 60vh);
  min-height: min(520px, 60dvh);
}

/* ===== MODAL OVERLAYS - prevent background scroll on iOS ===== */
.modal-open body {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ===== SCROLLABLE CONTAINERS - iOS momentum ===== */
.overflow-y-auto,
[style*="overflow-y: auto"],
[style*="overflowY: auto"],
[style*="overflowY:\"auto\""] {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ===== RESPONSIVE - 900px ===== */
@media (max-width: 900px) {
  .section-pad { padding: 48px 20px !important; }
  .section-pad-sm { padding: 32px 20px !important; }
  .cat-row { gap: 12px !important; padding: 0 6px !important; }
  .pg-grid, .grid-4 { grid-template-columns: repeat(3,1fr) !important; }
  .vid-grid { grid-template-columns: repeat(2,1fr) !important; }
  .sale-grid, .wish-grid { grid-template-columns: repeat(3,1fr) !important; }
  .dash-grid, .ab-stats { grid-template-columns: repeat(2,1fr) !important; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr !important; }
}

/* ===== RESPONSIVE - 768px ===== */
@media (max-width: 768px) {
  .admin-desk-sidebar { display: none !important; }
  .admin-mob-bar { display: flex !important; }
  .pg-grid, .grid-4, .vid-grid, .sale-grid, .wish-grid, .shop-grid {
    grid-template-columns: repeat(2,1fr) !important; gap: 14px !important;
  }
  .promo-grid { grid-template-columns: 1fr !important; }
  .about-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .ct-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .co-grid { grid-template-columns: 1fr !important; }
  .foot-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .quick-grid { grid-template-columns: 1fr 1fr !important; }
  .ab-stats { grid-template-columns: repeat(2,1fr) !important; gap: 12px !important; }
  .coll-grid { grid-template-columns: repeat(2,1fr) !important; }
  .ig-grid { grid-template-columns: repeat(3,1fr) !important; }
  .ord-exp-grid, .ord-detail-grid { grid-template-columns: 1fr !important; }
  .section-pad { padding: 40px 16px !important; }
  .section-pad-sm { padding: 28px 16px !important; }
  section { padding-left: 16px !important; padding-right: 16px !important; }
  .hero-stats { gap: 20px !important; flex-wrap: wrap !important; }
  .hero-content { padding: 24px 16px !important; max-width: 100% !important; }
  nav > div { padding: 0 14px !important; }
  footer { padding: 36px 20px 24px !important; }
  div[style*="width: 420px"] { width: 100vw !important; border-radius: 0 !important; }
  .dash-grid { grid-template-columns: 1fr 1fr !important; }
  .settings-tabs { gap: 5px !important; }
  .settings-tabs button { padding: 8px 10px !important; font-size: 11px !important; }
  .shop-header { padding: 20px 16px 16px !important; }
  .wish-pad { padding: 20px 16px 40px !important; }
  /* Checkout & cart - full width on mobile */
  .cart-grid, .co-grid { grid-template-columns: 1fr !important; padding: 24px 16px 56px !important; }
  /* Orders */
  .orders-pad { padding: 18px 16px 48px !important; }
  /* Bigger tap targets on mobile */
  button, a { min-height: 44px; }
}

/* ===== RESPONSIVE - 480px (iPhone SE & small) ===== */
@media (max-width: 480px) {
  .pg-grid, .sale-grid, .wish-grid, .shop-grid, .grid-4, .coll-grid {
    grid-template-columns: repeat(2,1fr) !important; gap: 10px !important;
  }
  .vid-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .foot-grid { grid-template-columns: 1fr !important; }
  .dash-grid { grid-template-columns: 1fr 1fr !important; }
  .quick-grid { grid-template-columns: 1fr !important; }
  .ig-grid { grid-template-columns: repeat(3,1fr) !important; }
  .ab-stats { grid-template-columns: 1fr 1fr !important; }
  .hero-stats { display: none !important; }
  section { padding-left: 12px !important; padding-right: 12px !important; }
  footer { padding-left: 16px !important; padding-right: 16px !important; }
  h1, h2, h3 { word-break: break-word !important; overflow-wrap: break-word !important; }
  .cat-row { gap: 10px !important; padding: 0 4px !important; }
  /* Bigger text on small screens for readability */
  body { font-size: 14px; }
  /* Product card image height fix */
  .product-card-wrap [style*="height:240"],
  .product-card-wrap [style*="height: 240"] { height: 180px !important; }
  /* Full-width buttons on small phones */
  .btn-primary, .btn-gold { width: 100% !important; justify-content: center !important; }
}

/* ===== RESPONSIVE - 390px (iPhone 14/15 width) ===== */
@media (max-width: 390px) {
  nav > div { padding: 0 10px !important; }
  .pg-grid, .sale-grid, .wish-grid, .shop-grid {
    grid-template-columns: repeat(2,1fr) !important;
    gap: 8px !important;
  }
}

/* ===== RESPONSIVE - 360px (older Android & small iPhones) ===== */
@media (max-width: 360px) {
  .pg-grid, .sale-grid, .wish-grid, .shop-grid { grid-template-columns: repeat(2,1fr) !important; }
  .vid-grid { grid-template-columns: 1fr !important; }
}

/* ===== CATS-ABOVE-HERO ===== */
.cats-above-hero{display:flex;flex-direction:column;margin-top:76px;overflow:visible}
@media(max-width:900px){.cats-above-hero{flex-direction:column-reverse;margin-top:0!important}}
.cats-above-hero>*{overflow:visible!important}
.cat-section{background:var(--theme-bg,#fff)!important;overflow:visible!important}
@media(max-width:900px){.cat-section{padding-top:0!important}}
.cat-row{overflow:visible!important;padding:10px 16px 18px!important}
.cat-row>a{flex-shrink:0!important}
.cat-row>a>div:first-child{border:2.5px solid rgba(184,147,90,0.35)!important;box-shadow:0 2px 12px rgba(184,147,90,0.10)!important;transition:border-color .25s,box-shadow .25s!important}
.cat-row>a:hover>div:first-child{border-color:#b8935a!important;box-shadow:0 6px 20px rgba(184,147,90,0.28)!important}
.cat-section::before{content:"SHOP BY CATEGORY";display:none;font-size:12px;font-weight:600;color:var(--theme-accent,#b8935a);letter-spacing:2px;text-align:center;width:100%;padding:10px 0 4px}
@media(max-width:900px){.cat-section::before{display:block}}
@media(max-width:600px){.hero-section{min-height:42vh!important;max-height:52vh!important}}
@media(max-width:900px){.hero-section{min-height:46vh!important}}
@media(max-width:600px){.vid-grid{grid-template-columns:repeat(2,1fr)!important;gap:8px!important}.vid-grid>a>div,.vid-grid [style*="height:400"]{height:200px!important}.vid-grid video{height:100%!important;width:100%!important;object-fit:cover!important}}
nav[style*="position:fixed"],nav[style*="position: fixed"]{background:var(--theme-bg,rgba(255,255,255,0.98))!important}

/* ===== ADMIN MOBILE RESPONSIVE ===== */
@media(max-width:768px){
  .admin-desk-sidebar{display:none!important}
  .admin-mob-bar{display:flex!important}
  .quick-grid{grid-template-columns:repeat(2,1fr)!important;gap:10px!important}
  .settings-tabs{overflow-x:auto!important;flex-wrap:nowrap!important;-webkit-overflow-scrolling:touch!important}
  .settings-tabs::-webkit-scrollbar{display:none}
  .pg-grid{grid-template-columns:1fr!important;gap:12px!important}
  .admin-input,.admin-select,.admin-textarea{font-size:16px!important}
}
@media(max-width:480px){.quick-grid{grid-template-columns:1fr!important}}

/* ===== IPHONE NOTCH / DYNAMIC ISLAND FIXES ===== */
/* Bottom nav / fixed bottom bars */
[style*="position:fixed"][style*="bottom"],
[style*="position: fixed"][style*="bottom"] {
  padding-bottom: calc(0px + var(--sab));
}
/* Prevent content hiding behind iOS toolbar */
.page-bottom-spacer {
  height: calc(20px + var(--sab));
}
/* Fix iOS Safari 100vh issue - use dvh where supported */
@supports (height: 100dvh) {
  .full-screen-page { min-height: 100dvh !important; }
  html { height: 100dvh; }
}
/* Checkout page cart sticky on mobile */
@media (max-width: 900px) {
  div[style*="position:sticky"],
  div[style*="position: sticky"] {
    position: relative !important;
    top: auto !important;
  }
}

/* ===== TOAST / NOTIFICATIONS - above iPhone home bar ===== */
[class*="toast"], [id*="toast"], ._toast {
  bottom: calc(16px + var(--sab)) !important;
}

/* ===== FORM ELEMENTS - prevent iOS zoom on focus ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea {
  font-size: 16px !important;
  border-radius: 8px;
  -webkit-appearance: none;
  appearance: none;
}
/* Prevent iOS from rounding select */
select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 8px;
}

/* ===== IMAGES - object-fit fix for iOS ===== */
img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ===== CHECKOUT - iPhone bottom padding ===== */
@media (max-width: 768px) {
  /* Extra bottom space for iPhone home bar */
  main, #root > div {
    padding-bottom: var(--sab);
  }
}

/* ===== PRODUCT DETAIL PAGE ===== */
@media(max-width:900px){
  .pd-grid{grid-template-columns:1fr!important;padding:40px 20px!important}
  .pd-sections{padding:0 20px 40px!important}
}
@media(max-width:480px){
  .pd-grid{padding:20px 12px!important}
  .pd-sections{padding:0 12px 32px!important}
}

/* ===== HERO SECTION - 10px margin + 25px border radius ===== */
.hero-section {
  margin: 10px !important;
  border-radius: 25px !important;
  overflow: hidden !important;
}
@media (max-width: 600px) {
  .hero-section {
    margin: 8px !important;
    border-radius: 18px !important;
    min-height: 46vh !important;
  }
}

/* ===== MOBILE PRODUCT CARD - bigger image ===== */
@media (max-width: 768px) {
  .product-card-wrap > a:first-child {
    height: clamp(180px, 52vw, 260px) !important;
  }
}
@media (max-width: 480px) {
  .product-card-wrap > a:first-child {
    height: clamp(170px, 50vw, 220px) !important;
  }
  /* Bigger text on card */
  .product-card-wrap [style*="fontSize:13"],
  .product-card-wrap [style*="fontSize: 13"] {
    font-size: 12px !important;
  }
}

/* ===== WHATSAPP FLOAT - hide on admin pages ===== */
.admin-page a[href*="wa.me"] { display: none !important; }

/* ============================================================
   VM CLOTHES — CHECKOUT RESPONSIVE (clean)
   ============================================================ */

/* Checkbox restore */
input[type="checkbox"], input[type="radio"] {
  -webkit-appearance: auto !important;
  appearance: auto !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  accent-color: #b8935a !important;
  flex-shrink: 0 !important;
}

/* Checkout: prevent ALL children from overflowing */
.co-grid {
  box-sizing: border-box !important;
  max-width: 100% !important;
}
.co-grid *:not(input[type="radio"]):not(input[type="checkbox"]):not(img) {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Mobile single column */
@media (max-width: 860px) {
  .co-grid {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
    gap: 14px !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
  .co-grid > div {
    width: 100% !important;
    min-width: 0 !important;
  }
  /* Remove sticky on mobile */
  .co-grid > div:last-child {
    position: static !important;
  }
  /* All inputs full width */
  .co-grid input,
  .co-grid textarea,
  .co-grid select {
    width: 100% !important;
    font-size: 16px !important;
  }
  /* Payment labels full width */
  .co-grid label {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .co-grid { padding: 10px !important; }
}

/* ===== SHOP GRID - Responsive ===== */
/* Desktop: 3 col (inline style handles this) */

/* Tablet */
@media (max-width: 1024px) and (min-width: 601px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
}

/* Mobile: 2 col */
@media (max-width: 600px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .pg-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* ══════════════════════════════════════════════════
   VM CLOTHES — MOBILE COMPLETE v4
   ══════════════════════════════════════════════════ */

/* ── NAV: reduce height on mobile ── */
@media (max-width: 860px) {
  nav[style*="fixed"] {
    height: 52px !important;
    min-height: 52px !important;
  }
  nav[style*="fixed"] > div {
    height: 52px !important;
    padding: 0 14px !important;
  }
  /* Logo smaller */
  nav img { max-height: 32px !important; }
}

/* ── HERO SECTION: mobile ── */
@media (max-width: 860px) {

  /* Height 35vh + margin + rounded */
  .hero-section {
    min-height: 35vh !important;
    height: 35vh !important;
    max-height: 35vh !important;
    margin: 52px 10px 0 10px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    padding-top: 0 !important;
  }

  /* Hero content: show but small */
  .hero-content {
    padding: 16px 18px !important;
    max-width: 100% !important;
  }

  /* Title: small font */
  .hero-content h1 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
  }

  /* Subtitle: hide */
  .hero-content p {
    display: none !important;
  }

  /* Tag pill: hide */
  .hero-content > div:first-child[style*="border-radius:20"] {
    display: none !important;
  }

  /* Buttons: show but compact */
  .hero-content > div[style*="flex"] {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .hero-content a[style*="padding:"12px 28px""],
  .hero-content a[style*="padding:"11px 26px""] {
    padding: 8px 16px !important;
    font-size: 9px !important;
  }

  /* HIDE the dots/slide indicators on mobile (second image elements) */
  .hero-section > div[style*="position:"absolute",bottom"] {
    display: none !important;
  }
  .hero-section > div:last-child[style*="absolute"] {
    display: none !important;
  }

  /* cats-above-hero fix */
  .cats-above-hero {
    flex-direction: column !important;
    margin-top: 0 !important;
    gap: 0 !important;
  }
  .cat-section {
    display: none !important;
  }
}

/* ── SHOP & SALE PAGE: 2 columns on mobile ── */
@media (max-width: 860px) {
  .shop-grid,
  .sale-grid,
  .pg-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 4px !important;
  }
  .vid-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .vid-grid > a > div {
    height: 180px !important;
  }
  .promo-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ── GLASSMORPHISM ── */
@media (max-width: 860px) {

  /* Nav */
  nav[style*="fixed"] {
    background: rgba(255,255,255,0.82) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.3) !important;
  }

  /* Product cards */
  .product-card-wrap {
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07) !important;
  }

  /* Checkout cards */
  .co-grid > div:first-child > div {
    background: rgba(255,255,255,0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }
}

/* ── Bottom Nav + Body Padding ── */
@media (max-width: 860px) {
  body { padding-bottom: 85px !important; }
  .co-grid { padding-bottom: 100px !important; }
}

/* ── Checkbox / Radio fix ── */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: auto !important;
  appearance: auto !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  cursor: pointer !important;
  accent-color: #b8935a !important;
}
