*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-image: url('img/assets/fondocopos.png') !important;
  color: #1a365d;
  min-width: 320px;
  min-height: 100vh;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.main-content {
  flex: 1;
  width: 100%;
}

/* Header */
.header {
  background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
}

.logo-icon {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.logo-subtitle {
  font-size: 0.65rem;
  letter-spacing: 3px;
  opacity: 0.9;
  display: block;
  margin-top: -4px;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.8;
}

.cart-link {
  position: relative;
  background-color: #e53e3e;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.2s, transform 0.2s;
}

.cart-link:hover {
  background-color: #c53030;
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background-color: #e53e3e;
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #2b6cb0 0%, #1a365d 50%, #2c5282 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  height: 100px;
  width: auto;
  display: block;
  margin: 0 auto 1rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  letter-spacing: 3px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.info-icon {
  font-size: 1.2rem;
}

/* Map Section */
.map-section {
  padding: 4rem 2rem;
  text-align: center;
}

.map-container {
  max-width: 800px;
  margin: 0 auto;
}

.map-link {
  display: inline-block;
  margin-top: 1rem;
  color: #2b6cb0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.map-link:hover {
  color: #1a365d;
  text-decoration: underline;
}

/* Categories Section */
.categories-section {
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #1a365d;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: #1a365d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #2b6cb0;
}

.category-icon-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
}

.category-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1a365d;
}

.category-description {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.4;
}

/* Brands Section */
.brands-section {
  background: white;
  padding: 4rem 2rem;
  width: 100%;
  overflow: hidden;
}

.brands-track-container {
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.brands-track {
  display: flex;
  gap: 2rem;
  animation: scroll-brands 20s linear infinite;
  width: max-content;
}

.brands-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-brands {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.brand-card {
  text-align: center;
  padding: 1.5rem 2rem;
  background: #e0f2fe;
  border-radius: 12px;
  flex-shrink: 0;
  min-width: 180px;
}

.brand-logo {
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.75rem;
}

.brand-logo-large {
  max-width: 20vh;
  max-height: 20vh;
  padding: 0;
}

.brand-name {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: #2b6cb0;
  margin-bottom: 0.5rem;
}

.brand-desc {
  color: #718096;
  font-size: 0.95rem;
}

/* Delivery Section */
.delivery-section {
  padding: 4rem 2rem;
  text-align: center;
}

.delivery-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.delivery-card {
  background: white;
  border-radius: 12px;
  padding: 2rem 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  min-width: 0;
  flex: 1;
}

.delivery-card.morning {
  border-top: 4px solid #ed8936;
}

.delivery-card.afternoon {
  border-top: 4px solid #4299e1;
}

.delivery-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.delivery-card h3 {
  margin-bottom: 0.5rem;
  color: #1a365d;
}

.delivery-time {
  font-size: 1.3rem;
  font-weight: bold;
  color: #2b6cb0;
}

.delivery-note {
  color: #718096;
  font-size: 1rem;
  margin-top: 1rem;
}

/* Category Page */
.category-page {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  color: #2b6cb0;
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* Category Navigation */
.category-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.category-nav-bottom {
  margin-top: 2rem;
  margin-bottom: 0;
}

.category-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #1a365d;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.category-nav-btn:hover {
  border-color: #2b6cb0;
  background: #ebf8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-nav-prev {
  margin-right: auto;
}

.category-nav-next {
  margin-left: auto;
}

.category-nav-arrow {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2b6cb0;
}

.category-nav-text {
  font-size: 0.9rem;
}

.category-nav-icon-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.category-header {
  text-align: center;
  margin-bottom: 3rem;
}

.category-header-icon-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
}

.category-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #1a365d;
}

.category-header p {
  color: #4a5568;
  font-size: 1.1rem;
}

.category-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.category-products > .grannys-list {
  grid-column: 1 / -1;
}

.subcategory-group {
  grid-column: 1 / -1;
}

.subcategory-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #023e8a;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #caf0f8;
}

.subcategory-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: #e53e3e;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.product-badge[hidden] {
  display: none;
}

