/* ================================================================
   SHANIEL BESPOKE TAILOR — ULTRA HDR RESPONSIVE CSS v3.0
   Full mobile-first responsive system — luxury experience
   ================================================================ */

/* ── BASE ──────────────────────────────────────────────────── */
html, body { overflow-x: hidden !important; }
main { max-width: 100vw; overflow-x: hidden; }
img  { max-width: 100% !important; image-rendering: -webkit-optimize-contrast; }

/* ── CONTAINER ─────────────────────────────────────────────── */
.container {
  width: 100%; max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 32px);
}

/* ── HERO ─── ───────────────────────────────────────────────── */
body:not(.inner-page) .hero,
body:not(.inner-page) section.hero { min-height: 100vh; }

/* ── PRODUCT GRIDS ─────────────────────────────────────────── */
.product-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── HOME COLLECTIONS GRID ─────────────────────────────────── */
.collections-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 24px !important;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #C9A96E 0%, #a88a4f 100%);
  color: #0f0c08 !important;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(201,169,110,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #dbbf87 0%, #C9A96E 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(201,169,110,0.4);
  color: #0f0c08 !important;
}
.btn-outline {
  background: transparent;
  color: #C9A96E !important;
  border-color: #C9A96E;
}
.btn-outline:hover {
  background: linear-gradient(135deg, #C9A96E, #a88a4f);
  color: #0f0c08 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,169,110,0.3);
}

/* ── PRODUCT CARDS ──────────────────────────────────────────── */
.product-card {
  background: #fff;
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
  box-shadow: 0 2px 12px rgba(201,169,110,0.06);
}
.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 56px rgba(0,0,0,0.12), 0 8px 20px rgba(201,169,110,0.12);
}
.product-card img {
  width: 100%; height: 340px;
  object-fit: contain; object-position: center center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover img { transform: scale(1.06); }

/* ── SECTION SPACING ────────────────────────────────────────── */
.section { padding: 80px 0; }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F8F6F2; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #C9A96E, #a88a4f); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #a88a4f; }

/* ── SELECTION ─────────────────────────────────────────────── */
::selection { background: rgba(201,169,110,0.2); color: #0f0c08; }

/* ── FOCUS ─────────────────────────────────────────────────── */
*:focus-visible { outline: 2px solid #C9A96E; outline-offset: 3px; }

/* ================================================================
   BREAKPOINTS
   ================================================================ */

/* ── 1200px ─────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .collections-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 18px !important; }
}

/* ── 1024px ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  .product-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .collections-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; }
  div[style*="position:sticky"] { position: static !important; top: auto !important; }
}

/* ── 900px ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .collections-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; }
  section > div[style*="grid-template-columns:repeat(5,1fr)"] { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ── 768px ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --container: 16px; }

  h1 { font-size: clamp(1.8rem, 6.5vw, 2.6rem) !important; }
  h2 { font-size: clamp(1.5rem, 5vw, 2.1rem) !important; }
  h3 { font-size: clamp(1.1rem, 4vw, 1.45rem) !important; }

  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns:repeat(4,1fr)"],
  div[style*="grid-template-columns:repeat(5,1fr)"],
  div[style*="grid-template-columns:1fr 1fr"],
  .product-grid-3 {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }

  .collections-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

  .section,
  section[style*="padding:70px"],
  section[style*="padding:80px"],
  section[style*="padding:60px"] { padding: 52px 0 !important; }

  section[style*="height:480px"],
  section[style*="height: 480px"],
  section[style*="height:420px"],
  section[style*="height: 420px"] { height: 360px !important; }

  section[style*="height:480px"] h1,
  section[style*="height: 480px"] h1,
  section[style*="height:420px"] h1,
  section[style*="height: 420px"] h1 {
    font-size: 2.1rem !important;
    line-height: 1.2 !important;
  }

  .product-card img { height: 250px; }

  div[style*="display:flex;gap:16px;justify-content:center"],
  div[style*="display:flex;gap:14px;justify-content:center"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }

  img[style*="height:400px"],
  img[style*="height: 400px"] { height: 270px !important; }
  img[style*="height:300px"],
  img[style*="height: 300px"] { height: 230px !important; }

  div[style*="overflow-x:auto"],
  div[style*="overflow-x: auto"] {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  div[style*="overflow-x:auto"]::-webkit-scrollbar,
  div[style*="overflow-x: auto"]::-webkit-scrollbar { display: none; }

  /* Footer */
  .site-footer { padding-bottom: 80px; }
  .footer-grid { gap: 28px; padding: 44px 0 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}

/* ── 480px ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --container: 12px; }

  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns:repeat(4,1fr)"],
  .product-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .collections-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }

  h1 { font-size: clamp(1.5rem, 7.5vw, 2rem) !important; }
  h2 { font-size: clamp(1.3rem, 6vw, 1.75rem) !important; }

  .btn-primary, .btn-outline {
    padding: 12px 22px !important;
    font-size: 0.7rem !important;
    width: 100%; text-align: center;
  }

  .section,
  section[style*="padding:70px"],
  section[style*="padding:80px"],
  section[style*="padding:60px"],
  section[style*="padding:50px"] { padding: 38px 0 !important; }

  .product-card img,
  section .container a img[style*="height:400px"] { height: 220px !important; }

  section[style*="height:480px"],
  section[style*="height: 480px"],
  section[style*="height:420px"],
  section[style*="height: 420px"] { height: 300px !important; }

  section[style*="height:480px"] h1,
  section[style*="height: 420px"] h1 { font-size: 1.65rem !important; }
}

/* ── HEADER MOBILE ─────────────────────────────────────── */
@media (max-width: 960px) {
  #siteHeader {
    background: rgba(8, 6, 3, 0.97) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(201,169,110,0.2) !important;
  }
  body.inner-page #siteHeader {
    background: rgba(255,255,255,0.98) !important;
    border-bottom: 1px solid rgba(201,169,110,0.25) !important;
    box-shadow: 0 2px 24px rgba(201,169,110,0.1) !important;
  }
  .sh-brand-inner { padding: 16px 16px 12px !important; min-height: 90px !important; }
  .sh-brand-name {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.7rem !important;
    letter-spacing: 0.2em !important;
    font-weight: 700 !important;
    color: #fff !important;
    display: block !important;
    line-height: 1 !important;
  }
  .sh-brand-mid {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.22em !important;
    font-weight: 600 !important;
    font-style: italic !important;
    color: #C9A96E !important;
    display: block !important;
    margin-top: 2px !important;
  }
  .sh-brand-sub {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.52rem !important;
    letter-spacing: 0.28em !important;
    font-weight: 700 !important;
    color: rgba(201,169,110,0.75) !important;
    display: block !important;
    margin-top: 4px !important;
    text-transform: uppercase !important;
  }
  .sh-lion { height: 50px !important; }
  .sh-hamburger span { background: #C9A96E !important; width: 22px; border-radius: 2px; }
  body.inner-page #siteHeader .sh-brand-name { color: #0f0c08 !important; }
  body.inner-page #siteHeader .sh-brand-mid  { color: #C9A96E !important; }
  body.inner-page #siteHeader .sh-brand-sub  { color: rgba(168,138,79,0.8) !important; }
  body.inner-page #siteHeader .sh-hamburger span { background: #C9A96E !important; }
}

/* Homepage transparent */
body:not(.inner-page) #siteHeader:not(.solid) {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom-color: transparent !important;
}
/* Homepage scrolled = white */
body:not(.inner-page) #siteHeader.solid {
  background: rgba(255,255,255,0.98) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.1) !important;
  border-bottom: 1px solid rgba(201,169,110,0.2) !important;
}
body:not(.inner-page) #siteHeader.solid .sh-brand-name { color: #0f0c08 !important; }
body:not(.inner-page) #siteHeader.solid .sh-brand-mid  { color: #C9A96E !important; }
body:not(.inner-page) #siteHeader.solid .sh-brand-sub  { color: rgba(168,138,79,0.8) !important; }
body:not(.inner-page) #siteHeader.solid .sh-hamburger span { background: #C9A96E !important; }

