:root {
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --red-50: #fef2f2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --green-600: #16a34a;
  --black: #000;
  --white: #fff;
  --radius: 0.625rem;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background: var(--gray-50);
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Navbar */
.navbar {
  background: var(--black);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 50;
}
.navbar-inner {
  max-width: 1440px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 56px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 74px;
  flex: 1;
  min-width: 0;
}
.logo-img {
  width: 100px;
  height: 100px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 33px;
}





.nav_login {
    position: relative;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    position: absolute;
    right: 5%;
}


.nav-links a, .nav-links span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
}
.nav-tienda {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.nav-tienda span { white-space: pre-wrap; }
.nav-tienda .line { width: 100px; height: 1px; background: #dc161f; }
.cart-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.15s;
}
.cart-icon-img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.cart-btn:hover { opacity: 0.8; }
.cart-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-icon svg { width: 100%; height: 100%; fill: var(--white); }
.cart-badge {
  background: #fb2c36;
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 16px;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-badge.hidden { display: none; }

/* Hamburger (mobile/tablet only) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  color: var(--white);
}
.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
@media (max-width: 1023px) {
  .hamburger-btn { display: flex; }
  .nav-links { display: none; }
}
@media (min-width: 1024px) {
  .hamburger-btn { display: none; }
}

/* Menu slide-over (mobile/tablet) */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 55;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.menu-backdrop.open { opacity: 1; pointer-events: auto; }
.menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 320px;
  height: 100%;
  background: var(--black);
  z-index: 56;
  box-shadow: 20px 0 50px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.menu-panel.open { transform: translateX(0); }
.menu-panel-head {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-panel-head span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}
.menu-close {
  padding: 8px;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.15s;
}
.menu-close:hover { opacity: 1; }
.menu-panel-links {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.menu-panel-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  transition: color 0.15s;
}
.menu-panel-links a:hover { color: #dc161f; }
.menu-panel-links .nav-tienda { align-items: flex-start; }
.menu-panel-links .nav-tienda .line { background: #dc161f; }
@media (min-width: 1024px) {
  .menu-backdrop,
  .menu-panel { display: none; }
}

/* Filters slide-over (mobile/tablet) */
.filters-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 45;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.filters-backdrop.open { opacity: 1; pointer-events: auto; }
.filters-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 340px;
  height: 100%;
  background: var(--white);
  z-index: 46;
  box-shadow: 20px 0 50px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.filters-panel.open { transform: translateX(0); }
.filters-panel-head {
  display: none;
  padding: 20px;
  border-bottom: 1px solid var(--gray-200);
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.pd-btn-locked {
    width: 100%;
    background-color: #3b82f6;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

.header-auth-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Estilo para el botón cuando está deshabilitado o tiene la clase is-locked */
.pd-add-btn:disabled, 
.pd-add-btn.is-locked {
    background-color: #e5e7eb !important; /* Gris claro */
    color: #9ca3af !important;           /* Texto gris */
    cursor: not-allowed !important;      /* Icono de prohibido */
    border: 1px solid #d1d5db !important;
}

.price-locked {
    color: #ef4444; /* Rojo suave para advertir que está bloqueado */
    font-size: 0.9em;
    font-weight: normal;
}

.header-auth-group button {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}




/* Usuario logueado */
.usuario_logueado {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #fff;
    border: 1px solid #fff;
     border: 1px solid #ec0000;
    background-color: #000000; /* negro oscuro */
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.usuario_logueado:hover {
      color: #fff; 
      border: 1px solid #ec0000;
        box-shadow: 
        0 0 0 2px rgba(255,0,0,0.4),
        0 0 30px rgba(255,0,0,0.4);
  
}

/* Icono de usuario */
.usuario_logueado i {
    margin-right: 8px;
    font-size: 18px;
    color: #ff4d4d; /* rojo principal */
    
}

/* Nombre del usuario */
.usuario_logueado span {
    font-weight: bold;
    font-size: 14px;
}

/* Dropdown del menú */
.dropdown_menu {
    display: none;
    position: absolute;
    top: 75px;
    right: 80px;
    
  background-color: #101010;
    border: 1px solid #540909;
    border-radius: 6px;
    color: #000;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow: hidden;
        transition: all 0.3s ease;

}

/* Opciones del menú */
.dropdown_menu a {
    display: block;
    padding: 10px 12px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s;
        transition: all 0.3s ease;

}

.dropdown_menu a:hover {
    background-color: #101010;
    background-color:#ec0000;
    color: #fff;
}

/* Para el estado abierto */
.show {
    display: block;
}

/* Cuando el botón tiene el atributo disabled o la clase is-locked */
#pdAddToCart:disabled, 
#pdAddToCart.is-locked {
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
    border: 1px solid #d1d5db !important;
    cursor: not-allowed !important;
    pointer-events: none; /* Esto evita que el mouse detecte el click */
}

.price-locked {
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}
.filters-panel-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}
.filters-close {
  padding: 8px;
  color: var(--gray-500);
  transition: color 0.15s, background 0.15s;
}
.filters-close:hover { color: var(--gray-900); background: var(--gray-100); }
.filters-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Btn Filtros (mobile/tablet only) */
.btn-filtros {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-filtros:hover { color: var(--red-600); border-color: var(--red-600); background: var(--red-50); }
.btn-filtros svg { flex-shrink: 0; color: var(--gray-500); }
.btn-filtros:hover svg { color: var(--red-600); }
.content-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}
@media (max-width: 1023px) {
  .btn-filtros { display: flex; }
  .filters-panel-head { display: flex; }
  .filters-backdrop { z-index: 55; }
  .filters-panel { z-index: 56; transform: translateX(-100%); }
  .filters-panel.open { transform: translateX(0); }
}
@media (min-width: 1024px) {
  .btn-filtros { display: none; }
  .filters-panel-head { display: none; }
  .filters-panel {
    position: static;
    transform: none;
    max-width: none;
    box-shadow: none;
    background: transparent;
    flex-shrink: 0;
    width: auto;
  }
  .filters-panel-content {
    padding: 0;
    overflow: visible;
  }
  .filters-backdrop { display: none; }
}

/* Breadcrumb & Search */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.breadcrumb-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .breadcrumb-inner { flex-direction: row; padding: 16px 32px; }
}
@media (min-width: 1024px) {
  .breadcrumb-inner { padding: 16px 56px; }
}
.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--gray-500);
}
.breadcrumb a { display: flex; align-items: center; gap: 4px; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--red-600); }
.breadcrumb .sep { margin: 0 8px; color: var(--gray-400); }
.breadcrumb .current { font-weight: 600; color: var(--gray-900); }
.search-wrap {
  flex: 1;
  width: 100%;
  max-width: 325px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 8px 16px 8px 40px;
  background: var(--gray-100);
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  transition: background 0.2s, box-shadow 0.2s;
}
.search-wrap input::placeholder { color: var(--gray-400); }
.search-wrap input:focus {
  outline: none;
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--gray-400);
}

