/* ══════════════════════════════════════════════════════════════════════════
   TIENDA (STORE) — Estilos del módulo de tienda online.
   Este archivo solo se carga cuando la tienda está habilitada en la cuenta
   (cms.store.enabled) — ver config/site.php.
   La base compartida del offcanvas (carrito + auth) vive en main.css.
   ══════════════════════════════════════════════════════════════════════════ */

/* TRIGGER FLOTANTE CARRITO (tienda habilitada) */
.mgpanel-store-cart-trigger {
  position: fixed;
  top: calc(50% - 60px);
  right: 20px;
  transform: translateY(-50%);
  z-index: 1028;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.mgpanel-store-cart-trigger.position-right {
  right: 20px;
  left: auto;
}
.mgpanel-store-cart-trigger .mgpanel-store-cart-trigger-btn {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: #374151;
  position: relative;
}
.mgpanel-store-cart-trigger .mgpanel-store-cart-trigger-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #111827;
}
.mgpanel-store-cart-trigger .mgpanel-store-cart-trigger-btn i {
  font-size: 20px;
}
.mgpanel-store-cart-trigger .mg-store-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  background: #6366f1;
  color: #fff;
  border-radius: 9px;
}

/* Icono de carrito inline (shortcode {{tienda=carrito}}) */
.mg-store-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.mg-store-cart-icon .mg-store-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  background: #6366f1;
  color: #fff;
  border-radius: 8px;
}

