:root{
  --bg: #FBF2EA;
  --panel: #F4E2D8;
  --ink: #3E2C2A;
  --ink-soft: #6B5450;
  --accent: #B25C72;
  --accent-ink: #ffffff;
  --sage: #7E9273;
  --tag: #E8C9A3;
  --tag-ink: #5B3B26;
  --line: #E4CFC2;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(62, 44, 42, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

/* Гарантира, че атрибутът "hidden" винаги превключва видимостта,
   независимо от други CSS правила за display по-долу. */
[hidden]{ display: none !important; }
body{
  margin:0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
img{ max-width:100%; display:block; }
.wrap{ max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.eyebrow{
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: var(--accent);
  margin: 0 0 8px;
}
h1,h2,h3{ font-family: var(--serif); font-weight: 600; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1{ font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; }
h2{ font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.muted{ color: var(--ink-soft); }
a{ color: inherit; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 13px 26px; border-radius: 999px; font-weight: 800;
  text-decoration:none; border: 2px solid transparent; cursor:pointer;
  font-family: var(--sans); font-size: .95rem; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary{ background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover{ transform: translateY(-2px); }
.btn-ghost{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--bg); }

/* Header */
.site-header{
  position: sticky; top:0; z-index: 40;
  background: rgba(251,242,234,.9); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding: 14px 24px; gap: 16px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color: var(--ink); font-family: var(--serif); font-weight:600; font-size:1.15rem; }
.brand-mark{ color: var(--accent); display:flex; }
.main-nav{ display:flex; align-items:center; gap: 26px; }
.main-nav a{ text-decoration:none; color: var(--ink-soft); font-weight: 700; font-size: .93rem; }
.main-nav a:hover{ color: var(--accent); }
.nav-cta{ padding: 10px 20px; font-size:.85rem; }
.nav-cta-mobile{ display:none; }
.menu-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width: 40px; height: 40px; border:none; background:transparent; cursor:pointer; padding: 8px;
}
.menu-toggle span{ display:block; width:100%; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle.open span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity: 0; }
.menu-toggle.open span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

body.nav-locked{ overflow: hidden; }

@media (max-width: 720px){
  .main-nav{
    display:flex; flex-direction:column; align-items:flex-start; gap: 4px;
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 300px);
    background: var(--bg); padding: 90px 28px 40px; box-shadow: -12px 0 30px rgba(62,44,42,.12);
    transform: translateX(100%); transition: transform .3s ease; z-index: 45;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{ font-size: 1.05rem; padding: 12px 0; width:100%; border-bottom: 1px solid var(--line); }
  .nav-cta{ display:none; }
  .nav-cta-mobile{ display:inline-flex; margin-top: 18px; width:100%; }
  .menu-toggle{ display:flex; }
}

/* Hero */
.hero{ position:relative; padding: 90px 0 70px; overflow: hidden; }
.hero-inner{ max-width: 680px; position:relative; z-index: 2; }
.hero-sub{ font-size: 1.1rem; color: var(--ink-soft); margin: 18px 0 30px; max-width: 52ch; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-tag{ position:absolute; right: 40px; top: 90px; opacity:.95; z-index:2; animation: sway 6s ease-in-out infinite; }
@media (max-width: 900px){ .hero-tag{ right: 12px; top: auto; bottom: -6px; transform: scale(.62); transform-origin: bottom right; } }
@media (max-width: 480px){ .hero-tag{ display:none; } }

.hero-bg{ position:absolute; inset:0; z-index:1; pointer-events:none; }
.hero-bg .blob{ position:absolute; width: 480px; height: 480px; }
.hero-bg .blob path{ fill: var(--panel); }
.hero-bg .blob-1{ top: -160px; right: -140px; animation: float-slow 9s ease-in-out infinite; }
.hero-bg .blob-2{ bottom: -220px; left: -160px; width: 380px; height: 380px; opacity:.7; animation: float-slow 11s ease-in-out infinite reverse; }
.hero-bg .dot{ position:absolute; border-radius:50%; background: var(--accent); opacity:.35; }
.hero-bg .dot-1{ width:10px; height:10px; top: 120px; left: 46%; animation: float-slow 5s ease-in-out infinite; }
.hero-bg .dot-2{ width:14px; height:14px; top: 220px; left: 12%; background: var(--sage); opacity:.4; animation: float-slow 7s ease-in-out infinite reverse; }
.hero-bg .dot-3{ width:8px; height:8px; bottom: 80px; right: 30%; animation: float-slow 6s ease-in-out infinite; }

@keyframes float-slow{
  0%, 100%{ transform: translateY(0) translateX(0); }
  50%{ transform: translateY(-18px) translateX(8px); }
}
@keyframes sway{
  0%, 100%{ transform: rotate(-3deg); }
  50%{ transform: rotate(3deg); }
}
.float{ animation: float-slow 7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce){
  .hero-tag, .hero-bg .blob, .hero-bg .dot, .float{ animation: none !important; }
}

/* Появяване при скролиране */
.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* Sections */
.section{ padding: 70px 0; }
.about-section{ background: var(--panel); }

/* Products */
.filter-row{ display:flex; gap:10px; margin: 18px 0 30px; }
.chip{
  border: 2px solid var(--line); background: transparent; color: var(--ink-soft);
  padding: 8px 18px; border-radius: 999px; font-weight: 700; cursor:pointer; font-family: var(--sans);
}
.chip.active, .chip:hover{ border-color: var(--accent); color: var(--accent); }
.products-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 22px;
}
.product-card{
  background:#fff; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display:flex; flex-direction:column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover{ transform: translateY(-6px); box-shadow: 0 16px 34px rgba(62,44,42,.14); }
.product-media{
  aspect-ratio: 4/3; background: var(--panel); display:flex; align-items:center; justify-content:center;
  color: var(--accent); overflow:hidden;
}
.product-media img{ width:100%; height:100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-media img{ transform: scale(1.06); }
.product-card:hover .product-media svg{ transform: scale(1.08) rotate(-2deg); transition: transform .3s ease; }
.product-body{ padding: 16px 18px 20px; }
.product-cat{ font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; font-weight:800; color: var(--sage); }
.product-body h3{ font-size: 1.15rem; margin: 6px 0 6px; }
.product-desc{ color: var(--ink-soft); font-size:.92rem; margin: 0 0 10px; }
.product-price{ font-weight: 800; color: var(--accent); }

/* About */
.about-inner{ display:grid; grid-template-columns: 260px 1fr; gap: 48px; align-items:center; }
.about-media{ aspect-ratio: 1/1; }
.about-text{ font-size: 1.05rem; color: var(--ink-soft); }
@media (max-width: 720px){ .about-inner{ grid-template-columns: 1fr; } .about-media{ max-width: 200px; margin: 0 auto; } }

/* Order form */
.order-intro{ margin-bottom: 30px; }
.order-form{
  background:#fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); max-width: 720px;
}
.form-row{ margin-bottom: 18px; }
.form-row.two{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px){ .form-row.two{ grid-template-columns: 1fr; } }
.field label{ display:block; font-weight: 800; font-size: .88rem; margin-bottom: 6px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select{
  width:100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  font-family: var(--sans); font-size: .96rem; background: var(--bg); color: var(--ink);
}
.field input:focus, .field select:focus{ outline: 2px solid var(--accent); outline-offset: 1px; }
.conditional{ margin-bottom: 18px; padding: 16px; background: var(--panel); border-radius: 12px; }
.radio-group{ display:flex; gap: 18px; margin-top: 6px; }
.radio{ font-weight: 700; font-size: .92rem; display:flex; align-items:center; gap:6px; }
.delivery-options{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
@media (max-width: 600px){ .delivery-options{ grid-template-columns: 1fr; } }
.radio-card{
  display:flex; align-items:center; gap:10px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor:pointer; font-weight: 700; font-size: .9rem;
}
.radio-card:has(input:checked){ border-color: var(--accent); background: #FBEEE9; }
.radio-card em{ font-weight: 600; color: var(--ink-soft); font-style: normal; }
.radio-card.disabled{ opacity: .45; cursor: not-allowed; }
.btn-submit{ width:100%; margin-top: 8px; padding: 15px; font-size: 1rem; }
.form-message{ padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 700; font-size: .9rem; }
.form-message.error{ background: #FBE3E3; color: #8A2C2C; }
.form-message.success{ background: #E4EFDD; color: #3E5C2C; }

@media (max-width: 600px){
  .wrap{ padding: 0 18px; }
  .hero{ padding: 56px 0 60px; }
  .hero-actions .btn{ width:100%; }
  .section{ padding: 52px 0; }
  .order-form{ padding: 22px 18px; }
  .about-inner{ text-align:center; }
  .filter-row{ overflow-x:auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
}

/* Contact / footer */
.contact-list{ list-style:none; padding:0; margin: 16px 0; display:flex; flex-direction:column; gap:8px; }
.social-links{ display:flex; gap:14px; }
.social-links a{ font-weight:800; color: var(--accent); text-decoration:none; }
.site-footer{ padding: 26px 0; text-align:center; color: var(--ink-soft); font-size:.85rem; border-top: 1px solid var(--line); }
