/*
Theme Name: Naturelle BY PM Store
Theme URI: https://store.esteticanaturelle.com
Author: Naturelle BY Pilar Membrive
Description: Tienda online NATURELLE BY PM — estética blanca y dorada.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: naturelle-by-pm
*/

:root {
  --nt-gold: #a38244;
  --nt-gold-dark: #8a6d38;
  --nt-gold-soft: #c4a574;
  --nt-ink: #1a1a1a;
  --nt-muted: #6b6b6b;
  --nt-cream: #f7f3ec;
  --nt-cream-2: #f0ebe3;
  --nt-line: #e8e2d8;
  --nt-white: #ffffff;
  --nt-serif: "Cormorant Garamond", "Times New Roman", serif;
  --nt-sans: "DM Sans", system-ui, sans-serif;
  --nt-max: 1280px;
  --nt-radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--nt-sans);
  color: var(--nt-ink);
  background: var(--nt-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.nt-container {
  width: min(100% - 2rem, var(--nt-max));
  margin-inline: auto;
}

.nt-topbar {
  background: var(--nt-gold);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.nt-topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 36px;
}
.nt-topbar__inner span:nth-child(1) { justify-self: start; }
.nt-topbar__inner span:nth-child(2) { justify-self: center; text-align: center; }
.nt-topbar__inner span:nth-child(3) { justify-self: end; }
.nt-topbar svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 0.35rem; }

.nt-header {
  background: var(--nt-white);
  border-bottom: 1px solid var(--nt-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nt-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 78px;
}
.nt-logo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nt-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.nt-logo__text {
  font-family: var(--nt-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--nt-gold);
  letter-spacing: 0.08em;
  line-height: 1;
}
.nt-logo__sub {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--nt-muted);
  text-transform: uppercase;
}

.nt-nav {
  display: flex;
  justify-content: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}
.nt-nav a {
  font-size: 0.82rem;
  color: #444;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.nt-nav a:hover,
.nt-nav a.is-active {
  color: var(--nt-ink);
  border-bottom-color: var(--nt-gold);
}

.nt-utils {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.nt-utils button,
.nt-utils a {
  background: none;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--nt-ink);
  position: relative;
}
.nt-utils svg { width: 20px; height: 20px; stroke-width: 1.6; }
.nt-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--nt-gold);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.nt-burger { display: none; }

.nt-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: min(72vh, 640px);
  background: linear-gradient(105deg, #faf8f4 0%, #f3eee6 45%, transparent 45%), var(--nt-cream);
  overflow: hidden;
}
.nt-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  gap: 1.1rem;
}
.nt-hero__eyebrow {
  color: var(--nt-gold);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.nt-hero h1 {
  margin: 0;
  font-family: var(--nt-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--nt-ink);
}
.nt-hero p {
  margin: 0;
  max-width: 34ch;
  color: var(--nt-muted);
  font-size: 1.02rem;
}
.nt-hero__media {
  position: relative;
  min-height: 320px;
}
.nt-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.nt-hero__caption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  font-family: "Great Vibes", cursive;
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.nt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0 1.35rem;
  background: var(--nt-gold);
  color: #fff !important;
  border: 1px solid var(--nt-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.nt-btn:hover { background: var(--nt-gold-dark); border-color: var(--nt-gold-dark); }
.nt-btn--ghost {
  background: transparent;
  color: var(--nt-gold) !important;
}
.nt-btn--ghost:hover {
  background: var(--nt-gold);
  color: #fff !important;
}
.nt-btn--block { width: 100%; }

.nt-trust {
  background: var(--nt-cream);
  border-block: 1px solid var(--nt-line);
}
.nt-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.35rem 0;
}
.nt-trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #444;
}
.nt-trust__item svg { color: var(--nt-gold); width: 18px; height: 18px; flex-shrink: 0; }

