:root {
  --wine: #5f1d2f;
  --wine-deep: #35121d;
  --gold: #c5a16a;
  --cream: #fffaf4;
  --paper: #fffdf9;
  --ink: #2a1b17;
  --muted: #7a675f;
  --shadow: 0 18px 45px rgba(53, 18, 29, 0.14);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Rubik', 'Heebo', 'Assistant', sans-serif;
  direction: rtl;
  background: linear-gradient(170deg, #f8f4ef, #fdfbf8 35%, #f7f2eb);
  color: var(--ink);
  line-height: 1.75;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'Heebo', serif;
  letter-spacing: 0.03em;
  font-weight: 700;
}

#background-container {
  position: fixed;
  inset: 0;
  z-index: -2;
}

#background-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 252, 248, 0.72), rgba(255, 252, 248, 0.9));
}

.background-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.background-slide.active {
  opacity: 0.26;
  filter: saturate(0.7);
}

header.hero {
  padding: 2em 1.7em 3.4em;
  margin: 1em;
  border-radius: 24px;
  background: linear-gradient(130deg, rgba(255, 248, 238, 0.96), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(95, 29, 47, 0.12);
  box-shadow: var(--shadow);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  overflow: hidden;
  position: sticky;
  top: 12px;
  z-index: 20;
  padding: 0.7em 1em;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(95, 29, 47, 0.1);
  border-radius: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 1em;
  animation: fadeSlideIn 1s ease 0.15s both;
}

.brand-logo {
  width: clamp(120px, 11vw, 170px);
  height: clamp(120px, 11vw, 170px);
  object-fit: contain;
  border-radius: 22px;
  padding: 0.45em;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(249, 240, 233, 0.92));
  border: 1px solid rgba(95, 29, 47, 0.16);
  box-shadow: 0 14px 28px rgba(74, 25, 40, 0.18);
  animation: logoFloat 6.2s ease-in-out infinite;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.brand-small {
  font-size: 1em;
  font-weight: 600;
  color: #78645d;
  letter-spacing: 0.08em;
}

.brand-name {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--wine-deep);
}

