:root {
  /* Palette matched to the Laya logo: cream + soft blush, dusty-rose accent */
  --cream: #fdf7f1;
  --cream-2: #f7ebe0;
  --sage: #fbe7e4;          /* soft blush (stripe + image bg) */
  --sage-2: #f5d6d2;
  --accent: #cf8296;        /* dusty rose (logo script) */
  --accent-deep: #b86478;
  --gold: #f2d65c;          /* flower-center yellow */
  --ink: #403a3f;
  --muted: #8a8088;
  --card: #fffdf8;
  --border: #ece3d4;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(120, 90, 90, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Poppins", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  /* Soft vertical stripes */
  background:
    repeating-linear-gradient(
      90deg,
      var(--cream) 0px, var(--cream) 46px,
      var(--sage) 46px, var(--sage) 92px
    );
}

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 236, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand {
  font-family: "Parisienne", cursive;
  font-size: 2rem; color: var(--accent-deep); text-decoration: none; line-height: 1;
  display: flex; align-items: center;
}
.brand-logo { height: 52px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav-link {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  background: var(--card); border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 999px; transition: .2s;
}
.nav-link:hover { color: var(--accent-deep); border-color: var(--accent); }
.icon-btn {
  position: relative; border: 1px solid var(--border); background: var(--card);
  font-size: 1.1rem; padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.cart-count {
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 600;
  border-radius: 999px; padding: 1px 7px; margin-left: 2px;
}

/* Hero */
.hero { padding: 54px 0 64px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.medallion {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 50% / 42%;
  padding: 46px 60px;
  max-width: 460px; width: 100%;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative;
}
.medallion::before, .medallion::after {
  content: "✦"; color: var(--gold); font-size: .9rem; position: absolute;
}
.medallion::before { top: 16px; }
.medallion::after { bottom: 16px; }
.medallion-logo { width: min(280px, 74%); height: auto; display: block; }
.medallion-top { font-style: italic; color: var(--muted); font-size: .82rem; letter-spacing: .5px; }
.medallion-name { font-family: "Parisienne", cursive; font-size: 3.4rem; color: var(--accent-deep); line-height: 1; }
.medallion-sub { font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--muted); font-size: 1rem; }

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 34px 0 6px; color: var(--ink);
}
.hero-sub { font-size: 1.15rem; color: var(--muted); margin-bottom: 26px; }

/* Buttons */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  padding: 13px 30px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  font-family: "Poppins", sans-serif; transition: transform .05s, filter .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(193,122,143,.4); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-whatsapp { background: #25d366; color: #fff; width: 100%; }
.btn-whatsapp:disabled { opacity: .5; cursor: not-allowed; }

/* Section title */
.section-title {
  font-family: "Parisienne", cursive;
  font-size: 2.6rem; color: var(--accent-deep);
  text-align: center; margin: 20px 0 30px;
}

/* Product grid */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  padding-bottom: 60px;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-media { position: relative; }
.card-img {
  aspect-ratio: 3/4; width: 100%; object-fit: cover; background: var(--sage);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.add-btn {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--card); color: var(--accent-deep); font-size: 1.4rem; line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.14); transition: .15s;
}
.add-btn:hover { background: var(--accent); color: #fff; transform: scale(1.08); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.2rem; }
.card-name-ar { color: var(--accent-deep); font-size: .95rem; direction: rtl; }
.card-desc { color: var(--muted); font-size: .82rem; flex: 1; margin: 4px 0; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-now { font-weight: 600; font-size: 1.1rem; color: var(--accent-deep); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .9rem; }

/* Footer */
.site-footer {
  margin-top: 20px; padding: 44px 0 34px;
  background: rgba(255,253,248,.7); border-top: 1px solid var(--border); text-align: center;
}
.footer-title { font-family: "Parisienne", cursive; font-size: 2rem; color: var(--accent-deep); margin-bottom: 10px; }
.footer-line { color: var(--ink); font-size: .95rem; }
.social { display: flex; gap: 12px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.social a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .9rem;
  background: var(--card); border: 1px solid var(--border);
  padding: 9px 22px; border-radius: 999px; transition: .2s;
}
.social a:hover { border-color: var(--accent); color: var(--accent-deep); }
.copyright { color: var(--muted); font-size: .82rem; margin-top: 12px; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.6rem; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
}

/* Cart drawer */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(60,45,50,.4);
  opacity: 0; visibility: hidden; transition: .25s; z-index: 90;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 92%);
  background: var(--cream); z-index: 100; transform: translateX(100%);
  transition: transform .28s ease; display: flex; flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,.14);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.4rem; }
