@import url('fonts.css?v=2');

:root{
  --lavender: #7C6FD1;
  --lavender-deep: #5B4FBF;
  --lavender-soft: #EDEAFB;
  --pink: #F2A9C1;
  --pink-deep: #D97BA0;
  --ink: #241F3D;
  --ink-soft: #6C6584;
  --paper: #FFFDFB;
  --line: #E7E2F5;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 40px -18px rgba(91,79,191,0.35);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family:'Manrope', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3{
  font-family:'Poppins', sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
}
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
button{ font-family: inherit; cursor: pointer; }
.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Top bar ---------- */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 20px;
}
.topbar .logo{
  font-family:'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
}
.topbar .logo span{ color: var(--lavender-deep); }

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(150deg, var(--lavender) 0%, var(--lavender-deep) 65%, #4A3FA8 100%);
  border-radius: 0 0 40px 40px;
  padding: 56px 20px 84px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after{
  content:"";
  position:absolute;
  right:-60px; top:-60px;
  width:260px; height:260px;
  border-radius:50%;
  background: rgba(255,255,255,0.10);
}
.hero::before{
  content:"";
  position:absolute;
  left:-40px; bottom:-90px;
  width:200px; height:200px;
  border-radius:50%;
  background: rgba(242,169,193,0.25);
}
.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow{
  display:inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.16);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1{
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 14px;
}
.hero p{
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.5;
}
.hero-scroll{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: #fff;
  color: var(--lavender-deep);
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.35);
  border: none;
  font-size: 0.95rem;
}
.hero-scroll svg{ width:16px; height:16px; }

/* ---------- Catalog section ---------- */
.catalog{
  padding: 76px 20px 20px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}
.catalog-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.catalog-head h2{ font-size: 1.7rem; font-weight: 700; }
.catalog-head p{ margin: 4px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.sort-select{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

.categories{
  display:flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  margin-bottom: 6px;
}
.categories::-webkit-scrollbar{ display:none; }
.cat-pill{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap:8px;
  border:none;
  background:none;
  flex: 0 0 auto;
  opacity: 0.65;
}
.cat-pill.active{ opacity: 1; }
.cat-pill .cat-swatch{
  width:64px; height:64px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--lavender-soft);
  border: 2px solid transparent;
  transition: border-color .15s ease;
}
.cat-pill.active .cat-swatch{ border-color: var(--lavender); }
.cat-pill span{ font-size: 0.8rem; font-weight: 600; white-space:nowrap; }

.search-row{
  display:flex;
  gap: 12px;
  margin-bottom: 28px;
}
.search-box{
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--shadow);
}
.search-box input{
  border:none; outline:none; flex:1;
  font-family: inherit; font-size: 0.95rem;
  background: transparent;
}
.search-box svg{ width:18px; height:18px; color: var(--ink-soft); flex-shrink:0; }

.grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}
@media (min-width: 640px){
  .grid{ grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 960px){
  .grid{ grid-template-columns: repeat(4, 1fr); }
}

.card{
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  display:flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow); }
.card:focus-visible, .cat-pill:focus-visible, a:focus-visible, button:focus-visible{
  outline: 3px solid var(--lavender-deep);
  outline-offset: 2px;
}
.card .thumb{
  aspect-ratio: 4/5;
  background: var(--lavender-soft);
  position: relative;
}
.card .thumb img{ width:100%; height:100%; object-fit: cover; }
.card .badge{
  position:absolute; top:10px; left:10px;
  background: var(--pink);
  color:#fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card .out-badge{
  position:absolute; inset:0;
  background: rgba(36,31,61,0.55);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.card.out{ opacity: 0.72; }
.card-body{ padding: 12px 14px 16px; display:flex; flex-direction:column; gap: 4px; flex:1; }
.card-body h3{ font-size: 0.92rem; font-weight: 700; }
.card-body .price-row{
  margin-top: auto;
  display:flex; align-items:baseline; gap:8px;
}
.card-body .price{ font-weight: 800; font-size: 1rem; color: var(--lavender-deep); }
.card-body .old-price{ font-size: 0.78rem; color: var(--ink-soft); text-decoration: line-through; }

.empty-state{
  text-align:center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

/* ---------- Funnel blocks ---------- */
.funnel{
  padding: 56px 20px;
}
.funnel-inner{
  max-width: 1180px;
  margin: 0 auto;
}
.funnel h2{
  font-size: 1.6rem;
  text-align:center;
  margin-bottom: 8px;
}
.funnel-sub{
  text-align:center;
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-size: 0.95rem;
}
.why-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 720px){ .why-grid{ grid-template-columns: repeat(4, 1fr); } }
.why-card{
  background: var(--lavender-soft);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align:center;
}
.why-card .icon{
  width:44px; height:44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 18px -8px rgba(91,79,191,0.4);
}
.why-card .icon svg{ width:22px; height:22px; color: var(--lavender-deep); }
.why-card h3{ font-size: 0.95rem; margin-bottom: 6px; }
.why-card p{ font-size: 0.82rem; color: var(--ink-soft); margin:0; line-height:1.4; }

.steps{
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  color: #fff;
}
.steps-row{
  display:grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
@media (min-width: 720px){ .steps-row{ grid-template-columns: repeat(3, 1fr); } }
.step{
  display:flex; gap:14px; align-items:flex-start;
}
.step .num{
  flex-shrink:0;
  width:36px; height:36px;
  border-radius: 50%;
  background: var(--pink);
  display:flex; align-items:center; justify-content:center;
  font-weight: 800; font-size: 0.95rem;
}
.step h3{ font-size: 0.98rem; margin-bottom: 4px; }
.step p{ font-size: 0.85rem; color: rgba(255,255,255,0.72); margin:0; line-height:1.4; }
.steps-cta{
  text-align:center;
}
.steps-cta a{
  display:inline-flex; align-items:center; gap:8px;
  background: linear-gradient(120deg, var(--pink), var(--lavender));
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--lavender-soft);
  padding: 48px 20px 28px;
  margin-top: 24px;
}
.footer-inner{
  max-width: 1180px;
  margin: 0 auto;
}
.author-card{
  display:flex;
  gap: 18px;
  align-items:center;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.author-avatar{
  width:64px; height:64px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  flex-shrink:0;
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-size:1.2rem;
  font-family:'Poppins',sans-serif;
}
.author-avatar img{
  width:100%; height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;
}
.author-text{ flex: 1; min-width: 200px; }
.author-text h3{ font-size: 1rem; margin-bottom: 4px; }
.author-text p{ font-size: 0.85rem; color: var(--ink-soft); margin:0; line-height:1.45; }
.author-contacts{
  display:flex; gap:10px; flex-wrap: wrap;
}
.author-contacts a{
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--lavender-soft);
  color: var(--lavender-deep);
  padding: 8px 14px;
  border-radius: 999px;
}

.other-projects{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-bottom: 28px;
}
.ghost-btn{
  font-size: 0.78rem;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  opacity: 0.7;
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ---------- Product page ---------- */
.product-page{ padding-bottom: 40px; }
.back-link{
  display:inline-flex; align-items:center; gap:6px;
  padding: 16px 20px 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--lavender-deep);
}
.product-layout{
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px 0;
  display:grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 780px){
  .product-layout{ grid-template-columns: 1fr 1fr; }
}
.gallery{
  border-radius: var(--radius-lg);
  overflow:hidden;
  background: var(--lavender-soft);
  aspect-ratio: 4/5;
}
.gallery img{ width:100%; height:100%; object-fit: cover; }
.product-info h1{ font-size: 1.6rem; margin-bottom: 6px; }
.product-info .price-line{
  display:flex; align-items:baseline; gap:10px;
  margin-bottom: 4px;
}
.product-info .price{ font-size: 1.5rem; font-weight: 800; color: var(--lavender-deep); }
.product-info .old-price{ font-size: 1rem; color: var(--ink-soft); text-decoration: line-through; }
.product-info .tax-note{ font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 20px; }
.product-info .desc{ font-size: 0.92rem; line-height: 1.55; margin-bottom: 20px; }
.spec-table{ width:100%; border-collapse: collapse; margin-bottom: 24px; }
.spec-table td{ padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.spec-table td:first-child{ color: var(--ink-soft); width: 40%; }
.order-actions{ display:flex; flex-direction: column; gap: 10px; }
.order-btn{
  display:flex; align-items:center; justify-content:center; gap:10px;
  padding: 15px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.order-btn.tg{ background: #34A9DE; }
.order-btn.wa{ background: #37C25F; }
.stock-flag{
  display:inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.stock-flag.in{ background: #E4F7EA; color: #1E8A45; }
.stock-flag.out{ background: #FCE7EA; color: #B8324A; }
.not-found{
  text-align:center;
  padding: 80px 20px;
}
.not-found a{
  display:inline-block;
  margin-top: 16px;
  font-weight:700;
  color: var(--lavender-deep);
}
