/* ==========================================================================
   TONO'S - MODA MASCULINA & ALTA SASTRERÍA
   Design System & Styling Palette (Light Silver / Charcoal Luxury Theme)
   ========================================================================== */

:root {
  /* Color Palette Harmonized with Light Gray */
  --bg-primary: #0e1014;
  --bg-secondary: #161920;
  --bg-card: #1c202a;
  --bg-card-hover: #242936;

  /* Silver & Light Gray Accents */
  --silver-bright: #f8fafc;
  --silver-light: #e2e8f0;
  --silver-medium: #cbd5e1;
  --silver-muted: #94a3b8;
  --silver-dark: #64748b;
  --silver-border: rgba(226, 232, 240, 0.12);
  --silver-glow: rgba(226, 232, 240, 0.08);

  /* Gradients */
  --silver-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  --metallic-border: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(148, 163, 184, 0.1) 100%);

  /* Typography */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1280px;
  --navbar-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Core Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--silver-light);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Containers */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.silver-text {
  color: var(--silver-medium);
}

.gradient-text {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.w-full {
  width: 100%;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.relative-z {
  position: relative;
  z-index: 2;
}

/* Top Announcement Bar */
.top-bar {
  background: #08090c;
  color: var(--silver-muted);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-link {
  color: var(--silver-light);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.top-bar-link:hover {
  color: #fff;
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(14, 16, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--silver-border);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  filter: drop-shadow(0 0 6px rgba(226, 232, 240, 0.2));
  transition: var(--transition-smooth);
}

.brand-logo:hover .logo-icon {
  transform: rotate(5deg) scale(1.05);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Arberkley', var(--font-serif);
  /* font-size: 1.45rem; */
  font-size: 1.70rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--silver-bright);
}

.logo-subtitle {
  font-size: 0.62rem;
  letter-spacing: 3px;
  color: var(--silver-dark);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--silver-medium);
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--silver-gradient);
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--silver-bright);
}

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

/* Nav Item Wrapper with Dropdown */
.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-item>.nav-link::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--silver-dark);
  border-bottom: 1.5px solid var(--silver-dark);
  transform: rotate(45deg);
  margin-left: 3px;
  transition: var(--transition-fast);
  order: 1;
  position: relative;
  top: -1px;
}

.nav-item:hover>.nav-link::before {
  border-color: var(--silver-bright);
  transform: rotate(-135deg);
  top: 2px;
}

/* Dropdown Panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: rgba(22, 25, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: var(--radius-md);
  padding: 8px 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.25s;
  z-index: 100;
}

/* Invisible bridge to prevent hover gap */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
}

.nav-item:hover>.nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown Links */
.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--silver-medium);
  letter-spacing: 0.3px;
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.dropdown-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--silver-gradient);
  opacity: 0;
  transition: var(--transition-fast);
}

.dropdown-link:hover {
  color: var(--silver-bright);
  background: rgba(226, 232, 240, 0.06);
  padding-left: 24px;
}

.dropdown-link:hover::before {
  opacity: 1;
}

.dropdown-divider {
  height: 1px;
  background: rgba(226, 232, 240, 0.08);
  margin: 6px 16px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--silver-dark);
  pointer-events: none;
}

.search-box input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--silver-border);
  border-radius: 20px;
  padding: 8px 16px 8px 36px;
  font-size: 0.85rem;
  color: var(--silver-bright);
  outline: none;
  width: 180px;
  transition: var(--transition-smooth);
}

.search-box input:focus {
  width: 240px;
  border-color: var(--silver-medium);
  background: rgba(255, 255, 255, 0.08);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-silver-solid {
  background: var(--silver-gradient);
  color: #0b0d10;
  box-shadow: 0 4px 14px rgba(226, 232, 240, 0.15);
}

.btn-silver-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 232, 240, 0.3);
  filter: brightness(1.05);
}

.btn-silver-outline {
  background: transparent;
  color: var(--silver-light);
  border: 1px solid var(--silver-medium);
}

.btn-silver-outline:hover {
  background: rgba(226, 232, 240, 0.1);
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--silver-bright);
  border: 1px solid var(--silver-border);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--silver-medium);
}

