/* ============================================================
   NAILIPPS — "Main Character Energy"
   Design tokens & signature: the cat-eye shimmer sweep, a nod
   to the brand's magnetic cat-eye polish finishes.
   ============================================================ */

:root{
  /* --- Palette --- */
  --ink-plum:      #1F1420;   /* primary dark ground */
  --ink-plum-2:    #2A1B27;   /* raised dark surface */
  --ivory:         #F7EDE4;   /* light ground */
  --ivory-dim:     #EFE1D4;   /* light raised surface */
  --wine:          #7B2D3B;   /* primary accent */
  --wine-deep:     #5E212D;
  --champagne:     #C9A16A;   /* secondary accent */
  --text-on-dark:  #F1E6DD;
  --text-on-dark-dim: #C9B8B0;
  --text-on-light: #2B1C22;
  --text-on-light-dim: #6B5A5F;

  /* Cat-eye shimmer gradient — the signature */
  --shimmer: linear-gradient(115deg,
              var(--champagne) 0%,
              #EFC9CE 22%,
              #A69AD1 45%,
              var(--wine) 65%,
              var(--champagne) 100%);

  /* --- Type --- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Layout --- */
  --max-w: 1240px;
  --edge: clamp(20px, 5vw, 64px);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.22,.68,0,1);
}

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

body{
  margin: 0;
  background: var(--ivory);
  color: var(--text-on-light);
  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; }
h1, h2, h3{ font-family: var(--font-display); margin: 0; }
ul{ margin: 0; padding: 0; list-style: none; }

.eyebrow{
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--wine);
}

/* ---------------- Buttons ---------------- */
.btn, .btn2{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn{
  background: var(--wine);
  color: var(--ivory);
  box-shadow: 0 8px 20px -8px rgba(123,45,59,.65);
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(123,45,59,.75); }
.btn2{
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(241,230,221,.4);
}
.btn2:hover{ border-color: var(--champagne); color: var(--champagne); transform: translateY(-2px); }

/* product-card order button, smaller */
.product-card .btn{
  width: 100%;
  padding: 11px 20px;
  font-size: 13px;
}

/* ---------------- Nav ---------------- */
nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--edge);
  background: transparent;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
nav.scrolled{
  background: rgba(31,20,32,.86);
  backdrop-filter: blur(14px) saturate(140%);
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.6);
}
.nav-left{ display:flex; align-items:center; gap:12px; }
nav .logo{
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid rgba(201,161,106,.6);
}
.brand-name{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--text-on-dark);
  letter-spacing: .01em;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a{
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-dark-dim);
  position: relative;
  padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav-links a:hover{ color: var(--text-on-dark); }
.nav-links a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:-2px; height:1px;
  background: var(--champagne);
  transition: right .35s var(--ease);
}
.nav-links a:hover::after{ right: 0; }
.nav-links .btn{ padding: 10px 20px; }