/* Main */
.main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 16px;
}
@media (min-width: 640px) { .main { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1024px) { .main { padding-left: 56px; padding-right: 56px; } }
.main-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
@media (min-width: 1024px) {
  .main-layout { flex-direction: row; gap: 48px; }
}

/* Sidebar */
.sidebar {
  width: 100%;
  flex-shrink: 0;
}
@media (min-width: 1024px) { .sidebar { width: 256px; } }
.sidebar section { margin-bottom: 32px; }
.sidebar section:last-child { margin-bottom: 0; }
.sidebar h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-section.collapsible .sidebar-section-toggle {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.sidebar-section.collapsible .sidebar-section-toggle:hover {
  color: var(--red-600);
}
.sidebar-section.collapsible .icon-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.sidebar-section.collapsible.collapsed .icon-chevron {
  transform: rotate(-90deg);
}
.sidebar-section.collapsible.collapsed .sidebar-section-toggle {
  margin-bottom: 0;
}
.sidebar-section.collapsible.collapsed .cats,
.sidebar-section.collapsible.collapsed .calibers,
.sidebar-section.collapsible.collapsed .price-content {
  display: none;
}
.sidebar .cats { margin-bottom: 12px; }
.sidebar label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 12px;
}
.sidebar label .box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}
.sidebar label:hover .box { border-color: var(--red-600); }
.sidebar label .box .dot {
  width: 10px;
  height: 10px;
  border-radius: 1px;
  background: var(--red-600);
  opacity: 0;
  transition: opacity 0.15s;
}
.sidebar label:hover .box .dot { opacity: 1; }
.sidebar label span { font-size: 14px; color: var(--gray-600); transition: color 0.15s; }
.sidebar label:hover span { color: var(--gray-900); }
.sidebar label .count { color: var(--gray-400); }
.calibers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.calibers button {
  padding: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--white);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.calibers button:hover {
  border-color: var(--red-600);
  color: var(--red-600);
  background: var(--red-50);
}
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.price-row button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.price-row button:hover {
  border-color: var(--red-600);
  color: var(--red-600);
  background: var(--red-50);
}
.price-row .input-wrap {
  flex: 1;
  position: relative;
}
.price-row .input-wrap .dollar {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-weight: 500;
}
.price-row input {
  width: 100%;
  padding: 8px 12px 8px 28px;
  text-align: center;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-weight: 700;
  color: var(--gray-900);
  background: var(--white);
}
.price-row input:focus {
  outline: none;
  border-color: var(--red-600);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}