.nt-section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.nt-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.nt-section__head h2 {
  margin: 0;
  font-family: var(--nt-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}
.nt-link-more {
  color: var(--nt-gold);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.nt-cats {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
}
.nt-cat {
  text-align: center;
}
.nt-cat__img {
  aspect-ratio: 1;
  border-radius: 999px;
  overflow: hidden;
  background: var(--nt-cream-2);
  margin-bottom: 0.7rem;
}
.nt-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.nt-cat span { font-size: 0.82rem; color: #444; }

.nt-products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.nt-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.nt-card__media {
  position: relative;
  background: #f4f4f4;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.nt-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nt-card__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--nt-gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
}
.nt-card__wish {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 32px;
  height: 32px;
  border: 0;
  background: rgba(255,255,255,.85);
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--nt-ink);
}
.nt-card__brand {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.nt-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: #333;
}
.nt-card__price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.nt-card__price del {
  color: #999;
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 0.35rem;
}
.nt-stars {
  color: var(--nt-gold);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.nt-stars span { color: var(--nt-muted); }

.nt-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.nt-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 240px;
  background: var(--nt-cream);
  overflow: hidden;
}
.nt-banner--alt { background: #ebe4d8; }
.nt-banner__copy {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.nt-banner__copy h3 {
  margin: 0;
  font-family: var(--nt-serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
}
.nt-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nt-footer {
  background: var(--nt-white);
  border-top: 1px solid var(--nt-line);
  margin-top: 2rem;
}
.nt-footer__trust {
  background: #f5f5f5;
  border-bottom: 1px solid var(--nt-line);
}
.nt-footer__trust .nt-trust__grid { padding: 1.5rem 0; }
.nt-footer__main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr;
  gap: 1.5rem;
  padding: 2.5rem 0;
}
.nt-footer h4 {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.nt-footer p, .nt-footer a { color: var(--nt-muted); font-size: 0.88rem; }
.nt-footer a:hover { color: var(--nt-gold); }
.nt-footer__brand p { font-family: var(--nt-serif); font-size: 1.05rem; color: var(--nt-ink); font-style: italic; }
.nt-footer__cols ul { display: grid; gap: 0.45rem; }
.nt-newsletter {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.nt-newsletter input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--nt-line);
  padding: 0.7rem 0.8rem;
  background: #fff;
}
.nt-newsletter button {
  width: 46px;
  border: 0;
  background: var(--nt-gold);
  color: #fff;
  cursor: pointer;
}
.nt-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--nt-line);
  font-size: 0.78rem;
  color: var(--nt-muted);
}
.nt-footer__legal { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Shop / archive */
.nt-shop-hero {
  background: linear-gradient(90deg, var(--nt-cream) 0%, #efe8dc 55%, transparent 55%),
    url("../img/hero.jpg") right center / cover no-repeat;
  padding: 3.5rem 0;
}
.nt-shop-hero h1 {
  margin: 0.35rem 0 0.6rem;
  font-family: var(--nt-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
}
.nt-shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  padding: 1.5rem 0 3rem;
}
.nt-filters {
  border-right: 1px solid var(--nt-line);
  padding-right: 1.25rem;
}
.nt-filters h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}
.nt-filters details {
  border-bottom: 1px solid var(--nt-line);
  padding: 0.85rem 0;
}
.nt-filters summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.nt-filters summary::-webkit-details-marker { display: none; }
.nt-filters label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: #444;
  margin: 0.45rem 0;
}
.nt-shop-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--nt-muted);
}
.nt-products--shop {
  grid-template-columns: repeat(3, 1fr);
}
.woocommerce-pagination {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
}
.woocommerce-pagination .page-numbers {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--nt-line);
  font-size: 0.85rem;
}
.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers:hover {
  background: var(--nt-gold);
  border-color: var(--nt-gold);
  color: #fff;
}

/* Product */
.nt-product {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  padding: 2rem 0 3rem;
}
.nt-product__gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
}
.nt-thumbs { display: grid; gap: 0.5rem; align-content: start; }
.nt-thumbs a, .nt-thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  background: #f4f4f4;
  border: 1px solid var(--nt-line);
}
.nt-product__main-img {
  background: #f4f4f4;
  aspect-ratio: 1;
  overflow: hidden;
}
.nt-product__main-img img { width: 100%; height: 100%; object-fit: cover; }
.nt-product__info .nt-brand {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.nt-product__info h1 {
  margin: 0 0 0.5rem;
  font-family: var(--nt-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
}
.nt-product__info .price {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.75rem 0;
  display: block;
}
.nt-buy-row {
  display: flex;
  gap: 0.65rem;
  margin: 1.25rem 0;
}
.nt-qty {
  display: inline-flex;
  border: 1px solid var(--nt-line);
  min-height: 46px;
}
.nt-qty button {
  width: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nt-qty input {
  width: 42px;
  border: 0;
  text-align: center;
  background: transparent;
}
.nt-product-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--nt-muted);
  margin-bottom: 1.5rem;
}
.nt-accordion details {
  border-bottom: 1px solid var(--nt-line);
  padding: 0.9rem 0;
}
.nt-accordion summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.nt-accordion summary::-webkit-details-marker { display: none; }
.nt-accordion .content { padding-top: 0.65rem; color: var(--nt-muted); font-size: 0.92rem; }

/* Cart drawer */
.nt-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 60;
}
.nt-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.nt-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: #fff;
  z-index: 70;
  transform: translateX(105%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,.08);
}
.nt-drawer.is-open { transform: translateX(0); }
.nt-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--nt-line);
  font-family: var(--nt-serif);
  font-size: 1.25rem;
}
.nt-drawer__body { flex: 1; overflow: auto; padding: 1rem 1.2rem; }
.nt-drawer__item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--nt-line);
}
.nt-drawer__item img { width: 72px; height: 72px; object-fit: cover; background: #f4f4f4; }
.nt-drawer__foot {
  border-top: 1px solid var(--nt-line);
  padding: 1.1rem 1.2rem 1.4rem;
  display: grid;
  gap: 0.55rem;
}
.nt-drawer__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
}
.nt-drawer__row--total { font-weight: 700; font-size: 1.05rem; }