.promos-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.promo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.promo-card-img {
  width: 100%;
  height: auto;
  display: block;
}

.promo-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.promo-card-name {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.promo-order-btn {
  background: #023e8a;
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.promo-order-btn:hover {
  background-color: #0353a4;
  transform: scale(1.04);
}

.promo-order-btn.added {
  background: #276749;
}

.product-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Imagen de los nuggets crocantes: más grande y sin recorte */
#product-img-35 {
  height: 50vh;
  object-fit: unset;
}

/* Imagen de los cañoncitos de muzzarella: más grande y sin recorte */
#product-img-57 {
  height: 50vh;
  object-fit: unset;
}

/* Imagen de las tartitas.ok: más grande y sin recorte */
.tartita-card-img {
  height: 40vh;
  object-fit: unset;
}

/* Pizzas con foto: la card es directamente la imagen con overlay */
.pizza-card {
  padding: 0;
  background: #1a1a1a;
}

.pizza-card-img {
  position: relative;
  height: 360px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.pizza-card-overlay {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.25) 60%, transparent);
}

.pizza-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #fff;
}

.pizza-card-info .product-name {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.pizza-card-info .product-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.pizza-card-info .price-value,
.pizza-card-info .price-unit {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.pizza-card .add-to-cart-btn {
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 0.65rem 1.2rem;
}

.pizza-card .product-badge {
  top: 10px;
  right: 10px;
}

.product-info {
  margin-bottom: 1rem;
}

.product-name {
  font-size: 1.2rem;
  color: #1a365d;
  margin-bottom: 0.25rem;
}

.product-brand {
  display: inline-block;
  background: #ebf8ff;
  color: #2b6cb0;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-description {
  color: #4a5568;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.price-value {
  font-size: 1.3rem;
  font-weight: bold;
  color: #276749;
}

.price-unit {
  font-size: 0.9rem;
  color: #718096;
  margin-left: 0.25rem;
}

.price-on-request {
  color: #d69e2e;
  font-size: 1rem;
}

.product-price-single {
  margin-bottom: 0.5rem;
}

/* Varieties Radio List */

/* Varieties Radio List */
.variety-section {
  margin-bottom: 0.75rem;
}

.variety-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.variety-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.15s;
  font-size: 0.85rem;
}

.variety-option:hover {
  background-color: #f0f7ff;
}

.variety-option input[type="radio"] {
  display: none;
}

.variety-radio {
  width: 16px;
  height: 16px;
  border: 2px solid #90cdf4;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s;
}

.variety-option input[type="radio"]:checked + .variety-radio {
  border-color: #023e8a;
}

.variety-option input[type="radio"]:checked + .variety-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #023e8a;
  border-radius: 50%;
}

.variety-option input[type="radio"]:checked ~ .variety-name {
  font-weight: 600;
  color: #023e8a;
}

.variety-name {
  color: #2d3748;
}

.variety-dots {
  flex: 1;
  border-bottom: 1px dotted #cbd5e0;
  min-width: 20px;
  margin-bottom: 2px;
}

.variety-price {
  font-weight: 600;
  color: #023e8a;
  white-space: nowrap;
}

