:root {
  --red-900: #8A0F1A;
  --red-800: #A0121F;
  --red-700: #B11422;
  --red-600: #C41626;
  --gold-300: #E9D7A6;
  --gold-200: #F3E6BE;
  --cream: #FFF7E9;
  --text: #F8EFE0;
  --text-dim: #EADDC9;
  --black: #1a1a1a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --border: 1px solid rgba(233,215,166,.18);
}

* { 
  box-sizing: border-box; 
}
html, body { 
  margin: 0; 
  padding: 0; 
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
  radial-gradient(1200px 600px at 80% -100%, #d63349 0%, transparent 50%),
  linear-gradient(180deg, var(--red-900) 0%, var(--red-800) 50%, var(--red-900) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
section, .hero { 
  scroll-margin-top: 84px; 
}
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(110%) blur(8px);
  -webkit-backdrop-filter: saturate(110%) blur(8px);
  background: rgba(26, 5, 7, 0.65);
  border-bottom: 1px solid rgba(233, 215, 166, .15);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gold-200);
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-image: url(images/Logo.png);
  background-size: cover;
}
.brand-name {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .4px;
  white-space: nowrap;
}
.menu {
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 24px;
}
.menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .2px;
  padding: 10px 12px;
  border-radius: 8px;
}
.menu a:hover { 
  background: rgba(233, 215, 166, .08); 
}
.actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.cta {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--red-900);
  background: var(--gold-200);
  border: 1px solid rgba(26,5,7,.35);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  cursor: pointer;
  white-space: nowrap;
}
.cta:hover { filter: brightness(1.05); }
.cart-icon {
  position: relative;
  background: rgba(233,215,166,.12);
  color: var(--gold-200);
  border: var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--gold-200);
  color: var(--red-900);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  padding: 2px 6px;
  border: 1px solid rgba(26,5,7,.35);
}
.menu-toggle {
  display: none;
  background: rgba(233,215,166,.1);
  border: var(--border);
  color: var(--gold-200);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 1;
}
/* ######### Hero ######### */
.hero {
  max-width: 100%;
  min-height: 82vh;
  padding: 72px 0 36px;
  text-align: center;
  background-image: url('images/background.png'); 
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  border-top: 1px solid rgba(233,215,166,.12);
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 6vw, 56px);
  margin: 20px auto 12px;
  max-width: 900px;
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: .2px;
}
.hero p {
  margin: 0 auto 20px;
  max-width: 720px;
  color: var(--text-dim);
  font-size: clamp(14px, 2.5vw, 16px);
}
.hero .hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(233,215,166,.25);
  cursor: pointer;
  font-weight: 600;
}
.btn.primary { 
  background: var(--gold-200); 
  color: var(--red-900); 
}
.btn.ghost { 
  background: transparent; 
  color: var(--gold-200); 
}
.btn.small { 
  padding: 10px 12px; 
  font-size: 14px; 
}

/* ######### Sections ######### */
section {
  padding: 64px 0;
  border-top: 1px solid rgba(233,215,166,.12);
}
section h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin: 0 0 6px;
  color: var(--cream);
}
section p { 
  margin: 0 0 24px; 
  color: var(--text-dim); 
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ######### Grids ######### */
.products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#shop .products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ######### Card ######### */
.card {
  background: linear-gradient(180deg, rgba(255,247,233,.05), rgba(138,15,26,.18));
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card-media {
  width: 100%;
  aspect-ratio: 4 / 3;      
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #4f0e15;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;         
  display: block;
}
.card-body { 
  padding: 16px; 
}
.card-title {
  font-family: "Playfair Display", serif;
  color: var(--gold-200);
  font-size: 22px;
  margin: 0 0 6px;
}
.card-text {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(233,215,166,.12);
  color: var(--text);
  border: 1px solid rgba(233,215,166,.22);
  font-size: 13px; margin-right: 8px; margin-bottom: 8px;
}
.card-actions { 
  display: flex; 
  gap: 8px; 
  margin-top: 12px; 
  flex-wrap: wrap; 
}

/* ######### Ingredients ######### */
.ingredients-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.ing {
  border: var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,247,233,.05), rgba(138,15,26,.14));
  padding: 14px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: center;
}
.ing-thumb {
  width: 60px; height: 60px; border-radius: 10px;
  background: #651018 center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(233,215,166,.22);
}
.ing h4 { 
  margin: 0 0 4px; 
  color: var(--gold-200); 
  font-family: "Playfair Display", serif; 
}
.ing p  { 
  margin: 0; 
  font-size: 13px; 
  color: var(--text-dim); 
}