/* ── Botones/enlaces inline (shortcodes carrito/checkout/cuenta) ──────────── */
.mg-store-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.mg-store-inline--icon {
  justify-content: center;
}
.mg-store-inline--link {
  color: var(--systemMg-primary, #0056b3);
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}
.mg-store-inline--link:hover {
  text-decoration: underline;
}
.mg-store-inline--icon.mg-store-inline-account,
.mg-store-inline--link.mg-store-inline-account {
  background: none;
  border: none;
  color: inherit;
}
.mg-store-inline--link.mg-store-inline-account {
  color: var(--systemMg-primary, #0056b3);
}
.mg-store-inline .mg-store-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  background: #6366f1;
  color: #fff;
  border-radius: 8px;
}
.mg-store-inline.mg-btn .mg-store-cart-count {
  position: static;
  margin-left: 4px;
  background: rgba(255, 255, 255, 0.25);
}

/* ── Buscador de productos (shortcode {{tienda=buscador}}) ────────────────── */
.mg-store-search {
  position: relative;
  max-width: 420px;
  width: 100%;
  font-family: var(--systemMg-font, inherit);
}
.mg-store-search-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--systemMg-color-gray-300, #d1d5db);
  border-radius: var(--systemMg-border-radius, 8px);
  background: var(--systemMg-white, #fff);
  color: var(--systemMg-dark, #111827);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mg-store-search-input:focus {
  border-color: var(--systemMg-primary, #0056b3);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12);
}
.mg-store-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}
.mg-store-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s ease;
}
.mg-store-search-item:hover {
  background: #f9fafb;
}
.mg-store-search-item-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mg-store-search-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mg-store-search-item-noimg {
  color: #9ca3af;
  font-size: 1.1rem;
}
.mg-store-search-item-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mg-store-search-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mg-store-search-item-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--systemMg-primary, #0056b3);
}
.mg-store-search-empty {
  padding: 16px 14px;
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
}
.mg-store-search-all {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: var(--systemMg-primary, #0056b3);
  text-decoration: none;
  background: #f9fafb;
}
.mg-store-search-all:hover {
  background: #f3f4f6;
}

/* ── Aviso para el administrador (solo vista previa/draft) ────────────────── */
.mg-admin-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 640px;
  margin: 16px auto 0;
  padding: 14px 16px;
  border: 1px dashed var(--systemMg-warning, #ffc107);
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.08);
  color: var(--systemMg-dark, #374151);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}
.mg-admin-hint i {
  margin-top: 2px;
  color: var(--systemMg-warning, #b45309);
}
.mg-admin-hint p {
  margin: 0;
}

/* ── Carrito: offcanvas específico ────────────────────────────────────────── */
.mg-store-offcanvas-hint {
  margin: 0;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: #6b7280;
  border-bottom: 1px solid #f3f4f6;
}
.mg-store-offcanvas-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.mg-store-offcanvas-empty {
  margin: 0;
  padding: 24px 0;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}
.mg-store-offcanvas-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  align-items: flex-start;
}
.mg-store-offcanvas-item:last-child {
  border-bottom: none;
}
.mg-store-offcanvas-item-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
}
.mg-store-offcanvas-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mg-store-cart-item-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1.25rem;
}
.mg-store-offcanvas-item-body {
  flex: 1;
  min-width: 0;
}
.mg-store-offcanvas-item-title {
  font-weight: 500;
  color: #111827;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.mg-store-offcanvas-item-price {
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 8px;
}
.mg-store-offcanvas-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mg-store-cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.mg-store-cart-qty-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.mg-store-cart-qty-input {
  width: 44px;
  height: 28px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-align: center;
  font-size: 0.875rem;
}
.mg-store-offcanvas-item-remove {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.mg-store-offcanvas-item-remove:hover {
  background: #fef2f2;
  color: #dc2626;
}
.mg-store-offcanvas-footer {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mg-store-offcanvas-subtotal {
  font-size: 1rem;
  color: #374151;
}
.mg-store-offcanvas-subtotal strong {
  margin-left: 8px;
  color: #111827;
}
.mg-store-offcanvas-btn-cart {
  text-align: center;
}
.mg-store-offcanvas-btn-checkout {
  width: 100%;
}

/* Página carrito /cart */
.mg-cart-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  font-family: var(--systemMg-font);
}
.mg-cart-page h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  color: #111827;
}
.mg-cart-page-back {
  display: inline-block;
  margin-bottom: 20px;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
}
.mg-cart-page-back:hover {
  color: #111827;
}
.mg-cart-page-items {
  margin-bottom: 24px;
}
.mg-cart-page-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
  align-items: flex-start;
}
.mg-cart-page-item-img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
}
.mg-cart-page-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mg-cart-page-item-body {
  flex: 1;
  min-width: 0;
}
.mg-cart-page-item-title {
  font-weight: 600;
  color: #111827;
  font-size: 1rem;
  margin-bottom: 4px;
}
.mg-cart-page-item-price {
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 10px;
}
.mg-cart-page-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mg-cart-page-summary {
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 20px;
}
.mg-cart-page-summary p {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: #374151;
}
.mg-cart-page-summary p:last-child {
  margin-bottom: 0;
}
.mg-cart-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Estilos grid tienda (store) - Disponible en todas las páginas para shortcodes */
.mg-store-empty {
  padding: 2rem;
  text-align: center;
  color: var(--systemMg-secondary);
}
.mg-store-empty i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--systemMg-color-gray-300, #d1d5db);
}
.mg-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 0 20px;
}
.mg-store-card {
  background-color: var(--systemMg-white);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}
.mg-store-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.mg-store-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mg-store-card-image-link {
  display: block;
  text-decoration: none;
}
.mg-store-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--systemMg-light);
}
.mg-store-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.mg-store-card:hover .mg-store-card-image img {
  transform: scale(1.05);
}
.mg-store-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--systemMg-color-gray-300);
  font-size: 3rem;
}
.mg-store-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mg-store-card-sku {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--systemMg-secondary);
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.02em;
}
.mg-store-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}
.mg-store-card-title a {
  color: var(--systemMg-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}
.mg-store-card-title a:hover {
  color: var(--systemMg-primary);
}
.mg-store-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--systemMg-primary);
  margin-top: auto;
}

