﻿/**
 * SOULSHORE — Mobile-First Responsive Styles
 * Premium app-like mobile experience
 * @package Soulshore
 */

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE DRAWER — Full-featured slide-in navigation panel
   ══════════════════════════════════════════════════════════════════════════ */

.mobile-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(300px, 88vw);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  border-right: 1px solid rgba(255,255,255,0.55);
  box-shadow: 16px 0 48px rgba(35,25,20,0.12);
  z-index: var(--z-modal);
  transform: translateX(-100%);
  transition: transform var(--ease-slow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  color: #1F1F1F;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(31,31,31,0.07);
  flex-shrink: 0;
}

.mobile-drawer-body {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  overflow-y: auto;
}

.mobile-drawer-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid rgba(31,31,31,0.07);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mobile-drawer-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3);
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-lg);
  color: #6B5F5B;
  font-size: var(--size-sm);
  cursor: pointer;
  transition: all var(--ease-fast);
}
.mobile-drawer-theme-toggle:hover {
  color: #1E3A5F;
  border-color: rgba(216,164,143,0.40);
}

/* Override any dark/light theme selectors — v2 is always soft white glass */
[data-theme="dark"] .mobile-drawer,
.dark-mode .mobile-drawer {
  background: rgba(255,255,255,0.88);
  border-right-color: rgba(255,255,255,0.55);
  color: #1F1F1F;
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE MENU DRAWER — ID-scoped override
   Targets #mobile-menu-drawer directly for maximum specificity.
   ══════════════════════════════════════════════════════════════════════════ */
#mobile-menu-drawer {
  background: rgba(255,255,255,0.88) !important;
  color: #1F1F1F !important;
  border-right: 1px solid rgba(255,255,255,0.55) !important;
  box-shadow: 16px 0 48px rgba(35,25,20,0.12) !important;
}

/* Nav links */
#mobile-menu-drawer .mobile-nav-links a {
  color: #1F1F1F !important;
}
#mobile-menu-drawer .mobile-nav-links a:hover {
  color: #1E3A5F !important;
}

/* Nav dividers */
#mobile-menu-drawer .mobile-nav-links li {
  border-color: rgba(31,31,31,0.08) !important;
}

/* Arrow chevrons */
#mobile-menu-drawer .mobile-nav-links a::after {
  border-right-color: #1E3A5F !important;
  border-top-color: #1E3A5F !important;
}

/* Close icon and other action buttons */
#mobile-menu-drawer .header-action-btn {
  color: #1F1F1F !important;
}

/* Section borders */
#mobile-menu-drawer .mobile-drawer-header {
  border-bottom-color: rgba(31,31,31,0.07) !important;
}
#mobile-menu-drawer .mobile-drawer-footer {
  border-top-color: rgba(31,31,31,0.07) !important;
}

/* Login / Register CTA button */
#mobile-menu-drawer .mobile-drawer-footer .btn-primary,
#mobile-menu-drawer .mobile-drawer-footer .btn {
  background: linear-gradient(135deg, #1E3A5F 0%, #A2364F 100%) !important;
  color: #FAF7F2 !important;
  border-radius: 14px !important;
  border-color: rgba(255,255,255,0.30) !important;
  box-shadow: 0 8px 24px rgba(35,25,20,0.14) !important;
}

/* ── Mobile Nav links — clean, editorial ─────────────────────────────────── */

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav-links li {
  border-bottom: 1px solid rgba(74,18,18,0.10);
}
.mobile-nav-links li:last-child {
  border-bottom: none;
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #1F1F1F;
  text-decoration: none;
  transition: color var(--ease-fast), padding-left var(--ease-fast);
}
.mobile-nav-links a:hover {
  color: #1E3A5F;
  padding-left: 4px;
}
.mobile-nav-links a::after {
  content: '';
  display: block;
  width: 5px; height: 5px;
  border-right: 1.5px solid #1E3A5F;
  border-top: 1.5px solid #1E3A5F;
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.50;
  transition: opacity var(--ease-fast), border-color var(--ease-fast);
}
.mobile-nav-links a:hover::after {
  opacity: 1;
  border-color: #A2364F;
}

/* ── Mobile Header ───────────────────────────────────────────────────────── */

