/* ==========================================================================
   shop.css - Carrusel Hero, Sticky Category Bar, Carta, Modal Producto y Carrito
   ========================================================================== */

/* Identidad de Marca (Eslogan) + Badge de Horario Inteligente */
.brand-welcome-bar {
  padding: 16px 0 2px;
}

.brand-welcome-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
}

.brand-slogan {
  min-width: 0;
}

.brand-slogan-title {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin: 0;
  font-family: var(--font-handwritten);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--text-main);
}

/* Trazo/pincelada sutil en tonos amarillo-naranja de marca, detrás del texto */
.brand-slogan-title::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -6px;
  right: -10px;
  bottom: 4px;
  height: 0.42em;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-stroke-from), var(--brand-stroke-to));
  transform: rotate(-1.4deg) skewX(-14deg);
}

.brand-slogan-sub {
  margin: 2px 0 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.brand-slogan-sub .brand-slogan-brand {
  font-family: var(--font-marker);
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  color: var(--color-primary);
}

/* Píldora de estado de atención (horario inteligente calculado por JS) */
.brand-schedule-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: 100%;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.brand-schedule-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background-color: var(--text-muted);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-schedule-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.brand-schedule-badge.is-open .brand-schedule-dot {
  background-color: var(--color-success);
  box-shadow: 0 0 0 3px var(--color-success-bg);
}

.brand-schedule-badge.is-open .brand-schedule-icon {
  color: var(--color-success);
}

.brand-schedule-badge.is-closed .brand-schedule-dot {
  background-color: var(--color-danger);
  box-shadow: 0 0 0 3px var(--color-danger-bg);
}

.brand-schedule-badge.is-closed .brand-schedule-icon {
  color: var(--color-danger);
}

.brand-schedule-badge.is-paused .brand-schedule-dot {
  background-color: var(--color-warning);
  box-shadow: 0 0 0 3px var(--color-warning-bg);
}

.brand-schedule-badge.is-paused .brand-schedule-icon {
  color: var(--color-warning);
}

/* Móviles pequeños: la píldora no debe desbordar */
@media (max-width: 480px) {
  .brand-schedule-badge {
    padding: 7px 12px;
    font-size: 0.78rem;
    white-space: normal;
  }
}

/* Hero Carousel */
.hero-section {
  padding: 14px 0 8px;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 22px 0 12px;
  }
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.hero-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide {
  min-width: 100%;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 24px 18px 54px;
  background-size: cover;
  background-position: center;
}

@media (min-width: 640px) {
  .hero-slide {
    min-height: 350px;
    padding: 36px 36px 52px;
  }
}

@media (min-width: 768px) {
  .hero-slide {
    min-height: 390px;
    padding: 44px 60px;
  }
}

@media (min-width: 1024px) {
  .hero-slide {
    min-height: 420px;
    padding: 52px 68px;
  }
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 18, 0.35) 0%,
    rgba(15, 15, 18, 0.78) 52%,
    rgba(15, 15, 18, 0.96) 100%
  );
}

@media (min-width: 768px) {
  .hero-slide::before {
    background: linear-gradient(
      90deg,
      rgba(15, 15, 18, 0.94) 0%,
      rgba(15, 15, 18, 0.74) 55%,
      rgba(15, 15, 18, 0.25) 100%
    );
  }
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  color: #FFFFFF;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-red);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.hero-slide-title {
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-slide-desc {
  font-size: 0.92rem;
  color: #D4D4D8;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.hero-price-box {
  display: flex;
  flex-direction: column;
}

.hero-old-price {
  font-size: 0.82rem;
  color: #A1A1AA;
  text-decoration: line-through;
}

.hero-current-price {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  color: var(--color-accent-red);
}

.hero-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .hero-controls {
    left: auto;
    right: 24px;
    bottom: 20px;
    transform: none;
  }
}

.hero-nav-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(15, 15, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.hero-nav-btn:hover {
  background-color: var(--color-primary);
}

.hero-nav-prev {
  left: 14px;
}

.hero-nav-next {
  right: 14px;
}

@media (min-width: 768px) {
  .hero-nav-btn {
    display: inline-flex;
  }
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.35);
  transition: all var(--transition-fast);
}

.hero-dot.active {
  width: 24px;
  background-color: var(--color-primary);
}

/* Barra Horizontal de Categorías Sticky + Buscador en Tiempo Real */
.sticky-catalog-bar {
  position: sticky;
  top: var(--header-height, 69px);
  z-index: 90;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .sticky-catalog-bar {
    padding: 12px 0;
  }
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

@media (min-width: 900px) {
  .catalog-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}

.search-box {
  position: relative;
  width: 100%;
  min-width: 0;
}

@media (min-width: 900px) {
  .catalog-toolbar .search-box {
    flex: 0 0 320px;
    width: 320px;
  }
}

@media (min-width: 1140px) {
  .catalog-toolbar .search-box {
    flex: 0 0 360px;
    width: 360px;
  }
}

.search-box .material-symbols-rounded {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 20px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-width: 0;
  padding: 9px 14px 9px 42px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus,
.search-input:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 76, 34, 0.18);
}

/* Contenedor de categorías con flechas de desplazamiento laterales */
.category-pills-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.category-pills-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 3px 2px;
}

.category-pills-scroll::-webkit-scrollbar {
  display: none;
}

/* Degradado lateral sutil (mask): solo cuando hay desbordamiento hacia ese lado */
.category-pills-scroll.can-scroll-left {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px);
}

.category-pills-scroll.can-scroll-right {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent 100%);
}

.category-pills-scroll.can-scroll-left.can-scroll-right {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

/* Flechas circulares compactas (iconos SVG estilo Lucide, sin emojis) */
.pills-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast), opacity var(--transition-fast);
}