/* Mobile Toggle & Drawer */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--silver-light);
  transition: var(--transition-fast);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  z-index: 2000;
  padding: 24px;
  transition: right 0.4s ease;
  border-left: 1px solid var(--silver-border);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--silver-border);
}

.drawer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: var(--silver-light);
  font-size: 1.8rem;
  cursor: pointer;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.drawer-links a {
  font-size: 1.05rem;
  color: var(--silver-light);
}

.drawer-nav-group {
  display: flex;
  flex-direction: column;
}

.drawer-nav-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: none;
  border: none;
  color: var(--silver-light);
  font-size: 1.05rem;
  cursor: pointer;
  text-align: left;
}

.drawer-nav-chevron {
  width: 8px;
  height: 8px;
  margin-right: 2px;
  border-right: 1.5px solid var(--silver-muted);
  border-bottom: 1.5px solid var(--silver-muted);
  transform: rotate(45deg);
  transition: var(--transition-fast);
}

.drawer-nav-toggle[aria-expanded="true"] .drawer-nav-chevron {
  transform: rotate(225deg);
}

.drawer-submenu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0 0 16px;
}

.drawer-submenu[hidden] {
  display: none;
}

.drawer-submenu a {
  font-size: 0.9rem;
  color: var(--silver-muted);
}

.drawer-submenu-divider {
  height: 1px;
  margin: 2px 0;
  background: var(--silver-border);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.1);
  transform: scale(1.02);
  transition: transform 10s ease;
}

.hero-section:hover .hero-img {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(14, 16, 20, 0.4) 0%, rgba(14, 16, 20, 0.85) 85%, #0e1014 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--silver-medium);
  border: 1px solid var(--silver-border);
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(14, 16, 20, 0.6);
  backdrop-filter: blur(6px);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--silver-medium);
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--silver-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-8px) translateX(-50%);
  }

  60% {
    transform: translateY(-4px) translateX(-50%);
  }
}

/* Features Bar */
.features-bar {
  background: var(--bg-secondary);
  padding: 30px 0;
  border-top: 1px solid var(--silver-border);
  border-bottom: 1px solid var(--silver-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(226, 232, 240, 0.05);
  border: 1px solid var(--silver-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--silver-bright);
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--silver-dark);
}

/* Section Shared Layout */
.section {
  padding: 90px 0;
}

#news {
  padding-bottom: 40px;
}

#coleccion {
  padding-top: 40px;
}

.subheading {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--silver-dark);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--silver-bright);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--silver-muted);
  max-width: 600px;
  margin: 0 auto 36px auto;
}

/* Filter Wrapper */
.filter-wrapper {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.subcategory-filter-buttons[hidden] {
  display: none !important;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 30px;
  border: 1px solid var(--silver-border);
}

.filter-btn {
  background: none;
  border: none;
  color: var(--silver-muted);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--silver-light);
}

.filter-btn.active {
  background: var(--silver-gradient);
  color: #0c0e12;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(226, 232, 240, 0.2);
}

/* Product Catalog Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(226, 232, 240, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  background: var(--bg-card-hover);
}

.product-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #121419;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img-main,
.product-img-over {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease, transform 0.8s ease;
}

.product-img-main {
  opacity: 1;
  z-index: 1;
}

.product-img-over {
  opacity: 0;
  z-index: 2;
}

.product-badge {
  z-index: 3;
}

.product-img-box.has-hover-image:hover .product-img-over {
  opacity: 1;
}

.product-img-box.has-hover-image:hover .product-img-main {
  opacity: 0;
}

.product-img-box.has-hover-image:hover .product-img-main,
.product-img-box.has-hover-image:hover .product-img-over {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(14, 16, 20, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid var(--silver-border);
  color: var(--silver-medium);
  font-size: 0.7rem;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--silver-dark);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--silver-bright);
  margin-bottom: 8px;
  line-height: 1.3;
  font-weight: 400;
}

.product-snippet {
  font-size: 0.85rem;
  color: var(--silver-muted);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.product-fabric {
  font-size: 0.78rem;
  color: var(--silver-medium);
  font-weight: 500;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* Lookbook Section */