.mobile-header {
  position: sticky;
  top: 0;
  z-index: var(--z-fixed, 300);
  height: 56px;
  padding-inline: var(--space-4);
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  transition:
    background 0.40s ease,
    border-color 0.40s ease,
    box-shadow 0.40s ease;
}
.mobile-header.is-scrolled {
  background: #ffffff;
  border-bottom-color: #eeeeee;
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
.mobile-header .site-logo-text {
  font-size: 22px !important;
  letter-spacing: 0.12em;
  color: #1F1F1F;
  transition: color 0.40s ease;
}
.mobile-header.is-scrolled .site-logo-text {
  color: #1F1F1F;
}
.mobile-header .header-action-btn {
  color: #1E3A5F;
  transition: color 0.40s ease;
}
.mobile-header.is-scrolled .header-action-btn {
  color: #1E3A5F;
}

/* ── Touch-friendly tap targets ──────────────────────────────────────────── */

@media (max-width: 768px) {
  button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Tap targets — comfortable but not oversized */
  .header-action-btn { min-width: 40px; min-height: 40px; }
  .btn               { min-height: 42px; }
  .btn-hero          { min-height: 46px; }

  /* Products grid — tight 2-col */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  /* Product card — compact */
  .product-card-name { font-size: var(--size-sm); }
  .product-card-info { padding: var(--space-3) var(--space-3) var(--space-2); }

  /* Section spacing — tighter on mobile */
  .section    { padding-block: var(--space-10); }
  .section-lg { padding-block: var(--space-16); }
  .section-xl { padding-block: var(--space-20); }

  /* Section titles — scaled down */
  .section-title { font-size: clamp(1.08rem, 5.16vw, 1.61rem); }

  /* Container */
  .container { padding-inline: var(--space-4); }

  /* Hero — compact, well-proportioned */
  .hero-title {
    font-size: clamp(var(--size-3xl), 9vw, var(--size-5xl));
    margin-bottom: var(--space-3);
  }
  .hero-subtitle {
    font-size: var(--size-sm);
    margin-bottom: var(--space-6);
    max-width: 100%;
  }

  /* Hero CTAs — stack below 480px, side-by-side above */
  .hero-cta {
    gap: var(--space-2);
    flex-wrap: wrap;
  }
  .hero-cta .btn-hero {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    font-size: var(--size-xs);
    padding: 0.75rem 1.25rem;
    letter-spacing: 0.06em;
  }

  /* Footer */
  .footer-top { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column !important; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }

  /* Countdown */
  .countdown-number { width: 44px; height: 44px; font-size: var(--size-xl); }
  .countdown-unit { min-width: 44px; }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
  .category-circle-img { width: 64px; height: 64px; }
  .category-circle-name { font-size: 10px; }

  /* Promo banner */
  .promo-card[style*="grid-template"] { grid-template-columns: 1fr !important; }

  /* Cart drawer */
  .cart-drawer { width: min(72vw, 320px) !important; }

  /* Search overlay */
  .search-input-main { font-size: var(--size-2xl) !important; }

  /* Testimonials */
  .testimonial-text { font-size: var(--size-lg) !important; }

  /* Newsletter form */
  .newsletter-form { flex-direction: column; border-radius: var(--radius-2xl) !important; }
  .newsletter-input { width: 100%; }
  .newsletter-form .btn { width: 100%; justify-content: center; }

  /* Instagram grid */
  .instagram-item[style*="span 2"] { grid-column: span 2 !important; grid-row: span 1 !important; }

  /* WooCommerce single product */
  .woocommerce div.product .product_title { font-size: var(--size-2xl); }
  .woocommerce div.product .price { font-size: var(--size-2xl); }
  .glass-panel { padding: var(--space-5) !important; }

  /* Preloader */
  .preloader-logo { font-size: clamp(var(--size-4xl), 12vw, var(--size-6xl)); }

  /* Popup */
  .popup { padding: var(--space-5) !important; }

  /* Offer bubble */
  #offer-bubble { right: var(--space-3) !important; bottom: calc(var(--mobile-nav-height) + var(--space-3)) !important; }
}

/* ── Small phones ────────────────────────────────────────────────────────── */

@media (max-width: 375px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: var(--size-3xl); }
  .category-circle-img { width: 54px; height: 54px; }
}

/* ── Tablet ──────────────────────────────────────────────────────────────── */

@media (min-width: 769px) and (max-width: 1023px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr !important; }
  .hero-title { font-size: clamp(var(--size-4xl), 7vw, var(--size-6xl)); }
}

/* ── Desktop ─────────────────────────────────────────────────────────────── */

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .categories-grid { grid-template-columns: repeat(8, 1fr); gap: var(--space-3); }
}

@media (min-width: 1440px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
}

/* ── Safe Area (iPhone notch/home indicator) ──────────────────────────────── */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .sticky-buy-bar {
    bottom: env(safe-area-inset-bottom);
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ── Swiper Mobile ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev { display: none; }

  .featured-swiper { padding-inline: var(--space-4) !important; }
  .featured-swiper .swiper-slide { width: 240px !important; }

  .testimonials-swiper .swiper-slide { width: calc(100% - var(--space-8)) !important; }
}

