/* Tienda — página principal (index): capa visual moderna sin romper Bootstrap */

:root {
  --store-surface: #f4f6f8;
  --store-card: #ffffff;
  --store-border: rgba(15, 23, 42, 0.08);
  --store-text: #1e293b;
  --store-muted: #64748b;
  --store-accent: #0f766e;
  --store-accent-hover: #0d9488;
  --store-radius: 12px;
  --store-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --store-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.1);
  /* nav-menu.css: header-style6 es position:absolute y al hacer scroll .navbar-default pasa a fixed */
  --store-header-offset: 5.25rem;
}

@media (max-width: 991px) {
  :root {
    --store-header-offset: 4.75rem;
  }
}

html {
  scroll-padding-top: calc(var(--store-header-offset) + 0.75rem);
}

.store-main {
  background: var(--store-surface);
  padding-bottom: 3rem;
}

.store-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #0f766e 100%);
  color: #f8fafc;
  /* Espacio extra superior: el encabezado del tema no ocupa altura en el flujo (absolute/fixed) */
  padding-top: calc(2.25rem + var(--store-header-offset));
  padding-bottom: 2.5rem;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 2rem;
  border-radius: 0 0 var(--store-radius) var(--store-radius);
}

@media (min-width: 992px) {
  .store-hero {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    border-radius: 0 0 24px 24px;
  }
}

.store-hero__title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  line-height: 1.25;
  color: #ffffff;
}

.store-hero__subtitle {
  font-size: 0.95rem;
  opacity: 0.88;
  margin-bottom: 1.25rem;
  max-width: 36rem;
}

.store-search .form-control {
  border: 0;
  border-radius: 10px 0 0 10px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.store-search .form-control:focus {
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.35);
}

.store-search .input-group-append .btn {
  border-radius: 0 10px 10px 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  font-weight: 600;
  background: #0f172a;
  border: 0;
  color: #fff;
}

.store-search .input-group-append .btn:hover {
  background: #1e293b;
  color: #fff;
}

.store-search .input-group-text {
  background: #fff;
  border: 0;
  color: var(--store-muted);
  border-radius: 10px 0 0 10px;
  padding-left: 1rem;
}

.store-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.store-filters__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--store-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: 999px;
  color: var(--store-text);
  box-shadow: var(--store-shadow);
}

.store-chip a {
  color: var(--store-accent);
  font-weight: 600;
  text-decoration: none;
}

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

@media (min-width: 992px) {
  .store-sidebar {
    position: sticky;
    top: 1rem;
  }
}

.store-sidebar .accordion-style2 .card {
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  overflow: hidden;
  box-shadow: var(--store-shadow);
  margin-bottom: 1rem;
}

.store-sidebar .accordion-style2 .card-header {
  background: var(--store-card);
  border-bottom: 1px solid var(--store-border);
  padding: 0;
}

.store-sidebar .accordion-style2 .card-header .btn-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--store-text);
  text-decoration: none;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
}

.store-sidebar .accordion-style2 .card-header .btn-link:hover {
  color: var(--store-accent);
}

.store-sidebar .accordion-style2 .card-body {
  padding: 0.35rem 0 0.65rem;
}

.store-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.store-nav-list li {
  margin: 0;
  border-bottom: 1px solid var(--store-border);
}

.store-nav-list li:last-child {
  border-bottom: 0;
}

.store-nav-list a,
.store-nav-list .store-nav-list__active {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--store-text);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.store-nav-list a:hover {
  background: rgba(15, 118, 110, 0.06);
  color: var(--store-accent);
}

.store-nav-list__active {
  font-weight: 600;
  color: var(--store-accent) !important;
  background: rgba(15, 118, 110, 0.08);
  border-left: 3px solid var(--store-accent);
}

.store-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.store-section-head h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--store-text);
  margin: 0;
}

.store-section-head span {
  font-size: 0.85rem;
  color: var(--store-muted);
}

.store-product-card {
  background: var(--store-card);
  border-radius: var(--store-radius);
  border: 1px solid var(--store-border);
  box-shadow: var(--store-shadow);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.store-product-card__media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.store-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.25s ease;
}

.store-product-card:hover .store-product-card__media img {
  transform: scale(1.03);
}

.store-product-card__body {
  padding: 1rem 1rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.store-product-card__title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--store-text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}

.store-product-card__title:hover {
  color: var(--store-accent);
}

.store-product-card__prices {
  margin-top: auto;
  padding-top: 0.75rem;
  text-align: center;
}

.store-product-card__price-old {
  font-size: 0.8rem;
  color: var(--store-muted);
  text-decoration: line-through;
  margin-right: 0.35rem;
}

.store-product-card__price-current {
  font-size: 1.05rem;
  font-weight: 700;
  color: #b91c1c;
}

.store-product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0.75rem;
  border-top: 1px solid var(--store-border);
}

.store-product-card__actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.store-product-card__actions a:first-child {
  background: #1e293b;
  color: #f8fafc;
}

.store-product-card__actions a:first-child:hover {
  background: #334155;
  color: #fff;
}

.store-product-card__actions a:last-child {
  background: var(--store-accent);
  color: #fff;
}

.store-product-card__actions a:last-child:hover {
  background: var(--store-accent-hover);
  color: #fff;
}

@media (max-width: 575px) {
  .store-product-card__actions {
    grid-template-columns: 1fr;
  }
  .store-product-card__actions a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .store-product-card__actions a:last-child {
    border-bottom: 0;
  }
}