.btn-filter {
  width: 100%;
  padding: 12px;
  background: var(--black);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background 0.15s;
}
.btn-filter:hover { background: var(--red-600); }
.btn-filter:active { transform: scale(0.98); }

/* Content */
.content { flex: 1; min-width: 0; }
.content-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
@media (min-width: 640px) {
  .content-header { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .content-header-top { width: auto; }
}
.content-header p { font-size: 14px; color: var(--gray-600); }
.content-header p strong { color: var(--gray-900); }
.sort-wrap { position: relative; }
.sort-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: color 0.15s, box-shadow 0.15s;
}
.sort-btn:hover { color: var(--red-600); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.sort-btn span strong { color: var(--black); }
.sort-btn .chevron {
  display: inline-block;
  transition: transform 0.2s;
  width: 14px; height: 14px;
  color: var(--gray-500);
}
.sort-wrap.open .sort-btn .chevron { transform: rotate(180deg); }
.sort-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  width: 224px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  z-index: 20;
  display: none;
  padding: 4px 0;
}
.sort-wrap.open .sort-dropdown { display: block; }
.sort-dropdown button {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-700);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s, color 0.15s;
}
.sort-dropdown button:hover { background: var(--red-50); color: var(--red-700); }
.sort-dropdown button.active { font-weight: 700; color: var(--red-600); background: rgba(254,242,242,0.5); }
.sort-dropdown button .check { width: 14px; height: 14px; color: var(--red-600); }
.sort-dropdown button:not(.active) .check { display: none; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}
.product-card .img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .img-wrap .overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.3s;
}
.product-card:hover .img-wrap .overlay { background: rgba(0,0,0,0.1); }
.product-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-card .tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.product-card .tags span {
  font-size: 12px;
  font-weight: 700;
  color: var(--red-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-card .tags .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
}
.product-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
  line-height: 1.25;
  transition: color 0.15s;
}
.product-card:hover h3 { color: var(--red-600); }
.product-card .price { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; }
.product-card .actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.product-card .qty-wrap {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
}
.product-card .qty-wrap button {
  width: 32px;
  height: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: color 0.15s;
}
.product-card .qty-wrap button:hover { color: var(--red-600); }
.product-card .qty-wrap span {
  width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}
.product-card .add-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}
.product-card .add-btn:hover { background: var(--red-600); }
.product-card .add-btn:active { transform: scale(0.95); }
.product-card .add-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.load-more {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}
.load-more button {
  padding: 12px 32px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-weight: 700;
  color: var(--gray-900);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: background 0.15s, border-color 0.15s;
}
.load-more button:hover { background: var(--gray-50); border-color: var(--gray-400); }

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 32px;
  margin-top: 80px;
  text-align: center;
}
@media (min-width: 1024px) { .footer { padding-left: 56px; padding-right: 56px; } }
.footer-inner { max-width: 1440px; margin: 0 auto; font-size: 14px; color: var(--gray-400); }
.footer p { margin: 0; }

