/* ============================================
   Umbrella's Beauty — Design Tokens
   Palette pulled from the brand logo (dusty rose,
   blush, mocha wordmark) and the wine/plum tones
   running through the product line.
   ============================================ */

:root {
  --cream: #FBF1EC;
  --blush: #F1D9D0;
  --blush-deep: #E6C2B6;
  --dust: #C99C8C;
  --mocha: #4A2A22;
  --mocha-deep: #341A15;
  --wine: #6E2530;
  --wine-deep: #591D26;
  --gold: #B08457;
  --ink: #2B1912;
  --ink-soft: #5C463F;
  --paper: #FFFDFC;

  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

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

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

button { font-family: inherit; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--mocha-deep);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: 1.03; font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; }
h3 { font-size: 1.3rem; line-height: 1.3; }

p { max-width: 62ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--wine);
  font-weight: 600;
}

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--mocha-deep);
  color: var(--paper);
}
.btn-primary:hover { background: var(--wine-deep); }

.btn-outline {
  background: transparent;
  border-color: var(--mocha-deep);
  color: var(--mocha-deep);
}
.btn-outline:hover { background: var(--mocha-deep); color: var(--paper); }

.btn-whatsapp {
  background: var(--wine);
  color: var(--paper);
}
.btn-whatsapp:hover { background: var(--wine-deep); }

.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* -------------------- Header -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 241, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 42, 34, 0.12);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--mocha-deep);
  letter-spacing: 0.01em;
}
.logo span { color: var(--wine); font-style: normal; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.main-nav a {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.25rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--mocha-deep); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--wine);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(74,42,34,0.2);
  background: transparent;
}
.icon-btn:hover { border-color: var(--mocha-deep); }
.icon-btn svg { color: var(--mocha-deep); }

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--wine);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--mocha-deep);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 340px);
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.75rem;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -12px 0 40px rgba(43,25,18,0.12);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.15rem; }
  .nav-toggle { display: inline-flex; }
  body.nav-open { overflow: hidden; }
}

/* -------------------- Footer -------------------- */

.site-footer {
  background: var(--mocha-deep);
  color: var(--blush);
  margin-top: clamp(4rem, 8vw, 7rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}

.footer-grid h4 {
  color: var(--paper);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.footer-brand .logo { color: var(--paper); }
.footer-brand .logo span { color: var(--dust); }
.footer-brand p { color: rgba(241, 217, 208, 0.75); margin-top: 0.9rem; font-size: 0.95rem; }

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.footer-grid a { color: rgba(241, 217, 208, 0.85); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--paper); }

.footer-bottom {
  border-top: 1px solid rgba(241, 217, 208, 0.15);
  padding-block: 1.5rem;
  font-size: 0.85rem;
  color: rgba(241, 217, 208, 0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* -------------------- Cart Drawer -------------------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,25,18,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 60;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--paper);
  z-index: 61;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: -20px 0 50px rgba(43,25,18,0.18);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1.1rem;
  border-bottom: 1px solid rgba(74,42,34,0.12);
}
.cart-head h3 { font-family: var(--font-body); font-weight: 700; }
.cart-close { background: none; border: none; font-size: 1.4rem; line-height: 1; color: var(--ink-soft); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.5rem;
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.cart-empty {
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: center;
  padding-top: 3rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.9rem;
  align-items: start;
}
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; background: var(--blush); }
.cart-item h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.cart-item .meta { font-size: 0.85rem; color: var(--ink-soft); }

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.qty-row button {
  width: 1.6rem; height: 1.6rem;
  border: 1px solid rgba(74,42,34,0.25);
  background: none;
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.remove-btn {
  background: none;
  border: none;
  color: var(--wine);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  justify-self: end;
}

.cart-foot {
  border-top: 1px solid rgba(74,42,34,0.12);
  padding: 1.25rem 1.5rem 1.75rem;
  display: grid;
  gap: 0.9rem;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--mocha-deep);
}
.cart-note { font-size: 0.82rem; color: var(--ink-soft); }

/* -------------------- Hero -------------------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 3rem) clamp(3rem, 7vw, 5rem);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy .eyebrow { display: block; margin-bottom: 1rem; }

.hero-title {
  overflow: hidden;
}
.hero-title span {
  display: block;
  transform: translateY(110%);
  animation: rise 0.9s var(--ease) forwards;
}
.hero-title span:nth-child(2) { animation-delay: 0.08s; }
.hero-title span:nth-child(3) { animation-delay: 0.16s; }

@keyframes rise {
  to { transform: translateY(0); }
}

.hero-copy p.lede {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.1rem;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--blush);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .tag {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: rgba(251,241,236,0.92);
  padding: 0.6rem 1rem;
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--mocha-deep);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16/11; }
}

/* -------------------- Category strip -------------------- */

.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.section-head p { color: var(--ink-soft); margin-top: 0.6rem; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.category-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  background: var(--blush-deep);
}
.category-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.category-card:hover img { transform: scale(1.05); }
.category-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(43,25,18,0.72) 0%, rgba(43,25,18,0) 55%);
}
.category-card .label {
  position: absolute;
  left: 1.4rem; bottom: 1.3rem;
  z-index: 2;
  color: var(--paper);
}
.category-card .label h3 { color: var(--paper); }
.category-card .label span { font-size: 0.88rem; opacity: 0.85; }

