/**
 * Sapitos Coloritos Catálogo V2 - Main Stylesheet (FASE 3 - CONFIGURACIÓN GLOBAL)
 * 
 * SCOPING STRICTLY ENCAPSULATED WITHIN .scc-catalog-root
 * NO GLOBAL :root POLLUTION TO PREVENT LEAKS IN DIVI & WORDPRESS.
 */

.scc-catalog-root,
.scc-block-root {
  /* ==========================================================================
     1. COLOR PALETTE (Variables CSS Aisladas con Valores Predeterminados)
     ========================================================================== */
  --scc-bg-page: #faf7f2;          /* Fondo cálido principal del catálogo */
  --scc-bg-card: #ffffff;          /* Fondo de tarjetas y paneles */
  --scc-bg-subtle: #f4efe6;        /* Fondo secundario / controles */
  --scc-bg-hover: #ede6d8;         /* Fondo hover para elementos interactivos */
  
  --scc-text-primary: #2c2825;     /* Texto principal (Contraste AAA) */
  --scc-text-secondary: #554e48;   /* Texto secundario (Contraste AA) */
  --scc-text-muted: #766d65;       /* Texto atenuado legibilidad mejorada */

  --scc-brand-primary: #d96b43;    /* Terracota artesanal de marca (Dinamizable) */
  --scc-brand-primary-hover: #c45a33; /* Terracota oscuro hover */
  --scc-brand-secondary: #4a6b5d;  /* Verde sabio de acento (Dinamizable) */
  --scc-brand-whatsapp: #15803d;   /* Verde accesible WhatsApp (WCAG 2.1 AA >= 4.5:1) */
  --scc-brand-whatsapp-hover: #166534;

  --scc-border-color: #e5ded4;    /* Bordes sutiles y limpios */
  --scc-border-focus: var(--scc-brand-primary); /* Borde en estado enfocado */

  --scc-status-in-stock: #2e7d32;  /* Disponible */
  --scc-status-on-order: #d84315;  /* Bajo pedido */
  --scc-status-out-of-stock: #c62828; /* Agotado */

  /* ==========================================================================
     2. TYPOGRAPHY & SPACING
     ========================================================================== */
  --scc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --scc-radius-sm: 6px;
  --scc-radius-md: 10px;
  --scc-radius-lg: 14px;

  --scc-shadow-sm: 0 2px 6px rgba(44, 40, 37, 0.04);
  --scc-shadow-md: 0 4px 14px rgba(44, 40, 37, 0.08);
  --scc-shadow-lg: 0 10px 30px rgba(44, 40, 37, 0.14);

  --scc-transition-fast: 150ms ease;
  --scc-transition-normal: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset strictly within Plugin Scope */
.scc-catalog-root,
.scc-block-root {
  font-family: var(--scc-font-family);
  color: var(--scc-text-primary);
  line-height: 1.5;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

.scc-catalog-root *,
.scc-block-root * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Container Wrapper */
.scc-catalog-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px;
  background-color: var(--scc-bg-page);
  border-radius: var(--scc-radius-lg);
  border: 1px solid var(--scc-border-color);
  overflow-x: hidden; /* Evita desplazamiento horizontal de página */
}

/* Accessible Focus Rings */
.scc-catalog-root a:focus-visible,
.scc-catalog-root button:focus-visible,
.scc-catalog-root input:focus-visible,
.scc-catalog-root select:focus-visible,
.scc-block-root a:focus-visible,
.scc-block-root button:focus-visible,
.scc-block-root input:focus-visible,
.scc-block-root select:focus-visible {
  outline: 2px solid var(--scc-border-focus) !important;
  outline-offset: 2px !important;
}

/* ==========================================================================
   1. HEADER SECTION & BRAND LOGO
   ========================================================================== */
.scc-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--scc-border-color);
}

