/* Estilos globales modernos para Minir Joyas */

:root {
  /* Paleta base (oscuro por defecto) */
  --color-bg: #0f1115;
  --color-surface: #171a21;
  --color-bg-soft: #15171d;
  --color-card: var(--color-surface);
  --color-text: #f5f7fa;
  --color-muted: #a9afbb;
  --color-primary: #c0892f;
  --color-primary-contrast: #ffffff;
  --color-border: #252a33;

  /* Utilidades */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 6px 14px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.28);
}

:root[data-theme="light"],
[data-theme="light"] {
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-bg-soft: #ffffff;
  --color-card: #ffffff;
  --color-text: #1f2937;
  --color-muted: #475569;
  --color-primary: #b07921;
  --color-primary-contrast: #ffffff;
  --color-border: #e5e7eb;
}

/* Layout base */
body {
  background: var(--color-bg);
  color: var(--color-text);
}

.placeholder-light::placeholder {
  color: var(--color-muted);
  opacity: 0.8;
}

/* Navbar compacto y responsivo */
.navbar {
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.navbar .nav-link {
  padding: 0.5rem 0.75rem;
  color: var(--color-text);
}
.navbar .nav-link:hover {
  color: var(--color-primary);
}
.navbar-brand {
  color: var(--color-text);
}
.navbar .dropdown-menu {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.navbar .dropdown-item {
  color: var(--color-text);
}
.navbar .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Offcanvas móvil */
.offcanvas-modern {
  background: var(--color-surface);
  color: var(--color-text);
  border-left: 1px solid var(--color-border);
}
.offcanvas-modern .offcanvas-header {
  border-bottom: 1px solid var(--color-border);
}
.offcanvas-modern .nav-link {
  color: var(--color-text);
}

/* Buscador header */
.header-search {
  max-width: 360px;
}
.header-search input {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

/* Botón de tema compacto */
.theme-toggle {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.6rem;
  box-shadow: var(--shadow-sm);
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Badge contador */
.badge-pill {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border-radius: 999px;
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
}

/* Card moderna */
.card-modern {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}
.card-modern .card-body {
  padding: 1rem;
}
.card-modern .card-title {
  font-weight: 600;
}
.card-modern .price {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}
.card-modern .price .old {
  color: var(--color-muted);
  text-decoration: line-through;
}
.card-modern .price .new {
  color: var(--color-primary);
  font-weight: 700;
}
.card-modern img {
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}
.rounded-xl {
  border-radius: var(--radius-lg) !important;
}

/* Botones principales */
.btn-primary-modern {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}
.btn-primary-modern:hover {
  filter: brightness(0.95);
}
.btn-outline-modern {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
  border-radius: var(--radius-md);
}
.btn-outline-modern:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Filtros tipo pills */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-pill {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}
.filter-pill.active {
  border-color: var(--color-primary);
  background: rgba(192, 137, 47, 0.12);
}

/* Grilla de productos responsiva */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Formulario moderno */
.form-modern .form-control {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-md);
}
.form-modern .form-control:focus {
  box-shadow: 0 0 0 4px rgba(244, 180, 26, 0.2);
  border-color: var(--color-primary);
}
.form-modern .form-label {
  color: var(--color-muted);
}
/* Selects dentro de form-modern */
.form-modern .form-select {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-md);
}
.form-modern .form-select:focus {
  box-shadow: 0 0 0 4px rgba(244, 180, 26, 0.2);
  border-color: var(--color-primary);
}

/* Secciones informativas */
.section {
  padding: 2rem 0;
}
.section .section-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section .section-subtitle {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.footer-link {
  color: var(--color-text);
  opacity: 0.8;
}
.footer-link:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* Toast mensajes */
.toast-modern {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.toast-modern .toast-header {
  background: transparent;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}

/* Utilidades */
.max-w-800 {
  max-width: 800px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 1rem;
}
.text-muted-modern {
  color: var(--color-muted) !important;
}
.text-primary-modern {
  color: var(--color-primary) !important;
}

/* Tabla moderna (carrito, detalles) */
.table-modern {
  width: 100%;
  border-collapse: collapse;
}
.table-modern thead {
  background: var(--color-surface);
}
.table-modern th,
.table-modern td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.table-modern tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}
.table-modern .text-white {
  color: var(--color-text) !important;
}

/* Toolbar Admin */
.admin-toolbar {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

/* Badges de estado */
.badge-status {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
}
.badge-pending {
  background: rgba(255, 193, 7, 0.18);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.35);
}
.badge-completed {
  background: rgba(30, 166, 114, 0.18);
  color: #1ea672;
  border: 1px solid rgba(30, 166, 114, 0.35);
}
.badge-cancelled {
  background: rgba(229, 83, 83, 0.18);
  color: #e55353;
  border: 1px solid rgba(229, 83, 83, 0.35);
}

/* Botón peligro moderno */
.btn-danger-modern {
  background: #e55353;
  color: #ffffff;
  border: 1px solid #e24b4b;
}
.btn-danger-modern:hover {
  filter: brightness(1.05);
  box-shadow: var(--shadow-sm);
}

/* Carrito */
.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.qty-pill {
  display: inline-block;
  min-width: 40px;
  text-align: center;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
}
.qty-controls .btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-controls .btn:hover {
  box-shadow: var(--shadow-sm);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}
.summary-line.total {
  font-weight: 800;
  color: var(--color-primary);
}
.discount-banner {
  color: #1ea672;
  font-weight: 700;
}

/* Título de página */
.page-title {
  color: var(--color-text);
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Imagen de tarjeta de producto: alturas responsivas */
.product-card-img {
  height: 180px;
  object-fit: cover;
}
@media (min-width: 576px) {
  .product-card-img {
    height: 200px;
  }
}
@media (min-width: 768px) {
  .product-card-img {
    height: 220px;
  }
}
@media (min-width: 992px) {
  .product-card-img {
    height: 260px;
  }
}

/* Wishlist botón */
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(192, 137, 47, 0.18);
  color: #ff4d6d;
  border: 1px solid rgba(192, 137, 47, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

/* Overlay de detalles (global) */
.details-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.details-overlay .details-btn {
  background: #ffffff;
  color: #111;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 12px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.wishlist-btn:hover {
  transform: scale(1.05);
  background: rgba(192, 137, 47, 0.28);
}
.wishlist-btn.active {
  background: #ff4d6d;
  color: #ffffff;
  border-color: #ff4d6d;
}

/* Home - Slider de Información */
.swiper-container-informations {
  position: relative;
}
.swiper-container-informations .swiper-slide .d-flex {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  min-height: 140px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.swiper-button-next-information,
.swiper-button-prev-information {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.swiper-button-next-information {
  right: 12px;
}
.swiper-button-prev-information {
  left: 12px;
}
.swiper-button-next-information:hover,
.swiper-button-prev-information:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.03);
}
@media (max-width: 576px) {
  .swiper-button-next-information,
  .swiper-button-prev-information {
    width: 36px;
    height: 36px;
  }
}

/* Ajustes claros de Bootstrap bajo tema claro */
[data-theme="light"] .bg-dark {
  background-color: #ffffff !important;
}
[data-theme="light"] .text-light {
  color: #1f2937 !important;
}
[data-theme="light"] .navbar {
  background: #ffffff !important;
}

/* Variables de tema */
:root {
  --color-bg: #0f1115;
  --color-bg-soft: #161a22;
  --color-text: #f7f7f7;
  --color-muted: #c8c8c8;
  --color-primary: #ffc107;
  --color-primary-contrast: #1a1a1a;
  --color-danger: #e55353;
  /* En modo oscuro, las tarjetas/superficies deben ser oscuras */
  --color-card: var(--color-surface);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --radius: 14px;
}

:root[data-theme="light"] {
  --color-bg: #f8f9fb;
  --color-bg-soft: #ffffff;
  --color-text: #1f2937;
  --color-muted: #475569;
  --color-primary: #c0892f;
  --color-danger: #e55353;
  --color-primary-contrast: #ffffff;
  --color-card: #ffffff;
}

html,
body {
  background: var(--color-bg);
  color: var(--color-text);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text) !important;
}

/* Corrige componentes Bootstrap en tema claro */
[data-theme="light"] .bg-dark {
  background-color: #ffffff !important;
}
[data-theme="light"] .text-light {
  color: #1f2937 !important;
}
[data-theme="light"] .navbar {
  background: #ffffff !important;
}

/* Navbar mejorada */
.navbar {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), transparent);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar-brand span {
  letter-spacing: 0.4px;
}
.navbar .nav-link {
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.navbar .nav-link:hover {
  color: var(--color-primary) !important;
  opacity: 0.85;
}

/* Banners */
#promo-banner {
  background: linear-gradient(90deg, #ffc107, #ffd35f);
  color: #1a1a1a;
}

/* Buscador en header */
.header-search {
  max-width: 360px;
}
.header-search input {
  background: var(--color-bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text);
}
.header-search input::placeholder {
  color: var(--color-muted);
}

/* Toggle de tema */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--color-bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text);
}

/* Tarjetas modernas */
.card-modern {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

/* Botones primarios */
.btn-primary-modern {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border: none;
  font-weight: 700;
}
.btn-primary-modern:hover {
  filter: brightness(0.9);
}

/* Wishlist */
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 193, 7, 0.15);
  color: #ff4d6d;
  border: 1px solid rgba(255, 193, 7, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.wishlist-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 193, 7, 0.25);
}
.wishlist-btn.active {
  background: #ff4d6d;
  color: white;
  border-color: #ff4d6d;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-link {
  color: var(--color-text);
  opacity: 0.8;
}
.footer-link:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* Utilidades */
.rounded-xl {
  border-radius: var(--radius);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.text-muted-soft {
  color: var(--color-muted);
}

.swiper-wrapper {
  gap: 5px;
}

/* =====================
   Modals (global)
   ===================== */
/* Backdrop más tenue en todos los modals */
.modal-backdrop.show {
  opacity: 0.25;
}

/* Espaciado superior para modals no centrados */
.modal-dialog {
  margin-top: 8vh;
}

.modal-content {
  background: var(--color-card, var(--color-bg)) !important;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.12)) !important;
  border-radius: var(--radius, 14px) !important;
  box-shadow: var(--shadow-md) !important;
  overflow: hidden;
}

