:root {
  --bg: #fffaf5;
  --card: #ffffff;
  --text: #2d241d;
  --muted: #75685f;
  --line: #eadfd6;
  --soft: #fae9ef;
  --rose: #d85f83;
  --rose-dark: #b84366;
  --green: #254832;
  --cream: #f4ebe2;
  --shadow: 0 24px 80px rgba(78, 53, 35, 0.11);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #fffaf5 0%, #f7efe8 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(16px, 4vw, 52px);
  background: rgba(255, 250, 245, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img{width:auto;height:72px;max-width:220px;object-fit:contain;}
.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex: 1;
}
.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b3d34;
  font-weight: 700;
  font-size: 14px;
}
.main-nav a.active,
.main-nav a:hover {
  background: var(--soft);
  color: var(--rose-dark);
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 800;
}
.cart-link strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--rose);
  color: white;
  font-size: 13px;
}

main {
  width: min(1210px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}
.page { display: none; animation: fadeIn .22s ease; }
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: .45; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.03em;
}
h1 { font-size: clamp(42px, 7vw, 76px); line-height: .94; margin: 0 0 18px; }
h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1; margin: 0 0 14px; }
p { line-height: 1.6; }
.lead { max-width: 560px; font-size: 19px; color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 34px;
  align-items: center;
  padding: 46px;
  border-radius: 38px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 20%, #fff 0 10%, transparent 24%),
    linear-gradient(135deg, #fff 0%, #f4e8df 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-copy { padding: 20px 0; }
.hero-art {
  min-height: 500px;
  display: grid;
  place-items: center;
}
.hero-art img {
  width: min(470px, 100%);
  filter: drop-shadow(0 24px 34px rgba(68, 46, 34, .14));
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .15s ease, background .15s ease, border .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--rose);
  color: white;
  box-shadow: 0 14px 30px rgba(216, 95, 131, .22);
}
.btn.primary:hover { background: var(--rose-dark); }
.btn.ghost {
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.wide { width: 100%; margin-top: 12px; }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 46px;
}
.feature-strip article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 34px rgba(78, 53, 35, .05);
}
.feature-strip b { display: block; margin-bottom: 4px; }
.feature-strip span { color: var(--muted); font-size: 14px; }