/* ######### Campaigns ######### */
.campaigns {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}

.campaign {
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border);
  background: #3c080e;
}
.campaign-media {
  aspect-ratio: 16/9;
  background: #40080c center/cover no-repeat;
}
.campaign-body { padding: 16px; }
.campaign-title {
  margin: 0 0 6px;
  color: var(--gold-200);
  font-family: "Playfair Display", serif;
  font-size: 22px;
}
.campaign-text {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* ######### Rituals ######### */
.rituals { 
  display: grid; 
  gap: 16px; 
  grid-template-columns: repeat(3, 1fr); 
}
.ritual { 
  border: var(--border); 
  border-radius: 12px; 
  background: linear-gradient(180deg, rgba(255,247,233,.05), rgba(138,15,26,.16)); 
  padding: 16px; 
}
.ritual h4 { 
  margin: 0 0 8px; 
  color: var(--gold-200); 
  font-family: "Playfair Display", serif; 
}
.ritual ol { 
  margin: 0; 
  padding-left: 18px; 
}
.ritual li { 
  margin: 8px 0; 
  color: var(--text); 
}
.ritual small { 
  color: var(--text-dim); 
  display: block; 
  margin-top: 8px; 
}
/* ######### Form ######### */
h1 {
  text-align: center;
  margin-bottom: 24px;
  color: var(--cream);
}

.contact-container {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: var(--border);
}

/* ==== Form Grid ==== */
.contact-form .form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  max-width: 800px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px;
  border-radius: var(--radius);
  border: var(--border);
  background: rgba(233, 215, 166, 0.08);
  color: var(--cream);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold-300);
  background: rgba(233, 215, 166, 0.15);
}

.contact-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 120px;
}

/* ==== Actions ==== */
.form-actions {
  margin-top: 12px;
  text-align: right;
}



/* ######### Footer ######### */
footer { 
  margin-top: 40px; 
  padding: 28px 0; 
  border-top: var(--border); 
  color: var(--text-dim); 
}
.footer-grid { 
  display: grid; 
  gap: 18px; 
  grid-template-columns: 2fr 1fr 1fr 1fr; 
}

.footer-grid h5 { 
  margin: 0 0 10px; 
  font-family: "Playfair Display", serif; 
  color: var(--gold-200); 
}
.footer-grid a { 
  color: var(--text); 
  text-decoration: none; 
  display: block; 
  margin: 6px 0; 
}
.subfooter { 
  margin-top: 18px; 
  font-size: 13px; 
  display: flex; 
  justify-content: space-between; 
  flex-wrap: wrap; 
  gap: 10px; 
}

/* ######### Modal ######### */
.modal {
  position: fixed; 
  inset: 0; 
  display: none; 
  place-items: center; 
  z-index: 100;
  background: rgba(0,0,0,.6);
}
.modal.open { 
  display: grid; 
}
.modal-card {
  width: min(760px, 92vw); 
  border-radius: 14px; 
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,247,233,.05), rgba(138,15,26,.22));
  border: 1px solid rgba(233,215,166,.22); 
  box-shadow: var(--shadow);
  position: relative;
}
.modal-media { 
  aspect-ratio: 16/9; 
  background: #511016 center/cover no-repeat; 
}
.modal-body { 
  padding: 16px; 
}
.modal-title { 
  margin: 0 0 8px; 
  color: var(--gold-200); 
  font-family: "Playfair Display", serif; 
  font-size: 24px; 
}
.modal-text { 
  margin: 0 0 12px; 
  color: var(--text-dim); 
}
.modal-actions { 
  display: flex; 
  gap: 8px; 
}
.close-x {
  position: absolute; 
  top: 12px; 
  right: 12px; 
  width: 36px; 
  height: 36px; 
  border-radius: 50%;
  border: 1px solid rgba(233,215,166,.25); 
  background: rgba(233,215,166,.1); 
  color: var(--gold-200);
  font-weight: 700; 
  display: grid; 
  place-items: center; 
  cursor: pointer;
}

