/* Tienda — comercio profesional con identidad floral (no clon de marketplace genérico) */
/* --store-primary / --store-secondary se sobrescriben por tenant en layouts/store.blade.php */
:root {
  --store-primary: #2F5D50;
  --store-secondary: #C45C6A;
  --store-brand: var(--store-primary);
  --store-brand-dark: #1b4332;
  --store-brand-soft: #d8f3dc;
  --store-accent: var(--store-secondary);
  --store-accent-hover: #a84855;
  --store-cream: #faf8f5;
  --store-surface: #ffffff;
  --store-text: #2c3332;
  --store-muted: #6b7280;
  --store-border: #e8e4df;
  --store-radius: 12px;
  --store-radius-sm: 8px;
  --store-shadow: 0 2px 16px rgba(44, 51, 50, 0.06);
  --store-shadow-hover: 0 8px 28px rgba(44, 51, 50, 0.1);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.store-body {
  background: var(--store-cream);
  color: var(--store-text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* Barra superior suave */
.store-topbar {
  background: linear-gradient(90deg, var(--store-brand-dark), var(--store-brand));
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.store-topbar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.store-social-header {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  white-space: nowrap;
}

.store-social-header .store-social-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  opacity: 0.95;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.store-social-header .store-social-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  text-decoration: none !important;
  vertical-align: middle;
}

.store-social-header .store-social-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Header claro — no barra oscura tipo marketplace */
.store-header {
  background: var(--store-surface);
  border-bottom: 1px solid var(--store-border);
  box-shadow: var(--store-shadow);
  padding: 0.75rem 0;
}

.store-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.store-nav-brand,
.store-header .navbar-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--store-brand-dark) !important;
  letter-spacing: -0.02em;
}

.store-nav-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.store-brand-logo {
  display: block;
  width: auto;
  min-width: 40px;
  max-width: 180px;
  height: 56px;
  object-fit: contain;
}

.store-brand-name {
  display: inline-block;
}

.store-footer-logo {
  display: block;
  width: auto;
  max-width: 120px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 2px 6px;
}

.store-header .navbar-brand:hover,
.store-nav-brand:hover {
  color: var(--store-brand) !important;
}

.store-search {
  display: flex;
  flex: 1 1 280px;
  max-width: 520px;
  min-width: 0;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-sm);
  overflow: hidden;
  background: var(--store-cream);
}

.store-search .form-control {
  border: none;
  background: transparent;
  height: 44px;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 1rem; /* 16px: evita zoom automático en iOS */
}

.store-search .form-control:focus {
  box-shadow: none;
  background: var(--store-surface);
}

.store-search .btn-search {
  background: var(--store-brand);
  border: none;
  color: #fff;
  font-weight: 600;
  height: 44px;
  padding: 0 1.25rem;
  border-radius: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.store-search .btn-search:hover {
  background: var(--store-brand-dark);
}

.store-nav-link {
  color: var(--store-text) !important;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: var(--store-radius-sm);
  transition: background 0.15s ease;
}

.store-nav-link:hover {
  background: var(--store-brand-soft);
  color: var(--store-brand-dark) !important;
}

.store-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--store-brand);
  border-radius: var(--store-radius-sm);
  color: var(--store-brand-dark) !important;
  font-weight: 600;
  font-size: 0.875rem;
}

.store-cart-link:hover {
  background: var(--store-brand-soft);
}

.store-cart-badge {
  background: var(--store-accent) !important;
  color: #fff !important;
  font-size: 0.7rem;
}

/* Subnav: chips en franja crema */
.store-subnav {
  background: var(--store-cream);
  border-bottom: 1px solid var(--store-border);
  padding: 0.5rem 0;
}

.store-subnav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.store-subnav a {
  color: var(--store-text);
  font-size: 0.8125rem;
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  transition: all 0.15s ease;
}

.store-subnav a:hover {
  border-color: var(--store-brand);
  color: var(--store-brand-dark);
  background: var(--store-brand-soft);
}