/* Floating cart (mobile) */
.float-cart {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  width: 56px;
  height: 56px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transition: transform 0.15s;
  cursor: pointer;
}
.float-cart:hover { transform: scale(1.1); }
@media (min-width: 1024px) { .float-cart { display: none; } }
.float-cart .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  background: var(--red-600);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.float-cart .badge.hidden { display: none; }
.float-cart svg { width: 24px; height: 24px; }

/* Cart sidebar */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 60;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--white);
  z-index: 100;
  box-shadow: -20px 0 50px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-sidebar .head {
  padding: 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-sidebar .head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}
.cart-sidebar .head h2 svg { color: var(--red-600); width: 24px; height: 24px; }
.cart-sidebar .head .close {
  padding: 8px;
  border-radius: 50%;
  color: var(--gray-500);
  transition: background 0.15s;
}
.cart-sidebar .head .close:hover { background: var(--gray-100); }
.cart-sidebar .items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.cart-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.cart-empty .icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-empty .icon-wrap svg { width: 32px; height: 32px; color: var(--gray-400); }
.cart-empty p:first-of-type { font-size: 18px; font-weight: 700; color: var(--gray-900); }
.cart-empty p:last-of-type { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.cart-empty .back { margin-top: 16px; color: var(--red-600); font-weight: 700; font-size: 14px; }
.cart-empty .back:hover { text-decoration: underline; }
.cart-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.cart-item .thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item .info .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cart-item .info h3 { font-weight: 700; color: var(--gray-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cart-item .info .remove { color: var(--gray-400); padding: 4px; transition: color 0.15s; }
.cart-item .info .remove:hover { color: var(--red-500); }
.cart-item .info .cat { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.cart-item .info .bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cart-item .info .qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
}
.cart-item .info .qty button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 14px;
}
.cart-item .info .qty button:hover { color: var(--gray-900); }
.cart-item .info .qty button:disabled { opacity: 0.5; cursor: not-allowed; }
.cart-item .info .qty span { width: 32px; text-align: center; font-size: 12px; font-weight: 700; }
.cart-item .info .total { font-weight: 700; color: var(--gray-900); }
.cart-sidebar .foot {
  padding: 24px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.cart-sidebar .foot .row { display: flex; justify-content: space-between; color: var(--gray-600); margin-bottom: 12px; }
.cart-sidebar .foot .row.ship span:last-child { color: var(--green-600); font-weight: 500; }
.cart-sidebar .foot .row.total { font-size: 18px; font-weight: 700; color: var(--gray-900); padding-top: 12px; margin-top: 12px; margin-bottom: 24px; border-top: 1px solid var(--gray-200); }
.cart-sidebar .foot .checkout {
  width: 100%;
  padding: 16px;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: background 0.15s;
}
.cart-sidebar .foot .checkout:hover { background: var(--red-600); }
.cart-sidebar .foot .checkout:active { transform: scale(0.98); }
.cart-sidebar .foot .checkout svg { width: 20px; height: 20px; }

/* PRODUCT DETAIL OVERLAY */
.pd-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.pd-modal {
  position: fixed;
  inset: 0;
  z-index: 81;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.pd-backdrop.open,
.pd-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.pd-modal-inner {
  max-width: 1200px;
  width: 100%;
  max-height: calc(100vh - 48px);
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--gray-100);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
.pd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.pd-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
}
.pd-back-btn:hover { color: var(--red-600); }
.pd-back-icon { font-size: 14px; }
.pd-close-btn {
  font-size: 18px;
  color: var(--gray-400);
  padding: 4px 8px;
  border-radius: 9999px;
}
.pd-close-btn:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}
.pd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px;
}
@media (min-width: 1024px) {
  .pd-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    padding: 32px 32px 24px;
  }
}
.pd-gallery { display: flex; flex-direction: column; gap: 16px; }
.pd-main-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  border-radius: 16px;
  overflow: hidden;
}
.pd-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.pd-thumbs button {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: transparent;
}
.pd-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-thumbs button.pd-thumb-active {
  border-color: var(--red-600);
  box-shadow: 0 0 0 2px rgba(220,38,38,0.2);
}