.lookbook-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--silver-border);
}

.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.lookbook-card {
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);

  display: flex;
  flex-direction: column;
}

.lookbook-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 232, 240, 0.25);
}

.lookbook-img-box {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.lookbook-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.lookbook-card:hover .lookbook-img-box img {
  transform: scale(1.05);
}

.lookbook-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(14, 16, 20, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--silver-bright);
  border: 1px solid var(--silver-border);
}

.lookbook-content {
  padding: 24px;

  display: flex;
  flex-direction: column;
  flex: 1;
}

.lookbook-content .btn {
  margin-top: auto;
}

.lookbook-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--silver-bright);
  margin-bottom: 10px;
}

.lookbook-content p {
  font-size: 0.88rem;
  color: var(--silver-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.lookbook-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-bottom: 16px;
}

.item-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--silver-border);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--silver-medium);
}

/* Craftsmanship & Brand Story */
.craftsmanship-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.craftsmanship-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.craftsmanship-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.craftsmanship-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(14, 16, 20, 0.95) 0%, rgba(14, 16, 20, 0.6) 100%);
}

.craftsmanship-card {
  max-width: 650px;
  background: rgba(22, 25, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--silver-border);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--silver-border);
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--silver-bright);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--silver-dark);
  line-height: 1.3;
}

/* Boutiques / Stores */
.store-section {
  background: var(--bg-primary);
}

.stores-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 40px;
}

.stores-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.store-card {
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  padding: 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.store-card:hover,
.store-card.active {
  border-color: var(--silver-medium);
  background: var(--bg-card-hover);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.store-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.store-header h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--silver-bright);
}

.store-badge {
  background: rgba(226, 232, 240, 0.1);
  color: var(--silver-light);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--silver-border);
}

.store-address {
  font-size: 0.9rem;
  color: var(--silver-muted);
  margin-bottom: 12px;
}

/* .store-info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--silver-dark);
  margin-bottom: 16px;
} */

.store-info-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 8px;
  align-items: start;
  font-size: 0.82rem;
  color: var(--silver-dark);
  margin-bottom: 16px;
}

.store-info-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.store-link {
  font-size: 0.82rem;
  color: var(--silver-medium);
  font-weight: 600;
}

.store-map-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--silver-border);
  min-height: 400px;
}

.store-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
}

.map-overlay-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(14, 16, 20, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--silver-border);
  padding: 20px;
  border-radius: var(--radius-md);
}

.map-overlay-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--silver-bright);
  margin-bottom: 6px;
}

.map-overlay-card p {
  font-size: 0.82rem;
  color: var(--silver-muted);
  margin-bottom: 12px;
}

/* Marroquinería Highlight Banner */
.marroquineria-highlight {
  background: var(--bg-secondary);
  border-top: 1px solid var(--silver-border);
  border-bottom: 1px solid var(--silver-border);
}

.marroquineria-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 40px;
  align-items: center;
}

.marroquineria-info h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--silver-bright);
  margin-bottom: 12px;
}

.marroquineria-info p {
  font-size: 0.95rem;
  color: var(--silver-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.marroquineria-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--silver-light);
}

.marroquineria-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 320px;
}

#productModal {
  overflow-y: auto;
  overflow-x: hidden;
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Modals System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 10, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-lg {
  max-width: 920px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--silver-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: #fff;
}

.modal-heading {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--silver-bright);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--silver-muted);
}

/* Product Detail Grid inside Modal */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
}

.product-detail-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #101217;
  max-height: 460px;
}

.product-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.product-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.product-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  overflow: hidden;
}

.product-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .product-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.28);
  border-radius: 50%;
  background: rgba(14, 16, 20, 0.72);
  color: var(--silver-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition-fast), border-color var(--transition-fast),
    opacity var(--transition-fast), transform var(--transition-fast);
}