/* ── Horizontal scroll snap for mobile grids ─────────────────────────────── */

@media (max-width: 640px) {
  .mobile-scroll-x {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-3);
    padding-inline: var(--space-4);
  }
  .mobile-scroll-x::-webkit-scrollbar { display: none; }
  .mobile-scroll-x > * { scroll-snap-align: start; flex-shrink: 0; }
}

/* ── Mobile product page ─────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  #soulshore-product-layout {
    grid-template-columns: 1fr !important;
  }
  .product-gallery-col div[style*="sticky"] {
    position: static !important;
  }
  .product-accordions { margin-top: var(--space-4) !important; }
}

/* ── Mobile specific font sizes ──────────────────────────────────────────── */

@media (max-width: 480px) {
  :root {
    --size-base: 0.875rem;
    --size-lg:   1rem;
    --size-xl:   1.125rem;
  }
}

/* ── Focus states for accessibility ──────────────────────────────────────── */

@media (any-pointer: coarse) {
  /* Extra large focus rings on touch devices */
  :focus-visible {
    outline-width: 3px;
    outline-offset: 4px;
  }
}

/* ── Print (hide non-essential UI) ──────────────────────────────────────── */

@media print {
  .announcement-bar,
  #site-header,
  .mobile-bottom-nav,
  .mobile-header,
  .cart-drawer,
  .search-overlay,
  .exit-popup,
  .exit-popup-backdrop,
  #soulshore-preloader,
  .sticky-buy-bar,
  #exit-intent-popup,
  #exit-intent-backdrop,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  body { background: white; color: black; }
  a::after { content: ' (' attr(href) ')'; font-size: 11px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LUXURY MOBILE REFINEMENTS — App-like premium mobile experience
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Mobile hero — scroll indicator ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section > [aria-hidden="true"]:last-child {
    bottom: var(--space-8);
  }
}

/* Mobile bottom nav removed — using hamburger drawer instead */

/* ── Mobile header — full-width flush bar ────────────────────────────────── */
@media (max-width: 768px) {
  .mobile-header {
    height: 56px;
    width: 100%;
    padding-inline: var(--space-4);
    border-radius: 0;
    margin: 0;
    box-sizing: border-box;
    background: rgba(28,12,17,0.40);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-bottom: 1px solid rgba(248,243,238,0.06);
    box-shadow: none;
  }

  /* .soulshore-top-shell is fixed; body padding-top is set by JS.
     Hero/first-section need no additional manual offset. */
  #page-wrapper > .hero-section,
  #page-wrapper > section:first-child {
    padding-top: 0;
  }

  .hero-section {
    margin-top: 0;
  }
}

/* ── Product cards on mobile — tighter, app-like ─────────────────────────── */
@media (max-width: 768px) {
  .product-card {
    border-radius: var(--radius-xl);
  }

  .product-card-image {
    aspect-ratio: 3/4;
  }

  .product-card-info {
    padding: var(--space-3);
  }

  .product-card-name {
    font-size: var(--size-sm);
    -webkit-line-clamp: 2;
  }

  .price-current {
    font-size: var(--size-base);
  }

  /* Hide hover actions on touch — they're always visible via CSS on mobile */
  .product-card-actions {
    opacity: 1 !important;
    transform: translateY(0) !important;
    position: static;
    padding: 0 var(--space-3) var(--space-3);
    gap: var(--space-2);
    display: flex;
  }
  .product-card-actions .btn {
    flex: 1;
    min-height: 36px;
    font-size: 11px;
    padding: var(--space-2) var(--space-2);
  }

  /* Overlay not needed on mobile (actions always shown) */
  .product-card-overlay {
    opacity: 0.4;
  }
}

/* ── Category grid — horizontal scroll on mobile ─────────────────────────── */
@media (max-width: 768px) {
  .categories-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-4);
    padding-bottom: var(--space-2);
    grid-template-columns: unset;
  }
  .categories-grid::-webkit-scrollbar { display: none; }

  .category-circle {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 80px;
  }

  .category-circle-img {
    width: 72px;
    height: 72px;
  }

  .category-circle-name {
    font-size: 10px;
  }
}

/* ── Sections — reduce vertical padding on mobile ────────────────────────── */
@media (max-width: 768px) {
  .section    { padding-block: var(--space-10); }
  .section-sm { padding-block: var(--space-8); }
  .section-lg { padding-block: var(--space-16); }

  .section-title {
    font-size: clamp(1.29rem, 6.02vw, 1.61rem);
    margin-bottom: var(--space-3);
  }

  .section-description {
    font-size: var(--size-base);
    margin-bottom: var(--space-8);
  }

  .divider-ornament { margin-block: var(--space-4); }
}

