﻿/* ============================================================
   DAF Boutique — Nuevos Ingresos
   ============================================================ */

/* ── HERO ── */
.nov-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px;
  background:
    linear-gradient(to bottom, rgba(42, 34, 24, 0.58), rgba(42, 34, 24, 0.82)),
    url('../media/novedades/fondo.webp') center / cover no-repeat;
  background-color: var(--ink);
}

.nov-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.nov-hero-script {
  font-family: 'Pinyon Script', cursive;
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  opacity: 0.95;
}

.nov-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 4rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-top: -4px;
}

.nov-hero-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 280px;
  max-width: 80%;
}

.nov-hero-seg {
  flex: 1;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.55;
}

.nov-hero-diamond {
  font-size: 0.55rem;
  color: var(--gold);
  flex-shrink: 0;
}

.nov-hero-sub {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  line-height: 1.7;
}

.nov-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  border: 1px solid rgba(195, 155, 85, 0.45);
  padding: 9px 22px;
  border-radius: 20px;
  margin-top: 4px;
}

/* ── SECCIÓN EDITORIAL ── */
.nov-editorial {
  background-color: var(--cream);
  border-top: 1px solid #ecddd3;
  border-bottom: 1px solid #ecddd3;
  padding: 56px 48px;
}

.nov-editorial-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.nov-ed-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 44px;
  gap: 16px;
}

.nov-ed-divider {
  width: 1px;
  background-color: #ddd0c6;
  flex-shrink: 0;
  margin: 4px 0;
}

.nov-ed-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nov-ed-heading {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.nov-ed-text {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--ink-light);
  line-height: 1.75;
  max-width: 230px;
}

/* ── COLECCIÓN ── */
.nov-productos {
  padding: 60px 48px 80px;
  background-color: var(--white);
}

.nov-productos-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.nov-header-line {
  flex: 1;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.35;
}

.nov-header-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
  white-space: nowrap;
}

/* ── TAB Y DRAWER DE FILTROS ── */
.filter-tab-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 18px 10px;
  z-index: 150;
  cursor: pointer;
  box-shadow: 3px 0 14px rgba(195, 155, 85, 0.4);
}

.filter-tab-mobile i {
  font-size: 1rem;
}

.filter-tab-mobile span {
  font-family: var(--font-ui);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 190;
}

.filter-overlay.active {
  display: block;
}

.nov-filters {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--white);
  border-right: 1px solid #ecddd3;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 200;
  padding: 0 0 40px;
  transition: left 0.3s ease;
}

.nov-filters.drawer-open {
  left: 0;
}

.nov-filters-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 8px 0;
}

.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #ecddd3;
  background-color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 1;
}

.filter-drawer-title {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.filter-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 1rem;
  padding: 4px;
  line-height: 1;
}

.filter-group {
  padding: 16px 20px;
  width: 100%;
}

.filter-label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  display: block;
  margin-bottom: 8px;
}

.filter-select {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--ink);
  border: 1px solid #ddd0c6;
  background: var(--white);
  padding: 6px 10px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  width: 100%;
}

.filter-select:focus {
  border-color: var(--gold);
}

.filter-price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-price-input {
  width: 72px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--ink);
  border: 1px solid #ddd0c6;
  background: var(--white);
  padding: 6px 8px;
  outline: none;
  transition: border-color 0.2s;
}

.filter-price-input:focus {
  border-color: var(--gold);
}

.filter-price-sep {
  color: var(--ink-light);
  font-size: 0.8rem;
}

.filter-sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.size-chip {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: transparent;
  border: 1px solid #ddd0c6;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.size-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.size-chip.active {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.filter-toggle input {
  display: none;
}

.toggle-track {
  width: 36px;
  height: 20px;
  background-color: #ddd0c6;
  border-radius: 20px;
  position: relative;
  transition: background-color 0.22s;
  flex-shrink: 0;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background-color: var(--white);
  border-radius: 50%;
  transition: transform 0.22s;
}

.filter-toggle input:checked + .toggle-track {
  background-color: var(--gold);
}

.filter-toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(16px);
}

.toggle-text {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--ink);
  white-space: nowrap;
}