@media (min-width: 768px) {
  .scc-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.scc-header-info {
  max-width: 720px;
}

.scc-header-logo {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
  display: block;
}

.scc-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--scc-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.25;
}

.scc-subtitle {
  font-size: 0.95rem;
  color: var(--scc-text-secondary);
}

.scc-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.scc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--scc-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--scc-transition-fast), border-color var(--scc-transition-fast), transform var(--scc-transition-fast);
  text-decoration: none;
  background-color: var(--scc-bg-card);
  color: var(--scc-text-primary);
  white-space: nowrap;
}

.scc-btn-primary {
  background-color: var(--scc-brand-primary);
  color: #ffffff;
  border-color: var(--scc-brand-primary);
}

.scc-btn-primary:hover:not(:disabled) {
  background-color: var(--scc-brand-primary-hover);
  border-color: var(--scc-brand-primary-hover);
  filter: brightness(0.95);
}

.scc-btn-outline {
  background-color: transparent;
  border-color: var(--scc-border-color);
  color: var(--scc-text-primary);
}

.scc-btn-outline:hover:not(:disabled) {
  background-color: var(--scc-bg-subtle);
  border-color: var(--scc-text-secondary);
}

.scc-btn-whatsapp {
  background-color: var(--scc-brand-whatsapp);
  color: #ffffff;
  border: 1px solid #166534;
}

.scc-btn-whatsapp:hover:not(:disabled) {
  background-color: var(--scc-brand-whatsapp-hover);
  border-color: #14532d;
  color: #ffffff;
}

.scc-btn-whatsapp:focus-visible {
  outline: 3px solid #166534;
  outline-offset: 2px;
}

.scc-btn-whatsapp:active:not(:disabled) {
  background-color: #14532d;
  border-color: #14532d;
  color: #ffffff;
}

.scc-btn-whatsapp:disabled,
.scc-btn-whatsapp[disabled],
.scc-btn-whatsapp[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.scc-btn-icon-only {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scc-btn:disabled,
.scc-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* Reusable icon and SVG normalization (FASE 5C.1) */
.scc-catalog-root .scc-btn svg,
.scc-btn svg,
.scc-btn .scc-btn-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  pointer-events: none;
}

.scc-btn-icon-only svg {
  margin: auto;
  display: block;
}

.scc-icon-whatsapp {
  flex-shrink: 0;
  fill: currentColor;
}

.scc-btn-submit-order .scc-btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Cart Trigger Button */
.scc-cart-trigger {
  position: relative;
  background-color: var(--scc-bg-card);
  border: 1px solid var(--scc-border-color);
  color: var(--scc-text-primary);
  padding: 10px 16px;
  border-radius: var(--scc-radius-sm);
  font-weight: 600;
  min-height: 44px;
}

.scc-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  background-color: var(--scc-brand-primary);
  color: #ffffff;
  border-radius: 11px;
}

/* ==========================================================================
   2. TOOLBAR SECTION
   ========================================================================== */
.scc-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.scc-toolbar-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .scc-toolbar-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Buscador */
.scc-search-box {
  position: relative;
  flex: 1;
  max-width: 100%;
  display: flex;
  align-items: center;
}

@media (min-width: 640px) {
  .scc-search-box {
    max-width: 440px;
  }
}

.scc-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--scc-text-muted);
  pointer-events: none;
  z-index: 2;
  width: 18px;
  height: 18px;
  display: block;
}

.scc-search-input {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 10px 14px 10px 42px !important;
  font-size: 0.92rem;
  border: 1px solid var(--scc-border-color);
  border-radius: var(--scc-radius-sm);
  background-color: var(--scc-bg-card);
  color: var(--scc-text-primary);
  transition: border-color var(--scc-transition-fast);
}

.scc-search-input:focus {
  border-color: var(--scc-border-focus);
}

/* Controls */
.scc-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scc-select {
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.88rem;
  border: 1px solid var(--scc-border-color);
  border-radius: var(--scc-radius-sm);
  background-color: var(--scc-bg-card);
  color: var(--scc-text-primary);
  cursor: pointer;
}