.pills-arrow:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pills-arrow:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.pills-arrow:active:not(:disabled) {
  transform: scale(0.94);
}

.pills-arrow.is-disabled,
.pills-arrow:disabled {
  opacity: 0.32;
  cursor: default;
  pointer-events: none;
}

.pills-arrow[hidden] {
  display: none;
}

.pills-arrow svg {
  display: block;
}

@media (max-width: 479px) {
  .category-pills-wrap {
    gap: 6px;
  }

  .pills-arrow {
    width: 28px;
    height: 28px;
  }
}

.category-pill {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.category-pill:hover,
.category-pill.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
}

.category-pill:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Secciones de la Carta y Grilla de Productos */
.catalog-container {
  padding-top: 20px;
  padding-bottom: 56px;
}

@media (min-width: 768px) {
  .catalog-container {
    padding-top: 28px;
    padding-bottom: 64px;
  }
}

.category-section {
  margin-bottom: 36px;
  scroll-margin-top: var(--sticky-scroll-offset, 148px);
}

.category-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.category-title {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 960px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1280px) {
  .products-grid {
    gap: 22px;
  }
}

.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  min-width: 0;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

@media (min-width: 560px) {
  .product-card {
    flex-direction: column;
  }
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.product-card.sold-out {
  opacity: 0.6;
}

.product-thumb-wrap {
  position: relative;
  width: 112px;
  min-height: 122px;
  flex-shrink: 0;
  background-color: var(--bg-elevated);
}

@media (min-width: 420px) {
  .product-thumb-wrap {
    width: 130px;
    min-height: 132px;
  }
}

@media (min-width: 560px) {
  .product-thumb-wrap {
    width: 100%;
    height: 195px;
    min-height: 0;
  }
}

@media (min-width: 1024px) {
  .product-thumb-wrap {
    height: 210px;
  }
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-red);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 559px) {
  .product-card-badge {
    top: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
    padding: 2px 7px;
    font-size: 0.64rem;
  }
}

.product-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

@media (min-width: 420px) {
  .product-card-body {
    padding: 14px;
  }
}

@media (min-width: 768px) {
  .product-card-body {
    padding: 16px;
  }
}

.product-title {
  font-size: clamp(0.94rem, 2vw, 1.04rem);
  font-weight: 700;
  margin-bottom: 5px;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.product-price-wrap {
  display: flex;
  flex-direction: column;
}

.product-old-price {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-red);
}

.btn-add-card {
  padding: 7px 12px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background-color var(--transition-fast);
}

@media (max-width: 379px) {
  .product-thumb-wrap {
    width: 98px;
    min-height: 116px;
  }

  .btn-add-card {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

.btn-add-card:hover {
  background-color: var(--color-primary-hover);
}

.btn-add-card:focus-visible,
.hero-nav-btn:focus-visible,
.hero-dot:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Estados de carga (skeleton) y estado vacío de búsqueda */
.catalog-skeleton-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .catalog-skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 960px) {
  .catalog-skeleton-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.skeleton-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  height: 124px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 560px) {
  .skeleton-card {
    height: 310px;
  }
}

.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: catalog-skeleton-shimmer 1.3s ease-in-out infinite;
}

[data-theme="light"] .skeleton-card::after {
  background: linear-gradient(90deg, transparent, rgba(16, 36, 30, 0.06), transparent);
}

@keyframes catalog-skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-card::after {
    animation: none;
  }
}

.catalog-empty-state {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.catalog-empty-state .material-symbols-rounded {
  font-size: 44px;
  color: var(--color-primary);
}

.catalog-empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 440px;
  margin-bottom: 6px;
}

/* ==========================================================================
   Modal de Personalización de Producto
   ========================================================================== */
.product-modal-hero {
  position: relative;
  height: clamp(140px, 24dvh, 220px);
  background-color: var(--bg-elevated);
  flex-shrink: 0;
}

.product-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-floating {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(15, 15, 18, 0.78);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

@media (max-width: 479px) {
  .product-modal-body {
    padding: 16px;
  }
}

.product-modal-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
}

.product-modal-title-row h3 {
  min-width: 0;
  flex: 1 1 180px;
}

.product-modal-title-row .price-text {
  flex-shrink: 0;
}

.option-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.option-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 10px;
}

.option-section-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.option-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background-color: var(--bg-elevated);
  color: var(--text-muted);
  white-space: nowrap;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.option-row:hover {
  border-color: var(--color-primary);
}

.option-row input {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.option-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  min-width: 0;
  flex: 1;
}

.option-row-price {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-red);
  flex-shrink: 0;
  white-space: nowrap;
}

.product-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Contenedor de los dos botones de acción */
.product-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.product-modal-action-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 479px) {
  .product-modal-footer {
    padding: 12px 16px;
    gap: 10px;
  }
}

/* En pantallas pequeñas: qty arriba, botones apilados abajo a ancho completo sin truncar texto */
@media (max-width: 430px) {
  .product-modal-footer {
    flex-wrap: wrap;
  }

  .qty-selector {
    width: 100%;
    justify-content: center;
  }

  .product-modal-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .product-modal-action-btn {
    width: 100%;
  }
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.qty-selector button {
  width: 38px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.qty-selector button:hover {
  color: var(--color-primary);
}

.qty-selector span {
  min-width: 30px;
  text-align: center;
  font-weight: 700;
}

/* ==========================================================================
   Drawer de Carrito
   ========================================================================== */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-card {
  padding: 12px;
  border-radius: var(--radius-md);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.cart-item-top > div {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.btn-remove-cart-item {
  flex-shrink: 0;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.92rem;
}

.cart-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-item-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-color);
}

.cart-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.cart-summary-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  font-weight: 800;
  margin: 10px 0 14px;
  color: var(--text-red);
}