.product-carousel-btn span {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.product-carousel-btn:hover {
  background: rgba(14, 16, 20, 0.92);
  border-color: var(--silver-light);
}

.product-carousel-btn:active {
  transform: translateY(-50%) scale(0.94);
} */

.product-carousel-btn:focus-visible,
.product-carousel-dot:focus-visible {
  outline: 2px solid var(--silver-light);
  outline-offset: 2px;
}

/* .product-carousel-btn-prev {
  left: 12px;
}

.product-carousel-btn-next {
  right: 12px;
} */

.product-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 20;

  width: 30px;
  height: 30px;

  padding: 0;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;

  background: rgba(10, 12, 16, 0.55);
  color: rgba(255, 255, 255, 0.85);

  font-size: 17px;
  line-height: 1;

  cursor: pointer;

  transform: translateY(-50%);

  opacity: 0.75;

  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;

  /* Importante: las flechas deben poder recibir el click */
  pointer-events: auto;
}

.product-carousel-btn span {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  font-size: 16px;
  line-height: 1;
}

.product-carousel-btn:hover {
  opacity: 1;
  background: rgba(10, 12, 16, 0.8);
  border-color: rgba(255, 255, 255, 0.45);
}

.product-carousel-btn:active {
  transform: translateY(-50%) scale(0.9);
}

/* Flecha izquierda */
.product-carousel-btn-prev {
  left: 8px;
}

/* Flecha derecha */
.product-carousel-btn-next {
  right: 8px;
}

/* .product-carousel-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
} */

.product-carousel-btn.is-hidden,
.product-carousel-dots.is-hidden {
  display: none;
}

.product-carousel-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 999px;
  background: rgba(14, 16, 20, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.product-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--silver-dark);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.product-carousel-dot.active {
  background: var(--silver-bright);
  transform: scale(1.35);
}

.product-detail-media .product-detail-tag {
  z-index: 6;
}

.product-detail-tag {
  z-index: 3;
}

.product-detail-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(14, 16, 20, 0.85);
  border: 1px solid var(--silver-border);
  color: var(--silver-medium);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.product-cat-label {
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--silver-dark);
  font-weight: 700;
}

.product-detail-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--silver-bright);
  margin: 4px 0;
  font-weight: 400;
}

.product-ref {
  font-size: 0.78rem;
  color: var(--silver-muted);
}

.product-divider {
  height: 1px;
  background: var(--silver-border);
  margin: 16px 0;
}

.product-detail-desc {
  font-size: 0.9rem;
  color: var(--silver-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.specs-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: var(--radius-sm);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.spec-name {
  color: var(--silver-dark);
}

.spec-val {
  color: var(--silver-light);
  font-weight: 500;
}

.sizes-label {
  display: block;
  font-size: 0.8rem;
  color: var(--silver-medium);
  margin-bottom: 8px;
}

.sizes-list {
  display: flex;
  gap: 8px;
}

.size-pill {
  width: 38px;
  height: 38px;
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--silver-light);
  background: rgba(255, 255, 255, 0.03);
}

.product-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px stroke var(--silver-border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--silver-muted);
}

.modal-actions {
  display: flex;
  gap: 12px;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--silver-medium);
  font-weight: 500;
}

.form-control {
  background: rgba(14, 16, 20, 0.6);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--silver-bright);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--silver-medium);
  background: rgba(14, 16, 20, 0.9);
}

/* Scroll to Top Floating Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(22, 25, 32, 0.85);
  border: 1px solid var(--silver-medium);
  color: var(--silver-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-top-btn:hover {
  background: var(--silver-gradient);
  color: #0c0e12;
  border-color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(226, 232, 240, 0.3);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--silver-medium);
  color: var(--silver-bright);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 24px;
  height: 24px;
  background: var(--silver-gradient);
  color: #0b0d10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Footer */
.footer {
  background: #08090c;
  border-top: 1px solid var(--silver-border);
  padding: 70px 0 30px 0;
  color: var(--silver-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-family: var(--font-serif);
  color: var(--silver-bright);
  font-size: 1.05rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--silver-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--silver-bright);
  padding-left: 4px;
}