.scc-results-count {
  font-size: 0.88rem;
  color: var(--scc-text-secondary);
  white-space: nowrap;
}

/* Categorías Horizontales */
.scc-categories-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.scc-categories-nav::-webkit-scrollbar {
  display: none;
}

.scc-category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  min-height: 42px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--scc-border-color);
  border-radius: 22px;
  background-color: var(--scc-bg-card);
  color: var(--scc-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--scc-transition-fast);
}

.scc-category-btn:hover {
  background-color: var(--scc-bg-subtle);
  color: var(--scc-text-primary);
}

.scc-category-btn.is-active {
  background-color: var(--scc-brand-secondary);
  color: #ffffff;
  border-color: var(--scc-brand-secondary);
}

.scc-clear-filters-btn {
  font-size: 0.85rem;
  color: var(--scc-brand-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px 10px;
  min-height: 44px;
}

/* ==========================================================================
   3. CUADRÍCULA RESPONSIVE DE PRODUCTOS
   ========================================================================== */
.scc-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 420px) {
  .scc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .scc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .scc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .scc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tarjeta de Producto */
.scc-card {
  display: flex;
  flex-direction: column;
  background-color: var(--scc-bg-card);
  border: 1px solid var(--scc-border-color);
  border-radius: var(--scc-radius-md);
  overflow: hidden;
  transition: transform var(--scc-transition-normal), box-shadow var(--scc-transition-normal);
}

.scc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--scc-shadow-md);
}

.scc-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--scc-bg-subtle);
  overflow: hidden;
}

.scc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scc-status-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--scc-radius-sm);
  background-color: #ffffff;
  color: var(--scc-text-primary);
  border: 1px solid var(--scc-border-color);
  box-shadow: var(--scc-shadow-sm);
}

.scc-status-tag.status-available,
.scc-status-tag.status-in-stock,
.scc-availability-indicator.status-available,
.scc-availability-indicator.status-in-stock,
.scc-badge.status-available,
.scc-badge.status-in-stock {
  color: var(--scc-status-in-stock);
}

.scc-status-tag.status-made-to-order,
.scc-status-tag.status-on-order,
.scc-availability-indicator.status-made-to-order,
.scc-availability-indicator.status-on-order,
.scc-badge.status-made-to-order,
.scc-badge.status-on-order {
  color: var(--scc-status-on-order);
}

.scc-status-tag.status-out-of-stock,
.scc-availability-indicator.status-out-of-stock,
.scc-badge.status-out-of-stock {
  color: var(--scc-status-out-of-stock);
}

.scc-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px;
  gap: 8px;
}

.scc-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--scc-text-primary);
  line-height: 1.35;
  height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scc-card-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.scc-price-regular {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--scc-brand-primary);
}

.scc-price-regular.has-sale {
  color: var(--scc-text-muted);
  text-decoration: line-through;
  font-size: 0.9rem;
  font-weight: 500;
}

.scc-price-sale {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--scc-brand-primary);
}

.scc-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 6px;
}

/* ==========================================================================
   4. MODAL DE PRODUCTO
   ========================================================================== */
body.admin-bar .scc-modal-backdrop,
body.admin-bar .scc-cart-drawer {
  top: 32px;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
  body.admin-bar .scc-modal-backdrop,
  body.admin-bar .scc-cart-drawer {
    top: 46px;
    height: calc(100vh - 46px);
    height: calc(100dvh - 46px);
  }
}

.scc-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(44, 40, 37, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--scc-transition-normal), visibility var(--scc-transition-normal);
}

.scc-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.scc-modal-window {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  max-height: 90dvh;
  background-color: var(--scc-bg-card);
  border-radius: var(--scc-radius-lg);
  box-shadow: var(--scc-shadow-lg);
  overflow-y: auto;
  border: 1px solid var(--scc-border-color);
  transform: translateY(12px);
  transition: transform var(--scc-transition-normal);
}

