:root {
  --cream: #fff6dc;
  --cream-2: #ffeeb8;
  --yellow: #f8c22a;
  --yellow-2: #f5a623;
  --orange: #e98a10;
  --brown: #5a2e0e;
  --brown-2: #7a4318;
  --white: #fff;
  --shadow: 0 10px 30px rgba(122, 67, 24, 0.15);
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Be Vietnam Pro", sans-serif;
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid var(--brown); cursor: pointer; transition: .2s; font-family: inherit;
}
.btn-primary { background: var(--brown); color: var(--cream); box-shadow: 0 5px 0 #2e1605; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #2e1605; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #2e1605; }
.btn-ghost { background: var(--white); color: var(--brown); }
.btn-ghost:hover { background: var(--yellow); }
.full { width: 100%; margin-top: 10px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 246, 220, .92); backdrop-filter: blur(10px);
  border-bottom: 2px dashed rgba(122, 67, 24, .2);
}
.nav { display: flex; align-items: center; gap: 20px; height: 70px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: "Baloo 2", cursive; font-size: 1.5rem; font-weight: 700; }
.logo b { color: var(--orange); }
.logo-planet { font-size: 1.8rem; animation: spin 8s linear infinite; display: inline-block; }
.menu { margin-left: auto; display: flex; gap: 28px; font-weight: 600; }
.menu a { position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 3px; background: var(--yellow-2); border-radius: 3px; transition: .25s; }
.menu a:hover::after { width: 100%; }
.cart-btn {
  position: relative; background: var(--yellow); border: 2px solid var(--brown);
  border-radius: 999px; padding: 8px 16px; font-size: 1.1rem; cursor: pointer;
}
.cart-count {
  position: absolute; top: -8px; right: -8px; background: #e0412b; color: #fff;
  font-size: .75rem; font-weight: 700; min-width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
}
.cart-count.bump { animation: bump .4s; }
.burger { display: none; background: none; border: none; font-size: 1.7rem; color: var(--brown); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 60px 0 80px;
  background:
    radial-gradient(circle at 10% 20%, var(--cream-2) 0, transparent 40%),
    radial-gradient(circle at 90% 80%, #ffe08a 0, transparent 35%),
    var(--cream);
}
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars span { position: absolute; color: var(--yellow); animation: twinkle 3s ease-in-out infinite; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.tag {
  display: inline-block; background: var(--white); border: 2px solid var(--brown);
  padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; margin-bottom: 14px;
}
.hero h1 { font-family: "Baloo 2", cursive; font-size: clamp(3rem, 7vw, 5.2rem); line-height: .95; font-weight: 800; }
.hero h1 span { color: var(--orange); -webkit-text-stroke: 2px var(--brown); text-shadow: 4px 4px 0 var(--brown); }
.slogan { font-family: "Baloo 2", cursive; font-size: 1.6rem; margin: 14px 0 10px; color: var(--brown-2); }
.slogan b { color: var(--orange); }
.lead { max-width: 480px; opacity: .9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges span { background: rgba(248, 194, 42, .35); padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.hero-img img {
  border-radius: var(--radius); border: 4px solid var(--brown);
  box-shadow: 12px 12px 0 var(--yellow-2); animation: float 5s ease-in-out infinite;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: linear-gradient(180deg, #ffe7a0, #ffd96b); position: relative; }
.title { font-family: "Baloo 2", cursive; font-size: clamp(2rem, 4.2vw, 2.9rem); text-align: center; line-height: 1.15; margin-bottom: 12px; }
.title span { color: var(--orange); }
.section-alt .title span { color: var(--brown-2); text-decoration: underline wavy var(--white) 3px; text-underline-offset: 8px; }
.title.left { text-align: left; }
.subtitle { text-align: center; margin-bottom: 44px; font-weight: 500; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.feature {
  background: var(--white); border: 2px solid var(--brown); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: 6px 6px 0 var(--yellow); transition: .25s;
}
.feature:hover { transform: translateY(-6px) rotate(-1deg); }
.f-icon { font-size: 2.8rem; width: 80px; height: 80px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--cream-2); border-radius: 50%; }
.feature h3 { font-family: "Baloo 2", cursive; font-size: 1.5rem; }
.feature p { font-size: .95rem; opacity: .85; }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product {
  background: var(--white); border: 2px solid var(--brown); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: 8px 8px 0 var(--brown); transition: .25s;
}
.product:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--brown); }
.p-thumb { position: relative; height: 180px; display: grid; place-items: center; font-size: 5rem; border-bottom: 2px solid var(--brown); }
.p-thumb .emoji { filter: drop-shadow(4px 6px 0 rgba(90, 46, 14, .25)); transition: .3s; }
.product:hover .emoji { transform: scale(1.12) rotate(-6deg); }
.p-thumb.has-img { padding: 0; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.product:hover .p-thumb img { transform: scale(1.06); }
.ci-emoji img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
.p-badge { z-index: 1; position: absolute; top: 14px; left: 14px; background: var(--brown); color: var(--cream); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.p-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.p-body h3 { font-family: "Baloo 2", cursive; font-size: 1.45rem; line-height: 1.2; }
.p-desc { font-size: .9rem; opacity: .8; margin: 6px 0 14px; flex: 1; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.size {
  flex: 1; min-width: 90px; border: 2px solid var(--brown); background: var(--cream);
  border-radius: 14px; padding: 8px 6px; cursor: pointer; font-family: inherit; color: var(--brown); text-align: center; transition: .15s;
}
.size small { display: block; font-size: .8rem; opacity: .8; }
.size b { font-size: 1.05rem; }
.size.active { background: var(--yellow); box-shadow: 0 3px 0 var(--brown); }
.p-actions { display: flex; gap: 10px; align-items: center; }
.qty { display: flex; align-items: center; border: 2px solid var(--brown); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 40px; border: none; background: var(--cream); font-size: 1.1rem; cursor: pointer; color: var(--brown); font-weight: 700; }
.qty span { width: 30px; text-align: center; font-weight: 700; }
.add-btn { flex: 1; padding: 10px 14px; font-size: .95rem; }

/* Delivery */
.delivery { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; background: var(--white); border: 2px solid var(--brown); border-radius: 30px; padding: 40px; box-shadow: 10px 10px 0 var(--yellow-2); }
.delivery-truck { font-size: 8rem; text-align: center; animation: drive 2.5s ease-in-out infinite; }
.delivery-list { list-style: none; margin-top: 10px; display: grid; gap: 10px; font-size: 1.05rem; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 14px; }
.faq-item { background: var(--white); border: 2px solid var(--brown); border-radius: 18px; box-shadow: 5px 5px 0 var(--brown); overflow: hidden; transition: .2s; }
.faq-item[open] { box-shadow: 5px 5px 0 var(--orange); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-family: "Baloo 2", cursive; font-size: 1.2rem; font-weight: 700; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--brown);
  display: grid; place-items: center; font-family: Arial, sans-serif; font-size: 1.2rem; transition: .25s;
}
.faq-item[open] summary::after { content: "−"; background: var(--orange); color: #fff; }
.faq-item summary:hover { background: var(--cream); }
.faq-a { padding: 0 22px 20px; font-size: .98rem; animation: fadeDown .3s ease; }
.faq-a a { color: var(--orange); font-weight: 700; text-decoration: underline; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Contact */
.contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.contact-card { background: var(--white); border: 2px solid var(--brown); border-radius: var(--radius); padding: 28px 16px; text-align: center; transition: .25s; box-shadow: 6px 6px 0 var(--brown); }
.contact-card:hover { transform: translateY(-6px); }
.contact-card h3 { font-family: "Baloo 2", cursive; font-size: 1.3rem; margin-top: 10px; }
.contact-card p { font-weight: 600; word-break: break-word; font-size: .95rem; }
.c-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 1.8rem; color: #fff; font-weight: 800; font-family: Arial, sans-serif; }
.c-icon.phone { background: #2fb45a; }
.c-icon.fb { background: #1877f2; font-size: 2.2rem; }
.c-icon.tt { background: #111; box-shadow: -3px -3px 0 #25f4ee, 3px 3px 0 #fe2c55; }
.c-icon.mail { background: var(--orange); }
.address { text-align: center; margin-top: 30px; font-weight: 600; font-size: 1.1rem; }

/* Footer */
.footer { background: var(--brown); color: var(--cream); text-align: center; padding: 30px 0 90px; }
.footer .small { opacity: .7; font-size: .85rem; margin-top: 4px; }

/* Floating */
.floating { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 12px; z-index: 40; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.4rem; font-weight: 800; font-family: Arial, sans-serif; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); transition: .2s; }
.float-btn:hover { transform: scale(1.1); }
.float-btn.phone { background: #2fb45a; animation: ring 1.6s infinite; }
.float-btn.fb { background: #1877f2; font-size: 1.7rem; }
.float-btn.tt { background: #111; }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(40, 20, 5, .45); opacity: 0; pointer-events: none; transition: .3s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }
.cart { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--cream); z-index: 100; transform: translateX(100%); transition: .35s; display: flex; flex-direction: column; border-left: 3px solid var(--brown); }
.cart.show { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 2px dashed rgba(90, 46, 14, .3); }
.cart-head h3 { font-family: "Baloo 2", cursive; font-size: 1.6rem; }
.close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--brown); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 12px; align-content: start; }
.cart-empty { text-align: center; padding: 50px 0; opacity: .7; }
.cart-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; background: var(--white); border: 2px solid var(--brown); border-radius: 16px; padding: 10px 12px; }
.ci-emoji { font-size: 2rem; text-align: center; }
.ci-name { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.ci-meta { font-size: .85rem; opacity: .8; }
.ci-right { text-align: right; }
.ci-right .qty { margin-top: 4px; }
.ci-right .qty button { width: 28px; height: 30px; }
.ci-right .qty span { width: 24px; }
.cart-foot { padding: 20px; border-top: 2px dashed rgba(90, 46, 14, .3); }
.cart-total { font-size: 1.2rem; display: flex; justify-content: space-between; }
.cart-total b { color: var(--orange); font-size: 1.4rem; }
.cart-note { font-size: .82rem; opacity: .75; margin: 6px 0 4px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 120px); background: var(--brown); color: var(--cream); padding: 12px 22px; border-radius: 999px; font-weight: 600; z-index: 200; transition: .35s; box-shadow: var(--shadow); max-width: 90%; text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes twinkle { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes bump { 50% { transform: scale(1.5); } }
@keyframes drive { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(10px); } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-15deg); } 20%, 40% { transform: rotate(15deg); } 50% { transform: rotate(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin: 0 auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .features, .contacts { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .menu {
    position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 2px solid var(--brown);
    max-height: 0; overflow: hidden; transition: .3s;
  }
  .menu.open { max-height: 300px; }
  .menu a { padding: 14px 6%; border-top: 1px dashed rgba(90, 46, 14, .2); }
  .cart-btn { margin-left: auto; }
  .burger { display: block; }
  .products, .features { grid-template-columns: 1fr; }
  .delivery { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; }
  .delivery-truck { font-size: 5rem; }
  .title.left { text-align: center; }
  .delivery-list { text-align: left; }
  .section { padding: 64px 0; }
  .logo { font-size: 1.2rem; }
}