.footer-text {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer-newsletter {
  grid-column: span 2;
}

/* .newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--silver-bright);
  font-size: 0.85rem;
  outline: none;
  flex-grow: 1;
} */

/* ==============================
   NEWSLETTER / BREVO
   ============================== */

.newsletter-brevo {
  width: 100%;
  margin-top: 12px;
  text-align: left;
}

.newsletter-brevo .sib-form-container,
.newsletter-brevo #sib-container,
.newsletter-brevo #sib-form {
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.newsletter-email-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.newsletter-input {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--silver-border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 12px !important;
  color: var(--silver-bright) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.85rem !important;
  line-height: 1.4;
  outline: none;
  box-sizing: border-box;
  box-shadow: none !important;
}

.newsletter-input::placeholder {
  color: rgba(226, 232, 240, 0.55) !important;
  opacity: 1;
}

.newsletter-input:focus {
  border-color: var(--silver-bright) !important;
  box-shadow: 0 0 0 2px rgba(226, 232, 240, 0.08) !important;
}

.newsletter-submit {
  flex: 0 0 auto;
  white-space: nowrap;
}

.newsletter-optin {
  width: 100%;
  margin-top: 9px;
}

.newsletter-optin label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.65);
  cursor: pointer;
}

.newsletter-optin input[type="checkbox"] {
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--silver-bright);
}

.newsletter-optin a {
  color: var(--silver-bright);
  text-decoration: underline;
}

.newsletter-specification {
  display: block;
  margin-top: 7px;
  font-family: var(--font-sans) !important;
  font-size: 0.68rem !important;
  line-height: 1.4;
  text-align: left;
  color: rgba(226, 232, 240, 0.45) !important;
}

.newsletter-entry-error {
  display: block;
  margin-top: 7px;
  font-family: var(--font-sans) !important;
  font-size: 0.72rem !important;
  line-height: 1.4;
  color: #ffb4b4 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.newsletter-message {
  display: none;
  width: 100%;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans) !important;
  font-size: 0.75rem !important;
  line-height: 1.4;
  box-sizing: border-box;
}

.newsletter-error {
  color: #ffb4b4 !important;
  background: rgba(255, 73, 73, 0.08) !important;
  border: 1px solid rgba(255, 73, 73, 0.25) !important;
}

.newsletter-success {
  color: #b8f0ce !important;
  background: rgba(19, 206, 102, 0.08) !important;
  border: 1px solid rgba(19, 206, 102, 0.25) !important;
}