.scc-modal-backdrop.is-open .scc-modal-window {
  transform: translateY(0);
}

.scc-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--scc-border-color);
  background-color: var(--scc-bg-card);
  color: var(--scc-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background-color var(--scc-transition-fast);
}

.scc-modal-close-btn:hover {
  background-color: var(--scc-bg-subtle);
}

.scc-modal-close-btn:focus-visible {
  outline: 2px solid var(--scc-brand-primary);
  outline-offset: 2px;
}

.scc-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px;
}

@media (min-width: 768px) {
  .scc-modal-grid {
    grid-template-columns: 1fr 1fr;
    padding: 28px;
    gap: 28px;
  }
}

.scc-modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scc-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 320px;
  background-color: var(--scc-bg-subtle);
  border-radius: var(--scc-radius-md);
  overflow: hidden;
  border: 1px solid var(--scc-border-color);
}

@media (min-width: 768px) {
  .scc-gallery-main {
    max-height: 420px;
  }
}

.scc-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scc-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.scc-thumb-btn {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: var(--scc-radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--scc-bg-subtle);
  padding: 0;
}

.scc-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scc-thumb-btn.is-active {
  border-color: var(--scc-brand-primary);
}

.scc-modal-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scc-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scc-modal-sku {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--scc-text-secondary);
}

.scc-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--scc-text-primary);
  line-height: 1.28;
}

.scc-modal-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.scc-modal-desc {
  font-size: 0.93rem;
  color: #3e3833;
  line-height: 1.6;
}

.scc-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--scc-border-color);
  border-radius: var(--scc-radius-sm);
  background-color: var(--scc-bg-card);
  overflow: hidden;
  width: fit-content;
  min-height: 44px;
}

.scc-qty-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background-color: transparent;
  color: var(--scc-text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scc-qty-btn:hover {
  background-color: var(--scc-bg-subtle);
}

.scc-qty-input {
  width: 48px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--scc-text-primary);
  -moz-appearance: textfield;
}

.scc-qty-input::-webkit-outer-spin-button,
.scc-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.scc-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

@media (min-width: 600px) {
  .scc-modal-actions {
    flex-direction: row;
  }
  .scc-modal-actions .scc-btn {
    flex: 1;
    min-height: 48px;
  }
}

/* ==========================================================================
   5. PANEL CARRITO LATERAL (DRAWER)
   ========================================================================== */
.scc-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 999999;
  visibility: hidden;
  transition: visibility var(--scc-transition-normal);
}

.scc-cart-drawer.is-open {
  visibility: visible;
}

.scc-cart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 40, 37, 0.6);
  opacity: 0;
  transition: opacity var(--scc-transition-normal);
}

.scc-cart-drawer.is-open .scc-cart-overlay {
  opacity: 1;
}

.scc-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 460px;
  height: 100%;
  background-color: var(--scc-bg-card);
  box-shadow: var(--scc-shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--scc-transition-normal);
}

@media (max-width: 599px) {
  .scc-cart-panel {
    max-width: 100%;
  }
}

.scc-cart-drawer.is-open .scc-cart-panel {
  transform: translateX(0);
}

.scc-cart-header {
  padding: 16px 20px;
  min-height: 64px;
  border-bottom: 1px solid var(--scc-border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--scc-bg-card);
  position: sticky;
  top: 0;
  z-index: 10;
}

.scc-cart-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--scc-text-primary);
  margin: 0;
  line-height: 1.3;
}

.scc-cart-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--scc-radius-sm);
  border: 1px solid var(--scc-border-color);
  background-color: var(--scc-bg-card);
  color: var(--scc-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: background-color var(--scc-transition-fast);
}

.scc-cart-close:hover {
  background-color: var(--scc-bg-subtle);
}