.filter-divider {
  width: calc(100% - 40px);
  height: 1px;
  background-color: #ecddd3;
  margin: 0 20px;
  flex-shrink: 0;
}

.filter-clear {
  margin: 16px 20px 0;
  width: calc(100% - 40px);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  background-color: var(--ink-light);
  border: none;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
  white-space: nowrap;
}

.filter-clear:hover {
  background-color: var(--ink);
}

/* Grid de productos */
.nov-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.nov-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid #ecddd3;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nov-card:hover {
  box-shadow: 0 8px 28px rgba(195, 155, 85, 0.18);
  transform: translateY(-4px);
}

.nov-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--cream);
}

.nov-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.nov-card:hover .nov-card-img img {
  transform: scale(1.05);
}

.nov-badge-nuevo {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-ui);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  background-color: var(--gold);
  padding: 4px 11px;
  border-radius: 20px;
}

.nov-card-info {
  padding: 14px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nov-card-cat {
  font-family: var(--font-ui);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.nov-card-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
}

.nov-card-price {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 6px;
}

.nov-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-top: 8px;
  transition: color 0.2s;
}

.nov-card:hover .nov-card-link {
  color: var(--gold);
}

.nov-empty {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: var(--ink-light);
  padding: 52px 0;
  letter-spacing: 0.1em;
}

/* ── CARRITO DRAWER ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background-color: var(--white);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

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

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #ecddd3;
  flex-shrink: 0;
}

.cart-drawer-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
}

.cart-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink-light);
  padding: 4px 8px;
  transition: color 0.2s;
  line-height: 1;
}

.cart-drawer-close:hover {
  color: var(--gold);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  gap: 12px;
}

.cart-empty i {
  font-size: 2.4rem;
  color: #ddd0c6;
}

.cart-empty p {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-light);
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f0e8e2;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 70px;
  height: 93px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--cream);
}

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

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-light);
}

.cart-item-price {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: auto;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #c0b8b0;
  font-size: 0.8rem;
  padding: 2px 4px;
  transition: color 0.2s;
  line-height: 1;
}

.cart-item-remove:hover {
  color: #b94040;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd0c6;
  border-radius: 4px;
  overflow: hidden;
}

.cart-item-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 9px;
  font-size: 0.6rem;
  color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
  line-height: 1;
}

.cart-item-qty-btn:hover {
  background-color: var(--gold);
  color: var(--white);
}

.cart-item-qty-val {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 26px;
  text-align: center;
  border-left: 1px solid #ddd0c6;
  border-right: 1px solid #ddd0c6;
  padding: 5px 2px;
}

.cart-drawer-footer {
  border-top: 1px solid #ecddd3;
  padding: 18px 24px 24px;
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-total-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-light);
}

.cart-total-val {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.cart-btn-pagar {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background-color: var(--gold);
  color: var(--white);
  border: none;
  padding: 15px;
  cursor: pointer;
  transition: background-color 0.22s;
}

.cart-btn-pagar:hover {
  background-color: var(--gold-dark);
}

.cart-count[data-empty="true"] {
  display: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .nov-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .nov-hero {
    min-height: 520px;
    padding: 56px 20px;
  }
}

@media (max-width: 700px) {
  .nov-hero {
    min-height: calc(100vh - 36px - 68px);
    min-height: calc(100svh - 36px - 68px);
  }

  .nov-hero-sub {
    white-space: normal;
    max-width: 320px;
  }

  .nov-hero-title {
    font-size: 2.8rem;
  }

  .nov-editorial {
    padding: 44px 24px;
  }

  .nov-editorial-inner {
    flex-direction: column;
    gap: 0;
  }

  .nov-ed-divider {
    width: 60%;
    height: 1px;
    align-self: center;
    margin: 28px auto;
  }

  .nov-ed-col {
    padding: 0 16px;
  }

  .nov-productos {
    padding: 44px 20px 60px;
  }

  .nov-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .nov-hero-title {
    font-size: 2.1rem;
  }

  .nov-hero-script {
    font-size: 1.8rem;
  }

  .nov-cats {
    gap: 8px;
  }

  .nov-cat-chip {
    padding: 7px 14px;
    font-size: 0.6rem;
  }
}
