/* =========================================================
   NEGROTRÓPICO — Tienda · Theme v1
   Jost auto-hospedada (sin Google Fonts, postura GDPR).
   ========================================================= */
@font-face { font-family:"Jost"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/jost-400.woff2") format("woff2"); }
@font-face { font-family:"Jost"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/jost-500.woff2") format("woff2"); }
@font-face { font-family:"Jost"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/jost-600.woff2") format("woff2"); }

/* =========================================================
   NEGROTRÓPICO — Tienda · Prototipo v2
   Réplica fiel de la maquetación (The Hanger) sobre
   código limpio. Toda la identidad vive en :root.
   ========================================================= */

:root {
  /* ---- Paleta (monocroma, como el sitio real) ---- */
  --bg:         #ffffff;
  --bg-alt:     #fafafa;
  --ink:        #1a1a1a;   /* texto y acento principal */
  --ink-soft:   #8a8a8a;   /* subtítulos, precios, meta */
  --ink-mute:   #b5b5b5;   /* items atenuados del nav */
  --line:       #ededed;   /* divisores */
  --accent:     #1a1a1a;   /* acento = negro (ajustable) */

  /* ---- Tipografía ---- */
  --font: "Jost", system-ui, -apple-system, sans-serif;

  /* ---- Métrica ---- */
  --container: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .18s, opacity .18s; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* =========================================================
   TOPBAR  (fondo claro, gris, teléfono centrado)
   ========================================================= */
.topbar { border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }
.topbar__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 44px; gap: 16px; }
.topbar__left { display: flex; align-items: center; gap: 18px; }
.topbar__social { display: flex; gap: 12px; }
.topbar__social svg { width: 15px; height: 15px; }
.topbar a { color: var(--ink-soft); }
.topbar a:hover { color: var(--ink); }
.topbar__phone { text-align: center; }
.topbar__right { text-align: right; }
@media (max-width: 900px) { .topbar__left .topbar__mail, .topbar__phone { display: none; } .topbar__inner { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   HEADER
   ========================================================= */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; min-height: 96px; }
.header__logo img { height: 66px; width: auto; max-width: 50vw; }
.header__burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.header__burger span { width: 24px; height: 2px; background: var(--ink); display: block; transition: .25s; }

/* Search: barra grande integrada */
.search { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--line); max-width: 620px; width: 100%; }
.search__input { flex: 1; border: none; padding: 14px 4px; font-size: 15px; font-family: inherit; background: none; min-width: 0; }
.search__input::placeholder { color: var(--ink-soft); }
.search__input:focus { outline: none; }
.search__cat { border: none; background: none; font-family: inherit; font-size: 14px; color: var(--ink-soft); padding: 0 14px; border-left: 1px solid var(--line); }
.search__btn { padding: 8px 6px 8px 14px; color: var(--ink); display: grid; place-items: center; }
.search__btn:hover { opacity: .6; }

.header__actions { display: flex; align-items: center; gap: 22px; }
.header__icon { position: relative; color: var(--ink); display: grid; place-items: center; }
.header__icon svg { width: 23px; height: 23px; }
.header__icon:hover { opacity: .6; }
.header__cart-count { position: absolute; top: -7px; right: -9px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 500; min-width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; padding: 0 4px; }

/* =========================================================
   NAV  (browse categories + lista)
   ========================================================= */
.nav { border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: stretch; gap: 28px; position: relative; }

.browse { position: relative; align-self: stretch; display: flex; }
.browse__btn { background: var(--ink); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 26px; font-size: 14px; font-weight: 400; letter-spacing: .01em; min-width: 250px; height: 100%; min-height: 56px; }
.browse__btn svg { width: 18px; height: 18px; }
.browse__btn .caret { margin-left: auto; }
.browse__menu { position: absolute; top: 100%; left: 0; width: 250px; background: var(--ink); padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 60; }
.browse.is-open .browse__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.browse__menu a { display: flex; justify-content: space-between; padding: 9px 26px; color: #cfcfcf; font-size: 13.5px; }
.browse__menu a:hover { color: #fff; }
.browse__menu em { font-style: normal; color: #777; }

.nav__list { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.nav__item > a { display: flex; align-items: center; gap: 6px; padding: 17px 16px; font-size: 14.5px; font-weight: 400; color: var(--ink); }
.nav__item > a:hover { opacity: .55; }
.nav__item--muted > a { color: var(--ink-mute); }
.nav__item .caret { opacity: .5; }
.nav__item { position: relative; }
.nav__sub { position: absolute; top: 100%; left: 0; background: var(--bg); border: 1px solid var(--line); min-width: 210px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 60; }
.nav__item--has-children:hover .nav__sub, .nav__item--has-children:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a { display: block; padding: 10px 22px; font-size: 13.5px; }
.nav__sub a:hover { background: var(--bg-alt); }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero { position: relative; }
.hero__track { position: relative; }
.slide { position: relative; display: none; }
.slide.is-active { display: block; animation: fade .6s ease; }
@keyframes fade { from { opacity: .4; } to { opacity: 1; } }
.slide__media { position: relative; height: clamp(420px, 60vh, 640px); overflow: hidden; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__panel { position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 40px 56px 40px 0; max-width: 560px; }
.slide__panel-inner { padding-left: max(calc((100vw - var(--container)) / 2 + var(--gutter)), var(--gutter)); }
.slide__eyebrow { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.slide__title { font-size: clamp(30px, 4vw, 52px); font-weight: 400; line-height: 1.05; margin: 14px 0 26px; }
.slide__num { position: absolute; right: max(calc((100vw - var(--container)) / 2 + var(--gutter)), var(--gutter)); bottom: 28px; display: flex; align-items: center; gap: 14px; color: #fff; font-size: 13px; letter-spacing: .1em; }
.slide__num::after { content: ""; width: 54px; height: 1px; background: rgba(255,255,255,.7); }
.hero__dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 9px; z-index: 4; }
.hero__dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); }
.hero__dots button.is-active { background: #fff; }

/* =========================================================
   BOTONES
   ========================================================= */
.btn { display: inline-block; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; padding: 13px 30px; border: 1px solid var(--ink); background: none; color: var(--ink); transition: .2s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; text-align: center; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: none; color: var(--ink); }

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head { text-align: center; margin: 0 auto 46px; }
.section-head__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; letter-spacing: .01em; margin: 0 0 10px; }
.section-head__sub { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* =========================================================
   PRODUCT GRID + CARD
   ========================================================= */
.section { padding: 72px 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 36px; }

.card { position: relative; }
.card__media { position: relative; overflow: hidden; background: var(--bg-alt); aspect-ratio: 1 / 1.08; margin-bottom: 16px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__act { position: absolute; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.12); opacity: 0; transform: translateY(6px); transition: .25s; z-index: 3; }
.card__act:hover { background: var(--ink); color: #fff; }
.card__act--qv { top: 14px; right: 14px; }
.card__act--add { bottom: 14px; right: 14px; }
.card:hover .card__act { opacity: 1; transform: translateY(0); }
.card__act svg { width: 18px; height: 18px; }
.card__title { font-size: 16px; font-weight: 400; margin: 0 0 5px; }
.card__title a:hover { opacity: .55; }
.card__price { color: var(--ink-soft); font-size: 15px; }
.card--alt { background: var(--bg-alt); }

/* =========================================================
   BRANDMARK (isotipo antes del footer)
   ========================================================= */
.brandmark { padding: 64px 0 56px; text-align: center; }
.brandmark img { height: 148px; width: auto; margin: 0 auto; }

/* =========================================================
   FEATURES (icono a la izquierda)
   ========================================================= */
.features { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 46px 0; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature { display: flex; align-items: flex-start; gap: 16px; }
.feature__icon { color: var(--ink); flex-shrink: 0; margin-top: 2px; }
.feature__icon svg { width: 30px; height: 30px; stroke-width: 1.3; }
.feature__title { font-size: 16px; font-weight: 500; margin: 0 0 3px; }
.feature__text { color: var(--ink-soft); font-size: 13.5px; margin: 0; }

/* =========================================================
   FOOTER (fondo blanco)
   ========================================================= */
.footer { padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 52px; }
.footer__search form { display: flex; align-items: center; border-bottom: 1px solid var(--line); max-width: 320px; }
.footer__search input { flex: 1; border: none; background: none; padding: 12px 2px; font-family: inherit; font-size: 14px; }
.footer__search input:focus { outline: none; }
.footer__search button { padding: 8px; color: var(--ink); }
.footer__col li { line-height: 1; }
.footer__col a { display: inline-block; padding: 8px 0; font-size: 14px; color: var(--ink); }
.footer__col a:hover { opacity: .55; }
.footer__bar { border-top: 1px solid var(--line); padding: 22px 0; }
.footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__legal a { font-size: 13.5px; }
.footer__legal a:hover { opacity: .55; }
.footer__copy { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb { font-size: 13px; color: var(--ink-soft); padding: 26px 0; letter-spacing: .02em; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* =========================================================
   SINGLE PRODUCT
   ========================================================= */
.product { padding-bottom: 72px; }
.product__top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.gallery__main { position: relative; background: var(--bg-alt); margin-bottom: 14px; }
.gallery__main img { width: 100%; }
.gallery__badge { position: absolute; top: 16px; left: 16px; background: var(--ink); color: #fff; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 11px; }
.gallery__thumbs { display: flex; gap: 12px; }
.gallery__thumbs button { width: 84px; border: 1px solid var(--line); background: var(--bg-alt); padding: 0; overflow: hidden; }
.gallery__thumbs button.is-active { border-color: var(--ink); }
.product__title { font-size: clamp(30px, 4vw, 44px); font-weight: 400; margin: 4px 0 14px; }
.product__price { font-size: 24px; color: var(--ink); margin-bottom: 26px; }
.product__buy { display: flex; gap: 14px; align-items: stretch; margin-bottom: 28px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 44px; font-size: 18px; color: var(--ink-soft); }
.qty input { width: 48px; text-align: center; border: none; font-family: inherit; font-size: 15px; }
.qty input:focus { outline: none; }
.product__meta { border-top: 1px solid var(--line); padding-top: 22px; font-size: 14px; color: var(--ink-soft); display: grid; gap: 8px; }
.product__meta a { color: var(--ink); }
.product__meta a:hover { opacity: .6; }
.product__share { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-size: 13px; color: var(--ink-soft); }
.product__share a:hover { opacity: .55; }

/* Tabs */
.tabs { margin-top: 64px; }
.tabs__nav { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs__nav button { padding: 0 0 16px; font-size: 16px; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs__nav button.is-active { color: var(--ink); border-color: var(--ink); }
.tabs__panel { font-size: 15px; color: var(--ink-soft); max-width: 720px; }

/* =========================================================
   CATEGORY ARCHIVE
   ========================================================= */
.archive { padding-bottom: 72px; }
.archive__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.archive__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; margin: 0; }
.archive__count { color: var(--ink-soft); font-size: 15px; }
.archive__toolbar { display: flex; justify-content: flex-end; padding: 14px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.archive__sort { border: 1px solid var(--line); padding: 10px 16px; font-family: inherit; font-size: 14px; color: var(--ink); background: var(--bg); }
.archive__layout { display: grid; grid-template-columns: 230px 1fr; gap: 48px; }
.sidebar__title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.sidebar__list a { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.sidebar__list a:hover { color: var(--ink); }
.sidebar__list em { font-style: normal; }
.archive .product-grid { grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }
@media (max-width: 900px) { .archive__layout { grid-template-columns: 1fr; } .archive__sidebar { display: none; } }

/* =========================================================
   PÁGINA GENÉRICA
   ========================================================= */
.page { padding: 8px 0 80px; }
.page__head { text-align: center; margin-bottom: 44px; }
.page__title { font-size: clamp(32px, 4.5vw, 52px); font-weight: 400; margin: 0; }
.page__body { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.8; color: #3a3a3a; }
.page__body h2 { font-weight: 400; font-size: 26px; margin: 40px 0 14px; }
.page__body p { margin: 0 0 18px; }

/* =========================================================
   MINI CART + QUICK VIEW
   ========================================================= */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: .3s; z-index: 80; }
.overlay.is-open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 370px; max-width: 90vw; background: var(--bg); z-index: 90; transform: translateX(100%); transition: transform .32s ease; display: flex; flex-direction: column; }
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.cart-drawer__head h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: .04em; }
.cart-drawer__close { font-size: 28px; color: var(--ink-soft); }
.cart-drawer__body { padding: 44px 24px; flex: 1; }
.cart-drawer__empty { color: var(--ink-soft); text-align: center; }
.cart-drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

.qv { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: .25s; }
.qv.is-open { opacity: 1; visibility: visible; }
.qv__panel { background: var(--bg); max-width: 760px; width: 100%; position: relative; padding: 40px; }
.qv__close { position: absolute; top: 16px; right: 20px; font-size: 30px; color: var(--ink-soft); }
.qv__content { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.qv__content img { width: 100%; }
.qv__title { font-size: 28px; font-weight: 400; margin: 0 0 8px; }
.qv__price { font-size: 19px; color: var(--ink-soft); margin-bottom: 20px; }
@media (max-width: 560px) { .qv__content { grid-template-columns: 1fr; } }

/* =========================================================
   CARRITO (página)
   ========================================================= */
.cart { padding: 8px 0 80px; }
.cart__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; margin: 0 0 32px; }
.cart__layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.cart__table { width: 100%; border-collapse: collapse; }
.cart__table th { text-align: left; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.cart__table td { padding: 22px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart__prod { display: flex; align-items: center; gap: 18px; }
.cart__prod img { width: 76px; height: 92px; object-fit: cover; background: var(--bg-alt); }
.cart__prod-name { font-size: 16px; }
.cart__remove { color: var(--ink-soft); font-size: 20px; line-height: 1; }
.cart__remove:hover { color: var(--ink); }
.cart__coupon { display: flex; gap: 10px; margin-top: 28px; }
.cart__coupon input { border: 1px solid var(--line); padding: 12px 14px; font-family: inherit; font-size: 14px; flex: 1; max-width: 240px; }
.cart__coupon input:focus { outline: none; border-color: var(--ink); }
.totals { border: 1px solid var(--line); padding: 28px; }
.totals h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 20px; }
.totals__row { display: flex; justify-content: space-between; padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.totals__row--total { font-size: 18px; border-bottom: none; padding-top: 18px; }
.totals__row span:last-child { color: var(--ink); }
.totals .btn { margin-top: 22px; }
@media (max-width: 900px) { .cart__layout { grid-template-columns: 1fr; } .cart__table th:nth-child(2), .cart__table td:nth-child(2) { display: none; } }

/* =========================================================
   CHECKOUT
   ========================================================= */
.checkout { padding: 8px 0 80px; }
.checkout__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; margin: 0 0 32px; }
.checkout__layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.form-block h2 { font-size: 18px; font-weight: 500; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 7px; }
.field label .req { color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); padding: 12px 14px; font-family: inherit; font-size: 15px; background: var(--bg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order-summary { border: 1px solid var(--line); padding: 30px; position: sticky; top: 120px; }
.order-summary h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 22px; }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.order-line__name { color: var(--ink); }
.order-line--total { font-size: 18px; padding-top: 18px; border-bottom: none; }
.pay { margin: 22px 0; display: grid; gap: 12px; }
.pay__opt { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); padding: 16px; cursor: pointer; }
.pay__opt input { margin-top: 3px; }
.pay__opt-title { font-size: 15px; }
.pay__opt-desc { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
@media (max-width: 900px) { .checkout__layout { grid-template-columns: 1fr; } .order-summary { position: static; } }

/* =========================================================
   CUENTA (login + registro)
   ========================================================= */
.account { padding: 8px 0 90px; }
.account__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; margin: 0 0 36px; text-align: center; }
.account__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 880px; margin: 0 auto; }
.account__card { border: 1px solid var(--line); padding: 36px; }
.account__card h2 { font-size: 20px; font-weight: 500; margin: 0 0 24px; }
.account__meta { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 24px; font-size: 13px; color: var(--ink-soft); }
.account__meta a { color: var(--ink); }
@media (max-width: 760px) { .account__grid { grid-template-columns: 1fr; gap: 28px; } }

/* =========================================================
   VARIACIONES (tallas)
   ========================================================= */
.variations { margin-bottom: 26px; }
.variations__label { display: block; font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 10px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { min-width: 46px; height: 46px; padding: 0 14px; border: 1px solid var(--line); font-family: inherit; font-size: 14px; color: var(--ink); transition: .15s; }
.swatch:hover { border-color: var(--ink); }
.swatch.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =========================================================
   PEDIDO RECIBIDO
   ========================================================= */
.received { padding: 16px 0 90px; }
.received__head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.received__check { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; margin: 0 auto 24px; }
.received__check svg { width: 30px; height: 30px; }
.received__title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 400; margin: 0 0 12px; }
.received__text { color: var(--ink-soft); font-size: 16px; margin: 0; }
.received__panel { max-width: 720px; margin: 0 auto; border: 1px solid var(--line); }
.received__row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--line); font-size: 15px; }
.received__row span:first-child { color: var(--ink-soft); }
.received__items { padding: 8px 28px 0; }
.received__item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.received__total { display: flex; justify-content: space-between; padding: 20px 28px; font-size: 18px; }
.received__cta { text-align: center; margin-top: 40px; }

/* =========================================================
   404
   ========================================================= */
.notfound { padding: 80px 0 110px; text-align: center; }
.notfound__code { font-size: clamp(90px, 16vw, 180px); font-weight: 300; line-height: 1; letter-spacing: .02em; }
.notfound__title { font-size: clamp(22px, 3vw, 30px); font-weight: 400; margin: 8px 0 14px; }
.notfound__text { color: var(--ink-soft); max-width: 460px; margin: 0 auto 30px; }
.notfound__search { display: flex; align-items: center; border-bottom: 1px solid var(--line); max-width: 380px; margin: 0 auto 30px; }
.notfound__search input { flex: 1; border: none; background: none; padding: 12px 2px; font-family: inherit; font-size: 15px; }
.notfound__search input:focus { outline: none; }
.notfound__search button { padding: 8px; color: var(--ink); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .product-grid, .archive .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .product__top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .header__inner { grid-template-columns: auto auto auto; gap: 16px; min-height: 72px; }
  .header__burger { display: flex; }
  .search, .nav__list, .browse { display: none; }
  .nav__inner { justify-content: center; }
  .features__grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .nav.is-mobile-open { display: block; position: fixed; inset: 0 auto 0 0; width: 310px; max-width: 86vw; background: var(--bg); z-index: 95; overflow-y: auto; box-shadow: 0 0 50px rgba(0,0,0,.15); }
  .nav.is-mobile-open .nav__list { display: flex; flex-direction: column; align-items: stretch; padding-top: 64px; }
  .nav.is-mobile-open .nav__item > a { border-bottom: 1px solid var(--line); }
  .nav.is-mobile-open .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; border: none; padding: 0 0 6px 18px; }
}
@media (max-width: 680px) {
  .product-grid, .archive .product-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .slide__panel { padding-right: 28px; }
}
@media (max-width: 460px) {
  .product-grid, .archive .product-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .footer__legal { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover .card__media img { transform: none; }
}

/* =========================================================
   INTEGRACIÓN WOOCOMMERCE (core: carrito, checkout, cuenta)
   Mapea el markup nativo de WooCommerce al look del theme.
   ========================================================= */
.woocommerce-page .container { }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font-family: var(--font); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  padding: 13px 28px; border-radius: 0; font-weight: 400; transition: .2s; line-height: 1;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: #fff; color: var(--ink); }

.woocommerce form .form-row label, .woocommerce-account label { font-size: 13px; color: var(--ink-soft); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce .select2-container, .woocommerce select {
  border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; font-family: var(--font); font-size: 15px;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { outline: none; border-color: var(--ink); }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top: 2px solid var(--ink); background: var(--bg-alt); border-radius: 0; font-size: 14px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--ink); }

/* Tablas (carrito) */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: 0; }
.woocommerce table.shop_table th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.woocommerce-cart table.cart img { width: 76px; }
.woocommerce .quantity .qty {
  border: 1px solid var(--line); padding: 10px; font-family: var(--font); width: 64px; border-radius: 0;
}

/* Totales / cuenta */
.woocommerce .cart_totals h2, .woocommerce-checkout #order_review_heading,
.woocommerce-account .woocommerce-MyAccount-navigation ul { font-family: var(--font); }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 14px 18px; font-size: 14px; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--ink); color: #fff; }

/* Precio */
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--ink-soft); font-weight: 400; }
.woocommerce div.product p.price { font-size: 24px; }

/* Breadcrumb nativo (por si se usa) */
.woocommerce .woocommerce-breadcrumb { font-size: 13px; color: var(--ink-soft); padding: 26px 0; }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--ink); }

/* =========================================================
   AJUSTES DEL THEME (accesibilidad + WooCommerce)
   ========================================================= */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

/* Steppers +/- inyectados en .quantity de WooCommerce */
.quantity { display: inline-flex; align-items: center; }
.quantity .qty-btn { width: 40px; height: 44px; border: 1px solid var(--line); background: var(--bg); font-size: 18px; color: var(--ink-soft); line-height: 1; }
.quantity .qty-btn:hover { color: var(--ink); }
.quantity input.qty { height: 44px; border-left: 0; border-right: 0; }

/* Ordenación del catálogo */
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select.orderby { border: 1px solid var(--line); padding: 11px 16px; font-family: var(--font); font-size: 14px; background: var(--bg); border-radius: 0; }
.archive__toolbar .woocommerce-result-count { display: none; }
.archive__main .woocommerce-result-count { color: var(--ink-soft); font-size: 13px; margin: 0 0 18px; }

/* Paginación */
.woocommerce-pagination { margin-top: 44px; }
.woocommerce-pagination ul { display: inline-flex; gap: 6px; border: 0 !important; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span {
  border: 1px solid var(--line) !important; padding: 10px 15px !important; min-width: 44px; color: var(--ink);
}
.woocommerce-pagination ul li span.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Páginas WooCommerce a ancho completo dentro de .page */
.page__wc { width: 100%; }

/* Mini-cart del drawer (markup nativo de WooCommerce) */
.cart-drawer__body ul.cart_list { list-style: none; margin: 0; padding: 0; }
.cart-drawer__body ul.cart_list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-drawer__body ul.cart_list li a { color: var(--ink); }
.cart-drawer__body .woocommerce-mini-cart__total { padding: 16px 0; font-size: 16px; }
.cart-drawer__body .woocommerce-mini-cart__buttons { display: none; } /* usamos los botones del pie del drawer */

/* =========================================================
   SINGLE PRODUCT (layout del prototipo sobre WooCommerce)
   ========================================================= */
.single-product-layout { padding-bottom: 8px; }
.single-product-layout .product__top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.single-product-layout .gallery { position: relative; }
.single-product-layout .woocommerce-product-gallery { margin: 0; }
.single-product-layout .summary { margin: 0; }
.single-product-layout .product_title { font-size: clamp(30px, 4vw, 44px); font-weight: 400; margin: 4px 0 14px; }
.single-product-layout .summary .price { font-size: 24px; color: var(--ink); margin-bottom: 24px; display: block; }
.single-product-layout .woocommerce-product-rating { margin-bottom: 14px; font-size: 13px; }
.single-product-layout .product__share { margin-top: 22px; }
.single-product-layout .product_meta { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; font-size: 14px; color: var(--ink-soft); display: grid; gap: 8px; }
.single-product-layout .product_meta a { color: var(--ink); }
.single-product-layout .product_meta a:hover { opacity: .6; }
.single-product-layout .product_meta > span { display: block; }

/* Badge nuevo / oferta */
.single-product-layout .onsale,
.single-product-layout .gallery__badge {
  position: absolute; top: 16px; z-index: 3; background: var(--ink); color: #fff;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 11px; min-height: auto; line-height: 1.4; border-radius: 0; margin: 0;
}
.single-product-layout .gallery__badge { left: 16px; }
.single-product-layout .onsale { right: 16px; left: auto; }

/* Add to cart + cantidad */
.single-product-layout form.cart { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 8px 0 24px; }
.single-product-layout form.cart .quantity { margin: 0; }
.woocommerce-variation-add-to-cart { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* Tabla de variaciones convertida en swatches */
.single-product-layout .variations { margin-bottom: 20px; width: 100%; border: 0; }
.single-product-layout .variations tr,
.single-product-layout .variations th,
.single-product-layout .variations td { display: block; text-align: left; padding: 0; border: 0; }
.single-product-layout .variations th.label { font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 10px; font-weight: 400; }
.single-product-layout .reset_variations { display: inline-block; font-size: 12px; color: var(--ink-soft); margin-top: 10px; }

/* Tabs y relacionados a ancho completo */
.single-product-layout .woocommerce-tabs { margin-top: 56px; }
.single-product-layout .woocommerce-tabs ul.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 0 0 26px; padding: 0; list-style: none; }
.single-product-layout .woocommerce-tabs ul.tabs li { margin: 0; border: 0; background: none; padding: 0; }
.single-product-layout .woocommerce-tabs ul.tabs li a { padding: 0 0 16px; font-size: 16px; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.single-product-layout .woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-color: var(--ink); }
.single-product-layout .woocommerce-Tabs-panel { font-size: 15px; color: var(--ink-soft); max-width: 760px; }
.single-product-layout .related, .single-product-layout .upsells { margin-top: 24px; }
.single-product-layout .related > h2, .single-product-layout .upsells > h2 { text-align: center; font-weight: 400; font-size: clamp(26px, 3vw, 34px); margin-bottom: 40px; }

/* ul.products genérico → grid (relacionados, upsells, shortcodes) */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }

/* Quick view AJAX */
.qv__content .qv__media img { width: 100%; }
.qv__info .qv__desc { font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 22px; }
.qv__info .btn { margin: 4px 10px 0 0; }

@media (max-width: 1024px) {
  .single-product-layout .product__top { grid-template-columns: 1fr; gap: 32px; }
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
}