.scc-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scc-cart-empty {
  text-align: center;
  padding: 48px 10px;
  color: var(--scc-text-muted);
}

.scc-cart-empty-icon {
  margin-bottom: 12px;
  color: var(--scc-text-muted);
}

.scc-cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--scc-border-color);
}

.scc-cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--scc-radius-sm);
  object-fit: cover;
  background-color: var(--scc-bg-subtle);
  border: 1px solid var(--scc-border-color);
}

.scc-cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scc-cart-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--scc-text-primary);
  line-height: 1.3;
}

.scc-cart-item-price {
  font-size: 0.85rem;
  color: var(--scc-brand-primary);
  font-weight: 600;
}

.scc-cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.scc-cart-remove-btn {
  background: none;
  border: 1px solid transparent;
  color: #9e2a2b;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 4px 8px;
  min-height: 36px;
  border-radius: 4px;
  transition: all var(--scc-transition-fast);
}

.scc-cart-remove-btn:hover,
.scc-cart-remove-btn:focus-visible {
  background-color: #fdf2f2;
  border-color: #f5c6cb;
}

.scc-cart-footer {
  padding: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--scc-border-color);
  background-color: var(--scc-bg-page);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scc-cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--scc-text-secondary);
}

.scc-cart-total-row {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--scc-text-primary);
}

/* ==========================================================================
   6. ESTADOS Y NOTIFICACIONES
   ========================================================================== */
.scc-empty-state {
  text-align: center;
  padding: 48px 20px;
  background-color: var(--scc-bg-card);
  border: 1px solid var(--scc-border-color);
  border-radius: var(--scc-radius-md);
  margin: 20px 0;
}

.scc-empty-state-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--scc-text-primary);
  margin-bottom: 6px;
}

.scc-empty-state-text {
  font-size: 0.9rem;
  color: var(--scc-text-secondary);
  margin-bottom: 16px;
}

.scc-toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: max-content;
  max-width: min(440px, calc(100vw - 32px));
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  justify-content: center;
  background-color: var(--scc-text-primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--scc-radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--scc-shadow-lg);
  z-index: 99990;
  opacity: 0;
  transition: transform var(--scc-transition-normal), opacity var(--scc-transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.scc-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   BOTÓN FLOTANTE DEL CARRITO (FASE 5F / MICROCORRECCIÓN VISUAL)
   ========================================================================== */
.scc-floating-cart-btn {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 99980;
  min-width: 56px;
  min-height: 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--scc-brand-primary, #d96b43);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform var(--scc-transition-normal), background-color var(--scc-transition-normal), opacity var(--scc-transition-normal), visibility var(--scc-transition-normal);
}

.scc-floating-cart-btn:hover {
  background-color: var(--scc-brand-primary-hover, #c25932);
  transform: scale(1.05);
}

.scc-floating-cart-btn:active {
  transform: scale(0.95);
}

.scc-floating-cart-btn:focus-visible {
  outline: 3px solid var(--scc-brand-secondary, #4a6b5d);
  outline-offset: 3px;
}

/* Posición Derecha (Predeterminada) */
.scc-floating-cart-btn.scc-floating-cart--bottom-right {
  right: calc(24px + env(safe-area-inset-right, 0px));
  left: auto;
}

/* Posición Izquierda */
.scc-floating-cart-btn.scc-floating-cart--bottom-left {
  left: calc(24px + env(safe-area-inset-left, 0px));
  right: auto;
}

/* Icono SVG monocromático */
.scc-floating-cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* Badge del carrito flotante */
.scc-floating-cart-btn .scc-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background-color: #2c2825;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
  line-height: 1;
}

/* Ocultar visualmente y de la interacción cuando hay un diálogo abierto en la instancia o scroll lock */
body.scc-scroll-lock .scc-floating-cart-btn,
.scc-cart-drawer.is-open ~ .scc-floating-cart-btn,
.scc-floating-cart-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.8);
}