.section-head,
.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 36px 0 20px;
}
.page-title {
  display: block;
  max-width: 790px;
}
.page-title p { color: var(--muted); margin-top: 0; }
.link-more { color: var(--rose-dark); font-weight: 900; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 16px 42px rgba(78, 53, 35, .08);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(78, 53, 35, .13);
}
.product-image {
  position: relative;
  aspect-ratio: 1 / 1.08;
  background: var(--cream);
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.product-body { padding: 18px; }
.product-body h3 {
  min-height: 50px;
  margin: 0 0 8px;
  font-size: 22px;
}
.product-body p {
  min-height: 64px;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price { font-size: 18px; font-weight: 950; }
.add-mini {
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 0;
  color: white;
  background: var(--green);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.promo {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: center;
  margin: 54px 0 12px;
  padding: 40px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.promo p { max-width: 520px; color: var(--muted); }
.promo img {
  max-height: 420px;
  justify-self: center;
  filter: drop-shadow(0 20px 30px rgba(70, 45, 30, .13));
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 26px;
}
.filter {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
}
.filter.active {
  background: var(--soft);
  color: var(--rose-dark);
  border-color: #f2cbd8;
}

.back-button {
  margin: 4px 0 18px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--rose-dark);
  cursor: pointer;
  font-weight: 900;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 36px;
}
.detail-image {
  display: grid;
  place-items: center;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: white;
  box-shadow: var(--shadow);
}
.detail-image img { max-height: 560px; }
.detail-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: white;
  box-shadow: var(--shadow);
}
.detail-panel .price { font-size: 30px; }
.size-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 14px 0 22px;
}
.size-options label,
.payment-list label,
.method-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  cursor: pointer;
}
.size-options label {
  display: grid;
  place-items: center;
  padding: 14px 8px;
  font-weight: 900;
}
.size-options label:has(input:checked),
.method-card:has(input:checked) {
  background: var(--soft);
  border-color: #f1c9d7;
  color: var(--rose-dark);
}
.size-options input,
.method-card input { display: none; }
.qty-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 20px 0;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.qty-control button {
  width: 42px;
  height: 46px;
  border: 0;
  background: white;
  cursor: pointer;
}
.qty-control span {
  min-width: 42px;
  text-align: center;
  font-weight: 900;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
}
.cart-items,
.summary,
.checkout-panel,
.success-card,
.info-card,
.legal-grid article,
.admin-login,
.orders-list article {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 14px 42px rgba(78, 53, 35, .07);
}
.cart-items,
.summary,
.checkout-panel,
.success-card,
.info-card,
.legal-grid article,
.admin-login {
  padding: 26px;
}
.empty {
  padding: 44px;
  text-align: center;
  color: var(--muted);
}
.cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 18px;
  background: var(--cream);
}
.cart-item h3 {
  margin: 0 0 5px;
  font-size: 20px;
}
.cart-item p { margin: 0; color: var(--muted); font-size: 14px; }
.item-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.small-button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 800;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
}
.summary-note,
.small,
.muted { color: var(--muted); font-size: 13px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}
label.full,
.full { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
  color: var(--text);
}
textarea { resize: vertical; }
.checkout-panel h2 { font-size: 28px; margin-top: 0; }
.checkout-panel h2:not(:first-child) { margin-top: 30px; }
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.method-card {
  padding: 16px;
}
.method-card span {
  display: block;
  font-weight: 950;
  margin-bottom: 4px;
}
.method-card small,
.payment-list small { color: var(--muted); }
.payment-list {
  display: grid;
  gap: 10px;
}
.payment-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}
.payment-list input { width: auto; }
.checkout-summary {
  margin: 22px 0;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.terms {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
}
.terms input { width: auto; margin-top: 3px; }

.success-card {
  max-width: 720px;
  margin: 60px auto;
  text-align: center;
  padding: 56px;
}
.info-grid,
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.big-icon { font-size: 58px; display: block; margin-bottom: 14px; }
.info-card ul { color: var(--muted); line-height: 1.8; }

.site-footer {
  width: min(1210px, calc(100% - 32px));
  margin: 0 auto 34px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  color: var(--muted);
}
.site-footer img{width:auto;height:92px;max-width:150px;margin-bottom:10px;object-fit:contain;}
.site-footer a { display: block; margin-top: 8px; color: var(--muted); }
.site-footer strong { color: var(--text); }

.admin-login {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.admin-login input { max-width: 360px; }
.orders-list {
  display: grid;
  gap: 16px;
}
.orders-list article { padding: 18px; }
.order-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.order-lines {
  margin: 12px 0;
  color: var(--muted);
}
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.status-row select { width: auto; }

@media (max-width: 980px) {
  .hero,
  .promo,
  .product-detail,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .product-grid,
  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero { padding: 30px; }
  .hero-art { min-height: auto; }
  .detail-image { min-height: 420px; }
  .site-header { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
}

@media (max-width: 620px) {
  main,
  .site-footer {
    width: min(100% - 22px, 1210px);
  }
  .product-grid,
  .feature-strip,
  .form-grid,
  .method-grid,
  .info-grid,
  .legal-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }
  .hero { padding: 24px; border-radius: 28px; }
  .cart-link span { display: none; }
  .section-head { display: block; }
  .cart-item { grid-template-columns: 74px 1fr; }
  .cart-item > strong { grid-column: 2; }
  .admin-login { display: grid; }
}

/* Admin product/photo management */
.hidden { display: none !important; }
.admin-tabs { display: flex; gap: 10px; margin: 0 0 20px; flex-wrap: wrap; }
.notice-box {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff7d6;
  color: #6a5515;
  margin-bottom: 20px;
}
.admin-products-grid { display: grid; gap: 18px; }
.admin-product-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 14px 42px rgba(78, 53, 35, .07);
}
.admin-product-image {
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
}
.admin-product-image img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-product-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-product-fields small[data-message] { grid-column: 1 / -1; min-height: 18px; }
@media (max-width: 760px) {
  .admin-product-card { grid-template-columns: 1fr; }
  .admin-product-fields { grid-template-columns: 1fr; }
}


.admin-status {
  min-height: 20px;
  margin: -8px 0 18px;
  font-weight: 800;
  color: var(--muted);
}
.admin-status[data-type="success"] { color: #23633f; }
.admin-status[data-type="error"] { color: #b84366; }
.admin-status[data-type="warn"] { color: #8a6416; }


.delivery-zip-message {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: -4px;
}

.delivery-zip-message[data-type="success"] {
  background: #eaf7ee;
  border-color: #b8dfc2;
  color: #255c37;
}

.delivery-zip-message[data-type="error"] {
  background: #ffe9e9;
  border-color: #f2baba;
  color: #9b2d2d;
}

.delivery-admin-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 14px 42px rgba(78, 53, 35, .07);
}

.delivery-admin-card textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