@media (max-width: 780px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .category-grid { grid-template-columns: 1fr; }
}

/* -------------------- Product grid & cards -------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.product-card {
  display: flex;
  flex-direction: column;
}
.product-card .thumb {
  aspect-ratio: 1/1;
  border-radius: 5px;
  overflow: hidden;
  background: var(--blush);
  margin-bottom: 1.1rem;
  position: relative;
}
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .thumb img { transform: scale(1.04); }

.product-card .brand { font-size: 0.82rem; color: var(--wine); font-weight: 600; }
.product-card h3 { margin-top: 0.3rem; font-size: 1.1rem; }
.product-card .desc { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.4rem; }
.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}
.product-card .price { font-weight: 700; color: var(--mocha-deep); font-size: 1.05rem; }

.add-btn {
  background: transparent;
  border: 1px solid var(--mocha-deep);
  color: var(--mocha-deep);
  padding: 0.55rem 1.15rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.add-btn:hover { background: var(--mocha-deep); color: var(--paper); }
.add-btn.added { background: var(--wine); border-color: var(--wine); color: var(--paper); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* -------------------- Story / editorial split -------------------- */

.story {
  background: var(--mocha-deep);
  color: var(--blush);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.story .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story h2 { color: var(--paper); }
.story p { color: rgba(241,217,208,0.82); margin-top: 1.3rem; }
.story .media {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.story .btn-outline { border-color: var(--paper); color: var(--paper); margin-top: 1.6rem; }
.story .btn-outline:hover { background: var(--paper); color: var(--mocha-deep); }

@media (max-width: 900px) {
  .story .container { grid-template-columns: 1fr; }
  .story .media { order: -1; }
}

/* -------------------- Social strip -------------------- */

.social-strip .section-head { margin-bottom: 1.5rem; }
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.social-grid a {
  display: block;
  aspect-ratio: 1/1;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.social-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.social-grid a:hover img { transform: scale(1.06); }

@media (max-width: 780px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------- Page header (Shop/About/Contact) -------------------- */

.page-header {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-bottom: 1px solid rgba(74,42,34,0.12);
}
.page-header p { color: var(--ink-soft); margin-top: 1rem; }

/* -------------------- Shop filters -------------------- */

.shop-layout .container {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.filter-tabs {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  border-bottom: 1px solid rgba(74,42,34,0.15);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.filter-tabs button {
  background: none;
  border: none;
  padding: 0.9rem 0.1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.filter-tabs button:hover { color: var(--mocha-deep); }
.filter-tabs button.active { color: var(--mocha-deep); border-color: var(--wine); }

/* -------------------- About page -------------------- */

.about-hero {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.about-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-hero img { border-radius: 6px; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 900px) {
  .about-hero .container { grid-template-columns: 1fr; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.value-card {
  border-top: 2px solid var(--wine);
  padding-top: 1.25rem;
}
.value-card p { color: var(--ink-soft); margin-top: 0.6rem; font-size: 0.95rem; }
@media (max-width: 780px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* -------------------- Contact page -------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.contact-card {
  background: var(--paper);
  border: 1px solid rgba(74,42,34,0.12);
  border-radius: 6px;
  padding: 1.75rem;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.contact-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.contact-list { display: grid; gap: 1.25rem; }
.map-frame {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(74,42,34,0.12);
  aspect-ratio: 4/3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

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

/* -------------------- Utility -------------------- */

.text-center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}