@media (max-width: 640px) {
  .pd-modal {
    padding: 0;
    align-items: stretch;
    justify-content: flex-end;
            background: white;
  }

  .pd-modal-inner {
    max-height: 100vh;
    border-radius: 16px 16px 0 0;
  }

  .pd-grid {
    padding: 16px 16px 20px;
    gap: 16px;
  }

  .pd-title {
    font-size: 22px;
  }

  .pd-price {
    font-size: 26px;
  }
}
.pd-info {
  display: flex;
  flex-direction: column;
}
.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.pd-tag {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pd-tag-main {
  background: var(--red-50);
  color: var(--red-600);
}
.pd-tag-sub {
  background: var(--gray-100);
  color: var(--gray-600);
}
.pd-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}
@media (min-width: 1024px) {
  .pd-title { font-size: 32px; }
}
.pd-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.pd-description-preview {
  margin-bottom: 20px;
}
.pd-description-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 8px 0;
}
.pd-description-preview.expanded .pd-description-text {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.pd-features-inline {
  margin: 12px 0 8px 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}
.pd-description-preview{
    display: -webkit-box;
    -webkit-line-clamp: 4;   /* cantidad de líneas visibles */
    -webkit-box-orient: vertical;
    overflow: hidden;
}







.active-filters-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.active-filters-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #374151;
}

.filter-tag span {
    margin-right: 6px;
}

.remove-tag {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.remove-tag:hover {
    color: #ef4444;
}

.clear-all-filters {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.clear-all-filters:hover {
    color: #d81d1d;
}


#calibers-content button.active {
    background-color: #eb2525;
    color: white;
    border-color: #eb2525;
}


/* Estilo para el texto de reemplazo del precio */
.price-locked {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
}



#login{
    display: flex;
width: 156px;
padding: 13px 16px;
justify-content: center;
align-items: flex-end;
gap: 32px;
cursor: pointer;
box-shadow: none;
border: none;
background-color: transparent;

color: #FFF;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 140%; /* 22.4px */
letter-spacing: -0.32px;
position: relative;

}
#login {
    transition: all 0.3s ease;
    border-radius: 14px;
}

/* Hover */
#login:hover {
    color: #d1d1d1;
    transform: translateY(-2px);
}

/* Línea animada inferior estilo minimal */
#login::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#login:hover::after {
    width: 60%;
}


#registro{
    box-shadow: none;
border: none;
display: flex;
width: 236px;
padding: 13px 16px;
justify-content: center;
align-items: flex-end;
gap: 32px;
cursor: pointer;
color: #FFF;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 140%; /* 22.4px */
letter-spacing: -0.32px;
border-radius: 14px;
background: #DC161F;
}

#registro {
    transition: all 0.3s ease;
}

#registro:hover {
    background: #b81219;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 22, 31, 0.4);
}



/* Opacidad para cards bloqueadas */
.product-card.is-locked .actions {
    opacity: 0.5;
    pointer-events: none; /* Evita cualquier interacción */
}

.product-card.is-locked .add-btn {
    background-color: #9ca3af !important;
    cursor: not-allowed;
}

/* Opcional: difuminar un poco el precio si quieres que se intuya pero no se vea */
.is-locked .price {
    filter: blur(0px); /* Ya lo ocultamos en PHP, así que esto es solo por estética */
}



.img-wrap {
    position: relative; /* Importante para que el badge se ubique dentro */
}

.destacado-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444; /* Rojo para resaltar */
    color: white;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 5;
    text-transform: uppercase;
}


.pd-description-preview.expanded{
    display: block;
}
.pd-features-inline li {
  margin-bottom: 4px;
}
.pd-features-inline li::marker {
  color: var(--red-600);
}
.pd-ver-mas {
  font-size: 13px;
  font-weight: 600;
  color: var(--red-600);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.pd-ver-mas:hover { text-decoration: underline; }
.pd-description-preview.expanded .pd-features-inline {
  display: block;
}
.pd-description-preview:not(.expanded) .pd-features-inline {
  display: none;
}
.pd-qty-card {
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .pd-qty-card {
    flex-direction: row;
   align-items: end;
    justify-content: space-between;
  }
}
.pd-qty-block { display: flex; flex-direction: column; gap: 8px; }
.pd-qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}
.pd-qty-control {
  display: flex;
 align-items: end;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  height: 44px;
  width: 120px;
}
.pd-qty-control button {
  width: 36px;
  height: 100%;
  border-radius: 10px;
  background: transparent;
  color: var(--gray-500);
}
.pd-qty-control button:hover {
  background: var(--red-50);
  color: var(--red-600);
}