.newsletter-brevo .sib-form-block,
.newsletter-brevo .form__entry,
.newsletter-brevo .form__label-row {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

.newsletter-brevo .entry__label {
  display: none !important;
}

.input--hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mobile */
@media (max-width: 768px) {
  .newsletter-email-row {
    flex-direction: column;
  }

  .newsletter-input,
  .newsletter-submit {
    width: 100%;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--silver-dark);
}

.legal-links {
  display: flex;
  gap: 16px;
}

.legal-links a:hover {
  color: var(--silver-muted);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .stores-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .marroquineria-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* iOS/Safari modal image fix
   Keep the media container with a real height when the product grid
   collapses to one column. The modal images are absolutely positioned. */
@media (max-width: 992px) {
  .product-detail-media {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    min-height: 280px;
    max-height: 460px;
  }
}

@media (max-width: 768px) {
  .product-detail-media {
    width: 100%;
    height: min(72vw, 420px);
    min-height: 280px;
    max-height: none;
  }

  .product-carousel {
    min-height: 280px;
  }

  .product-carousel-btn {
    width: 38px;
    height: 38px;
  }

  .product-carousel-btn-prev {
    left: 8px;
  }

  .product-carousel-btn-next {
    right: 8px;
  }

  .product-carousel-dots {
    bottom: 10px;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .search-box {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .craftsmanship-card {
    padding: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@font-face {
  font-family: 'Arberkley';
  src: url('fonts/ARBERKLEY.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ======================================================================
   TONO'S - FLOATING & RESPONSIVE TOP NAVIGATION
   ====================================================================== */

/* Desktop/tablet: the navbar remains in the document flow but floats
   visually with rounded corners and a small separation from the edges. */
.navbar {
  position: sticky;
  top: 14px;
  width: min(94%, 1500px);
  height: var(--navbar-height);
  margin: 14px auto 0;
  border: 1px solid rgba(203, 213, 225, 0.18);
  border-radius: 16px;
  background: rgba(14, 16, 20, 0.78);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.nav-container {
  padding-left: 24px;
  padding-right: 24px;
}

/* Keep the mobile drawer independent from the floating navbar. */
.mobile-drawer {
  top: 0;
}

@media (max-width: 768px) {
  .navbar {
    top: 10px;
    width: calc(100% - 20px);
    height: var(--navbar-height);
    margin: 10px 10px 0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  }

  .nav-container {
    padding-left: 14px;
    padding-right: 10px;
  }

  .mobile-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--silver-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
  }

  .mobile-toggle span {
    width: 22px;
  }

  .mobile-drawer {
    width: min(88vw, 360px);
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .navbar {
    width: calc(100% - 14px);
    margin-left: 7px;
    margin-right: 7px;
    top: 7px;
    border-radius: 12px;
  }

  .nav-container {
    padding-left: 10px;
    padding-right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar {
    transition: none;
  }

  .product-carousel-track {
    transition: none;
  }
}

/* ============================================================================
   FINAL NAVBAR STATE OVERRIDES
   Floating at top of page -> full-width fixed-style bar after scroll.
   The .scrolled state is added by app.js.
   ============================================================================ */

.navbar {
  position: sticky;
  top: 14px;
  width: min(94%, 1500px);
  height: var(--navbar-height);
  margin: 14px auto 0;
  border: 1px solid rgba(203, 213, 225, 0.18);
  border-radius: 16px;
  background: rgba(14, 16, 20, 0.78);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  transition:
    width 0.28s ease,
    margin 0.28s ease,
    top 0.28s ease,
    border-radius 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

/* When app.js adds .scrolled, the navbar becomes a full-width top bar. */
.navbar.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: rgba(10, 12, 16, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.navbar.scrolled .nav-container {
  max-width: var(--max-width);
}

@media (max-width: 768px) {
  .navbar {
    top: 10px;
    width: calc(100% - 20px);
    margin: 10px 10px 0;
    border-radius: 14px;
  }

  .navbar.scrolled {
    top: 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }

  .navbar.scrolled .nav-container {
    padding-left: 14px;
    padding-right: 10px;
  }
}

@media (max-width: 420px) {
  .navbar {
    top: 7px;
    width: calc(100% - 14px);
    margin-left: 7px;
    margin-right: 7px;
    border-radius: 12px;
  }

  .navbar.scrolled {
    top: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar {
    transition: none;
  }
}

/* NAVBAR FLOTANTE */
.navbar {
  position: fixed;
  top: 25px;
  left: 20px;
  right: 20px;

  border-radius: 18px;

  transition: all 0.35s ease;

  z-index: 1000;
}

/* NAVBAR AL HACER SCROLL */
.navbar.scrolled {
  top: 0;
  left: 0;
  right: 0;

  width: 100%;
  border-radius: 0;
}

/* Navbar: sin bordes redondeados */
.navbar {
  border-radius: 0 !important;
}

/* También en el estado de scroll */
.navbar.scrolled {
  border-radius: 0 !important;
}

.navbar {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.navbar {
  width: 100% !important;
  margin: 0 !important;
  left: 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 768px) {
  #productModal .modal-card {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    padding: 52px 20px 20px;
    box-sizing: border-box;
  }

  #productModal .product-detail-grid {
    width: 100%;
    min-width: 0;
  }

  #productModal .product-detail-grid>* {
    min-width: 0;
    max-width: 100%;
  }

  #productModal .product-detail-info {
    min-width: 0;
    max-width: 100%;
  }

  #productModal .product-detail-title,
  #productModal .product-detail-desc,
  #productModal .specs-group {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  #productModal .product-detail-media {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  #productModal .modal-close {
    top: 8px;
    right: 8px;
    z-index: 10;
    display: block;
    width: 36px;
    height: 36px;
    padding: 0;
    line-height: 36px;
    text-align: center;
  }
}