@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; }

/* ===== 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);
}

/* ===== BODY/ROOT - Uses theme color ===== */
html, body {
  background: var(--theme-bg, #ffffff);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  font-family: Inter, sans-serif;
  color: var(--theme-text, #2d2d2d);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#root {
  background: var(--theme-bg, #ffffff);
  min-height: 100vh;
}

/* ===== FOOTER - ALWAYS BLACK, NO EXCEPTIONS ===== */
footer {
  background: #000000 !important;
  color: rgba(255,255,255,0.7) !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;
}
.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;
}
.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;
}
.btn-gold:hover { filter: brightness(.88); }

/* ===== ADMIN INPUTS ===== */
.admin-input {
  width: 100%; padding: 10px 13px; background: #fff; border: 1.5px solid #e8e4de;
  color: #333; border-radius: 7px; font-size: 13px; font-family: Inter,sans-serif;
  transition: border-color .2s; box-sizing: border-box;
}
.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: 13px; font-family: Inter,sans-serif;
  resize: vertical; min-height: 80px; box-sizing: border-box;
}
.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: 13px; box-sizing: border-box;
}

/* ===== 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);
}
.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; }

/* ===== 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 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;
}
.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;
}

/* ===== 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; }
}

/* ===== RESPONSIVE - 480px ===== */
@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: repeat(2,1fr) !important; gap: 8px !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; }
}

@media (max-width: 360px) {
  .pg-grid, .sale-grid, .wish-grid, .shop-grid { grid-template-columns: repeat(2,1fr) !important; }
  .vid-grid { grid-template-columns: repeat(2,1fr) !important; gap: 8px !important; }
}

/* ===== CATS-ABOVE-HERO: desktop = categories above hero ===== */
.cats-above-hero {
  display: flex;
  flex-direction: column;
}
/* On desktop: show categories FIRST then hero */
@media (min-width: 901px) {
  .cats-above-hero {
    flex-direction: column;
  }
  /* categories section gets styled bg from theme */
}
/* On mobile: hero first, categories below */
@media (max-width: 900px) {
  .cats-above-hero {
    flex-direction: column-reverse;
  }
}

/* ===== CATEGORY SECTION BG THEME (both desktop & mobile) ===== */
.cats-above-hero section,
.cats-above-hero section[style] {
  background: var(--theme-bg, #ffffff) !important;
  border-bottom: 1px solid rgba(184,147,90,0.12) !important;
}
@media (max-width: 900px) {
  .cats-above-hero section,
  .cats-above-hero section[style] {
    background: var(--theme-bg, #ffffff) !important;
  }
}

/* ===== VIDEO SECTION MOBILE: 2 per row ===== */
@media (max-width: 600px) {
  .vid-grid {
    grid-template-columns: repeat(2,1fr) !important;
    gap: 8px !important;
  }
  /* Force video card height on mobile */
  .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;
  }
}

/* ===== HEADER BACKGROUND THEME ===== */
nav[style*="position: fixed"],
nav[style*="position:fixed"] {
  background: var(--theme-bg, rgba(255,255,255,0.98)) !important;
}

/* ===== HERO HEIGHT - MOBILE SMALLER ===== */
@media (max-width: 600px) {
  .hero-section {
    min-height: 42vh !important;
    max-height: 52vh !important;
  }
  /* Reduce hero text padding on phone */
  .hero-content {
    padding: 20px 16px !important;
  }
}
@media (max-width: 900px) {
  .hero-section {
    min-height: 46vh !important;
  }
}

/* ===== CATEGORY ROW - PREVENT CUTOFF ===== */
/* Wrapper must not clip circles during hover animation */
.cats-above-hero {
  overflow: visible !important;
}
.cats-above-hero > * {
  overflow: visible !important;
}
/* Section containing cat-row: allow overflow so hover lift is visible */
.cats-above-hero section {
  overflow: visible !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
/* cat-row container */
.cat-row {
  overflow: visible !important;
  padding: 10px 16px 18px !important;
}
.cat-row > a {
  flex-shrink: 0 !important;
}
/* Circle images in categories - keep overflow:hidden for the circle shape */
.cat-row > a > div:first-child {
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

/* Mobile category: horizontal scroll, smaller circles */
@media (max-width: 600px) {
  .cat-row {
    gap: 12px !important;
    padding: 12px 12px 20px !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .cat-row::-webkit-scrollbar { display: none; }
  .cat-row > a {
    min-width: 68px !important;
  }
  /* Slightly smaller circles on mobile */
  .cat-row > a > div:first-child {
    width: 68px !important;
    height: 68px !important;
  }
  .cat-row > a > div:last-child div {
    font-size: 10px !important;
  }
}

/* ===== SPIN ANIMATION FOR LOGO LOADER ===== */
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CAT SECTION - CLEAR FIXED NAV (68px header + 20px gap = 88px) ===== */
/* Desktop: categories are the FIRST visible element, push them below the fixed header */
.cats-above-hero {
  margin-top: 76px !important;
}

/* Mobile (column-reverse): hero is first, hero already has paddingTop:68 internally,
   so the wrapper needs no extra margin. Reset it. */
@media (max-width: 900px) {
  .cats-above-hero {
    margin-top: 0 !important;
  }
  /* On mobile the cat-section appears AFTER the hero, no top offset needed */
  .cat-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

/* ===== CATEGORY CIRCLE BORDER ===== */
.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.12) !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;
}
