/* ============================================
   TEPIS Store — Components
   ============================================ */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e0a900);
  color: #0b224e;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(255, 210, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #f2ba00);
  box-shadow: 0 4px 20px rgba(255, 210, 0, 0.5);
  transform: translateY(-1px);
  color: #0b224e;
}

.btn-secondary {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: var(--text-base);
}

.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-color-hover);
}

.card-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* ---- Product Card ---- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), 0 12px 30px rgba(8, 23, 54, 0.1);
}

.product-card .product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card .product-image .no-image {
  font-size: 3rem;
  color: var(--text-muted);
}

.product-card .product-info {
  padding: var(--space-4);
  background: #ffffff;
}

.product-card .product-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  height: 2.8em;
}

.product-card .product-category {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.product-card .product-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.product-card .price-current {
  font-size: var(--text-lg);
  font-weight: 800;
  color: #081736;
  font-family: var(--font-heading);
}

.product-card .price-compare {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.badge-promo {
  background: var(--promo-light);
  color: var(--promo);
}

.badge-preorder {
  background: var(--accent);
  color: #081736;
  border: 1px solid rgba(8, 23, 54, 0.1);
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-info {
  background: var(--info-light);
  color: var(--info);
}

.badge-neutral {
  background: var(--bg-glass-strong);
  color: var(--text-secondary);
}

/* Floating badge on product card */
.product-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  z-index: 2;
}

/* ---- Forms ---- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: var(--bg-input-focus);
  border-color: var(--border-color-focus);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-select-white {
  background-color: #ffffff !important;
  color: #081736 !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 600 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23081736' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.form-select-white option {
  background-color: #ffffff !important;
  color: #081736 !important;
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--danger);
  margin-top: var(--space-1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

/* ---- Tables ---- */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--bg-glass);
}

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn var(--transition-fast) ease;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeInUp var(--transition-base) ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: var(--text-lg);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-glass);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-lg);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-color);
}

/* ---- Toast ---- */
.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid;
  animation: slideInRight var(--transition-base) ease;
  pointer-events: auto;
  max-width: 380px;
}

.toast-success {
  background: var(--success-light);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.toast-error {
  background: var(--danger-light);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.toast-warning {
  background: var(--warning-light);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--warning);
}

.toast-info {
  background: var(--info-light);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--info);
}

/* ---- Skeleton Loading ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-glass-strong) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-2);
}

.skeleton-image {
  height: 220px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

/* ---- Status Timeline ---- */
.status-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: var(--space-4) 0;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.status-step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
}

.status-step:last-child::after {
  display: none;
}

.status-step.active::after {
  background: var(--accent);
}

.status-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-glass-strong);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  z-index: 1;
  transition: all var(--transition-base);
}

.status-step.active .status-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 12px var(--accent-glow);
}

.status-step.completed .status-dot {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.status-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
  text-align: center;
}

.status-step.active .status-label,
.status-step.completed .status-label {
  color: var(--text-secondary);
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.pagination .page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.pagination .page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination .page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ---- Tabs ---- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-6);
}

.tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn var(--transition-base) ease;
}

/* ---- Countdown ---- */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-heading);
}

.countdown.urgent {
  color: var(--danger);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-glass-strong);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  min-width: 40px;
}

.countdown-unit .number {
  font-size: var(--text-lg);
  font-weight: 700;
}

.countdown-unit .label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Stat Card ---- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  backdrop-filter: var(--glass-blur);
}

.stat-card .stat-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.stat-card .stat-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.stat-card .stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* ---- Loading Spinner ---- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
}

/* ---- Search Bar ---- */
.search-bar {
  position: relative;
}

.search-bar .search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--text-base);
  pointer-events: none;
}

.search-bar .form-input {
  padding-left: 2.8rem;
}

/* ---- Toggle Switch ---- */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-glass-strong);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.toggle input:checked + .toggle-slider {
  background: var(--accent-light);
  border-color: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--accent);
}

/* ---- Floating WhatsApp Button ---- */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-spring);
  cursor: pointer;
}

.whatsapp-float-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-float-btn svg {
  width: 30px;
  height: 30px;
}