/* ── Products grid — tight 2-col on mobile ───────────────────────────────── */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}
@media (max-width: 380px) {
  .products-grid { gap: var(--space-2); }
}

/* ── Last section — safe area bottom clearance ───────────────────────────── */
@media (max-width: 768px) {
  .section:last-of-type,
  .newsletter-section {
    padding-bottom: calc(env(safe-area-inset-bottom) + var(--space-8));
  }
}

/* ── Glass panel compact on mobile ───────────────────────────────────────── */
@media (max-width: 768px) {
  .glass-panel {
    padding: var(--space-5) var(--space-5) !important;
    border-radius: var(--radius-2xl) !important;
  }
}

/* ── Touch interactions — no tap highlight ───────────────────────────────── */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  button, a {
    touch-action: manipulation;
  }
}

/* ── Body padding for header + search bar ────────────────────────────────── */
/* Pages without a hero section need top padding so content isn't hidden */
@media (max-width: 768px) {
  .mobile-search-bar ~ #page-wrapper > :not(.hero-section):first-child {
    padding-top: var(--space-4);
  }
}

/* ── Swiper on mobile — touch-friendly ───────────────────────────────────── */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  .featured-swiper .swiper-slide {
    width: 200px !important;
  }

  .testimonials-swiper .swiper-slide {
    width: calc(100vw - var(--space-8)) !important;
  }
}

/* ── Toast ─────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #soulshore-toast-container {
    bottom: calc(env(safe-area-inset-bottom) + 12px) !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE HERO — Complete layout system
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Hero: full-bleed on mobile — no inset, no radius */
  .hero-section {
    width: 100% !important;
    margin-inline: 0 !important;
    min-height: 62svh;
    min-height: 62vh;
    border-radius: 0;
    overflow: hidden;
  }

  /* Editorial sections: near-full-width on mobile */
  .editorial-section {
    width: 95% !important;
    padding: var(--space-5) var(--space-4) var(--space-6) !important;
    border-radius: 24px !important;
    margin: var(--space-4) auto !important;
  }

  /* Shop by Category circles — horizontal swipe on mobile */
  .catcircles-section {
    padding-block: var(--space-6) var(--space-2) !important;
  }
  .catcircles-row {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 22px !important;
    padding: 6px var(--space-4) 14px !important;
    scrollbar-width: none !important;
  }
  .catcircles-row::-webkit-scrollbar { display: none; }
  .catcircles-item {
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
  }
  .catcircles-img {
    width: 60px !important;
    height: 60px !important;
  }

  /* Shop by Category tray — mobile */
  .catcircles-tray {
    margin-top: 20px !important;
    padding: 18px 16px 22px !important;
    border-radius: 16px !important;
  }
  .catcircles-tray-header {
    margin-bottom: 16px !important;
  }
  .catcircles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    max-width: none !important;
  }
  @media (max-width: 359px) {
    .catcircles-grid {
      grid-template-columns: 1fr !important;
    }
  }

  /* Mobile hero: image shows model, center-top positioning */
  .hero-bg img,
  .hero-bg video {
    object-position: 70% top;
  }

  /* Mobile overlay: stronger left darkness for text readability */
  .hero-overlay {
    background:
      linear-gradient(
        to right,
        rgba(16,11,9,0.92) 0%,
        rgba(16,11,9,0.80) 30%,
        rgba(16,11,9,0.48) 55%,
        rgba(16,11,9,0.14) 78%,
        transparent 100%
      );
  }

  /* Hero content — extra bottom padding so trust overlap doesn't cover CTAs */
  .hero-content {
    padding-top: var(--space-8) !important;
    padding-bottom: calc(var(--space-8) + 44px) !important;
  }

  /* Single column on mobile — no grid */
  .hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: calc(62svh - 32px);
    min-height: calc(62vh - 32px);
  }

  /* Eyebrow */
  .hero-eyebrow {
    font-size: 8px;
    letter-spacing: 0.18em;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
  }

  /* Title */
  .hero-title {
    font-size: clamp(2rem, 9.5vw, 2.8rem);
    margin-bottom: var(--space-3);
    max-width: 90%;
  }
  .hero-title em {
    display: block;
  }

  /* Subtitle */
  .hero-subtitle {
    font-size: 13px;
    max-width: 80%;
    margin-bottom: var(--space-6);
    opacity: 0.82;
  }

  /* CTAs: side by side, compact */
  .hero-cta {
    flex-wrap: nowrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
  }
  .btn-hero {
    padding: 0.6875rem 1.25rem;
    font-size: 10px;
    min-height: 40px;
    flex: 1;
    justify-content: center;
    letter-spacing: 0.08em;
  }

  /* Scroll indicator hidden on mobile (not enough space) */
  .hero-scroll-indicator {
    display: none;
  }
}