/* Respeto a preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .scc-toast,
  .scc-floating-cart-btn {
    transition: none;
  }
  .scc-floating-cart-btn:hover,
  .scc-floating-cart-btn:active {
    transform: none;
  }
}

/* Ajustes Responsive en pantallas móviles */
@media (max-width: 600px) {
  .scc-toast {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 32px);
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .scc-floating-cart-btn {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    min-width: 52px;
    min-height: 52px;
    width: 52px;
    height: 52px;
  }
  .scc-floating-cart-btn.scc-floating-cart--bottom-right {
    right: calc(16px + env(safe-area-inset-right, 0px));
  }
  .scc-floating-cart-btn.scc-floating-cart--bottom-left {
    left: calc(16px + env(safe-area-inset-left, 0px));
  }
}

body.scc-scroll-lock {
  overflow: hidden !important;
  touch-action: none;
}

/* ==========================================================================
   7. BLOQUES DINÁMICOS: PRODUCTOS Y CATEGORÍAS (FASE 5C)
   ========================================================================== */

.scc-block-root {
  margin: 24px 0;
  width: 100%;
}

/* Grids Dinámicas */
.scc-products-grid,
.scc-categories-grid {
  display: grid;
  gap: 20px;
  width: 100%;
}

/* Columnas para Productos y Categorías */
.scc-cols-1 {
  grid-template-columns: 1fr;
}

.scc-cols-2 {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .scc-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.scc-cols-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .scc-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 850px) {
  .scc-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scc-cols-4 {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .scc-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .scc-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .scc-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.scc-cols-5 {
  grid-template-columns: 1fr;
}
@media (min-width: 550px) {
  .scc-cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 800px) {
  .scc-cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1050px) {
  .scc-cols-5 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1250px) {
  .scc-cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.scc-cols-6 {
  grid-template-columns: 1fr;
}
@media (min-width: 550px) {
  .scc-cols-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 800px) {
  .scc-cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1050px) {
  .scc-cols-6 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1300px) {
  .scc-cols-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Enlaces dentro de Tarjeta */
.scc-card-img-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.scc-card-title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--scc-transition-fast);
}

.scc-card-title-link:hover {
  color: var(--scc-brand-primary);
}

.scc-card-categories {
  font-size: 0.8rem;
  color: var(--scc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.scc-price-consult {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--scc-text-muted);
}

.scc-btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Contenedor de Etiquetas Múltiples (Badges) */
.scc-card-badges-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 5;
  pointer-events: none;
}

.scc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--scc-radius-sm);
  box-shadow: var(--scc-shadow-sm);
  line-height: 1.25;
}

.scc-badge-new {
  background-color: #0288d1;
  color: #ffffff;
}

.scc-badge-sale {
  background-color: #d32f2f;
  color: #ffffff;
}

.scc-badge-featured {
  background-color: #f57c00;
  color: #ffffff;
}

.scc-badge-avail {
  background-color: #ffffff;
  border: 1px solid var(--scc-border-color);
}

.scc-availability-wrap {
  font-size: 0.82rem;
  font-weight: 600;
}

.scc-availability-indicator {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Tarjetas de Categoría */
.scc-category-card-wrap {
  display: flex;
}

.scc-category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  background-color: var(--scc-bg-card);
  border: 1px solid var(--scc-border-color);
  border-radius: var(--scc-radius-md);
  text-decoration: none;
  color: var(--scc-text-primary);
  transition: transform var(--scc-transition-normal), box-shadow var(--scc-transition-normal), border-color var(--scc-transition-fast);
}

.scc-category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--scc-shadow-md);
  border-color: var(--scc-brand-primary);
}

.scc-category-card.scc-category-card-static:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--scc-border-color);
}

.scc-category-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scc-category-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--scc-text-primary);
  line-height: 1.3;
}

.scc-category-card-count {
  font-size: 0.85rem;
  color: var(--scc-text-muted);
}

