﻿:root {
  --color-primary: #4b0406;
  --color-primary-2: #620408;
  --color-secondary: #be865c;
  --color-accent: #f4d4a6;
  --color-deep: #230202;
  --color-surface: #fff7ec;
  --color-success: #2f7a43;
  --color-ink-soft: #5e3a31;
  --shadow-soft: 0 14px 34px rgba(35, 2, 2, 0.22);
  --shadow-hero: 0 28px 60px rgba(35, 2, 2, 0.5);
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--color-deep);
  background:
    radial-gradient(circle at 12% 10%, rgba(190, 134, 92, 0.22), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(244, 212, 166, 0.16), transparent 28%),
    linear-gradient(165deg, #230202 0%, #3c0304 28%, #4b0406 54%, #620408 78%, #78150f 100%);
  background-attachment: fixed;
}

.bg-motif {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 36px 36px, rgba(244, 212, 166, 0.45) 1.8px, transparent 0),
    radial-gradient(circle at 104px 72px, rgba(190, 134, 92, 0.45) 1.8px, transparent 0),
    linear-gradient(145deg, transparent 48%, rgba(244, 212, 166, 0.1) 50%, transparent 52%);
  background-size: 140px 120px, 140px 120px, 220px 220px;
  z-index: -1;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.hero {
  min-height: 64vh;
  position: relative;
  background: center / cover no-repeat url("assets/hero-bg.jpg");
  display: grid;
  align-items: center;
  isolation: isolate;
  box-shadow: var(--shadow-hero);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto 7% 6%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(244, 212, 166, 0.34);
  box-shadow: inset -14px -6px 0 rgba(244, 212, 166, 0.22);
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  inset: 20% 7% auto auto;
  width: 82px;
  height: 82px;
  border-width: 2px;
  opacity: 0.65;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(35, 2, 2, 0.36), rgba(75, 4, 6, 0.92)),
    radial-gradient(circle at 82% 18%, rgba(244, 212, 166, 0.22), transparent 30%);
  z-index: -1;
}

.hero__content {
  padding: 4rem 0 4.5rem;
  color: #fff;
  position: relative;
}

.brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

h1, h2, h3 {
  font-family: "Cinzel", serif;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  margin-top: 0.3rem;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.45);
}

.hero__subtitle {
  max-width: 700px;
  line-height: 1.66;
  margin: 0.9rem 0 1.85rem;
  color: #ffe9c7;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(244, 212, 166, 0.9);
  outline-offset: 2px;
}

.btn--cta,
.btn--solid {
  background: linear-gradient(120deg, var(--color-secondary), var(--color-accent));
  color: var(--color-deep);
  box-shadow: 0 10px 24px rgba(35, 2, 2, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-primary-2);
  border: 1px solid rgba(98, 4, 8, 0.28);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.layout {
  padding: 2.35rem 0 3.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.2rem;
}

.delivery-info {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(75, 4, 6, 0.92), rgba(98, 4, 8, 0.9));
  border: 1px solid rgba(244, 212, 166, 0.34);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  color: #ffe8c3;
  box-shadow: var(--shadow-soft);
}

.delivery-info h2 {
  color: var(--color-accent);
  margin-bottom: 0.45rem;
}

.delivery-info ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.55;
}

.delivery-contact {
  margin-top: 0.85rem;
  width: fit-content;
  background: linear-gradient(120deg, #25d366, #9ce8b4);
  color: #0f2b18;
}

.delivery-contact svg {
  width: 18px;
  height: 18px;
  margin-right: 0.4rem;
}

.items h2,
.summary h2 {
  color: #f4d4a6;
}

.section-head {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(75, 4, 6, 0.86), rgba(98, 4, 8, 0.82));
  border: 1px solid rgba(244, 212, 166, 0.32);
}

.section-head p { margin: 0.4rem 0 0; color: #f7ddba; }
.items-status {
  min-height: 1.2rem;
  margin: 0 0 0.7rem;
  color: #ffd2d8;
  font-weight: 600;
}

.items__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, #fffefb, #fff9ef 68%, #fff4e2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: clip;
  border: 1px solid rgba(190, 134, 92, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 212, 166, 0.48);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(35, 2, 2, 0.24);
}

.card__img {
  width: 100%;
  height: 188px;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.03);
}

.card__body { padding: 0.95rem; }

.card__title-row {
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: start;
}