/* ######### Toast ######### */
.toast {
  position: fixed; 
  bottom: 24px; 
  left: 50%; 
  transform: translateX(-50%);
  background: rgba(243,230,190,.95); 
  color: var(--red-900); 
  padding: 10px 14px; 
  border-radius: 999px;
  border: 1px solid rgba(26,5,7,.35); 
  box-shadow: 0 6px 22px rgba(0,0,0,.25); 
  font-weight: 600;
  display: none; 
  z-index: 120;
}
.toast.show { 
  display: inline-block; 
}

/* ######### Cart Drawer ######### */
.cart-drawer {
  position: fixed; 
  right: 0; 
  top: 0; 
  width: min(380px, 92vw); 
  height: 100%;
  background: #3c080e; 
  color: var(--gold-200); 
  border-left: var(--border);
  box-shadow: -6px 0 22px rgba(0,0,0,.45); 
  z-index: 120;
  transform: translateX(100%); 
  transition: transform .28s ease-in-out;
  display: grid; 
  grid-template-rows: auto 1fr auto;
}
.cart-drawer.open { 
  transform: translateX(0%); 
}
.cart-head { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 16px; 
  border-bottom: var(--border); 
}
.cart-items { 
  overflow-y: auto; 
  padding: 12px 16px; 
  display: grid; 
  gap: 12px; 
}
.cart-item {
  display: grid; 
  grid-template-columns: 64px 1fr auto; 
  gap: 12px; 
  align-items: center;
  border: 1px solid rgba(233,215,166,.18); 
  border-radius: 10px; 
  padding: 8px;
  background: linear-gradient(180deg, rgba(255,247,233,.04), rgba(138,15,26,.10));
}
.cart-thumb { 
  width: 64px; 
  height: 64px; 
  border-radius: 8px; 
  background: #651018 center/cover no-repeat; 
}
.cart-title { 
  font-weight: 600; 
  color: var(--cream); 
  margin: 0 0 4px; 
}
.cart-meta { 
  font-size: 13px; 
  color: var(--text-dim); 
}
.qty-row { 
  display: flex; 
  gap: 6px; 
  align-items: center; 
  margin-top: 6px; 
}
.qty-btn {
  width: 28px; 
  height: 28px; 
  border-radius: 6px; 
  border: var(--border);
  background: rgba(233,215,166,.12); 
  color: var(--gold-200); 
  cursor: pointer;
}
.remove-btn {
  background: transparent; 
  border: var(--border); 
  color: var(--gold-200); 
  border-radius: 999px; 
  padding: 6px 10px; 
  cursor: pointer;
}
.cart-foot { 
  border-top: var(--border); 
  padding: 16px; 
  display: grid; 
  gap: 10px; 
}
.total-row { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  font-weight: 700; 
  color: var(--cream); 
}
.cart-actions { 
  display: flex; 
  gap: 8px; 
}
.btn.block { 
  width: 100%; 
}


/* ====== Mobile behavior */

@media (max-width: 1024px) { 
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1200px) { 
  #shop .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } 
} 

@media (max-width: 900px) {
  .nav {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center; justify-content: center;
    margin-left: 8px;
  }

  .menu {
    display: none;
  }

  /* Dropdown menu container */
  .menu.open {
    display: flex;
    flex-direction: column;
    gap: 8px;

    position: absolute;
    left: 0; right: 0;
    top: 100%;
    z-index: 60;

    padding: 10px 16px 12px;
    background: rgba(26, 5, 7, 0.95);
    border-bottom: 1px solid rgba(233,215,166,.15);
    backdrop-filter: saturate(110%) blur(8px);
    -webkit-backdrop-filter: saturate(110%) blur(8px);
  }

  .brand-name { font-size: 18px; }

   #shop .products-grid { 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
  }
  .ingredients-grid { 
    grid-template-columns: repeat(2, 1fr); 
  } 
  .campaigns { 
    grid-template-columns: 1fr; 
  }
  .rituals { 
    grid-template-columns: 1fr; 
  }
  .footer-grid { 
    grid-template-columns: 1fr; 
  }
}

@media (max-width: 640px) {
  .hero { 
    padding: 56px 0 28px; min-height: 50vh; 
  }
  .products-grid { 
    grid-template-columns: 1fr; 
  }
  #shop .products-grid { 
    grid-template-columns: 1fr; 
  }

}

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