.nav-toggle{
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(241,230,221,.3);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; position:absolute; left: 10px; right: 10px; height: 1.5px;
  background: var(--text-on-dark); transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span{ top: 19px; }
.nav-toggle span::before{ top: -6px; }
.nav-toggle span::after{ top: 6px; }
.nav-toggle.open span{ background: transparent; }
.nav-toggle.open span::before{ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after{ transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px var(--edge) 90px;
  background:
    radial-gradient(60% 55% at 18% 12%, rgba(201,161,106,.20), transparent 60%),
    radial-gradient(55% 50% at 85% 85%, rgba(123,45,59,.35), transparent 60%),
    var(--ink-plum);
  overflow: hidden;
  isolation: isolate;
}
.hero::before{
  content:"";
  position: absolute; inset: -20%;
  background: var(--shimmer);
  background-size: 300% 300%;
  opacity: .07;
  filter: blur(60px);
  animation: drift 22s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes drift{
  0%{ background-position: 0% 30%; }
  100%{ background-position: 100% 70%; }
}
.hero .logo{
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(201,161,106,.55);
  margin-bottom: 26px;
}
.hero .eyebrow{ color: var(--champagne); margin-bottom: 18px; }
.hero h1{
  font-size: clamp(44px, 8vw, 96px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.02;
  color: var(--ivory);
  max-width: 16ch;
  background: var(--shimmer);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-move 9s linear infinite;
}
@keyframes shimmer-move{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 260% 50%; }
}
.hero .description{
  margin: 26px 0 38px;
  max-width: 46ch;
  color: var(--text-on-dark-dim);
  font-size: 17px;
}
.hero .buttons{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.scroll-cue{
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 46px;
  background: linear-gradient(var(--champagne), transparent);
}
.scroll-cue::after{
  content:"";
  position:absolute; top:0; left:-2.5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--champagne);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue{
  0%{ top:0; opacity:0; } 20%{ opacity:1;} 100%{ top: 40px; opacity:0; }
}

/* ---------------- Section shells ---------------- */
section{ padding: 110px var(--edge); }
.section-head{
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2{
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  margin-top: 10px;
}
.section-head p{ color: var(--text-on-light-dim); margin-top: 14px; font-size: 16px; }

.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ---------------- Featured / Shop ---------------- */
.featured{
  background: var(--ivory);
}
.filters{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-chip{
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(43,28,34,.15);
  background: transparent;
  color: var(--text-on-light-dim);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.filter-chip:hover{ border-color: var(--wine); color: var(--wine); }
.filter-chip.active{ background: var(--wine); border-color: var(--wine); color: var(--ivory); }

.products{
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 28px;
}
.product-card{
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(43,28,34,.08);
  box-shadow: 0 1px 2px rgba(43,28,34,.04);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card.is-hidden{ display: none; }
.product-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 26px 44px -20px rgba(43,28,34,.28);
}
.product-card .thumb{
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ivory-dim);
}
.product-card .thumb img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.product-card:hover .thumb img{ transform: scale(1.08); }
.product-card .thumb::after{
  content:"";
  position: absolute; inset: 0;
  background: var(--shimmer);
  background-size: 260% 260%;
  background-position: 0% 0%;
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity .5s var(--ease), background-position 1.1s var(--ease);
}
.product-card:hover .thumb::after{ opacity: .55; background-position: 100% 100%; }
.tag{
  position: absolute; top: 12px; left: 12px;
  background: rgba(31,20,32,.72);
  color: var(--champagne);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.product-card .body{
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-card h3{ font-size: 18.5px; font-weight: 500; line-height: 1.25; }
.product-desc{
  color: var(--text-on-light-dim);
  font-size: 13.5px;
  line-height: 1.55;
  flex: 1;
  margin: 0;
}
.price{
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--wine);
  font-weight: 600;
  margin: 2px 0 0;
}
.shipping-note{
  font-size: 11.5px;
  color: var(--text-on-light-dim);
  margin: 0 0 10px;
  font-style: italic;
}

.empty-state{
  text-align: center;
  padding: 60px 20px;
  color: var(--text-on-light-dim);
  display: none;
}
.empty-state.show{ display: block; }

/* ---------------- About ---------------- */
.about{
  background: var(--ink-plum);
  color: var(--text-on-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about::before{
  content:"";
  position: absolute; top: -10%; right: -10%;
  width: 60%; height: 140%;
  background: var(--shimmer);
  opacity: .1;
  filter: blur(80px);
}
.about .section-head p{ color: var(--text-on-dark-dim); }
.about h2{ color: var(--ivory); }
.about-body{
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.about-body p{
  font-size: clamp(19px, 2.4vw, 24px);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ivory);
}

/* ---------------- Prep / Includes ---------------- */
.prep{ background: var(--ivory-dim); }
.prep .section-head{ margin-bottom: 48px; }
.prep ul{
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 22px;
}
.prep li{
  background: #fff;
  border: 1px solid rgba(43,28,34,.08);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-light);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.prep li:hover{ transform: translateY(-6px); box-shadow: 0 20px 30px -18px rgba(43,28,34,.25); }
.prep li svg{ width: 30px; height: 30px; stroke: var(--wine); }

/* ---------------- Footer ---------------- */
footer{
  background: var(--ink-plum);
  color: var(--text-on-dark-dim);
  padding: 56px var(--edge) 30px;
}
.footer-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(241,230,221,.12);
}
.footer-brand{
  display: flex; align-items: center; gap: 12px;
}
.footer-brand img{ width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.footer-brand span{ font-family: var(--font-display); font-style: italic; color: var(--ivory); font-size: 18px; }
.footer-social{ display: flex; gap: 14px; }
.footer-social a{
  font-size: 13px; font-weight: 700;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(241,230,221,.25);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.footer-social a:hover{ border-color: var(--champagne); color: var(--champagne); }
footer .bottom{
  max-width: var(--max-w);
  margin: 22px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
}
.back-to-top{ cursor: pointer; font-weight: 700; }
.back-to-top:hover{ color: var(--champagne); }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px){
  .nav-links{
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    background: rgba(31,20,32,.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{ display: block; }
}
@media (max-width: 560px){
  section{ padding: 80px 20px; }
  .hero{ padding-top: 120px; }
  .products{ grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 16px; }
  .product-card .body{ padding: 14px 14px 16px; }
}

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