@media (max-width: 960px) {
  #siteHeader.solid .sh-brand-name { color: #0f0c08 !important; }
  #siteHeader.solid .sh-brand-mid  { color: #C9A96E !important; }
  #siteHeader.solid .sh-brand-sub  { color: rgba(168,138,79,0.8) !important; }
  #siteHeader.solid .sh-hamburger span { background: #C9A96E !important; }
}

/* ── MOBILE NAV PANEL ─────────────────────────────────── */
@media (max-width: 960px) {
  .sh-mobile-nav {
    background: #ffffff !important;
    border-right: 1px solid #e8e0d5 !important;
  }
  .sh-mobile-header {
    background: #1a1208 !important;
    border-bottom: 3px solid #C9A96E !important;
  }
  .sh-mobile-nav .sh-ul > li > a {
    color: #1a1208 !important;
    border-bottom: 1px solid #f0ebe3 !important;
    font-size: 0.82rem !important;
    padding: 15px 20px !important;
    letter-spacing: 0.07em !important;
    background: #ffffff !important;
  }
  .sh-mobile-nav .sh-ul > li > a:hover {
    background: #fdf6e8 !important;
    color: #a88a4f !important;
    border-left: 3px solid #C9A96E !important;
    padding-left: 17px !important;
  }
  .sh-mobile-nav .sh-dropdown {
    background: #faf8f4 !important;
    border-left: 3px solid #C9A96E !important;
  }
  .sh-mobile-nav .sh-dropdown li a {
    color: #3a3028 !important;
    font-size: 0.78rem !important;
    padding: 11px 16px !important;
    border-bottom: 1px solid #ede8e0 !important;
  }
  .sh-mobile-nav .sh-dropdown li a:hover {
    color: #a88a4f !important;
    background: #fdf6e8 !important;
  }
  .sh-mob-section {
    color: #C9A96E !important;
    background: #fdf9f4 !important;
    border-top: 1px solid #e8e0d5 !important;
    border-bottom: 1px solid #e8e0d5 !important;
  }
  .sh-mobile-actions {
    background: #faf8f4 !important;
    border-top: 1px solid #e8e0d5 !important;
  }
  .sh-mobile-close { color: #C9A96E !important; }
}

/* ── HERO MOBILE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { height: 62vh !important; min-height: 400px !important; max-height: 600px !important; }
  .hero-content { padding-top: 72px !important; }
  .hero-content h1 { font-size: clamp(1.5rem, 7.5vw, 2.3rem) !important; }
}
@media (max-width: 480px) {
  .hero { height: 60vh !important; min-height: 380px !important; }
  .hero-content { padding-top: 68px !important; padding-left: 20px !important; padding-right: 20px !important; }
  .hero-content h1 { font-size: clamp(1.3rem, 8.5vw, 1.9rem) !important; }
}

/* ── COLLECTIONS GRID ────────────────────────────────── */
@media (max-width: 600px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .collections-grid a img, .col-card-img { height: 140px !important; }
  .collections-grid a > div:last-child { padding: 10px !important; }
  .collections-grid a > div:last-child h3 { font-size: 0.85rem !important; }
  .collections-grid a > div:last-child p { font-size: 0.6rem !important; margin-bottom: 2px !important; }
  .collections-grid a span { font-size: 0.56rem !important; padding: 2px 6px !important; }
}

/* ── PRODUCT CARDS MOBILE HDR ─────────────────────────── */
@media (max-width: 768px) {
  .product-card {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(201,169,110,0.1);
    border: 1px solid rgba(201,169,110,0.15);
  }
  .product-card:active { transform: scale(0.98); }
  .product-badge { font-size: 0.56rem; padding: 5px 12px; border-radius: 99px; }
  .product-info { padding: 14px 16px 18px; }
  .product-info h3 { font-size: 0.96rem; }
  .price-current { font-size: 1.2rem; }
}

/* ── PRODUCT GRID OVERRIDE ───────────────────────────── */
@media (max-width: 768px) {
  div[style*="grid-template-columns:repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  div[style*="grid-template-columns: repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
}
@media (max-width: 480px) {
  div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns: repeat(3"] { grid-template-columns: 1fr !important; }
  img[style*="height:400px"], img[style*="height: 400px"] { height: 240px !important; }
}

/* ── SCROLL TOP BUTTON ───────────────────────────────── */
.scroll-top {
  background: linear-gradient(135deg, #C9A96E, #a88a4f) !important;
  box-shadow: 0 4px 20px rgba(201,169,110,0.45) !important;
  border-radius: 50% !important;
  width: 48px !important; height: 48px !important;
}
.scroll-top:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 0 20px rgba(201,169,110,0.5), 0 0 40px rgba(201,169,110,0.2) !important;
}

/* ── FORM FOCUS ──────────────────────────────────────── */
@media (max-width: 768px) {
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: #C9A96E !important;
    box-shadow: 0 0 0 4px rgba(201,169,110,0.15) !important;
  }
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ── TOUCH & ACCESSIBILITY ───────────────────────────── */
@media (max-width: 768px) {
  a, button, [role="button"] { -webkit-tap-highlight-color: rgba(201,169,110,0.15); }
  nav a { min-height: 44px !important; }
}

/* ── INLINE COLOR OVERRIDES ──────────────────────────── */
[style*="color:#2563a8"], [style*="color: #2563a8"] { color: #C9A96E !important; }
[style*="background:#2563a8"], [style*="background: #2563a8"] { background: #C9A96E !important; }
[style*="border-color:#2563a8"], [style*="border-color: #2563a8"] { border-color: #C9A96E !important; }

/* ── LUXURY GOLD GLOW on Key Elements ───────────────── */
@media (min-width: 769px) {
  .product-card:hover {
    box-shadow: 0 20px 56px rgba(0,0,0,0.12), 0 8px 20px rgba(201,169,110,0.14), 0 0 0 1px rgba(201,169,110,0.2);
  }
  .btn-primary:hover {
    box-shadow: 0 8px 28px rgba(201,169,110,0.45);
  }
}

/* ── PRINT ───────────────────────────────────────────── */
@media print {
  #siteHeader, footer, .sh-util, .sh-mainnav, .scroll-top { display: none !important; }
  .container { max-width: 100%; padding: 0 16px; }
  body { font-size: 11pt; color: #000; }
  a::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #666; }
}