.scc-category-card-arrow {
  font-size: 1.25rem;
  color: var(--scc-brand-primary);
  transition: transform var(--scc-transition-fast);
  margin-left: 12px;
}

.scc-category-card:hover .scc-category-card-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   7. CHECKOUT MODAL & ORDER CREATION (FASE 5F.4)
   ========================================================================== */
.scc-checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(44, 40, 37, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--scc-transition-normal), visibility var(--scc-transition-normal);
}

.scc-checkout-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.scc-checkout-window {
  background-color: var(--scc-bg-card);
  border-radius: var(--scc-radius-lg);
  box-shadow: var(--scc-shadow-lg);
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--scc-border-color);
  animation: sccCheckoutSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sccCheckoutSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.scc-checkout-header {
  padding: 18px 70px 18px 24px;
  border-bottom: 1px solid var(--scc-border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background-color: var(--scc-bg-page);
  position: sticky;
  top: 0;
  z-index: 10;
  box-sizing: border-box;
}

.scc-checkout-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--scc-text-primary);
  margin: 0;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

.scc-checkout-title svg {
  flex-shrink: 0;
  color: var(--scc-brand-primary);
}

.scc-checkout-subtitle {
  font-size: 0.88rem;
  color: var(--scc-text-muted);
  margin: 0;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  box-sizing: border-box;
}

.scc-checkout-close {
  width: 40px;
  height: 40px;
  border-radius: var(--scc-radius-sm);
  border: 1px solid var(--scc-border-color);
  background-color: var(--scc-bg-card);
  color: var(--scc-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: background-color var(--scc-transition-fast), border-color var(--scc-transition-fast);
}

.scc-checkout-close:hover {
  background-color: var(--scc-bg-subtle);
  border-color: var(--scc-brand-primary);
}

.scc-checkout-close:focus-visible {
  outline: 2px solid var(--scc-brand-primary);
  outline-offset: 2px;
}

.scc-checkout-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.scc-checkout-error-banner {
  background-color: #fef2f2;
  border: 1px solid #f87171;
  border-radius: var(--scc-radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #991b1b;
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.scc-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.scc-checkout-form-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scc-checkout-fieldset {
  border: 1px solid var(--scc-border-color);
  border-radius: var(--scc-radius-md);
  padding: 16px 18px 18px;
  margin: 0 0 16px 0;
  background-color: #ffffff;
}

.scc-checkout-legend {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--scc-text-primary);
  padding: 0 8px;
  margin-bottom: 12px;
}

.scc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.scc-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.scc-form-group:last-child {
  margin-bottom: 0;
}

.scc-form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--scc-text-primary);
}

.scc-required-star {
  color: #dc2626;
  font-weight: bold;
}

.scc-form-input,
.scc-form-select,
.scc-form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--scc-text-primary);
  background-color: var(--scc-bg-page);
  border: 1px solid var(--scc-border-color);
  border-radius: var(--scc-radius-sm);
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--scc-transition-fast), box-shadow var(--scc-transition-fast);
}

.scc-form-input:focus,
.scc-form-select:focus,
.scc-form-textarea:focus {
  border-color: var(--scc-brand-primary);
  box-shadow: 0 0 0 2px rgba(217, 107, 67, 0.15);
  background-color: #ffffff;
}

.scc-form-input.is-invalid,
.scc-form-select.is-invalid,
.scc-form-textarea.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.scc-field-error {
  font-size: 0.82rem;
  color: #dc2626;
  min-height: 18px;
  margin-top: 2px;
}

.scc-char-count {
  font-size: 0.78rem;
  color: var(--scc-text-muted);
  text-align: right;
  margin-top: 4px;
}

.scc-delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.scc-delivery-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background-color: var(--scc-bg-page);
  border: 1.5px solid var(--scc-border-color);
  border-radius: var(--scc-radius-sm);
  cursor: pointer;
  transition: all var(--scc-transition-fast);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--scc-text-primary);
}

