/* ================================================
   VARIABLES Y RESET
   ================================================ */

:root {
  --primary: #ff9900;
  --primary-hover: #f3a847;
  --secondary: #febd69;
  --dark: #131921;
  --dark-light: #232f3e;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --border: #e0e0e0;
  --bg-gray: #f7f7f7;
  --success: #067d62;
  --danger: #B12704;
  --warning: #ff9900;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Amazon Ember', 'Helvetica Neue', Arial, sans-serif;
  background-color: #fff;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-large {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================================
   HEADER STYLES
   ================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-top {
  background-color: var(--dark);
  border-bottom: 1px solid var(--dark-light);
}

.header-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-top .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  text-decoration: none;
}

.logo {
  background: linear-gradient(135deg, var(--primary) 0%, #f39c12 100%);
  color: var(--dark);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.logo:hover {
  transform: scale(1.05);
}

.deliver-to {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.deliver-to:hover {
  border-color: #fff;
}

.deliver-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.small-text {
  font-size: 12px;
  color: #ccc;
}

.large-text {
  font-weight: 700;
  font-size: 14px;
}

.header-search {
  flex: 1;
  max-width: 48rem;
  margin: 0 1rem;
  display: flex;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.search-dropdown {
  background-color: #f3f3f3;
  color: var(--text);
  padding: 0 1rem;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.search-dropdown:hover {
  background-color: #e3e3e3;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-button {
  background-color: var(--secondary);
  padding: 0 1.25rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.search-button:hover {
  background-color: var(--primary-hover);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-link {
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-link:hover {
  border-color: #fff;
}

.cart-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.cart-button:hover {
  border-color: #fff;
}

.cart-icon-wrapper {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary);
  color: var(--dark);
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-bottom {
  background-color: var(--dark-light);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
  font-size: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.menu-item {
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  transition: all 0.2s;
  font-weight: 500;
}

.menu-item:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.all-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.highlight-btn {
  background: var(--primary);
  color: var(--dark) !important;
  font-weight: 700;
  border: 1px solid var(--primary) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 20px;
}

.highlight-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 153, 0, 0.3);
}

.promo-text {
  margin-left: auto;
  color: var(--primary);
  font-weight: 700;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.icon {
  flex-shrink: 0;
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero {
  background: linear-gradient(135deg, var(--dark-light) 0%, #37475a 100%);
  color: #fff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="%23ffffff" fill-opacity="0.02" width="100" height="100"/></svg>');
  opacity: 0.5;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
}

.hero p {
  color: #e0e0e0;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background-color: #fff;
  color: var(--dark);
  transform: translateY(-2px);
}

.hero-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-placeholder {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.placeholder-line {
  height: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  animation: shimmer 1.5s infinite;
}

.placeholder-box {
  height: 12rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 1rem;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ================================================
   INFO SECTION
   ================================================ */

.info-section {
  padding: 4rem 0;
  background-color: var(--bg-gray);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.info-icon {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.1) 0%, rgba(255, 153, 0, 0.05) 100%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.info-icon svg {
  stroke: var(--primary);
  stroke-width: 2.5;
}

.info-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
  font-weight: 700;
}

.info-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ================================================
   PRODUCTS SECTION
   ================================================ */

.products-section {
  padding: 5rem 0;
  background: #fff;
}

.products-header {
  text-align: center;
  margin-bottom: 3rem;
}

.products-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--dark);
  font-weight: 800;
}

.products-header p {
  font-size: 1.125rem;
  color: var(--text-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px);
  border-color: var(--primary);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: #f8f8f8;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.stock-badge.bajo {
  background: #ff9900;
  color: #fff;
  animation: bounce 2s infinite;
}

.stock-badge.agotado {
  background: #dc3545;
  color: #fff;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.product-info {
  padding: 1.25rem;
}

.product-name {
  font-size: 15px;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  transition: color 0.3s;
  font-weight: 600;
  color: var(--text);
}

.product-card:hover .product-name {
  color: var(--primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.stars {
  color: var(--primary);
  font-size: 16px;
  letter-spacing: 2px;
}

.rating-count {
  font-size: 13px;
  color: var(--text-light);
}

.product-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--danger);
  margin-bottom: 0.5rem;
}

.product-colors {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.product-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, #f39c12 100%);
  color: #fff;
  font-size: 11px;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  margin-top: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================================================
   FAQ SECTION
   ================================================ */

.faq-section {
  padding: 5rem 0;
  background-color: var(--bg-gray);
}

.faq-section h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  color: var(--dark);
  font-weight: 800;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  transition: background-color 0.3s;
  color: var(--dark);
}

.faq-question:hover {
  background-color: var(--bg-gray);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s;
  stroke: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text);
  line-height: 1.8;
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
  background-color: var(--dark);
  color: #fff;
}

.footer-top {
  width: 100%;
  background-color: #37475a;
  padding: 1rem;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.footer-top:hover {
  background-color: #485769;
}

.footer-links {
  background-color: var(--dark-light);
  padding: 3rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 16px;
}

.footer-column a {
  display: block;
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #3a4553;
  padding: 1.5rem 0;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-text span {
  font-size: 14px;
  color: #ccc;
}

.footer-buttons {
  display: flex;
  gap: 1rem;
}

.footer-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid #666;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.footer-btn:hover {
  background-color: #37475a;
  border-color: #888;
}

.footer-copyright {
  background-color: #131a22;
  padding: 1.5rem;
  text-align: center;
}

.footer-copyright p {
  font-size: 13px;
  color: #999;
}

/* ================================================
   MODAL STYLES
   ================================================ */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background-color: #fff;
  border-radius: 12px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  position: sticky;
  top: 0;
  background-color: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--dark);
  font-weight: 700;
}

.modal-close {
  padding: 0.5rem;
  background: var(--bg-gray);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background-color: #e0e0e0;
  transform: rotate(90deg);
}

.modal-content {
  padding: 2rem;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.product-modal-images {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.main-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f8f8f8;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.thumbnail {
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.thumbnail:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-details {
  padding: 1rem 0;
}

.product-category {
  display: inline-block;
  background-color: var(--dark-light);
  color: #fff;
  font-size: 12px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-product-name {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
  font-weight: 800;
  line-height: 1.3;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-stars {
  display: flex;
  color: var(--primary);
  font-size: 20px;
  letter-spacing: 3px;
}

.modal-rating-count {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 600;
}

.modal-price-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.price-label {
  font-size: 15px;
  color: var(--text-light);
}

.modal-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--danger);
}

.shipping-text {
  font-size: 15px;
  color: var(--success);
  margin-top: 0.5rem;
  font-weight: 600;
}

.modal-description {
  margin-bottom: 1.5rem;
}

.modal-description h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.modal-description p {
  color: var(--text);
  line-height: 1.8;
}

.modal-features {
  background-color: var(--bg-gray);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.modal-features h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.features-list {
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.feature-check {
  color: var(--primary);
  margin-right: 0.75rem;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 18px;
}

.color-selection {
  margin-bottom: 1.5rem;
}

.color-selection label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.selected-color {
  color: var(--primary);
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.color-btn {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 15px;
  font-weight: 600;
}

.color-btn:hover {
  border-color: var(--text-light);
  transform: translateY(-2px);
}

.color-btn.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.1) 0%, rgba(255, 153, 0, 0.05) 100%);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.2);
}

.quantity-selection {
  margin-bottom: 1.5rem;
}

.quantity-selection label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.quantity-input {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.quantity-btn {
  padding: 1rem;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.quantity-btn:hover {
  background-color: var(--bg-gray);
}

.quantity-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quantity-value {
  width: 80px;
  text-align: center;
  border: none;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  padding: 0.75rem;
  outline: none;
  font-size: 18px;
  font-weight: 700;
}

.stock-text {
  font-size: 14px;
  color: var(--text-light);
}

.total-price-box {
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark) 100%);
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.total-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-label {
  font-size: 1.25rem;
  font-weight: 600;
}

.total-price {
  font-size: 2.25rem;
  font-weight: 800;
}

.total-breakdown {
  font-size: 14px;
  color: #ccc;
  margin-top: 0.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
}

.btn-add-cart {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, #f39c12 100%);
  color: var(--dark);
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.btn-buy-now {
  flex: 1;
  background-color: #ffa41c;
  color: var(--dark);
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.btn-buy-now:hover {
  background-color: #f09000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 164, 28, 0.4);
}

.success-message {
  margin-top: 1rem;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  animation: slideIn 0.3s;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.success-message.active {
  display: flex;
}

.success-message svg {
  stroke: #155724;
  flex-shrink: 0;
}

/* ================================================
   CART MODAL
   ================================================ */

.cart-modal {
  background-color: #fff;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideInRight 0.3s;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cart-header {
  background-color: var(--dark-light);
  color: #fff;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.cart-header-count {
  background-color: var(--primary);
  color: var(--dark);
  font-size: 15px;
  font-weight: 800;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.cart-empty-icon {
  background-color: var(--bg-gray);
  border-radius: 50%;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.cart-empty-icon svg {
  stroke: var(--text-muted);
}

.cart-empty h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.cart-empty p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f8f8f8;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--dark);
}

.cart-item-color {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 0.75rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cart-quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.cart-quantity button {
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 700;
  font-size: 16px;
}

.cart-quantity button:hover {
  background-color: var(--bg-gray);
}

.cart-quantity span {
  padding: 0 1rem;
  font-size: 15px;
  font-weight: 700;
}

.cart-item-remove {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 14px;
}

.cart-item-remove:hover {
  background-color: #fee;
  transform: scale(1.05);
}

.cart-item-subtotal {
  margin-left: auto;
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
}

.cart-summary {
  border-top: 2px solid var(--border);
  padding: 1.5rem 2rem;
  background-color: var(--bg-gray);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.summary-label {
  font-weight: 600;
}

.summary-value {
  font-weight: 700;
}

.free-shipping {
  color: var(--success);
  font-weight: 800;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 2px solid var(--border);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.summary-total .summary-label {
  font-weight: 700;
  color: var(--dark);
  font-size: 18px;
}

.summary-total .summary-value {
  font-size: 2rem;
  color: var(--danger);
  font-weight: 800;
}

.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #f39c12 100%);
  color: var(--dark);
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 0.75rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.btn-checkout:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.btn-continue {
  width: 100%;
  background-color: #fff;
  color: var(--text);
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.btn-continue:hover {
  background-color: var(--bg-gray);
  border-color: var(--text-light);
}

/* ================================================
   AUTH & CALCULATOR MODALS
   ================================================ */

.auth-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s;
}

.auth-container {
    position: relative;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;        
    background: #fff;
    border-radius: 15px;
    overflow-y: auto;        
    overflow-x: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s;
}


.btn-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 11;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.auth-header {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    padding: 2rem;
    color: white;
}

.auth-header h2 {
    font-family: Georgia, serif;
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
}

.auth-header p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.toggle-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.toggle-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.auth-body { 
    padding: 2rem; 
}

.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field-group { 
    margin-bottom: 1.5rem;
}

.field-group label {
    display: block;
    font-size: 11px;
    color: #888;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.field-group input,
.field-group textarea,
.field-group select {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: 0.75rem 0;
    margin-bottom: 0;
    outline: none;
    font-size: 15px;
    transition: border-color 0.3s;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
    border-bottom-color: var(--primary);
}

.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #f39c12 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 25px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
    font-size: 15px;
    transition: all 0.3s;
}

.btn-auth:hover { 
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.styled-select-light {
    width: 100%; 
    padding: 0.75rem; 
    background: #f4f4f4;
    border: 2px solid #ddd; 
    border-radius: 8px; 
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.styled-select-light:focus {
    border-color: var(--primary);
    outline: none;
}

.input-light-orange {
    width: 100%; 
    background: #fff; 
    color: var(--primary);
    font-size: 28px; 
    font-weight: 800; 
    padding: 1rem;
    border: 3px solid var(--primary); 
    border-radius: 12px; 
    text-align: center;
    transition: all 0.3s;
}

.input-light-orange:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.2);
}

.result-box-light {
    background: var(--bg-gray); 
    border-radius: 12px; 
    padding: 1.5rem; 
    margin: 1.5rem 0;
    border: 2px solid #e0e0e0;
}

.result-line {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 15px;
}

.result-line strong {
    font-weight: 800;
    color: var(--dark);
}

.highlight-orange {
    border-top: 2px dashed var(--primary); 
    margin-top: 1rem; 
    padding-top: 1rem;
}

.btn-auth-naranja {
    width: 100%; 
    background: linear-gradient(135deg, var(--primary) 0%, #f39c12 100%); 
    color: white; 
    border: none;
    padding: 1.25rem; 
    border-radius: 25px; 
    font-weight: 800; 
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
    transition: all 0.3s;
}

.btn-auth-naranja:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

/* ================================================
   CHECKOUT STYLES
   ================================================ */

.checkout-container {
    background: white; 
    border-radius: 20px; 
    padding: 2.5rem;
    max-width: 550px; 
    width: 90%; 
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-title {
    color: var(--dark); 
    font-size: 1.75rem; 
    font-weight: 800; 
    margin-bottom: 1.5rem;
}

.progress-bar { 
    display: flex; 
    gap: 0.5rem; 
    margin-bottom: 2rem; 
}

.step { 
    height: 6px; 
    flex: 1; 
    background: #eee; 
    border-radius: 10px;
    transition: background 0.3s;
}

.step.active { 
    background: var(--primary); 
}

.checkout-step.hidden { 
    display: none; 
}

.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1rem; 
}

.btn-checkout-primary {
    width: 100%; 
    background: var(--dark); 
    color: white; 
    border: none;
    padding: 1.25rem; 
    border-radius: 50px; 
    font-weight: 800; 
    cursor: pointer; 
    transition: all 0.3s;
    font-size: 15px;
}

.btn-checkout-primary:hover { 
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.btn-validate-card {
    background: #10b981;
    transition: all 0.3s;
}

.btn-validate-card:hover {
    background: #059669;
}

.bottom-actions { 
    margin-top: 1.5rem; 
    display: flex; 
    justify-content: center; 
}

.btn-back { 
    background: none; 
    border: 2px solid var(--border); 
    padding: 0.75rem 2rem; 
    border-radius: 50px; 
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-back:hover {
    border-color: var(--text-light);
    background: var(--bg-gray);
}

.payment-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pay-option {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.pay-option input {
    margin-right: 1rem;
    accent-color: var(--primary);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.pay-label {
    font-weight: 700;
    color: var(--dark);
    font-size: 15px;
}

.pay-option:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.05) 0%, rgba(255, 153, 0, 0.02) 100%);
}

.hidden-fields { 
    display: none; 
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
  .header-search {
    display: none;
  }
  
  .header-right {
    gap: 0.5rem;
  }
  
  .nav-menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .nav-menu::-webkit-scrollbar {
    display: none;
  }
  
  .promo-text {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .product-modal-grid {
    grid-template-columns: 1fr;
  }
  
  .product-modal-images {
    position: static;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-modal {
    max-width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .deliver-to,
  .header-link {
    display: none;
  }
  
  .header-left {
    gap: 0.5rem;
  }
  
  .modal-content {
    padding: 1rem;
  }
  
  .checkout-container {
    padding: 1.5rem;
  }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

.hidden {
    display: none !important;
}