.badge {
  background: linear-gradient(140deg, #ffe8bf, #f4d4a6);
  color: var(--color-primary-2);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(98, 4, 8, 0.2);
}

.desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #51342c;
  margin: 0.6rem 0 0.8rem;
  min-height: 4.2em;
}
.includes-label {
  margin: 0.65rem 0 0.35rem;
  color: var(--color-primary-2);
  font-weight: 700;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.includes-list {
  margin: 0 0 0.75rem 1rem;
  padding: 0;
  color: #51342c;
  font-size: 0.88rem;
  line-height: 1.4;
}
.includes-list li {
  margin-bottom: 0.16rem;
}

.price {
  font-weight: 700;
  color: var(--color-primary-2);
  margin-bottom: 0.75rem;
}

.card__controls { display: flex; gap: 0.6rem; align-items: center; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(75, 4, 6, 0.24);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  background: linear-gradient(180deg, #fff, #fff7ec);
  color: var(--color-primary-2);
  font-size: 1.1rem;
  cursor: pointer;
}

.stepper button:hover { background: #fff0d8; }

.stepper output {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
  color: var(--color-deep);
}

.add-btn[data-added="true"] {
  background: linear-gradient(135deg, #2f7a43, #49a263);
  color: #fff;
  animation: addPulse 240ms ease-out;
}

.add-btn:disabled,
.stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.add-btn:disabled {
  background: linear-gradient(120deg, #8a8a8a, #b1b1b1);
  color: #fff;
  box-shadow: none;
}

@keyframes addPulse {
  0% { transform: scale(0.96); }
  70% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.summary {
  position: sticky;
  top: 1rem;
  align-self: start;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.97), rgba(255, 244, 223, 0.95));
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(190, 134, 92, 0.44);
}

.summary h2 {
  color: #f4d4a6;
  border-bottom: 1px solid rgba(98, 4, 8, 0.15);
  padding-bottom: 0.45rem;
}

.summary__items { max-height: 320px; overflow: auto; margin: 0.8rem 0; }
.summary__empty { margin: 0; color: #7a5a4d; }

.summary__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
}

.summary__row strong { color: var(--color-primary-2); }

.summary__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(75, 4, 6, 0.28);
  padding-top: 0.75rem;
}

.summary__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.modal.is-open { display: block; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 2, 2, 0.7);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  width: min(760px, 92vw);
  margin: 3vh auto;
  max-height: 94vh;
  overflow: auto;
  background: linear-gradient(180deg, #fffef9, #fff5e4);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid rgba(190, 134, 92, 0.4);
}

.modal__close {
  position: absolute;
  right: 0.7rem;
  top: 0.45rem;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  color: var(--color-primary-2);
  cursor: pointer;
}

.field { margin-bottom: 0.68rem; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(75, 4, 6, 0.25);
  border-radius: 10px;
  padding: 0.68rem;
  font: inherit;
  background: #fff;
}

.error {
  display: block;
  color: #a6142b;
  font-size: 0.82rem;
  min-height: 1.1em;
  margin-top: 0.2rem;
}

.order-mode-notice {
  margin: 0.5rem 0 0.8rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: rgba(244, 212, 166, 0.18);
  border: 1px solid rgba(190, 134, 92, 0.45);
  color: #ffe8c3;
  font-weight: 600;
}

.modal__summary {
  background: linear-gradient(180deg, rgba(244, 212, 166, 0.24), rgba(255, 255, 255, 0.86));
  border-radius: var(--radius-md);
  padding: 0.7rem;
  margin: 0.5rem 0 0.75rem;
  border: 1px solid rgba(190, 134, 92, 0.3);
}

#orderPreview {
  margin: 0.4rem 0 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
}

.modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem;
}

.submit-status {
  min-height: 1.2rem;
  margin: 0.55rem 0 0;
  font-weight: 600;
  color: #f4d4a6;
}

.submit-status.is-error {
  color: #ffd2d8;
}

.site-footer {
  border-top: 1px solid rgba(244, 212, 166, 0.25);
  background: rgba(35, 2, 2, 0.88);
}

.site-footer__inner {
  padding: 1rem 0 1.2rem;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: #f7ddba;
}

.site-footer__links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-main {
  padding: 2.2rem 0 2.8rem;
}

.legal-card {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 244, 223, 0.94));
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  border: 1px solid rgba(190, 134, 92, 0.4);
  box-shadow: var(--shadow-soft);
  color: #3d251f;
  line-height: 1.6;
}

.legal-card h1 {
  color: var(--color-primary-2);
  margin-bottom: 0.45rem;
}

.legal-card h2 {
  color: var(--color-primary-2);
  margin: 1rem 0 0.4rem;
}

.legal-card p {
  margin: 0.5rem 0;
}

.legal-card ul {
  margin: 0.55rem 0 0.6rem 1.2rem;
  padding: 0;
}

.legal-card li {
  margin-bottom: 0.45rem;
}

.legal-updated {
  margin: 0 0 0.85rem;
  color: #6a453a;
  font-weight: 600;
}

.legal-back {
  display: inline-block;
  margin-top: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-2);
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .delivery-info {
    padding: 0.95rem;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 56vh;
    background-position: 58% center;
  }

  .hero::before,
  .hero::after {
    width: 74px;
    height: 74px;
  }

  .items__grid { grid-template-columns: 1fr; }

  .summary__actions,
  .modal__actions { grid-template-columns: 1fr; }

  .card__img { height: 210px; }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