.pd-qty-control span {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  height: 80%;
}
.pd-add-btn {
  flex: 1;
  height: 44px;
  background: var(--black);
  color: var(--white);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.pd-add-btn:hover { background: var(--red-600); }
.pd-add-btn:active { transform: scale(0.97); }
.pd-add-icon { font-size: 18px; }
.pd-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.pd-benefit {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.pd-benefit-icon { font-size: 20px; color: var(--red-600); }
.pd-benefit-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600);
}
.pd-accordions {
  border-top: 1px solid var(--gray-100);
  margin-top: 4px;
}
.pd-accordion {
  border-bottom: 1px solid var(--gray-100);
}
.pd-accordion:last-child { border-bottom: none; }
.pd-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--gray-800);
  cursor: pointer;
  text-align: left;
}
.pd-accordion-toggle:hover {
  background: var(--gray-50);
}
@media (min-width: 1024px) {
  .pd-accordion-toggle { padding: 18px 32px; }
}
.pd-accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.pd-accordion.open .pd-accordion-icon {
  transform: rotate(180deg);
}
.pd-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}
.pd-accordion-content.open {
  max-height: 2000px;
  overflow-y: visible;
}
.pd-accordion-content {
  padding: 0 24px 20px;
}
@media (min-width: 1024px) {
  .pd-accordion-content { padding: 0 32px 24px; }
}

/* estado cerrado */
.pd-accordion-content{
    display: none;
}

#pdMainImageWrap{
  height: 100%;
  width: 100%;
}
#pdThumbs button{
width:70px;
height:70px;
padding:0;
position:relative;
overflow:hidden;
}
.thumb-video{
width:100%;
height:100%;
background:#111;
display:flex;
align-items:center;
justify-content:center;
}

.thumb-play{
color:#fff;
font-size:18px;
opacity:0.8;
}
#pdThumbs img{
width:100%;
height:100%;
object-fit:cover;
}

.thumb-play{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
background:rgba(0,0,0,0.6);
color:#fff;
font-size:14px;
padding:4px 6px;
border-radius:4px;
pointer-events:none;
}
/* estado abierto */
.pd-accordion.open .pd-accordion-content{
    display: block;
}
.pd-features {
  margin-top: 12px;
  list-style: none;
  padding: 0;
}
.pd-features li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pd-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: var(--red-600);
}
.pd-specs {
  max-width: 480px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 640px) {
  .pd-specs { grid-template-columns:1fr; }
}
.pd-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
      gap: 5px;
}
.pd-spec-row span:first-child { color: var(--gray-500); }
.pd-spec-row span:last-child {
  font-weight: 600;
  color: var(--gray-900);
}
.pd-review {
  display: flex;
  gap: 10px;
  padding: 10px 0;
}
.pd-review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
}
.pd-review-body { flex: 1; }
.pd-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.pd-review-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
}
.pd-review-stars {
  font-size: 12px;
  color: #fbbf24;
}

/* Success modal */
.success-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 80;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.success-backdrop.open { opacity: 1; pointer-events: auto; }
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 81;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.success-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.success-modal-inner {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  max-width: 420px;
  width: 100%;
  padding: 32px;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.success-modal.open .success-modal-inner {
  transform: scale(1);
}
.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--green-600);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px;
}
.success-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0 0 20px;
}
.success-order-id {
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--gray-600);
}
.success-order-id .label { margin-right: 8px; }
.success-order-id strong { color: var(--gray-900); }
.success-summary {
  max-height: 120px;
  overflow-y: auto;
  text-align: left;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gray-600);
}
.success-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.success-summary-item strong { color: var(--gray-900); }
.success-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--gray-200);
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}
.success-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.15s;
  text-decoration: none;
}
.success-cta:hover { background: var(--red-600); }
.success-cta:active { transform: scale(0.98); }

/* Icons */
.icon-search { display: block; }
.icon-home { width: 14px; height: 14px; }
.icon-chevron { width: 14px; height: 14px; }

