/* =========================================================
   MAMEY SPAIN — alta bisutería artística
   ========================================================= */

:root{
  /* Color */
  --bg:            #ffffff;
  --bg-warm:       #fbf7f1;
  --ink:           #3b2c1a;
  --ink-soft:      #5c4c3a;
  --accent:        #ff7a33;
  --accent-deep:   #d4622a;
  --gold-line:     #dbc79e;
  --gold-line-soft:#e9dcc2;
  --pink-line:     #f3cab5;
  --taupe:         #a39e94;
  --taupe-dark:    #856f48;
  --link-gray:     #8f897c;
  --border:        #eae3d6;
  --border-soft:   #f1ece1;

  /* Type */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

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

html{ scroll-behavior: smooth; }

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

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

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

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

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

.eyebrow{
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.italic-accent{
  font-style: italic;
  color: var(--accent);
}

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

:focus-visible{
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   Decorative palm-blade motif (shared SVG lines)
   ========================================================= */
.blades{
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.blades path{
  fill: none;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
.blades.-gold path{ stroke: var(--gold-line); }
.blades.-pink path{ stroke: var(--pink-line); }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.-scrolled{
  border-bottom-color: var(--border);
  box-shadow: 0 2px 18px rgba(59,44,26,0.04);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 24px;
}
.logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.logo em{
  font-style: italic;
  color: var(--accent);
}
.main-nav{
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0 auto;
}
.main-nav a{
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after{
  transform: scaleX(1);
  transform-origin: left;
}
.header-actions{
  display: flex;
  align-items: center;
  gap: 18px;
}
.cart-btn{
  position: relative;
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.cart-btn svg{ width: 20px; height: 20px; }
.cart-count{
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  padding: 0 2px;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 26px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover, .btn:focus-visible{
  background: var(--ink);
  color: #fff;
}
.btn.-solid{
  background: var(--ink);
  color: #fff;
}
.btn.-solid:hover{
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.btn.-ghost-accent{
  border-color: var(--accent);
  color: var(--accent-deep);
}
.btn.-ghost-accent:hover{
  background: var(--accent);
  color: #fff;
}
.btn.-small{
  padding: 10px 18px;
  font-size: 10.5px;
}
.nav-toggle{
  display: none;
  border: none;
  background: none;
  width: 34px; height: 34px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span{
  display: block;
  height: 1px;
  background: var(--ink);
  width: 100%;
}

.mobile-nav{
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-nav.-open{ display: flex; }
.mobile-nav a{
  padding: 16px var(--gutter);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 12vh, 130px);
  padding-bottom: clamp(70px, 12vh, 130px);
}
.hero .blades.-tr{
  top: -6%;
  right: 2%;
  width: min(30vw, 380px);
  height: auto;
}
.hero .blades.-bl{
  bottom: -8%;
  left: -4%;
  width: min(24vw, 300px);
  height: auto;
  opacity: 0.9;
}
.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero h1{
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.08;
  margin-top: 18px;
}
.hero p.lead{
  margin-top: 24px;
  max-width: 480px;
  font-size: 17px;
  color: var(--ink-soft);
}
.hero-ctas{
  display: flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}

/* =========================================================
   Section scaffolding
   ========================================================= */
section{ position: relative; }
.section-pad{ padding: clamp(60px, 9vw, 120px) 0; }
.section-head{
  max-width: 620px;
  margin-bottom: 52px;
}
.section-head h2{
  font-size: clamp(28px, 3.4vw, 42px);
  margin-top: 14px;
}
.section-head p{
  margin-top: 18px;
  font-size: 16px;
  color: var(--ink-soft);
}
.divider{
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* =========================================================
   Historia
   ========================================================= */
.historia{ background: var(--bg-warm); }
.historia-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.historia-figure{
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--border-soft);
}
.historia-figure img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.historia-figure::after{
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.55);
  pointer-events: none;
}
.historia-copy blockquote{
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--ink);
  line-height: 1.35;
}
.historia-copy p{
  margin-top: 22px;
  font-size: 16px;
  max-width: 480px;
}
.historia-copy .signature{
  margin-top: 26px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--taupe-dark);
  font-size: 15px;
}

/* =========================================================
   Tienda
   ========================================================= */
.tienda{ background: var(--bg); }
.coleccion-block + .coleccion-block{
  margin-top: 90px;
}
.coleccion-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.coleccion-head h3{
  font-size: clamp(24px, 2.6vw, 32px);
}
.coleccion-head .eyebrow{ margin-bottom: 10px; }
.coleccion-head p{
  max-width: 460px;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 10px 0 0;
}
.coleccion-count{
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--taupe);
  text-transform: uppercase;
  white-space: nowrap;
}

.product-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 26px;
}
.product-card{
  position: relative;
}
.product-media{
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--border-soft);
}
.product-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transition: transform 0.6s ease;
}
.product-card:hover .product-media img{
  transform: scale(1.045);
}
.product-tag{
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--taupe-dark);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
}
.product-add{
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.product-card:hover .product-add,
.product-add:focus-visible{
  opacity: 1;
  transform: translateY(0);
}
.product-add:hover{ background: var(--ink); border-color: var(--ink); }
.product-add:hover svg{ stroke: #fff; }
.product-add svg{ width: 16px; height: 16px; stroke: var(--ink); transition: stroke 0.2s ease; }

.product-info{
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.product-info h4{
  font-size: 15.5px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--ink);
}
.product-price{
  font-size: 14.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.coleccion-more{
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.product-card.-hidden{ display: none; }

/* =========================================================
   Newsletter
   ========================================================= */
.newsletter{
  background: var(--bg-warm);
  text-align: center;
  overflow: hidden;
}
.newsletter .blades{
  top: 10%;
  left: 4%;
  width: min(22vw, 260px);
  opacity: 0.7;
}
.newsletter-inner{
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.newsletter h2{
  font-size: clamp(26px, 3.2vw, 38px);
  color: var(--taupe);
  font-weight: 700;
  line-height: 1.3;
}
.newsletter-form{
  margin: 34px auto 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--taupe);
  max-width: 480px;
  padding-bottom: 10px;
}
.newsletter-form input{
  flex: 1;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  padding: 6px 4px;
}
.newsletter-form input::placeholder{ color: var(--taupe); }
.newsletter-form input:focus{ outline: none; }
.newsletter-form button{
  border: none;
  background: none;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 4px;
  white-space: nowrap;
}
.newsletter-form button:hover{ color: var(--accent-deep); }
.newsletter-msg{
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--accent-deep);
  min-height: 1em;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  padding-top: clamp(50px, 7vw, 80px);
}
.footer-cols{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer-col h5{
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe-dark);
  margin: 0 0 18px;
}
.footer-col ul{
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a{
  color: var(--link-gray);
  font-size: 14.5px;
}
.footer-col a:hover{ color: var(--accent-deep); }
.footer-bottom{
  margin-top: 50px;
  padding: 26px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--taupe);
}

/* =========================================================
   Cart drawer
   ========================================================= */
.cart-overlay{
  position: fixed; inset: 0;
  background: rgba(59,44,26,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 60;
}
.cart-overlay.-open{ opacity: 1; pointer-events: auto; }

.cart-drawer{
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: #fff;
  z-index: 61;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.65,0,.35,1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(59,44,26,0.12);
}
.cart-drawer.-open{ transform: translateX(0); }
.cart-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px;
  border-bottom: 1px solid var(--border);
}
.cart-head h3{ font-size: 19px; }
.cart-close{
  border: none; background: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--ink);
}
.cart-close svg{ width: 16px; height: 16px; }
.cart-items{
  flex: 1;
  overflow-y: auto;
  padding: 10px 26px;
}
.cart-empty{
  color: var(--taupe);
  font-size: 14.5px;
  padding: 40px 0;
  text-align: center;
}
.cart-item{
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.cart-item img{
  width: 64px; height: 80px;
  object-fit: cover;
  object-position: center 24%;
}
.cart-item-name{ font-size: 14px; color: var(--ink); }
.cart-item-price{ font-size: 13px; color: var(--taupe); margin-top: 4px; }
.cart-item-remove{
  border: none; background: none;
  font-size: 12px;
  color: var(--link-gray);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  justify-self: end;
}
.cart-item-remove:hover{ color: var(--accent-deep); }
.cart-foot{
  padding: 22px 26px 28px;
  border-top: 1px solid var(--border);
}
.cart-subtotal{
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 16px;
}
.cart-note{
  font-size: 12.5px;
  color: var(--taupe);
  margin-top: 12px;
  line-height: 1.5;
}

/* =========================================================
   Toast
   ========================================================= */
.toast{
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  padding: 13px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 80;
  white-space: nowrap;
}
.toast.-show{
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
  .historia-grid{ grid-template-columns: 1fr; }
  .historia-figure{ order: -1; max-width: 420px; }
  .footer-cols{ grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
}

@media (max-width: 720px){
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .btn.-header-cta{ display: none; }
}

@media (max-width: 560px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .coleccion-head{ align-items: flex-start; }
  .footer-cols{ grid-template-columns: 1fr 1fr; }
  .footer-bottom{ flex-direction: column; gap: 6px; }
}