.scc-radio-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scc-radio-title svg {
  flex-shrink: 0;
}

.scc-radio-desc {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--scc-text-muted);
  margin-top: 2px;
}

.scc-delivery-card:hover {
  border-color: var(--scc-brand-primary);
  background-color: #ffffff;
}

.scc-delivery-card.is-selected {
  border-color: var(--scc-brand-primary);
  background-color: rgba(217, 107, 67, 0.06);
}

.scc-delivery-radio {
  accent-color: var(--scc-brand-primary);
  cursor: pointer;
}

.scc-delivery-instructions-box {
  background-color: var(--scc-bg-subtle);
  border: 1px solid var(--scc-border-color);
  border-radius: var(--scc-radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--scc-text-secondary);
  line-height: 1.45;
  margin-top: 10px;
}

.scc-consent-group {
  margin-top: 8px;
  padding: 12px 14px;
  background-color: var(--scc-bg-page);
  border: 1px solid var(--scc-border-color);
  border-radius: var(--scc-radius-sm);
}

.scc-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--scc-text-primary);
  cursor: pointer;
  line-height: 1.4;
}

.scc-checkbox-consent {
  accent-color: var(--scc-brand-primary);
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.scc-privacy-link {
  color: var(--scc-brand-primary);
  text-decoration: underline;
  margin-left: 4px;
}

.scc-privacy-link:hover {
  color: var(--scc-brand-primary-hover);
}

/* Columna Resumen */
.scc-checkout-summary-col {
  position: sticky;
  top: 0;
}

.scc-checkout-summary-card {
  background-color: var(--scc-bg-page);
  border: 1px solid var(--scc-border-color);
  border-radius: var(--scc-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scc-summary-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--scc-text-primary);
  border-bottom: 1px solid var(--scc-border-color);
  padding-bottom: 10px;
  margin: 0;
}

.scc-checkout-items-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.scc-checkout-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--scc-border-color);
}

.scc-checkout-item-title {
  color: var(--scc-text-primary);
  font-weight: 500;
  flex: 1;
}

.scc-checkout-item-qty {
  color: var(--scc-text-muted);
  font-size: 0.82rem;
  margin-left: 4px;
}

.scc-checkout-item-price {
  font-weight: 600;
  color: var(--scc-text-primary);
  white-space: nowrap;
}

.scc-summary-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--scc-border-color);
}

.scc-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--scc-text-secondary);
}

.scc-summary-total-row {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--scc-text-primary);
  padding-top: 8px;
  border-top: 1px solid var(--scc-border-color);
}

.scc-summary-disclaimer {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--scc-text-muted);
  line-height: 1.4;
  margin: 0;
}

.scc-summary-disclaimer svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.scc-spinner-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: sccSpin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes sccSpin {
  to { transform: rotate(360deg); }
}

/* Vista de Éxito */
.scc-checkout-success-view {
  padding: 40px 20px;
  text-align: center;
}

.scc-success-card {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.scc-success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.scc-success-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #065f46;
  margin: 0;
}

.scc-success-ref-badge {
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: var(--scc-radius-sm);
  padding: 8px 16px;
  font-size: 1rem;
  color: #065f46;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.scc-success-desc {
  font-size: 0.95rem;
  color: var(--scc-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.scc-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .scc-checkout-window {
    max-height: 94vh;
    border-radius: var(--scc-radius-md);
  }

  .scc-checkout-header {
    padding: 14px 64px 14px 16px;
  }

  .scc-checkout-title {
    font-size: 1.12rem;
  }

  .scc-checkout-subtitle {
    font-size: 0.82rem;
  }

  .scc-checkout-body {
    padding: 16px;
  }

  .scc-checkout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .scc-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .scc-delivery-options {
    grid-template-columns: 1fr;
  }

  .scc-checkout-summary-col {
    position: static;
  }
}
