/* ============================================================
   LINEA VERTICAL — woocommerce.css
   Overrides y estilos del showroom / fichas de producto.
   ============================================================ */

/* ── Layout del showroom ── */
.woocommerce-page .woocommerce {
  margin: 0;
}

.lv-shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-block: var(--section-gap);
}

@media (min-width: 1024px) {
  .lv-shop-layout {
    grid-template-columns: 240px 1fr;
    gap: 4rem;
  }
}

/* ── Sidebar de categorías ── */
.lv-shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lv-sidebar-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.lv-category-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lv-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition);
}

.lv-category-list a:hover,
.lv-category-list li.current-cat a {
  color: var(--color-text);
  opacity: 1;
}

.lv-category-list .count {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

/* ── Grid de productos ── */
.lv-products-area {
  min-width: 0;
}

.lv-shop-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.lv-shop-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.lv-products-grid ul.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .lv-products-grid ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.lv-products-grid ul.products li.product {
  margin: 0;
  padding: 0;
  float: none;
  width: auto;
}

/* ── Card de producto ── */
.lv-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.lv-product-card:hover {
  border-color: var(--color-text);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  opacity: 1;
}

.lv-product-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--color-surface);
}

.lv-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.lv-product-card:hover .lv-product-card__img {
  transform: scale(1.04);
}

.lv-product-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

.lv-product-card__cat {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.lv-product-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
}

.lv-product-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  margin-top: auto;
  padding-top: 0.5rem;
}

.lv-product-card__footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-border);
}

.lv-product-card .btn--wa {
  width: 100%;
  justify-content: center;
  font-size: var(--text-xs);
  padding: 0.625rem;
}

/* ── Ficha de producto ── */
.lv-single-product {
  padding-block: var(--section-gap);
}

.lv-single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .lv-single-layout {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .lv-single-layout {
    grid-template-columns: 3fr 2fr;
  }
}

/* Galería */
.lv-product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lv-product-gallery__main {
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--color-surface);
}

.lv-product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lv-product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.lv-product-gallery__thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--color-surface);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.lv-product-gallery__thumb.active,
.lv-product-gallery__thumb:hover {
  border-color: var(--color-text);
}

.lv-product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info del producto */
.lv-product-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.lv-product-info__cat {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.lv-product-info__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 300;
  letter-spacing: -0.02em;
}

.lv-product-info__price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
}

.lv-product-info__price .woocommerce-Price-currencySymbol {
  font-size: 0.75em;
  vertical-align: super;
}

/* Selector de variantes */
.lv-variations {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lv-variation-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.lv-variation-label {
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

.lv-variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lv-variation-btn {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-family: var(--font-heading);
  cursor: pointer;
  background: transparent;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.lv-variation-btn:hover,
.lv-variation-btn.selected {
  border-color: var(--color-text);
  background-color: var(--color-text);
  color: var(--color-bg);
}

/* Botón Consultar */
.lv-consultar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: var(--color-wa-green);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color var(--transition);
  cursor: pointer;
}

.lv-consultar-btn:hover {
  background-color: var(--color-wa-green-dark);
  color: #ffffff;
  opacity: 1;
}

.lv-consultar-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.lv-consultar-note {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  text-align: center;
}

/* Ficha técnica */
.lv-ficha-tecnica {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lv-ficha-tecnica__title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-light);
}

.lv-ficha-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  border-bottom: 1px solid var(--color-border);
}

.lv-ficha-row:last-child {
  border-bottom: none;
}

.lv-ficha-row__key,
.lv-ficha-row__val {
  padding: 0.75rem 1.25rem;
  font-size: var(--text-sm);
}

.lv-ficha-row__key {
  color: var(--color-text-muted);
  border-right: 1px solid var(--color-border);
}

.lv-ficha-row__val {
  font-weight: 500;
}

/* Breadcrumb */
.lv-breadcrumb {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lv-breadcrumb a {
  color: var(--color-text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lv-breadcrumb a:hover {
  color: var(--color-text);
  opacity: 1;
}

.lv-breadcrumb__sep {
  color: var(--color-border);
}

/* Descripción larga */
.lv-product-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.lv-product-description p + p {
  margin-top: 1em;
}