.close-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-empty { color: var(--muted); text-align: center; margin-top: 40px; }
.cart-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-row .thumb {
  width: 54px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--sage);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.cart-row .info { flex: 1; min-width: 0; }
.cart-row .info .nm { font-weight: 500; font-size: .92rem; }
.cart-row .info .pr { color: var(--muted); font-size: .85rem; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 27px; height: 27px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); cursor: pointer; font-size: 1rem; line-height: 1; color: var(--accent-deep);
}
.cart-footer { padding: 18px 20px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 1.05rem; }
.cart-total strong { font-size: 1.25rem; color: var(--accent-deep); }

/* Clickable product (opens detail) */
.card-media, .card-name, .card-name-ar { cursor: pointer; }

/* Checkout form modal */
.checkout-overlay {
  position: fixed; inset: 0; background: rgba(60,45,50,.5);
  opacity: 0; visibility: hidden; transition: .25s; z-index: 130;
}
.checkout-overlay.open { opacity: 1; visibility: visible; }
.checkout-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(.96);
  width: min(460px, 92%); max-height: 92vh; overflow-y: auto;
  background: var(--cream); border-radius: var(--radius); z-index: 140;
  box-shadow: 0 24px 60px rgba(0,0,0,.3); padding: 30px 28px;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
}
.checkout-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.checkout-title { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.7rem; color: var(--accent-deep); }
.checkout-sub { color: var(--muted); font-size: .9rem; margin: 2px 0 18px; }
#checkoutForm { display: flex; flex-direction: column; gap: 12px; }
#checkoutForm label { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 500; color: var(--ink); }
#checkoutForm label span { color: var(--accent-deep); }
#checkoutForm input, #checkoutForm textarea {
  font-family: "Poppins", sans-serif; font-size: .95rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 13px; outline: none; transition: border-color .15s; width: 100%;
}
#checkoutForm input:focus, #checkoutForm textarea:focus { border-color: var(--accent); }
#checkoutForm input.invalid, #checkoutForm textarea.invalid { border-color: #e05a5a; background: #fdf0f0; }
#checkoutForm textarea { resize: vertical; }
.checkout-recap {
  background: var(--sage); border-radius: 12px; padding: 12px 14px;
  font-size: .85rem; color: var(--ink); white-space: pre-line; margin-top: 4px;
}
.checkout-error { color: #d14343; font-size: .85rem; margin: 0; }
#checkoutForm .btn-whatsapp { margin-top: 6px; }

@media (max-width: 520px) {
  .checkout-modal { top: 0; left: 0; transform: none; width: 100%; height: 100%;
                    max-height: 100vh; border-radius: 0; }
  .checkout-modal.open { transform: none; }
}

/* Product detail modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(60,45,50,.5);
  opacity: 0; visibility: hidden; transition: .25s; z-index: 110;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(.96);
  width: min(880px, 92%); max-height: 90vh; overflow-y: auto;
  background: var(--cream); border-radius: var(--radius); z-index: 120;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
}
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.modal-media { position: relative; background: var(--sage); }
.modal-media > div, .modal-media img {
  width: 100%; height: 100%; min-height: 360px; object-fit: cover;
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
  border-radius: var(--radius) 0 0 var(--radius);
}
.modal-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 4px 11px; border-radius: 999px;
}
.modal-badge:empty { display: none; }
.modal-info { padding: 34px 32px; display: flex; flex-direction: column; gap: 8px; }
.modal-name { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.9rem; }
.modal-name-ar { color: var(--accent-deep); font-size: 1.1rem; }
.modal-info .price-row { margin: 8px 0; }
.modal-info .price-now { font-size: 1.5rem; }
.modal-info .price-old { font-size: 1.05rem; }
.modal-desc { color: var(--muted); font-size: .95rem; line-height: 1.7; margin: 6px 0 14px; }
.modal-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.modal-qty button { width: 34px; height: 34px; font-size: 1.1rem; }
.modal-qty span { min-width: 20px; text-align: center; font-weight: 600; }
.modal-actions .btn-primary { flex: 1; padding: 13px 20px; }
.modal-wa { margin-top: 2px; }

@media (max-width: 680px) {
  .modal { grid-template-columns: 1fr; top: 0; left: 0; transform: none;
           width: 100%; height: 100%; max-height: 100vh; border-radius: 0; }
  .modal.open { transform: none; }
  .modal-media > div, .modal-media img { border-radius: 0; min-height: 260px; max-height: 42vh; }
}

@media (max-width: 520px) {
  .medallion { padding: 38px 30px; }
  .medallion-name { font-size: 2.8rem; }
}
