/* =========================================================
   Valhala Woman — Design System
   Fonts: Fraunces (headings), Besley (accent), Georgia (body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Besley:wght@500;700&display=swap');

/* ----- Reset & Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #ffffff;
  --text:      #1a1a1a;
  --accent:    #000000;
  --btn-text:  #ffffff;
  --border:    #e5e5e5;
  --gray-light:#f7f7f7;
  --font-head: 'Fraunces', Georgia, serif;
  --font-accent:'Besley', Georgia, serif;
  --font-body: Georgia, 'Times New Roman', serif;
  --nav-h:     64px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ----- Utility ----- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--btn-text);
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: transparent;
  color: var(--accent);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--btn-text);
}

.btn--danger {
  background: #c0392b;
  border-color: #c0392b;
}

.btn--danger:hover {
  background: transparent;
  color: #c0392b;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Dropdown izquierda */
.nav-dropdown {
  position: relative;
  flex-shrink: 0;
}

.nav-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}

.nav-dropdown__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-dropdown__bars span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
}

.nav-dropdown__label {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  min-width: 200px;
  z-index: 200;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.nav-dropdown__menu.open {
  display: block;
}

.nav-dropdown__menu li a {
  display: block;
  padding: 12px 24px;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.15s;
}

.nav-dropdown__menu li a:hover {
  background: var(--gray-light);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.15s;
}

.nav-links a:hover {
  opacity: 0.55;
}

/* Cart icon */
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: var(--btn-text);
  font-size: 0.65rem;
  font-family: var(--font-accent);
  font-weight: 700;
  border-radius: 50%;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Full-hero link */
.hero-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
  cursor: pointer;
}

/* =========================================================
   PRE-LAUNCH
   ========================================================= */
.prelaunch {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}

.prelaunch__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.prelaunch__inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.prelaunch__date {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 14px;
}

.prelaunch__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 20px;
}

.prelaunch__sub {
  font-size: 0.95rem;
  opacity: 0.65;
  line-height: 1.7;
  margin-bottom: 36px;
}

.prelaunch__form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}

.prelaunch__form input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.prelaunch__form input::placeholder {
  opacity: 0.35;
  color: #fff;
}

.prelaunch__form input:focus {
  border-color: rgba(255,255,255,0.6);
}

.prelaunch__form button {
  padding: 14px 24px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #fff;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.prelaunch__form button:hover:not(:disabled) {
  background: transparent;
  color: #fff;
}

.prelaunch__form button:disabled {
  opacity: 0.5;
  cursor: default;
}

.prelaunch__msg {
  margin-top: 20px;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  opacity: 0.8;
  min-height: 1.2em;
}

@media (max-width: 480px) {
  .prelaunch__form {
    flex-direction: column;
  }
  .prelaunch__form input {
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: none;
  }
  .prelaunch__form button {
    border-top: none;
  }
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-head {
  text-align: center;
  padding: 72px 0 40px;
}

.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
}

.section-head p {
  margin-top: 12px;
  opacity: 0.65;
  font-size: 0.95rem;
}

/* =========================================================
   EDITORIAL SPLIT
   ========================================================= */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.editorial-split__img {
  overflow: hidden;
}

.editorial-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.editorial-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 60px;
  background: #fff;
}

.editorial-split__date {
  font-family: 'Besley', Georgia, serif;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
}

.editorial-split__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
}

.editorial-split__sub {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  max-width: 380px;
  margin-bottom: 20px;
}

.editorial-split__details {
  margin-bottom: 24px;
  max-width: 380px;
}

.editorial-split__details-title {
  font-family: 'Besley', Georgia, serif;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.editorial-split__details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.editorial-split__details ul li {
  font-size: .95rem;
  color: #555;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.editorial-split__details ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #aaa;
}

.editorial-split__price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 28px;
}

.editorial-split__why {
  max-width: 380px;
  margin-bottom: 28px;
}

.editorial-split__why p {
  font-size: .95rem;
  line-height: 1.7;
  color: #555;
  margin-top: 8px;
}

.editorial-split__brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 36px;
  line-height: 1.6;
}

.editorial-split__brand em {
  font-style: italic;
  color: #888;
  font-size: .9rem;
}

@media (max-width: 768px) {
  .editorial-split {
    grid-template-columns: 1fr;
  }
  .editorial-split__img {
    height: 60vw;
    min-height: 320px;
  }
  .editorial-split__text {
    padding: 48px 24px;
  }
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.products-section {
  padding-bottom: 80px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.product-card__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray-light);
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card__name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 400;
}

.product-card__price {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.product-card__actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-card__actions .btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 11px 16px;
  font-size: 0.75rem;
}

/* =========================================================
   CATEGORY GRID
   ========================================================= */
.categories-section {
  padding: 0 0 80px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--gray-light);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 28px;
  text-decoration: none;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 0.3s, transform 0.4s;
}

.category-card:hover img {
  opacity: 0.8;
  transform: scale(1.04);
}

.category-card__label {
  position: relative;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  text-align: center;
  background: rgba(255,255,255,0.82);
  padding: 8px 20px;
  letter-spacing: 0.03em;
}

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-section {
  padding: 56px 0 80px;
}

.cart-section h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 40px;
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
  opacity: 0.5;
}

.cart-items {
  border-top: 1px solid var(--border);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item__img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  background: var(--gray-light);
}

.cart-item__name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 400;
}

.cart-item__price {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: var(--gray-light);
}

.qty-value {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  min-width: 24px;
  text-align: center;
}

.cart-item__subtotal {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 90px;
  text-align: right;
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #aaa;
  transition: color 0.15s;
}

.remove-btn:hover {
  color: #c0392b;
}

.cart-summary {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.cart-total {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 400;
}

.cart-total span {
  font-weight: 700;
}

/* =========================================================
   SUCCESS PAGE
   ========================================================= */
.success-section {
  min-height: calc(100vh - var(--nav-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.success-box {
  text-align: center;
  max-width: 560px;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.success-box h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 16px;
}

.success-box p {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 32px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-brand-tagline {
  font-size: 0.88rem;
  opacity: 0.6;
  font-style: italic;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}

.social-links a:hover {
  border-color: var(--text);
}

.footer-col h4 {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.5;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.88rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.footer-col ul a:hover {
  opacity: 1;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-right: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  background: var(--bg);
}

.newsletter-form input::placeholder {
  opacity: 0.45;
}

.newsletter-form input:focus {
  border-color: var(--text);
}

.newsletter-form button {
  padding: 12px 18px;
  background: var(--accent);
  color: var(--btn-text);
  border: 1px solid var(--accent);
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: #333;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  opacity: 0.5;
}

/* =========================================================
   SHOP PAGE — filter bar placeholder
   ========================================================= */
.shop-header {
  padding: 56px 0 32px;
  text-align: center;
}

.shop-header h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
}

.shop-header p {
  margin-top: 10px;
  opacity: 0.6;
  font-size: 0.95rem;
}

.shop-body {
  padding-bottom: 80px;
}

/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */
#toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--accent);
  color: var(--btn-text);
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 14px 22px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 999;
}

#toast.show {
  opacity: 1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Hero — taller on mobile */
  .hero {
    aspect-ratio: 9 / 10;
  }

  /* Nav */
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* Grids */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cart */
  .cart-item {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }

  .cart-item__img {
    grid-row: 1 / 3;
    width: 64px;
    height: 80px;
  }

  .cart-item__subtotal,
  .qty-controls {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