/* ========== RESPONSIVE ========== */
/* Mobile: 0 - 479px */
@media (max-width: 479px) {
  .navbar {
    height: 80px;
        position: fixed;
        width: 100%;
  }
  .usuario_logueado span {
    display: none;
  }
  
#login {
    display: flex;
    width: 100px;
    padding: 2px 4px;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    cursor: pointer;
    box-shadow: none;
    border: none;
    background-color: transparent;
    color: #FFF;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    letter-spacing: -0.32px;
    position: relative;
}
.nav_login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: absolute;
    right: 2%;
}
#registro {
    box-shadow: none;
    border: none;
    display: flex;
    width: 100px;
    padding: 2px 4px;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    cursor: pointer;
    color: #FFF;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    letter-spacing: -0.32px;
    border-radius: 6px;
    background: #DC161F;
}

  .navbar-inner {
    padding: 16px 20px;
    align-items: center;
    justify-items: center;
  }
.usuario_logueado {
    padding: 10px;
}
.usuario_logueado i {
    margin-right: 0px;
    font-size: 14px;
}
.dropdown_menu {

    top: 75px;
    right: 10px;
}


  .usuario_logueado span {
    display: none;
  }
  .nav-left .hamburger-btn {
    justify-self: start;
  }
  .nav-left > a {
    grid-column: 2;
  }
  .logo-img {
    width: 70px;
    height: 70px;
  }
  .nav-links {
    display: none;
  }
  .cart-icon-img {
    width: 28px;
    height: 28px;
  }
  .cart-icon {
    width: 22px;
    height: 22px;
  }
  .breadcrumb-inner {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .search-wrap {
    max-width: 100%;
  }
  .main {
    padding: 24px 16px;
  }
  .main-layout {
    gap: 24px;
  }
  .sidebar section {
    margin-bottom: 24px;
  }
  .sidebar h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .calibers {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .calibers button {
    padding: 6px;
    font-size: 12px;
  }
  .content-header {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
  }
  .sort-btn {
    padding: 6px 12px;
    font-size: 13px;
    width: 100%;
  }
  .sort-wrap {
    width: 100%;
  }
  .sort-dropdown {
    width: 100%;
    left: 0;
    right: 0;
  }
  .product-grid {
    gap: 20px;
  }
  .product-card .body {
    padding: 16px;
  }
  .product-card h3 {
    font-size: 16px;
  }
  .product-card .price {
    font-size: 18px;
  }
  .product-card .qty-wrap button {
    min-height: 32px;
    width: 28px;
  }
  .product-card .qty-wrap span {
    width: 28px;
    font-size: 13px;
  }
  .load-more {
    margin-top: 40px;
  }
  .load-more button {
    padding: 10px 24px;
    font-size: 14px;
  }
  .footer {
    padding: 32px 20px;
    margin-top: 48px;
  }
  .footer-inner {
    font-size: 12px;
  }
  .float-cart {
    bottom: max(20px, env(safe-area-inset-bottom));
    right: max(20px, env(safe-area-inset-right));
    width: 52px;
    height: 52px;
  }
  .float-cart svg {
    width: 22px;
    height: 22px;
  }
  .cart-sidebar {
    max-width: 100%;
    z-index: 100 !important;
  }
  .cart-sidebar .head {
    padding: 20px;
  }
  .cart-sidebar .head h2 {
    font-size: 18px;
  }
  .cart-sidebar .items {
    padding: 20px;
  }
  .cart-item {
    gap: 12px;
    margin-bottom: 20px;
  }
  .cart-item .thumb {
    width: 64px;
    height: 64px;
  }
  .cart-item .info h3 {
    font-size: 13px;
  }
  .cart-sidebar .foot {
    padding: 20px;
  }
  .cart-sidebar .foot .checkout {
    padding: 14px;
    font-size: 16px;
  }
}

/* Mobile large / Small tablet: 480px - 639px */
@media (min-width: 480px) and (max-width: 639px) {
  .navbar {
    height: 92px;
  }
  
#login {
    display: flex;
    width: 100px;
    padding: 6px 8px;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    cursor: pointer;
    box-shadow: none;
    border: none;
    background-color: transparent;
    color: #FFF;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: -0.32px;
    position: relative;
}
.nav_login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: absolute;
    right: 2%;
}
#registro {
    box-shadow: none;
    border: none;
    display: flex;
    width: 100px;
    padding: 6px 8px;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    cursor: pointer;
    color: #FFF;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: -0.32px;
    border-radius: 8px;
    background: #DC161F;
}

  .navbar-inner {
    padding: 20px 24px;
    align-items: center;
    justify-items: center;
  }
  .usuario_logueado {
    padding: 10px;
}
.dropdown_menu {

    top: 75px;
    right: 10px;
}
.usuario_logueado i {
    margin-right: 0px;
    font-size: 14px;
}

  .usuario_logueado span {
    display: none;
  }

  .nav-left .hamburger-btn {
    justify-self: start;
  }
  .nav-left > a {
    grid-column: 2;
  }
  .logo-img {
    width: 80px;
    height: 80px;
  }
  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
  }
  .nav-links a,
  .nav-links span {
    font-size: 12px;
  }
  .nav-tienda .line {
    width: 60px;
  }
  .cart-icon-img {
    width: 28px;
    height: 28px;
  }
  .cart-icon {
    width: 24px;
    height: 24px;
  }
  .main {
    padding: 32px 24px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .sidebar .calibers {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet: 640px - 1023px */
@media (min-width: 640px) and (max-width: 1023px) {
  .navbar {
    height: 100px;
    height: 101px;
        position: fixed;
        width: 100%;
  }
  .navbar-inner {
    padding: 24px 32px;
    align-items: center;
    justify-items: center;
  }
  .dropdown_menu {

    top: 75px;
    right: 20px;
}
  
#login {
    display: flex;
    width: 100px;
    padding: 6px 8px;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    cursor: pointer;
    box-shadow: none;
    border: none;
    background-color: transparent;
    color: #FFF;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: -0.32px;
    position: relative;
}
.nav_login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: absolute;
    right: 2%;
}
#registro {
    box-shadow: none;
    border: none;
    display: flex;
    width: 100px;
    padding: 6px 8px;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    cursor: pointer;
    color: #FFF;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: -0.32px;
    border-radius: 8px;
    background: #DC161F;
}

  .nav-left .hamburger-btn {
    justify-self: start;
  }
  .nav-left > a {
    grid-column: 2;
  }
  .nav-left .nav-links {
    display: none;
  }
  .logo-img {
    width: 88px;
    height: 88px;
  }
  .main {
    padding: 40px 32px;
  }
  .main-layout {
    gap: 40px;
  }
  .filters-panel {
    max-width: 360px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .load-more {
    margin-top: 56px;
  }
  .cart-sidebar {
    max-width: 380px;
  }
}

