:root {
  --plum: #3A1E2C;
  --wine: #7A2E4A;
  --rose: #C95A7B;
  --rose-dark: #A9435F;
  --pink: #E58BA6;
  --blush: #FFF7F5;
  --blush-2: #FBF1EE;
  --petal: #EEDDE1;
  --muted: #5A4250;
  --sage: #86A07E;
  --sage-dark: #4E6B47;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(58, 30, 44, .22);
  --font-display: "El Messiri", "Tajawal", serif;
  --font-body: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blush);
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-dark); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; margin: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 720px; }

.icon { width: 20px; height: 20px; flex: none; }

/* Demo banner */
.demo-banner {
  background: var(--plum);
  color: var(--petal);
  text-align: center;
  font-size: 14px;
  padding: 6px 16px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 247, 245, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--petal);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); margin-inline-end: auto; }
.brand-logo { height: 44px; width: auto; }
.brand-mark { width: 40px; height: 40px; color: var(--rose); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--wine); }
.brand-sub { font-size: 12px; color: var(--muted); }
.nav { display: none; gap: 22px; }
.nav a { color: var(--plum); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--rose); }
.lang-toggle {
  min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--petal); border-radius: 999px;
  background: var(--white); color: var(--wine);
  font: 700 15px var(--font-body); cursor: pointer;
}
.lang-toggle:hover { border-color: var(--pink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 700 16px var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--rose); color: var(--white); }
.btn-primary:hover { background: var(--rose-dark); }
.btn-ghost { background: var(--white); color: var(--wine); border-color: var(--petal); }
.btn-ghost:hover { border-color: var(--pink); }
.tel-number { font-weight: 500; color: var(--muted); direction: ltr; }

/* Open / closed badge */
.open-badge {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0; padding: 6px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: var(--white); border: 1px solid var(--petal); color: var(--muted);
}
.open-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.open-badge .state { font-weight: 700; }
.open-badge.is-open .state, .open-badge.is-open::before { color: var(--sage-dark); }
.open-badge.is-open::before { background: var(--sage); box-shadow: 0 0 0 4px rgba(134, 160, 126, .2); }
.open-badge.is-closed .state { color: var(--wine); }
.open-badge.is-closed::before { background: var(--rose); }
.open-badge-lg { font-size: 16px; padding: 8px 18px; }

/* Hero */
.hero { padding: 36px 0 48px; }
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero-title { font-size: clamp(48px, 13vw, 84px); color: var(--wine); margin-top: 18px; }
.hero-title small { display: block; font-size: .36em; color: var(--plum); font-weight: 500; margin-top: 6px; }
.hero-tagline { font-size: 19px; color: var(--muted); margin: 14px 0 26px; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 180px; }
.hero-media { margin: 0; }
.photo-placeholder {
  position: relative; aspect-ratio: 1 / 1; border-radius: 28px;
  background: var(--blush-2); border: 1px solid var(--petal);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--pink); overflow: hidden;
}
.photo-placeholder .bouquet-art { width: 58%; height: auto; }
.photo-placeholder figcaption { font-size: 14px; color: var(--muted); }

/* Features */
.features { padding: 8px 0 40px; }
.features-grid { display: grid; gap: 14px; }
.feature {
  background: var(--white); border: 1px solid var(--petal); border-radius: var(--radius);
  padding: 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start;
}
.feature .icon { width: 30px; height: 30px; color: var(--rose); grid-row: span 2; margin-top: 2px; }
.feature h3 { font-size: 19px; color: var(--wine); }
.feature p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--petal); }
.section-title { font-size: clamp(28px, 7vw, 38px); color: var(--wine); text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: 6px 0 24px; }

/* Hours */
.hours-card {
  background: var(--white); border: 1px solid var(--petal); border-radius: var(--radius);
  padding: 22px 18px; box-shadow: var(--shadow); text-align: center;
}
.hours-table { width: 100%; border-collapse: collapse; margin-top: 18px; text-align: start; }
.hours-table th, .hours-table td { padding: 11px 8px; border-top: 1px solid var(--petal); vertical-align: top; }
.hours-table th { font-weight: 700; width: 34%; }
.hours-table td { color: var(--muted); }
.hours-table .shift { display: block; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--wine); background: var(--blush); }
.hours-table tr.today th::after {
  content: attr(data-today); margin-inline-start: 8px; font-size: 12px; font-weight: 500;
  padding: 1px 8px; border-radius: 999px; background: var(--petal); color: var(--wine);
}

/* Visit */
.visit-grid { display: grid; gap: 24px; margin-top: 26px; }
.address { display: flex; gap: 10px; align-items: flex-start; font-size: 18px; margin: 0 0 18px; }
.address .icon { color: var(--rose); margin-top: 5px; }
.visit-actions { display: grid; gap: 10px; }
.map-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--petal);
  background: var(--blush-2); min-height: 300px;
}
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }

/* Footer */
.site-footer { background: var(--plum); color: var(--petal); padding: 40px 0 110px; }
.footer-inner { text-align: center; }
.footer-name { font-family: var(--font-display); font-size: 22px; color: var(--white); margin: 0 0 14px; }
.privacy { font-size: 14px; max-width: 60ch; margin: 0 auto 14px; color: #E3C3CC; }
.privacy strong { color: var(--white); margin-inline-end: 4px; }
.copy { font-size: 13px; margin: 0; color: #C9A9B5; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; z-index: 30; bottom: max(18px, env(safe-area-inset-bottom)); inset-inline-start: 18px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .55), 0 4px 10px rgba(58, 30, 44, .2);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float { transition: opacity .2s, transform .2s; }
.wa-float.is-hidden { opacity: 0; transform: scale(.8); pointer-events: none; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* Seasonal banner */
.season-banner { margin: 0; background: var(--petal); text-align: center; padding: 10px 16px; }
.season-banner a { color: var(--wine); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Extra buttons */
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-wa { background: #1E9E50; color: var(--white); }
.btn-wa:hover { background: #17823F; }
.icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1px solid var(--petal); background: var(--white); color: var(--plum);
  font-size: 26px; line-height: 1; cursor: pointer;
}

/* Catalog */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--petal); background: var(--blush); color: var(--plum);
  font: 500 15px var(--font-body); cursor: pointer;
}
.chip:hover { border-color: var(--pink); }
.chip[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--petal); border-radius: var(--radius); overflow: hidden;
}
.product-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--blush-2); }
.product-photo.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--pink); }
.product-photo.placeholder svg { width: 38%; height: auto; }
.product-photo.placeholder span { font-size: 12px; color: var(--muted); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 12px; }
.product-tags { margin: 0; font-size: 12px; color: var(--rose-dark); }
.product-name { font-size: 17px; color: var(--plum); margin-top: 2px; }
.product-desc { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.product-foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.product-price { font-weight: 700; color: var(--wine); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); }

/* Choices (radio / checkbox pills) */
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  min-height: 44px; padding: 8px 16px; border-radius: 14px;
  border: 1.5px solid var(--petal); background: var(--white); font-weight: 500;
}
.choice small { font-size: 13px; color: var(--muted); font-weight: 400; }
.choice input:checked + span { border-color: var(--rose); background: #FCEEF2; color: var(--wine); }
.choice input:checked + span small { color: var(--rose-dark); }
.choice input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(58, 30, 44, .25); flex: none; }
.swatch-mixed { background: conic-gradient(#B3243F, #E58BA6, #F2C94C, #8E5BA8, #B3243F); }

/* Builder */
.builder-form {
  background: var(--white); border: 1px solid var(--petal); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 16px 0; display: grid; gap: 22px;
}
.b-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.b-group legend, .field legend { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--wine); padding: 0; margin-bottom: 10px; }
.b-total {
  position: sticky; bottom: 0; margin: 0 -16px; padding: 14px 16px;
  background: var(--plum); color: var(--white); border-radius: 0 0 var(--radius) var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.b-total-label { display: block; font-size: 13px; color: #E3C3CC; }
.b-total-value { display: block; font-size: 24px; font-family: var(--font-display); }
.b-total-note { display: block; font-size: 12px; color: #E3C3CC; }

/* Order dialog */
.order-dialog {
  width: min(560px, 100%); max-height: 92vh; margin: auto auto 0; padding: 0;
  border: 0; border-radius: 24px 24px 0 0; background: var(--blush); color: var(--plum);
}
.order-dialog::backdrop { background: rgba(58, 30, 44, .55); }
.order-form { padding: 18px 18px 22px; display: grid; gap: 16px; }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-kicker { margin: 0; font-size: 13px; color: var(--rose-dark); font-weight: 700; }
.order-item { font-size: 22px; color: var(--wine); }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label { font-weight: 700; font-size: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field select, .field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid var(--petal); background: var(--white); color: var(--plum);
  font: 16px var(--font-body);
}
.field textarea { resize: vertical; min-height: 80px; }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--rose); }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.order-summary { margin: 0; background: var(--white); border: 1px solid var(--petal); border-radius: 14px; padding: 6px 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.sum-row + .sum-row { border-top: 1px solid var(--petal); }
.sum-row dt { color: var(--muted); }
.sum-row dd { margin: 0; font-weight: 500; }
.sum-total dt, .sum-total dd { color: var(--wine); font-weight: 700; font-size: 18px; }
.pay-note { margin: -6px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* Wider screens */
@media (min-width: 760px) {
  .nav { display: flex; }
  .hero { padding: 64px 0 72px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .photo-placeholder { aspect-ratio: 4 / 5; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .visit-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
  .visit-actions { grid-template-columns: 1fr 1fr; }
  .visit-actions .btn:first-child { grid-column: 1 / -1; }
  .hours-card { padding: 28px 32px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .product-body { padding: 16px; }
  .product-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .chips { flex-wrap: wrap; justify-content: center; overflow: visible; }
  .builder-form { padding: 28px 28px 0; }
  .b-total { margin: 0 -28px; padding: 16px 28px; }
  .order-dialog { margin: auto; border-radius: 24px; }
  .order-form { padding: 24px; }
}

@media (min-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Seasonal pages */
.season-hero { padding: 48px 0 40px; text-align: center; }
.season-hero .hero-actions { justify-content: center; }
.season-title { font-size: clamp(40px, 11vw, 64px); color: var(--wine); margin-top: 18px; }
.season-text { font-size: 19px; color: var(--muted); margin: 12px auto 26px; max-width: 34ch; }
.season-more { text-align: center; margin: 28px 0 0; font-weight: 500; }