.store-subnav a.is-active {
  border-color: var(--store-brand);
  color: var(--store-brand-dark);
  background: var(--store-brand-soft);
  font-weight: 600;
}

.store-main {
  max-width: 1280px;
  padding-bottom: 3rem;
}

.store-hero-img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.store-cat-chip {
  font-size: 0.9375rem;
  padding: 0.45rem 0.95rem;
}

.store-catalog-search {
  flex: 1 1 220px;
  max-width: 360px;
  min-width: 0;
}

.store-catalog-search .form-control {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 1rem;
}

.store-alert {
  border-radius: var(--store-radius-sm);
  border: 1px solid var(--store-border);
}

/* Cards producto — estilo boutique */
.product-card {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--store-shadow-hover);
}

.product-card__img-wrap {
  background: linear-gradient(180deg, var(--store-brand-soft) 0%, var(--store-cream) 100%);
}

.product-card__img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  height: auto;
  max-width: none;
}

.product-card__body {
  padding: 1rem 1rem 1.1rem;
}

.product-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--store-text);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--store-brand-dark);
}

.product-card__price-note {
  font-size: 0.75rem;
  color: var(--store-muted);
}

/* Botones — rectos suaves, sin amarillo/naranja */
.btn-store-primary,
.store-btn-primary {
  background: var(--store-brand);
  border: 1px solid var(--store-brand);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--store-radius-sm);
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
}

.btn-store-primary:hover,
.store-btn-primary:hover {
  background: var(--store-brand-dark);
  border-color: var(--store-brand-dark);
  color: #fff !important;
}

.btn-store-secondary {
  background: var(--store-accent);
  border: 1px solid var(--store-accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--store-radius-sm);
  font-size: 0.9375rem;
  padding: 0.55rem 1.25rem;
}

.btn-store-secondary:hover {
  background: var(--store-accent-hover);
  border-color: var(--store-accent-hover);
  color: #fff;
}

.store-sidebar {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  box-shadow: var(--store-shadow);
}

.store-sidebar .list-group-item.active {
  background: var(--store-brand-soft);
  border-color: var(--store-border);
  color: var(--store-brand-dark);
  font-weight: 600;
}

.store-summary-box {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  padding: 1.35rem;
  box-shadow: var(--store-shadow);
}

.store-summary-box .total-line {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--store-brand-dark);
}

.checkout-address-option {
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.checkout-address-option:hover {
  border-color: color-mix(in srgb, var(--store-brand) 45%, var(--store-border)) !important;
  background: var(--store-brand-soft);
}

.checkout-address-option.border-primary {
  border-color: var(--store-brand) !important;
}

.store-breadcrumb {
  font-size: 0.8125rem;
  color: var(--store-muted);
}

.store-breadcrumb a {
  color: var(--store-brand);
  text-decoration: none;
}

.store-breadcrumb a:hover {
  text-decoration: underline;
}

.store-pdp-gallery img {
  border-radius: var(--store-radius);
  border: 1px solid var(--store-border);
}

.store-badge-cat {
  background: var(--store-brand-soft);
  color: var(--store-brand-dark);
  font-size: 0.7rem;
  font-weight: 600;
  border: none;
  letter-spacing: 0.02em;
}

.store-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--store-brand-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--store-brand-soft);
}

.store-footer {
  background: var(--store-brand-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 2rem 0;
  margin-top: 2rem;
}

.store-footer strong {
  color: #fff;
}

.store-footer-address {
  font-style: normal;
  line-height: 1.55;
}

.store-footer-branches {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
}

.store-footer-branch-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.store-footer-branch-item {
  line-height: 1.5;
}

.store-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.store-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.store-footer-links a {
  color: rgba(255, 255, 255, 0.92);
}

.store-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.store-social-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.store-whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  text-decoration: none !important;
}

.store-whatsapp-float:hover {
  background: #1ebe57;
  color: #fff !important;
}

.store-whatsapp-float-wrap {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
}

.store-whatsapp-float-wrap .store-whatsapp-float {
  position: static;
  border: 0;
  cursor: pointer;
}

