:root {
  --bg-main: #0f2a23;
  --bg-deep: #0b1f1a;
  --gold: #c6a55c;
  --gold-light: #e0c27a;
  --text-main: #f5f5f5;
  --text-muted: #a8b3ae;
  --card: #102720;
  --radius: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 31, 26, 0.92);
  border-bottom: 1px solid rgba(198, 165, 92, 0.25);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 112px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
  padding: 0;
  flex: 0 0 auto;
  filter: brightness(0) saturate(100%) invert(79%) sepia(24%) saturate(553%) hue-rotate(356deg) brightness(90%) contrast(91%);
}

.logo-wordmark {
  line-height: 1;
}

.header-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-select {
  position: relative;
}

.lang-current,
.lang-option,
.btn {
  border-radius: 8px;
  border: 1px solid rgba(198, 165, 92, 0.45);
  background: transparent;
  color: var(--gold);
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.lang-current::after {
  content: "▾";
  margin-left: 8px;
  font-size: 0.75rem;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(11, 31, 26, 0.98);
  border: 1px solid rgba(198, 165, 92, 0.25);
  border-radius: 8px;
  padding: 8px;
}

.lang-menu.open { display: flex; }

.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-outline:hover,
.lang-current:hover,
.lang-option:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.main-content {
  padding: 22px 0 40px;
}

.hero-card {
  border: 1px solid rgba(198, 165, 92, 0.2);
  border-radius: 14px;
  background: radial-gradient(circle at 85% 10%, rgba(198, 165, 92, 0.15), transparent 48%), #0f2a23;
  padding: 24px;
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  margin: 0 0 10px;
}

p { margin: 0; color: var(--text-muted); }

.offers-page-head {
  margin: 4px 0 22px;
}

.offers-page-title {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  color: var(--text, #f4ead2);
}

.offers-page-sub {
  max-width: 720px;
  line-height: 1.5;
}

.offers-empty {
  padding: 40px 18px;
  text-align: center;
  border: 1px dashed rgba(198, 165, 92, 0.3);
  border-radius: 14px;
  color: var(--text-muted);
}

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

.offer-card {
  background: var(--card);
  border: 1px solid rgba(198, 165, 92, 0.2);
  border-radius: var(--radius);
  padding: 16px;
}

.offer-products {
  margin: 12px 0;
  display: grid;
  gap: 8px;
}

.offer-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(198, 165, 92, 0.18);
  padding-bottom: 7px;
}

.offer-checks {
  margin: 0;
  padding-left: 16px;
  color: var(--text-muted);
}

.offer-checks li.ok { color: #b7ddc8; }
.offer-checks li.no { color: #e2b3b3; }

.price-box {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

.price-line {
  display: flex;
  justify-content: space-between;
}

.price-set strong {
  color: var(--gold-light);
}

.order-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--gold);
  color: #1b170d;
  font-weight: 700;
  cursor: pointer;
}

.order-btn:hover {
  background: var(--gold-light);
}

.empty-box {
  border: 1px dashed rgba(198, 165, 92, 0.4);
  border-radius: 10px;
  padding: 16px;
  color: var(--text-muted);
}

.bottom-back-btn {
  position: fixed;
  left: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(198, 165, 92, 0.62);
  background: rgba(11, 31, 26, 0.94);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  z-index: 120;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.bottom-back-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold-light);
  color: var(--gold);
  background: rgba(15, 42, 35, 0.98);
}

@media (max-width: 900px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }
}

/* OF5: admin-curated bundle cards (sourced from /catalog/offers) */
.bundle-section {
  margin: 24px 0 8px;
  padding: 0;
}

.bundle-heading {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  margin: 0 0 6px;
  color: var(--ivory, #f4ecd8);
}

.bundle-sub {
  margin: 0 0 18px;
  color: var(--muted, rgba(244, 236, 216, 0.74));
  font-size: 0.95rem;
}

.bundle-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.bundle-card {
  background: rgba(255, 251, 244, 0.97);
  color: #1b2822;
  border: 1px solid rgba(168, 134, 66, 0.28);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.bundle-hero {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(15, 42, 35, 0.06);
  display: block;
}

.bundle-hero-placeholder {
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: rgba(15, 42, 35, 0.42);
}

.bundle-body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 10px;
}

.bundle-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f2a23;
}

.bundle-desc {
  margin: 0;
  font-size: 0.92rem;
  color: #4d5853;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bundle-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.bundle-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #2a3833;
}

.bundle-item-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(15, 42, 35, 0.05);
  border: 1px solid rgba(168, 134, 66, 0.18);
}

.bundle-item-thumb-placeholder {
  display: grid;
  place-items: center;
  font-size: 12px;
  color: rgba(15, 42, 35, 0.42);
}

.bundle-item-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.bundle-item-qty {
  font-size: 11px;
  font-weight: 700;
  color: #b56a18;
  background: rgba(244, 173, 96, 0.18);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.bundle-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  position: relative;
}

.bundle-price-now-wrap,
.bundle-price-strike-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bundle-price-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7873;
}

.bundle-price-now {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f2a23;
}

.bundle-price-strike {
  font-size: 0.95rem;
  color: #8a9590;
  text-decoration: line-through;
}

/* Absolute-savings panel that replaced the old `-N%` badge. Sits on
   its own row below the price block so the eye reads
   bundle-price → strike → savings as a complete story, in the
   customer's currency. */
.bundle-savings {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(196, 154, 58, 0.16);
  border: 1px solid rgba(196, 154, 58, 0.32);
}

.bundle-savings-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a6520;
  font-weight: 700;
}

.bundle-savings-amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: #6f4e0d;
}

.bundle-order-btn {
  margin-top: 4px;
  display: block;
  text-align: center;
  background: #0f2a23;
  color: #f5f0e6;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(198, 165, 92, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bundle-order-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

@media (max-width: 720px) {
  .bundle-grid {
    grid-template-columns: 1fr;
  }
}

/* OF6: bundle CTA row groups the cart-add + Telegram-order buttons. */
.bundle-cta-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.bundle-cta-row .bundle-order-btn,
.bundle-cta-row .bundle-add-cart-btn {
  flex: 1 1 160px;
  margin-top: 0;
}

.bundle-add-cart-btn {
  background: #c49a3a;
  color: #18342d;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(196, 154, 58, 0.55);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bundle-add-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  background: #d4ab51;
}

/* Brief on-page toast as the page is about to navigate to the
   homepage cart. Mostly belt-and-suspenders — the homepage shows
   its own toast on pickup. */
.bundle-handoff-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  background: #0f2a23;
  color: #f4ecd8;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 200;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(196, 154, 58, 0.45);
  animation: bundle-handoff-pop 0.16s ease;
}

@keyframes bundle-handoff-pop {
  from { transform: translateX(-50%) translateY(8px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