.modal-header {
  background: var(--color-bg-soft, #161a22) !important;
  border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.12)) !important;
  color: var(--color-text) !important;
  padding: 14px 18px !important;
}

.modal-title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.modal-body {
  padding: 18px !important;
}

/* Mejorar contraste de textos auxiliares dentro del modal en modo oscuro */
.modal-body .text-muted,
.modal-body .price-note {
  color: var(--color-muted) !important;
}

.modal-footer {
  border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.12)) !important;
  padding: 12px 18px !important;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-body .form-control,
.modal-body .form-select,
.modal-body input[type="file"] {
  background: var(--color-bg-soft, #161a22) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.12)) !important;
  border-radius: var(--radius, 14px) !important;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25) !important;
  border-color: rgba(255, 193, 7, 0.6) !important;
}

/* Close button: mejor contraste en tema oscuro */
:root:not([data-theme="light"]) .btn-close {
  filter: invert(1) opacity(0.8);
}

/* =====================
   Checkout Page Styles
   ===================== */
.checkout-wrapper .checkout-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Asegurar caja y ancho en módulo de checkout */
.checkout-wrapper *,
.checkout-wrapper *::before,
.checkout-wrapper *::after {
  box-sizing: border-box;
}

.checkout-card,
.payment-option,
.checkout-summary {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  .checkout-wrapper .checkout-container {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }
}