/* ── Estilo de card: cantidad + botón ────────────────────────────────────── */
.mg-store-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.mg-store-card-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--systemMg-color-gray-300, #d1d5db);
  border-radius: var(--systemMg-btn-border-radius, 8px);
  overflow: hidden;
  flex-shrink: 0;
}
.mg-store-qty-btn {
  width: 34px;
  height: 40px;
  border: none;
  background: var(--systemMg-white, #fff);
  color: var(--systemMg-dark, #374151);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mg-store-qty-btn:hover {
  background: var(--systemMg-light, #f3f4f6);
}
.mg-store-qty-input {
  width: 44px;
  height: 40px;
  border: none;
  border-left: 1px solid var(--systemMg-color-gray-300, #d1d5db);
  border-right: 1px solid var(--systemMg-color-gray-300, #d1d5db);
  text-align: center;
  font-size: 0.95rem;
  -moz-appearance: textfield;
}
.mg-store-qty-input::-webkit-outer-spin-button,
.mg-store-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mg-store-card-add--icon {
  flex: 1;
  min-width: 0;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

/* ── Estilo de card: compra rápida al pasar el mouse ─────────────────────── */
.mg-store-card--hover-quick-add .mg-store-card-image {
  position: relative;
}
.mg-store-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
}
.mg-store-card--hover-quick-add:hover .mg-store-card-overlay,
.mg-store-card--hover-quick-add:focus-within .mg-store-card-overlay {
  transform: translateY(0);
  opacity: 1;
}
.mg-store-card-overlay .mg-store-card-add {
  width: 100%;
}
.mg-store-card-detail-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--systemMg-primary, #0056b3);
  text-decoration: none;
  font-weight: 600;
}
.mg-store-card-detail-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .mg-store-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 15px;
  }
  .mg-store-card-image {
    height: 180px;
  }
  .mg-store-card-body {
    padding: 1.5rem;
  }
  .mg-store-card-title {
    font-size: 1.1rem;
  }
  /* En móvil, la compra rápida siempre visible (no hay hover) */
  .mg-store-card--hover-quick-add .mg-store-card-overlay {
    position: static;
    transform: none;
    opacity: 1;
    background: none;
    padding: 1rem 0 0;
  }
}

/* Estilos para tienda (store) - Clases mg-store-product-* */
/* Basados en main.css y variables --systemMg-* */

/* Contenedor principal vista producto */
.mg-store-product-container {
  padding: 120px 0;
}

.mg-store-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Galería */
.mg-store-product-gallery {
  position: sticky;
  top: 2rem;
}

.mg-store-product-main-image {
  position: relative;
  background-color: var(--systemMg-light);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  margin-bottom: 1rem;
}

.mg-store-product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mg-store-product-zoom {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.mg-store-product-zoom-icon {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--systemMg-primary);
  font-size: 1rem;
  box-shadow: var(--systemMg-box-shadow);
}

.mg-store-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--systemMg-color-gray-300);
  font-size: 4rem;
}

.mg-store-product-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mg-store-product-thumb {
  width: 70px;
  height: 70px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--systemMg-light);
  transition: border-color 0.2s ease;
}

.mg-store-product-thumb:hover,
.mg-store-product-thumb.active {
  border-color: var(--systemMg-primary);
}

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

/* Info columna derecha */
.mg-store-product-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mg-store-product-availability {
  font-size: 0.9rem;
  font-weight: 600;
}

.mg-store-product-availability.in-stock {
  color: var(--systemMg-success);
}

.mg-store-product-availability.out-of-stock {
  color: var(--systemMg-danger);
}

.mg-store-product-sku {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--systemMg-secondary);
  margin: 0.35rem 0 0 0;
  letter-spacing: 0.02em;
}

.mg-store-product-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: var(--systemMg-dark);
}

.mg-store-product-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--systemMg-primary);
}

.mg-store-product-more-info {
  color: var(--systemMg-primary);
  text-decoration: none;
  font-weight: 500;
}