/* Extra small screens */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.875rem;
  }
  .hero-subtitle {
    font-size: 12px;
    max-width: 85%;
  }
  .btn-hero {
    padding: 0.625rem 1rem;
    font-size: 9px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE SECTIONS — Consistent, app-like rhythm
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Section headers (SHOP BY CATEGORY | View All) */
  .section-row-header {
    padding-inline: 0;
    margin-bottom: var(--space-4);
  }
  .section-row-label {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  .section-row-link {
    font-size: 11px;
  }

  /* Category circles: scroll snap */
  .categories-grid {
    grid-template-columns: unset;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-4);
    padding-bottom: 4px;
    padding-inline: 2px;
  }
  .categories-grid::-webkit-scrollbar { display: none; }

  .category-circle {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 72px;
  }
  .category-circle-img {
    width: 68px;
    height: 68px;
  }
  .category-circle-name {
    font-size: 10px;
    text-align: center;
  }

  /* Product grid: 2-col compact */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  /* Product card: compact */
  .product-card {
    border-radius: 14px;
  }
  .product-card-image {
    aspect-ratio: 3/4;
  }
  .product-card-info {
    padding: var(--space-2) var(--space-3) var(--space-3);
  }
  .product-card-name {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
  .price-current {
    font-size: 13px;
  }

  /* Mini ATC button — always show on mobile (no hover on touch) */
  .product-card-atc-mini {
    width: 32px;
    height: 32px;
    bottom: var(--space-2);
    right: var(--space-2);
    opacity: 1 !important;
  }
  .product-card-atc-mini svg {
    width: 14px;
    height: 14px;
  }

  /* Hide desktop hover actions on mobile */
  .product-card-actions {
    display: none;
  }

  /* Testimonials swiper */
  .testimonials-swiper .swiper-slide {
    width: calc(100vw - 48px) !important;
  }

  /* Section padding */
  .section { padding-block: var(--space-10); }
  .section-sm { padding-block: var(--space-8); }

  /* Container inline padding */
  .container { padding-inline: var(--space-4); }

  /* Section title — readable not huge */
  .section-title {
    font-size: clamp(1.29rem, 5.59vw, 1.89rem);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV — Luxury app style
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .mobile-bottom-nav {
    height: var(--mobile-nav-height);
    border-radius: 22px 22px 0 0;
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(24px) saturate(2);
    -webkit-backdrop-filter: blur(24px) saturate(2);
  }

  .mobile-nav-item {
    font-size: 9px;
    letter-spacing: 0.04em;
    padding-top: var(--space-1);
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   THE SOULSHORE RAIL — Mobile responsive
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .srail-section {
    padding-top: 52px !important;
    padding-bottom: 8px !important;
  }

  .srail-heading {
    margin-bottom: 36px !important;
  }

  .srail-title {
    font-size: clamp(24px, 7vw, 32px) !important;
  }

  .srail-subtitle {
    font-size: 12px !important;
  }

  /* Cards: show ~1.4 compact cards to hint at scrollability */
  .srail-card {
    flex: 0 0 68vw !important;
    max-width: 220px !important;
  }

  .srail-content {
    padding: 9px 11px 12px !important;
  }

  .srail-quote p {
    font-size: 11px !important;
  }
}



/* ══════════════════════════════════════════════════════════════════════════
   TABLET — Intermediate breakpoint
   ══════════════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════════════
   TABLET — Intermediate breakpoint
   ══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 769px) and (max-width: 1023px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.55fr) 1fr;
  }
  .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
  }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Home Close — mobile ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hclose-section {
    padding-block: clamp(10px, 3vw, 16px) clamp(28px, 7vw, 44px);
  }

  .hclose-heading {
    font-size: clamp(1.45rem, 6.5vw, 2.0rem);
  }
}

/* ── Home Ending — mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hend-section {
    background-image: none;
    padding-block: clamp(48px, 12vw, 64px);
  }

  .hend-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hend-eyebrow {
    justify-content: center;
  }

  .hend-eyebrow::before {
    display: none;
  }

  .hend-body {
    margin-inline: auto;
  }

  .hend-heading {
    font-size: clamp(1.75rem, 7.5vw, 2.4rem);
  }
}