.store-whatsapp-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  min-width: 11rem;
  background: #fff;
  color: #1a1a1a;
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.store-whatsapp-menu-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.35rem 0.55rem 0.2rem;
}

.store-whatsapp-menu a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  color: #14532d !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 600;
}

.store-whatsapp-menu a:hover {
  background: #ecfdf5;
}

@media (max-width: 575.98px) {
  .store-whatsapp-float {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .store-whatsapp-float-wrap {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}

.store-logos-pago {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.store-logos-pago__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
}

.store-logos-pago__label {
  font-size: 0.8rem;
  color: var(--store-muted);
}

.store-logos-pago--oscuro .store-logos-pago__label {
  color: rgba(255, 255, 255, 0.8);
}

.store-logo-pago {
  height: 32px;
  width: auto;
  max-height: 32px;
  background: #fff;
  border-radius: 4px;
  padding: 2px 4px;
}

.store-logo-pago--3ds {
  height: 36px;
  max-height: 36px;
}

.store-legal-card {
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  box-shadow: var(--store-shadow);
  padding: 1.5rem 1.35rem;
}

.store-legal-body {
  font-size: 0.95rem;
}

.store-legal-body h2 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  color: var(--store-brand-dark);
}

.store-recibo-modelo {
  max-width: 560px;
}

.store-recibo-modelo .card-header {
  background: var(--store-brand-dark);
  color: #fff;
}

/* Desktop: marca | búsqueda centrada | acciones */
@media (min-width: 992px) {
  .store-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
  }

  .store-nav-brand {
    justify-self: start;
  }

  .store-search {
    flex: none;
    width: 100%;
    max-width: 520px;
    justify-self: center;
    order: 0;
    margin: 0;
  }

  .store-nav-actions {
    justify-self: end;
    margin-left: 0;
  }
}

@media (max-width: 991.98px) {
  .store-header {
    padding: 0.85rem 0;
  }

  .store-nav {
    row-gap: 0.85rem;
  }

  .store-nav-brand,
  .store-header .navbar-brand {
    font-size: 1.15rem;
    max-width: calc(100% - 11rem);
  }

  .store-brand-logo {
    max-width: min(160px, 42vw);
    height: 48px;
  }

  /* Fila propia a ancho completo (flex-basis 100% — width:100% no bastaba) */
  .store-search {
    flex: 1 1 100%;
    order: 3;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .store-search .form-control {
    height: 48px;
    font-size: 1rem;
    padding-left: 0.85rem;
  }

  .store-search .btn-search {
    height: 48px;
    padding: 0 1.1rem;
    font-size: 0.95rem;
  }

  .store-nav-link,
  .store-cart-link {
    font-size: 0.9375rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .store-subnav a {
    font-size: 0.875rem;
    padding: 0.45rem 0.95rem;
  }

  .store-section-title {
    font-size: 1.35rem;
  }

  .store-hero-img {
    max-height: 220px;
  }

  .product-card__title {
    font-size: 1.05rem;
  }

  .product-card__price {
    font-size: 1.15rem;
  }

  .product-card__body {
    padding: 1rem;
  }

  .btn-store-primary,
  .store-btn-primary {
    font-size: 0.9375rem;
    padding: 0.55rem 1rem;
    min-height: 44px;
  }

  .store-catalog-search {
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
  }

  .store-catalog-toolbar .store-section-title {
    width: 100%;
  }

  .store-home-cats-label {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .store-cat-chip {
    font-size: 0.9375rem;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }

  .store-topbar {
    font-size: 0.8125rem;
  }

  .store-footer {
    padding: 1.75rem 0;
  }
}

@media (max-width: 575.98px) {
  .store-brand-logo {
    max-width: min(140px, 48vw);
    height: 44px;
  }

  .store-nav-link {
    padding: 0.4rem 0.45rem;
  }

  .store-cart-link {
    padding: 0.4rem 0.7rem;
  }

  .store-product-grid .product-card__img {
    aspect-ratio: 1;
  }
}