/* ---- Mobile Bottom Sticky Nav ---- */
.mobile-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 15px rgba(8, 23, 54, 0.08);
  display: none;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 998;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  gap: 3px;
  transition: all var(--transition-fast);
  width: 20%;
  text-align: center;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: #081736;
}

@media (max-width: 768px) {
  .mobile-nav-bar {
    display: flex;
  }
  body {
    padding-bottom: 60px; /* Evita que la barra tape contenido inferior */
  }
  .whatsapp-float-btn {
    bottom: 80px; /* Desplaza el botón flotante sobre la barra móvil */
    width: 48px;
    height: 48px;
  }
  .whatsapp-float-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* ---- Cart Item Component ---- */
.cart-item-card {
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast);
}

.cart-item-card:hover {
  border-color: var(--accent);
}

.cart-item-main {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.cart-item-img {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 2px;
  word-break: break-word;
}

.cart-item-unit-price {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.cart-item-discount {
  font-size: var(--text-sm);
  color: var(--success);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.qty-count {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
}

.cart-item-subtotal {
  min-width: 85px;
  text-align: right;
}

.subtotal-label {
  display: none;
}

.cart-item-remove-desktop {
  display: inline-flex;
}

.cart-item-remove-mobile {
  display: none;
}

.cart-summary-card {
  position: sticky;
  top: 80px;
}

@media (max-width: 768px) {
  .cart-summary-card {
    position: static;
  }
}

@media (max-width: 639px) {
  .cart-item-card {
    padding: var(--space-3.5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .cart-item-main {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    position: relative;
  }

  .cart-item-img {
    width: 64px;
    height: 64px;
  }

  .cart-item-info {
    padding-right: 32px; /* Espacio para que no se empalme con el botón eliminar */
  }

  .cart-item-title {
    font-size: var(--text-sm);
    line-height: 1.35;
  }

  .cart-item-unit-price {
    font-size: 0.8rem;
  }

  .cart-item-discount {
    font-size: 0.78rem;
  }

  .cart-item-remove-desktop {
    display: none !important;
  }

  .cart-item-remove-mobile {
    display: inline-flex !important;
    position: absolute;
    top: -2px;
    right: -2px;
  }

  .cart-item-actions {
    width: 100%;
    justify-content: space-between;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-color);
  }

  .cart-item-qty {
    gap: 6px;
  }

  .qty-count {
    min-width: 24px;
    font-size: 0.88rem;
  }

  .cart-item-subtotal {
    min-width: auto;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .subtotal-label {
    display: inline;
    font-size: 0.75rem;
    color: var(--text-muted);
  }

  .subtotal-price {
    font-size: 0.95rem;
  }
}

/* ---- Free Shipping Banner & Progress ---- */
.free-shipping-banner {
  background: rgba(8, 23, 54, 0.7);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  backdrop-filter: blur(8px);
}

.free-shipping-info {
  font-size: var(--text-xs);
  color: #ffffff;
  margin-bottom: 6px;
  text-align: center;
}

.free-shipping-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.free-shipping-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease, background-color 0.3s ease;
}

/* ---- Delivery Option Selector ---- */
.delivery-type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.delivery-option.active {
  border-color: var(--accent);
  background: rgba(255, 210, 0, 0.1);
}

.delivery-option input[type="radio"] {
  accent-color: var(--accent);
  cursor: pointer;
}

.delivery-option-text {
  display: flex;
  flex-direction: column;
}

/* ---- Penguin Pesos (Cashback & Store Credit) Card ---- */
.penguin-pesos-card {
  background: linear-gradient(135deg, rgba(255, 210, 0, 0.12) 0%, rgba(8, 23, 54, 0.5) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.cashback-badge-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.cashback-badge-text {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

#shipping-rates-container,
#cart-summary,
.cart-summary-card {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ---- Nav Penguin Pesos Badge ---- */
.nav-pesos-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--accent);
  color: #081736;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 5px;
  box-shadow: 0 2px 6px rgba(255, 210, 0, 0.3);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

@media (min-width: 769px) {
  .nav-pesos-badge {
    display: none !important;
  }
}