.checkout-card {
  background: var(--color-card, var(--color-bg));
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow-md);
  padding: 20px;
}

/* Payment options */
.payment-option {
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius, 14px);
  padding: 14px 12px;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
  background: var(--color-bg-soft, #161a22);
}

.payment-option + .payment-option {
  margin-top: 12px;
}

.payment-option:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong, rgba(255, 255, 255, 0.22));
}

.payment-option.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.payment-option__body {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
}

.payment-option__icon {
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  font-size: 20px;
}

.payment-option__info h6 {
  margin: 0;
}

.payment-option__action .btn {
  white-space: nowrap;
}

/* Summary */
.checkout-summary {
  position: sticky;
  top: 24px;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border, rgba(255, 255, 255, 0.12));
}

.summary-item:last-child {
  border-bottom: 0;
}

.summary-item__title {
  display: block;
  font-weight: 600;
}

.summary-item__meta {
  display: block;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.summary-item__total {
  font-weight: 700;
}

.summary-totals {
  margin: 0 0 10px;
}

.summary-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 4px 0;
}

/* Evitar desbordes de texto en mobile/tablet */
.checkout-wrapper .summary-item__title,
.checkout-wrapper .summary-item__meta,
.checkout-wrapper .summary-row dt,
.checkout-wrapper .summary-row dd {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.summary-row--discount dd {
  color: #15b376;
}

.summary-row--total dt,
.summary-row--total dd {
  font-weight: 800;
  font-size: 1.05rem;
}

/* Responsive adjustments for Checkout */
@media (max-width: 991.98px) {
  .checkout-card {
    padding: 16px;
  }

  /* Ajustes generales en mobile */
  .checkout-wrapper .checkout-container {
    gap: 16px;
    align-items: stretch;
  }

  .page-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  /* Disable sticky summary on small screens */
  .checkout-summary {
    position: static;
    top: auto;
  }

  /* Evitar scroll horizontal en móviles por contenidos largos */
  .checkout-wrapper {
    overflow-x: hidden;
  }

  /* Stack payment option button below info */
  .checkout-wrapper .payment-option__body {
    grid-template-columns: 40px 1fr !important;
    grid-template-areas:
      "icon info"
      "action action" !important;
    row-gap: 10px !important;
    align-items: start !important;
  }
  .checkout-wrapper .payment-option__icon {
    grid-area: icon !important;
  }
  .checkout-wrapper .payment-option__info {
    grid-area: info !important;
  }
  .checkout-wrapper .payment-option__action {
    grid-area: action !important;
    width: 100% !important;
    justify-self: stretch !important;
  }
  .checkout-wrapper .payment-option__action form {
    width: 100% !important;
  }
  .checkout-wrapper .payment-option__action .btn {
    display: block !important;
    width: 100% !important;
  }

  .payment-option,
  .summary-items,
  .alert {
    max-width: 100%;
  }

  /* Compact summary items */
  .summary-item {
    gap: 8px;
    padding: 8px 0;
  }
  .summary-item__title {
    font-size: 0.95rem;
  }
  .summary-item__meta {
    font-size: 0.9rem;
  }

  .summary-row--total dt,
  .summary-row--total dd {
    font-size: 1rem;
  }

  .summary-totals {
    display: grid;
    gap: 6px;
  }

  .payment-option__info h6 {
    font-size: 1rem;
  }
  .payment-option__info p {
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .checkout-card {
    padding: 12px;
  }
  .payment-option__icon {
    height: 36px;
    width: 36px;
    font-size: 18px;
  }
  .summary-item__title {
    font-size: 0.93rem;
  }
  .summary-item__meta {
    font-size: 0.85rem;
  }
}