/* Checkout */
.nt-checkout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 2rem 0 3rem;
}
.nt-steps {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}
.nt-steps span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--nt-muted);
}
.nt-steps .is-active { color: var(--nt-ink); font-weight: 600; }
.nt-steps i {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--nt-cream);
  font-style: normal;
  font-size: 0.75rem;
}
.nt-steps .is-active i { background: var(--nt-gold); color: #fff; }
.nt-summary {
  background: var(--nt-cream);
  padding: 1.25rem;
  align-self: start;
  position: sticky;
  top: 96px;
}
.nt-summary h3 {
  margin: 0 0 1rem;
  font-family: var(--nt-serif);
  font-weight: 500;
}

/* Account / gestion */
.nt-account {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}
.nt-account__nav {
  background: #fff;
  border: 1px solid var(--nt-line);
  padding: 1rem;
}
.nt-account__nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  color: #444;
}
.nt-account__nav a.is-active,
.nt-account__nav a:hover {
  background: #f4efe6;
  color: var(--nt-gold-dark);
}

.nt-gestion-hero {
  background: var(--nt-cream);
  padding: 2rem 0;
  border-bottom: 1px solid var(--nt-line);
}
.nt-gestion-hero h1 {
  margin: 0;
  font-family: var(--nt-serif);
  font-weight: 500;
  font-size: 2rem;
}
.nt-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.nt-kpi__card {
  background: #fff;
  border: 1px solid var(--nt-line);
  padding: 1.1rem 1.2rem;
}
.nt-kpi__card strong {
  display: block;
  font-size: 1.45rem;
  margin-top: 0.25rem;
}
.nt-kpi__card span { font-size: 0.8rem; color: var(--nt-muted); }
.nt-gestion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--nt-gold) !important;
}

@media (max-width: 1100px) {
  .nt-products { grid-template-columns: repeat(3, 1fr); }
  .nt-cats { grid-template-columns: repeat(4, 1fr); }
  .nt-footer__main { grid-template-columns: 1fr 1fr; }
  .nt-products--shop { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nt-topbar__inner { grid-template-columns: 1fr; text-align: center; padding: 0.45rem 0; }
  .nt-topbar__inner span:nth-child(1),
  .nt-topbar__inner span:nth-child(3) { display: none; }
  .nt-header__inner { grid-template-columns: auto 1fr auto; }
  .nt-nav { display: none; }
  .nt-burger { display: grid; }
  .nt-hero { grid-template-columns: 1fr; }
  .nt-hero__media { min-height: 280px; }
  .nt-trust__grid { grid-template-columns: 1fr 1fr; }
  .nt-dual { grid-template-columns: 1fr; }
  .nt-banner { grid-template-columns: 1fr; }
  .nt-shop-layout { grid-template-columns: 1fr; }
  .nt-filters { border: 0; padding: 0; }
  .nt-product { grid-template-columns: 1fr; }
  .nt-product__gallery { grid-template-columns: 1fr; }
  .nt-thumbs { grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; }
  .nt-checkout, .nt-account { grid-template-columns: 1fr; }
  .nt-kpi { grid-template-columns: 1fr 1fr; }
  .nt-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--nt-line);
    padding: 1rem;
    gap: 0.75rem;
  }
}
@media (max-width: 560px) {
  .nt-products, .nt-products--shop { grid-template-columns: 1fr 1fr; }
  .nt-cats { grid-template-columns: repeat(2, 1fr); }
}