nav { display: flex; align-items: center; gap: 0.5em; flex-wrap: wrap; }
nav a {
  text-decoration: none;
  color: var(--wine-deep);
  font-weight: 600;
  font-size: 0.98em;
  padding: 0.5em 0.95em;
  border-radius: 999px;
  border: 1px solid rgba(95, 29, 47, 0.17);
  transition: all 0.24s ease;
}
nav a:hover { background: var(--wine); color: #fff; transform: translateY(-1px); }

.cart-toggle {
  display: none;
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.55em 0.9em;
  cursor: pointer;
  font-weight: 700;
}
.cart-toggle.visible { display: inline-flex; align-items: center; gap: 0.35em; }

.header-content { margin-top: 2em; }
.hero-copy { max-width: 900px; }
.eyebrow { margin: 0; color: var(--wine); font-weight: 700; letter-spacing: 0.08em; font-size: 0.82em; }
.hero-copy h1 {
  margin: 0.4em 0;
  font-size: clamp(2.45rem, 4.2vw, 3.9rem);
  line-height: 1.13;
  color: var(--wine-deep);
  animation: fadeSlideIn 1s ease 0.25s both;
}
.subtitle {
  max-width: 780px;
  font-size: 1.16em;
  color: #44332e;
  font-weight: 500;
  animation: fadeSlideIn 1s ease 0.35s both;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75em; margin-top: 1.2em; animation: fadeSlideIn 1s ease 0.5s both; }
.primary-btn, .ghost-btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.8em 1.4em;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.primary-btn { background: var(--wine); color: #fff; box-shadow: 0 12px 25px rgba(95, 29, 47, 0.24); }
.ghost-btn { color: var(--wine); border: 1px solid rgba(95, 29, 47, 0.25); }
.primary-btn:hover, .ghost-btn:hover { transform: translateY(-2px); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.55em; margin-top: 1.2em; animation: fadeSlideIn 1s ease 0.65s both; }
.hero-badges span {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(95, 29, 47, 0.12);
  color: #523a34;
  border-radius: 999px;
  padding: 0.45em 0.9em;
  font-size: 0.9em;
}

section {
  max-width: 1120px;
  margin: 1.4em auto;
  padding: 2.7em 2em;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(95, 29, 47, 0.09);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(30, 21, 16, 0.07);
}
section h2 { text-align: center; margin: 0 0 0.5em; font-size: clamp(2rem, 3vw, 2.7rem); color: var(--wine-deep); }
.section-intro { text-align: center; max-width: 740px; margin: 0 auto 1.8em; color: #5a4b46; }
.text-section { text-align: center; max-width: 900px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1em; }
.card {
  background: var(--paper);
  border: 1px solid rgba(95, 29, 47, 0.09);
  border-radius: 14px;
  padding: 1em;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-7px); box-shadow: 0 18px 26px rgba(95, 29, 47, 0.16); }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
.card h3 { margin: 0.75em 0 0.25em; font-size: 1.45rem; color: var(--wine-deep); }
.card p { margin: 0; color: var(--muted); font-size: 0.95em; }
.card .price { font-size: 1.24em; font-weight: 800; color: var(--wine-deep); margin: 0.6em 0; }
.buy-btn {
  margin-top: auto;
  border: none;
  border-radius: 999px;
  padding: 0.65em 1em;
  background: linear-gradient(120deg, var(--wine), #743147);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.feature-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9em;
}
.feature-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(95, 29, 47, 0.08);
  padding: 1.25em;
  box-shadow: 0 8px 20px rgba(35, 20, 20, 0.06);
}
.feature-card h3 { margin: 0 0 0.3em; color: var(--wine-deep); }
.feature-card p { margin: 0; color: #604d47; }

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.9em; }
.testimonial-card {
  background: #fff;
  border: 1px solid rgba(95, 29, 47, 0.08);
  border-radius: 14px;
  padding: 1.2em;
}
.rating { color: var(--gold); letter-spacing: 0.1em; margin-bottom: 0.45em; }
.quote { margin: 0; color: #493834; }
.name { margin-top: 0.8em; font-weight: 700; color: var(--wine-deep); }

.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.gallery-grid img {
  width: 210px;
  height: 132px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.28s ease, filter 0.28s ease;
}
.gallery-grid img:hover { transform: scale(1.05); filter: brightness(1.03); }

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  background: linear-gradient(120deg, #4e1628, #6e2940);
  color: #fff;
}
.cta-band h2 { text-align: right; margin: 0 0 0.3em; color: #fff; }
.cta-band p { margin: 0; color: #f4e8e2; }
.cta-band .primary-btn { background: #fff; color: var(--wine-deep); }

#about img { max-width: min(520px, 100%); border-radius: 12px; display: block; margin: 1em auto; }

form { max-width: 540px; margin: 0 auto; }
input, textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0.45em 0;
  border: 1px solid rgba(95, 29, 47, 0.14);
  border-radius: 10px;
  padding: 0.92em;
  font-family: inherit;
  background: #fff;
}
form button {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.85em;
  background: var(--wine);
  color: #fff;
  font-weight: 700;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(390px, 94vw);
  height: 100vh;
  z-index: 100;
  background: rgba(255, 253, 249, 0.98);
  border-left: 1px solid rgba(95, 29, 47, 0.15);
  box-shadow: -16px 0 36px rgba(35, 16, 20, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  padding: 1.1em;
  transform: translateX(102%);
  transition: transform 0.36s ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; gap: 0.6em; align-items: flex-start; }
.cart-header h2 { margin: 0; font-size: 2rem; text-align: right; }
.cart-header p { margin: 0; color: var(--muted); font-size: 0.9em; }
.cart-close {
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(95, 29, 47, 0.08);
  color: var(--wine-deep);
  cursor: pointer;
}
.cart-pill {
  align-self: flex-start;
  background: var(--wine);
  color: #fff;
  border-radius: 999px;
  padding: 0.25em 0.75em;
}
.cart-items { overflow: auto; display: flex; flex-direction: column; gap: 0.6em; min-height: 140px; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.45em;
  background: #fff;
  border: 1px solid rgba(95, 29, 47, 0.08);
  border-radius: 10px;
  padding: 0.65em;
}
.cart-info { display: flex; flex-direction: column; }
.cart-meta { color: var(--muted); font-size: 0.88em; }
.qty-controls { display: flex; align-items: center; gap: 0.28em; }
.qty-btn {
  border: 1px solid rgba(95, 29, 47, 0.2);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.line-total { color: var(--wine-deep); font-weight: 700; }
.cart-summary { margin-top: auto; border-top: 1px solid rgba(95, 29, 47, 0.1); padding-top: 0.7em; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 0.6em; }
.cart-summary button {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.8em;
  background: var(--wine);
  color: #fff;
  font-weight: 700;
}
.cart-empty { color: var(--muted); }
.cart-message {
  min-height: 24px;
  color: var(--wine-deep);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s;
}
.cart-message.show { opacity: 1; }

.modal { display: none; position: fixed; z-index: 1000; inset: 0; background-color: rgba(0, 0, 0, 0.88); }
.modal-content { margin: 6% auto; display: block; width: min(84vw, 760px); border-radius: 10px; }
.close-modal { position: absolute; top: 18px; right: 34px; color: #fff; font-size: 40px; cursor: pointer; }

footer { padding: 1.8em 1.2em; color: #f7ecdf; background: var(--wine-deep); margin-top: 1.5em; }

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
}

.footer-grid h3 {
  margin: 0 0 0.35em;
  font-size: 1.3rem;
  color: #fff;
}

.footer-grid p {
  margin: 0.2em 0;
  color: #f1ddd0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9em;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(95, 29, 47, 0.08);
  border-radius: 14px;
  padding: 1.1em;
}

.faq-item h3 {
  margin: 0 0 0.35em;
  color: var(--wine-deep);
}

.faq-item p {
  margin: 0;
  color: #5d4a44;
}

@media (max-width: 960px) {
  .nav-bar { position: static; flex-direction: column; align-items: flex-start; }
  .brand-logo { width: clamp(96px, 24vw, 128px); height: clamp(96px, 24vw, 128px); }
  .brand-name { font-size: clamp(1.8rem, 7vw, 2.35rem); }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  header.hero, section { margin-inline: 0.65em; padding-inline: 1em; }
  nav { width: 100%; }
  nav a { width: 100%; text-align: center; }
  .hero-actions .primary-btn, .hero-actions .ghost-btn { width: 100%; text-align: center; }
  .hero-badges span { width: 100%; text-align: center; }
}


.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
