﻿:root {
  --choco: #351b0f;
  --choco-2: #5b2d17;
  --caramel: #c9803c;
  --cream: #fff6e8;
  --paper: #fffaf2;
  --ink: #28170f;
  --muted: #7a6253;
  --line: #eadbc8;
  --ok: #168a4a;
  --shadow: 0 18px 45px rgba(53, 27, 15, .14);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream), #fff);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(14px, 4vw, 48px);
  background: rgba(255, 246, 232, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand strong { display: block; font-size: 1.05rem; }
.brand small { color: var(--muted); display: block; font-size: .78rem; }
.logo, .logo-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(53, 27, 15, .18);
}
.logo-fallback {
  display: none;
  place-items: center;
  color: white;
  font-weight: 900;
  background: radial-gradient(circle at 30% 25%, #d69a5b, var(--choco));
}
.admin-link, .primary, .ghost {
  border-radius: 999px;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 800;
}
.admin-link, .ghost { color: var(--choco); background: #fff; border: 1px solid var(--line); }
.primary { display: inline-flex; align-items: center; justify-content: center; color: white; background: var(--choco); }
.full { width: 100%; }
main { padding: 18px clamp(14px, 4vw, 48px) 110px; }
.hero {
  min-height: clamp(500px, 64vh, 680px);
  display: grid;
  grid-template-columns: minmax(280px, 560px) 1fr;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  max-width: none;
  margin: -18px calc(clamp(14px, 4vw, 48px) * -1) 28px;
  padding: clamp(34px, 7vw, 82px) clamp(18px, 7vw, 92px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(22, 10, 5, .88) 0%, rgba(35, 15, 8, .76) 34%, rgba(35, 15, 8, .22) 68%, rgba(35, 15, 8, .08) 100%),
    url("banner.png") center / cover no-repeat;
  box-shadow: inset 0 -1px 0 rgba(255, 246, 232, .16);
  perspective: 1200px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(255, 246, 232, .08));
  pointer-events: none;
  z-index: -1;
}
.hero > div:first-child {
  animation: heroTextReveal .85s cubic-bezier(.2, .8, .2, 1) both;
}
.eyebrow { color: #f5bd78; font-weight: 900; text-transform: uppercase; font-size: .78rem; }
h1 { font-size: clamp(3.2rem, 10vw, 7.4rem); line-height: .86; margin: 8px 0 14px; letter-spacing: 0; }
.hero h1 { color: #fff9ef; text-shadow: 0 18px 40px rgba(0, 0, 0, .34); }
.hero p { color: rgba(255, 246, 232, .86); max-width: 560px; }
.hero .primary {
  color: var(--choco);
  background: #fff3dc;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}
.hero-art {
  min-height: 390px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 16px;
  transform-style: preserve-3d;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: min(520px, 82%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 128, 60, .24), rgba(91, 45, 23, .08) 46%, transparent 70%);
  filter: blur(10px);
  transform: translateZ(-80px);
  animation: brandGlow 4.8s ease-in-out infinite;
}
.hero-art::after {
  content: "";
  position: absolute;
  width: min(470px, 78%);
  aspect-ratio: 1;
  border: 1px solid rgba(91, 45, 23, .16);
  border-radius: 50%;
  transform: rotateX(68deg) translateY(44px);
  animation: orbitRing 7s ease-in-out infinite;
}
.brand-line,
.brand-dot {
  position: absolute;
  display: block;
  pointer-events: none;
}
.brand-line {
  width: 118px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(201, 128, 60, .72), transparent);
  filter: drop-shadow(0 8px 14px rgba(201, 128, 60, .24));
}
.brand-line-one {
  top: 23%;
  left: 10%;
  transform: rotate(-24deg);
  animation: designFloatOne 5.4s ease-in-out infinite;
}
.brand-line-two {
  right: 8%;
  bottom: 21%;
  transform: rotate(18deg);
  animation: designFloatTwo 6s ease-in-out infinite;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--caramel);
  box-shadow: 0 0 0 8px rgba(201, 128, 60, .12);
}
.brand-dot-one {
  right: 20%;
  top: 19%;
  animation: dotPulse 3.8s ease-in-out infinite;
}
.brand-dot-two {
  left: 17%;
  bottom: 25%;
  width: 9px;
  height: 9px;
  animation: dotPulse 4.4s ease-in-out .5s infinite;
}
.hero-art img {
  width: min(440px, 90%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 28px 38px rgba(53, 27, 15, .24));
  transform-origin: center;
  animation: logoReveal3d 1.15s cubic-bezier(.2, .8, .2, 1) both, logoFloat3d 5.2s ease-in-out 1.15s infinite;
}
.hero-banner {
  display: none;
  min-height: 0;
  padding: 0;
  isolation: isolate;
}
.hero-banner::before {
  width: 92%;
  height: 78%;
  aspect-ratio: auto;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 50%, rgba(201, 128, 60, .22), rgba(53, 27, 15, .08) 58%, transparent 74%);
  filter: blur(24px);
  animation: brandGlow 5.8s ease-in-out infinite;
}
.hero-banner::after {
  display: none;
}
.hero-banner img {
  width: 100%;
  max-width: 680px;
  aspect-ratio: 1219 / 532;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(53, 27, 15, .22);
  filter: saturate(1.04) contrast(1.02);
  animation: bannerReveal .9s cubic-bezier(.2, .8, .2, 1) both, bannerFloat 6s ease-in-out 1s infinite;
}
.hero-logo-fallback {
  display: none;
  width: min(440px, 90%);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: white;
  text-align: center;
  font-size: clamp(2rem, 8vw, 4rem);
  background: radial-gradient(circle at 30% 25%, #d69a5b, var(--choco));
  box-shadow: var(--shadow);
  animation: logoReveal3d 1.15s cubic-bezier(.2, .8, .2, 1) both, logoFloat3d 5.2s ease-in-out 1.15s infinite;
}
@keyframes logoReveal3d {
  0% {
    opacity: 0;
    transform: translateY(34px) rotateX(42deg) rotateY(-22deg) scale(.72);
    filter: drop-shadow(0 4px 8px rgba(53, 27, 15, .04));
  }
  68% {
    opacity: 1;
    transform: translateY(-6px) rotateX(-5deg) rotateY(6deg) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) rotateY(0) scale(1);
  }
}
@keyframes logoFloat3d {
  0%, 100% { transform: translateY(0) rotateX(0) rotateY(0) scale(1); }
  50% { transform: translateY(-12px) rotateX(4deg) rotateY(-5deg) scale(1.025); }
}
@keyframes brandGlow {
  0%, 100% { opacity: .72; transform: translateZ(-80px) scale(.94); }
  50% { opacity: 1; transform: translateZ(-80px) scale(1.06); }
}
@keyframes orbitRing {
  0%, 100% { opacity: .55; transform: rotateX(68deg) rotateZ(0deg) translateY(44px); }
  50% { opacity: .9; transform: rotateX(68deg) rotateZ(10deg) translateY(34px); }
}
@keyframes designFloatOne {
  0%, 100% { transform: translateY(0) rotate(-24deg); opacity: .55; }
  50% { transform: translateY(-12px) rotate(-18deg); opacity: .95; }
}
@keyframes designFloatTwo {
  0%, 100% { transform: translateY(0) rotate(18deg); opacity: .45; }
  50% { transform: translateY(10px) rotate(10deg); opacity: .85; }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: .62; }
  50% { transform: scale(1.35); opacity: 1; }
}
@keyframes bannerReveal {
  0% {
    opacity: 0;
    transform: translateY(28px) rotateX(16deg) scale(.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}
@keyframes bannerFloat {
  0%, 100% { transform: translateY(0) rotateX(0); }
  50% { transform: translateY(-8px) rotateX(1.5deg); }
}
@keyframes heroTextReveal {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}
.categories {
  max-width: 1180px;
  margin: 10px auto 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.categories button {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  color: var(--choco);
  border: 1px solid var(--line);
  font-weight: 800;
}
.categories button.active { background: var(--choco); color: white; }
.catalog { max-width: 1180px; margin: 0 auto; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title h2 { margin: 0; font-size: 1.5rem; }
.section-title p { margin: 0; color: var(--muted); }
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}
.empty-state strong {
  display: block;
  color: var(--choco);
  font-size: 1.12rem;
  margin-bottom: 4px;
}
.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(53, 27, 15, .08);
  display: flex;
  flex-direction: column;
}
.product-img, .placeholder-img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  background: #f3e4d3;
}
.placeholder-img {
  display: grid;
  place-items: center;
  padding: 18px;
  color: white;
  font-weight: 900;
  text-align: center;
  background: radial-gradient(circle at 30% 25%, #d9a15f, var(--choco));
}
.placeholder-img strong { font-size: 1.05rem; }
.placeholder-img span { color: var(--muted); font-size: .88rem; font-weight: 700; }
.product-body { padding: 12px; display: grid; gap: 8px; flex: 1; }
.product-body h3 { margin: 0; font-size: 1rem; }
.product-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price-row strong { color: var(--choco); }
.price-row button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--choco);
  color: white;
  font-size: 1.2rem;
}
.floating-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  gap: 16px;
  align-items: center;
  border-radius: 999px;
  background: var(--choco);
  color: white;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.floating-cart svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}