/* Desktop: 1024px - 1199px */
@media (min-width: 1024px) and (max-width: 1199px) {
  .navbar-inner {
    padding: 24px 40px;
  }
  .dropdown_menu {

    top: 75px;
    right: 30px;
}
  .nav-left {
    gap: 48px;
  }
  .nav-links {
    gap: 28px;
  }
  .main {
    padding: 48px 40px;
  }
  .main-layout {
    gap: 40px;
  }
  .sidebar {
    width: 240px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* Large Desktop: 1200px - 1920px (incluye 1366x768) */
@media (min-width: 1200px) {
  .navbar-inner {
    max-width: 1920px;
    padding: 30px 80px;
  }
  .breadcrumb-inner {
    max-width: 1920px;
    padding: 16px 80px;
  }
  .main {
    max-width: 1920px;
    padding: 56px 80px;
  }
  .main-layout {
    gap: 56px;
  }
  .sidebar {
    width: 280px;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .load-more {
    margin-top: 80px;
  }
  .footer {
    padding: 56px 80px;
  }
  .footer-inner {
    max-width: 1920px;
  }
  .cart-sidebar {
    max-width: 420px;
  }
}

/* Extra: very small mobile landscape */
@media (max-width: 639px) and (orientation: landscape) {
  .navbar {
    height: 72px;
  }
  .logo-img {
    width: 60px;
    height: 60px;
  }
}

/* Touch-friendly tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  .product-card .qty-wrap button,
  .product-card .add-btn,
  .sort-dropdown button,
  .calibers button,
  .price-row button {
    min-height: 44px;
  }
  .cart-item .info .qty button {
    min-width: 36px;
    min-height: 36px;
  }
}