.discount-info {
  display: block;
  font-size: 0.8rem;
  color: #276749;
  background: #f0fff4;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  border: 1px solid #c6f6d5;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.add-to-cart-btn {
  flex: 1;
  background-color: #2b6cb0;
  color: white;
  border: none;
  padding: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.add-unit-btn {
  background-color: #48bb78;
  color: white;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.add-unit-btn:hover {
  background-color: #38a169;
  transform: scale(1.02);
}

.add-unit-btn.added {
  background-color: #276749;
  animation: pulse 0.4s ease;
}

.add-to-cart-btn:hover {
  background-color: #2c5282;
  transform: scale(1.02);
}

.add-to-cart-btn.added {
  background-color: #276749;
  animation: pulse 0.4s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Category Not Found */
.category-not-found {
  text-align: center;
  padding: 4rem 2rem;
}

.back-btn {
  display: inline-block;
  background-color: #2b6cb0;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

/* Cart */
.cart-empty {
  text-align: center;
  padding: 3rem 2rem;
}

.cart-empty h2 {
  margin-bottom: 1.5rem;
  color: #1a365d;
}

.continue-shopping-btn {
  display: inline-block;
  background-color: #2b6cb0;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.cart {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.cart h2 {
  margin-bottom: 1.5rem;
  color: #1a365d;
}

.cart-items {
  margin-bottom: 2rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  align-items: center;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h3 {
  margin-bottom: 0.25rem;
  color: #1a365d;
  font-size: 1rem;
}

.cart-item-info p {
  color: #4a5568;
  font-size: 0.9rem;
}

.cart-item-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.price-original {
  text-decoration: line-through;
  color: #a0aec0;
  font-size: 0.85rem;
}

.price-discounted {
  color: #276749;
  font-weight: 600;
  font-size: 0.95rem;
}

.discount-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: #276749;
  background: #f0fff4;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.3rem;
  border: 1px solid #c6f6d5;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quantity-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  color: #1a365d;
}

.quantity-controls button:hover {
  background-color: #f7fafc;
}

.quantity-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quantity-controls span {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
}

.cart-item-actions {
  text-align: right;
}

.cart-item-subtotal {
  font-weight: bold;
  color: #276749;
  margin-bottom: 0.5rem;
}

.remove-btn {
  background-color: #e53e3e;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

.remove-btn:hover {
  background-color: #c53030;
}

.cart-summary {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.cart-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.clear-cart-btn {
  background-color: #a0aec0;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.clear-cart-btn:hover {
  background-color: #718096;
}

.checkout-btn {
  background-color: #276749;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
}

.checkout-btn:hover {
  background-color: #22543d;
}

/* Checkout */
.checkout {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout h2 {
  margin-bottom: 0.5rem;
  color: #1a365d;
}

.checkout-subtitle {
  color: #718096;
  margin-bottom: 1.5rem;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
}

.checkout-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  margin-bottom: 1rem;
  color: #1a365d;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #4a5568;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #2b6cb0;
}

.whatsapp-btn {
  width: 100%;
  background-color: #25d366;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
}

.whatsapp-btn:hover {
  background-color: #1da851;
}

.checkout-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkout-buttons-main {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  min-width: 0;
}

.checkout-buttons-main .whatsapp-btn {
  flex: 1;
  min-width: 0;
}

.checkout-buttons-main .status-box {
  justify-content: center;
  flex-shrink: 1;
  min-width: 0;
}

.copy-btn {
  width: 100%;
  background-color: #2b6cb0;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.copy-btn:hover {
  background-color: #2c5282;
}

.copy-btn.copied {
  background-color: #276749;
}

.order-summary {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: fit-content;
}

.order-summary h3 {
  margin-bottom: 1rem;
  color: #1a365d;
}

.order-items {
  margin-bottom: 1rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 2px solid #e2e8f0;
}

.order-info-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #ebf8ff;
  border-radius: 8px;
  font-size: 0.85rem;
}

.order-info-box p {
  margin-bottom: 0.3rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
  color: white;
  margin-top: auto;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1.2fr auto;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  opacity: 0.8;
}

.footer-info p,
.footer-hours p {
  margin-bottom: 0.4rem;
}

.footer-hours {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.footer-hours p:first-child,
.footer-hours-left p:first-child {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.status-box {
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  flex-shrink: 0;
  max-width: 100%;
}

.status-box.open {
  background: rgba(72, 187, 120, 0.25);
  border: 1px solid rgba(72, 187, 120, 0.4);
}

.status-box.closed {
  background: rgba(245, 101, 101, 0.25);
  border: 1px solid rgba(245, 101, 101, 0.4);
}

.status-time {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.status-box.open .status-time {
  color: #68d391;
}

.status-box.closed .status-time {
  color: #fc8181;
}

.status-label {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-box.open .status-label {
  color: #68d391;
}

.status-box.closed .status-label {
  color: #fc8181;
}

.status-next {
  font-size: 0.5rem;
  font-weight: 400;
  color: #1a365d;
  opacity: 0.8;
  letter-spacing: 0;
}

.status-store {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.store-open {
  color: #30f54a;
}

.store-closed {
  color: #c53030;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-dev {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .logo-icon {
    height: 30px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-subtitle {
    font-size: 0.55rem;
  }

  .nav {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .cart-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .hero-logo {
    height: 70px;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-info {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-info-item {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  .categories-section {
    padding: 2.5rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-card {
    padding: 1.5rem;
  }

  .brands-section {
    padding: 2.5rem 1rem;
  }

  .brands-track {
    animation-duration: 15s;
  }

  .brand-card {
    padding: 1rem 1.5rem;
    min-width: 150px;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .delivery-section {
    padding: 2.5rem 1rem;
  }

  .delivery-cards {
    flex-direction: column;
    align-items: center;
  }

  .delivery-card {
    width: 100%;
    padding: 1.5rem 2rem;
  }

  .map-section {
    padding: 2.5rem 1rem;
  }

  .map-container iframe {
    height: 250px;
  }

  .category-page {
    padding: 1rem;
  }

  .category-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .category-nav-btn {
    width: 100%;
    justify-content: center;
  }

  .category-nav-prev,
  .category-nav-next {
    margin: 0;
  }

  .category-header h1 {
    font-size: 1.6rem;
  }

  .category-products {
    grid-template-columns: 1fr;
  }

  .category-products > .grannys-list {
    grid-column: 1;
  }

  .subcategory-products {
    grid-template-columns: 1fr;
  }

  .cart {
    padding: 1rem;
  }

  .cart-item {
    flex-direction: column;
    text-align: center;
  }

  .cart-item-actions {
    text-align: center;
    margin-top: 1rem;
  }

  .cart-actions {
    flex-direction: column;
  }

  .checkout {
    padding: 1rem;
  }

  .checkout-container {
    grid-template-columns: 1fr;
  }

  .checkout-buttons-main {
    flex-direction: column;
  }

  .checkout-buttons-main .status-box {
    align-self: center;
  }

  .whatsapp-btn {
    font-size: 1rem;
    padding: 0.85rem;
  }

  .copy-btn {
    font-size: 1rem;
    padding: 0.85rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
  }

  .footer-hours {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 400px) {
  .header-container {
    justify-content: center;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .category-header h1 {
    font-size: 1.4rem;
  }

  .delivery-card {
    padding: 1.25rem 1.5rem;
  }

  .checkout-buttons-main .whatsapp-btn {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .checkout-buttons-main .whatsapp-btn span {
    font-size: 0.85rem;
  }

  .status-box {
    padding: 0.3rem 0.5rem;
  }

  .status-time {
    font-size: 0.75rem;
  }

  .status-label {
    font-size: 0.5rem;
  }

  .status-next {
    font-size: 0.45rem;
  }
}

/* ===== Caja Cerrada Granny's ===== */
.grannys-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.grannys-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: #ebf8ff;
  border: 2px solid #90cdf4;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.grannys-row:hover {
  border-color: #63b3ed;
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.15);
}

.grannys-row-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  min-width: 0;
}

.grannys-row-name {
  font-weight: 700;
  color: #1a365d;
  font-size: 0.95rem;
  white-space: nowrap;
}

.grannys-row-details {
  font-size: 0.85rem;
  color: #4a5568;
  white-space: nowrap;
}

.grannys-row-price {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.grannys-row-total {
  font-weight: 700;
  color: #2b6cb0;
  font-size: 1.05rem;
  white-space: nowrap;
}

.grannys-add-btn {
  background: #2b6cb0;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.grannys-add-btn:hover {
  background: #1a365d;
}

.grannys-row .product-badge {
  position: absolute;
  top: -6px;
  left: -6px;
}

@media (max-width: 600px) {
  .grannys-row {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
  }

  .grannys-row-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    width: 100%;
  }

  .grannys-row-price {
    width: 100%;
    justify-content: space-between;
  }
}