.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;
}
.site-footer {
  padding: 18px clamp(14px, 4vw, 48px) 28px;
  text-align: center;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: .78rem;
  opacity: .72;
}
.site-footer img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.site-footer strong {
  color: var(--choco);
}
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(420px, 100vw);
  height: 100dvh;
  background: var(--paper);
  border-left: 1px solid var(--line);
  padding: 16px;
  transform: translateX(105%);
  transition: .24s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}
.cart-panel.open { transform: translateX(0); }
.cart-head, .cart-line, .total-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.cart-head small { display: block; color: var(--muted); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; background: white; color: var(--choco); border: 1px solid var(--line); }
.cart-items { overflow: auto; display: grid; gap: 10px; min-height: 80px; }
.cart-line { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 10px; align-items: start; }
.cart-line small { color: var(--muted); display: block; margin-top: 2px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; background: #f4e5d2; color: var(--choco); font-weight: 900; }
.customer-box { display: grid; gap: 8px; }
label { display: grid; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
  color: var(--ink);
}
.total-row { font-size: 1.1rem; }
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(25, 13, 8, .48);
  z-index: 60;
  padding: 18px;
}
.modal.show { display: grid; }
.modal-card {
  max-width: 380px;
  width: 100%;
  background: white;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.check {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--ok);
  color: white;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: clamp(500px, 72vh, 620px);
    padding-top: 46px;
    gap: 22px;
    background:
      linear-gradient(180deg, rgba(22, 10, 5, .82) 0%, rgba(35, 15, 8, .62) 48%, rgba(35, 15, 8, .3) 100%),
      url("banner.png") center / cover no-repeat;
  }
  .hero-art { min-height: 300px; order: -1; }
  .hero-banner { min-height: 0; }
  .hero-banner img { max-width: 100%; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .brand small { display: none; }
  .admin-link { padding: 9px 12px; }
  main { padding-inline: 12px; }
  .hero {
    min-height: 540px;
    padding: 34px 18px;
    background-position: 58% center;
  }
  h1 { font-size: clamp(3rem, 18vw, 4.8rem); }
  .hero-banner img { border-radius: 10px; }
  .products { grid-template-columns: 1fr; }
  .section-title { display: block; }
  .floating-cart { left: 12px; right: 12px; justify-content: space-between; }
}