.mg-store-product-more-info:hover {
  text-decoration: underline;
}

/* Variantes */
.mg-store-product-variants {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mg-store-product-variant-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mg-store-product-variant-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--systemMg-dark);
}

.mg-store-product-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mg-store-product-variant-option {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 2px solid var(--systemMg-color-gray-300);
  border-radius: var(--systemMg-border-radius);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.mg-store-product-variant-option:hover {
  border-color: var(--systemMg-primary);
}

.mg-store-product-variant-option input {
  margin-right: 0.5rem;
}

.mg-store-product-variant-option input:checked + span {
  font-weight: 600;
}

/* Acciones */
.mg-store-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.mg-store-product-btn-add,
.mg-store-product-btn-buy,
.mg-store-product-btn-quote {
  min-width: auto;
}

/* Compartir */
.mg-store-product-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--systemMg-color-gray-300);
}

.mg-store-product-share span {
  font-size: 0.9rem;
  color: var(--systemMg-secondary);
}

.mg-store-product-share a {
  color: var(--systemMg-secondary);
  font-size: 1.25rem;
}

.mg-store-product-share a:hover {
  color: var(--systemMg-primary);
}

/* Tabs */
.mg-store-product-tabs {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--systemMg-color-gray-300);
}

.mg-store-product-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  border-bottom: 2px solid var(--systemMg-color-gray-300);
}

.mg-store-product-tab {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--systemMg-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: var(--systemMg-font);
  transition: color 0.2s ease;
}

.mg-store-product-tab:hover {
  color: var(--systemMg-primary);
}

.mg-store-product-tab.active {
  color: var(--systemMg-primary);
  border-bottom-color: var(--systemMg-primary);
}

.mg-store-product-tab-content {
  display: none;
  padding: 1.5rem 0;
  line-height: 1.8;
  color: var(--systemMg-dark);
}

.mg-store-product-tab-content.active {
  display: block;
}

.mg-store-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--systemMg-color-gray-300);
}

.mg-store-related-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--systemMg-dark);
  margin: 0 0 1.5rem 0;
}

.mg-store-related .mg-store-grid {
  padding: 0;
}

.mg-store-product-tab-content p {
  margin: 0 0 1rem 0;
}

.mg-store-product-tab-content figure {
  margin: 1rem 0;
}

.mg-store-product-tab-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.mg-store-product-tab-content h1,
.mg-store-product-tab-content h2,
.mg-store-product-tab-content h3,
.mg-store-product-tab-content h4,
.mg-store-product-tab-content h5,
.mg-store-product-tab-content h6 {
  margin: 1.5rem 0 0.75rem 0;
  color: var(--systemMg-dark);
}

/* Lista de características (features) e info de pago en la vista de producto */
.mg-store-product-features,
.mg-store-product-payment-info {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.mg-store-product-features li,
.mg-store-product-payment-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--systemMg-dark);
}
.mg-store-product-features li i,
.mg-store-product-payment-info li i {
  margin-top: 0.2rem;
}
.mg-store-product-features li.feature-included i {
  color: var(--systemMg-success);
}
.mg-store-product-features li.feature-excluded {
  color: var(--systemMg-secondary);
}
.mg-store-product-features li.feature-excluded i {
  color: var(--systemMg-danger);
}
.mg-store-product-features .mg-feature-desc {
  display: block;
  color: var(--systemMg-secondary);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .mg-store-product-layout {
    grid-template-columns: 1fr;
  }

  .mg-store-product-gallery {
    position: static;
  }
}

@media (max-width: 768px) {
  .mg-store-product-container {
    padding: 60px 0;
  }

  .mg-store-product-title {
    font-size: 1.5rem;
  }

  .mg-store-product-price {
    font-size: 1.5rem;
  }

  .mg-store-product-actions {
    flex-direction: column;
  }

  .mg-store-product-actions .mg-btn {
    width: 100%;
  }
}
