:root {
  --ink: #34282a;
  --berry: #773f47;
  --rose: #8c5057;
  --dark-rose: #62343d;
  --petal: #f2e4e3;
  --ivory: #fcf8f5;
  --paper: #fffdfb;
  --line: #e3d3cf;
  --soft: #725f60;
  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --shadow: 0 18px 70px rgb(63 28 33 / 13%);
  color-scheme: light;
  font-family: "Avenir Next", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--ivory);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
html { scroll-padding-top: 1rem; }
html[lang="ar"] { font-family: "Geeza Pro", Tahoma, "Segoe UI", Arial, sans-serif; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, a, summary { touch-action: manipulation; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #73599c; outline-offset: 3px;
}
[hidden] { display: none !important; }
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.mast-inner {
  min-height: 5rem; max-width: 77rem; margin: 0 auto; padding: .65rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { text-decoration: none; color: var(--berry); direction: ltr; text-align: center; font: normal clamp(1.65rem,5vw,2.25rem)/1 Georgia, "Times New Roman", serif; }
.brand small { display: block; font-size: .94rem; font-style: italic; line-height: 1.25; letter-spacing: .09em; }
.locale, .lang-link { color: var(--berry); text-decoration: none; font-size: .88rem; padding: .65rem .95rem; border: 1px solid var(--line); border-radius: 100px; background: transparent; }
.page { max-width: 77rem; margin: auto; padding: 0 var(--gutter) 7rem; }
.intro { padding: clamp(1.6rem, 4vw, 3.3rem) 0 clamp(.85rem,2.5vw,1.6rem); }
h1, h2, h3, p { margin-block-start: 0; }
h1, h2, h3 { text-wrap: balance; }
.intro h1, .detail h1 { font-size: clamp(2rem, 6.8vw, 4rem); font-weight: 650; color: var(--berry); line-height: 1.2; letter-spacing: -.045em; margin: 0; }
html[lang="ar"] :is(.intro,.detail) h1 { letter-spacing: 0; line-height: 1.5; font-weight: 700; }
.intro p { color: var(--soft); line-height: 1.6; margin: .55rem 0 0; }
.tabs { display: flex; gap: .33rem; background: #f1e4e3; border-radius: .88rem; padding: .23rem; max-width: 37rem; }
.tabs button { flex: 1; border: 0; min-height: 2.7rem; border-radius: .66rem; font-size: 1rem; font-weight: 650; color: var(--berry); background: transparent; }
.tabs button:is([aria-pressed="true"],[aria-selected="true"]) { background: var(--berry); color: white; }
.chips { display: flex; gap: .5rem; overflow: auto; scrollbar-width: thin; margin: 1rem calc(-1 * var(--gutter)); padding: .2rem var(--gutter) .4rem; }
.chips button { white-space: nowrap; flex: 0 0 auto; color: #58434a; background: transparent; border-radius: 3rem; border: 1px solid #cfb4b7; min-height: 2.5rem; padding: .35rem .95rem; font-size: .94rem; }
.chips button[aria-pressed="true"] { color: white; background: var(--rose); border-color: var(--rose); }
.tabs + .catalog-grid, .chips[hidden] + .catalog-grid { margin-block-start: 1.25rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem .62rem; }
.card { display: flex; min-width: 0; flex-direction: column; overflow: clip; background: var(--paper); border: 1px solid var(--line); border-radius: .88rem; }
.card-link { color: var(--ink); display: block; text-decoration: none; flex: 1; }
.card-art { aspect-ratio: 1.1; overflow: hidden; background: #ead6c9; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease-out; }
.card-copy { padding: .78rem .65rem .22rem; }
.card-copy h2, .card-copy h3 { font-size: clamp(1.025rem,3.3vw,1.35rem); margin: 0; color: var(--berry); line-height: 1.42; }
.card-description { color: var(--soft); font-size: .925rem; line-height: 1.45; margin: .22rem 0 .32rem; }
.duration { display: inline-flex; align-items: center; gap: .32rem; color: #5a4c4b; font-size: .88rem; line-height: 1.35; background: #f6eeea; padding: .2rem .45rem; border-radius: .4rem; }
.card-foot { padding: .4rem .65rem .65rem; display: flex; justify-content: space-between; align-items: center; gap: .3rem; }
.price { font-size: 1rem; font-weight: 700; color: var(--berry); }
.add-btn { position: relative; display: inline-grid; place-content: center; width: 2.75rem; min-height: 2.75rem; flex-shrink: 0; color: white; border: 0; background: var(--rose); border-radius: .65rem; font: normal 1.65rem/1 Arial,sans-serif; }
.add-btn.selected { background: var(--dark-rose); }
.add-btn .bubble { position: absolute; top: -.3rem; inset-inline-end: -.25rem; min-width: 1.2rem; height: 1.2rem; color: var(--berry); background: #fff5ef; border: 1px solid var(--rose); border-radius: 2rem; padding: .04rem .18rem; font: 700 .72rem/1rem Arial,sans-serif; text-align: center; }
@media (hover:hover) {
  .card-link:hover h2 { text-decoration: underline; text-underline-offset: .17em; }
  .card-link:hover .card-art img { transform: scale(1.035); }
  .add-btn:hover, .checkout:hover, .cart-bar:hover { background: var(--dark-rose); }
  .chips button:hover:not([aria-pressed="true"]) { background: var(--petal); }
}
.cart-dock { position: fixed; z-index: 10; inset-inline: 0; bottom: 0; pointer-events: none; padding: .6rem max(.75rem,env(safe-area-inset-right)) max(.7rem,env(safe-area-inset-bottom)) max(.75rem,env(safe-area-inset-left)); background: linear-gradient(0deg,var(--ivory) 20%,rgb(252 248 245 / 0)); display: flex; justify-content: center; }
.cart-bar { pointer-events: auto; width: min(100%,37rem); min-height: 3.45rem; border: 1px solid #7b444a; border-radius: .83rem; background: var(--berry); color: white; box-shadow: 0 5px 20px rgb(64 23 32 / 18%); display: flex; align-items: center; gap: .65rem; padding: .45rem 1rem; }
.bar-label { font-weight: 700; font-size: 1.09rem; }
.cart-bar .bar-total { margin-inline-start: auto; font-weight: 650; font-size: 1rem; }
.line-icon { width: 1.35rem; height: 1.35rem; display: inline-block; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.cart-dialog { position: fixed; max-height: 91vh; max-height: 91dvh; margin: auto auto 0; padding: 0; inset: auto 0 0; width: min(100%,39rem); max-width: 100%; border: 1px solid var(--line); color: var(--ink); background: var(--paper); border-radius: 1.25rem 1.25rem 0 0; box-shadow: var(--shadow); overscroll-behavior: contain; }
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-dialog::backdrop { background: rgb(34 22 26 / 48%); }
html.wed-modal { overflow: hidden; }
.cart-head { padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .75rem; justify-content: space-between; }
.cart-head h2 { margin: 0; font-size: 1.4rem; color: var(--berry); }
.close-cart { background: #f4eeed; color: var(--berry); border: none; border-radius: 50%; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; }
.cart-body { padding: 0 1.25rem 1rem; overflow: auto; scrollbar-width: thin; }
.cart-entries { list-style: none; padding: 0; margin: 0; }
.cart-entry { padding: 1rem 0; display: grid; grid-template-columns: 1fr auto; gap: .4rem .65rem; align-items: center; border-bottom: 1px solid var(--line); }
.entry-title { color: var(--berry); font-weight: 700; }
.entry-note { color: var(--soft); font-size: .9rem; grid-column: 1 / -1; margin: 0; }
.entry-price { color: var(--berry); font-weight: 650; }
.stepper { display: inline-flex; justify-self: start; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; }
.stepper button { border: 0; background: #f8f0ed; color: var(--berry); font-size: 1.25rem; width: 2.75rem; height: 2.75rem; }
.stepper output { min-width: 1.5rem; text-align: center; }
.remove-line { color: var(--berry); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; padding: .65rem .2rem; justify-self: end; font-size: .9rem; }
.entry-solo .remove-line { grid-column: 2; }
.cart-sum { display: flex; justify-content: space-between; gap: 1rem; color: var(--berry); font-size: 1.15rem; font-weight: 700; margin: 1rem 0 .75rem; }
.quote-note, .cart-empty p { margin: .35rem 0; color: var(--soft); font-size: .95rem; line-height: 1.55; }
.cart-empty { padding: 2rem 0 1rem; text-align: center; }
.cart-empty p { margin-bottom: 1rem; }
.cart-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; margin-block: 1.15rem .3rem; }
.cart-fields label { display: flex; flex-direction: column; gap: .35rem; font-size: .94rem; color: #58464a; }
.cart-fields input { width: 100%; max-width: 100%; min-width: 0; height: 2.8rem; padding: .42rem .6rem; color: var(--ink); border: 1px solid #d6c5c2; background: #fffcf9; border-radius: .55rem; font-size: 1rem; }
.cart-foot { border-top: 1px solid var(--line); padding: .7rem 1.25rem max(.85rem,env(safe-area-inset-bottom)); }
.checkout, .browse-btn, .primary-action { text-decoration: none; border: 0; color: white; background: var(--berry); border-radius: .7rem; min-height: 2.9rem; font-weight: 650; padding: .65rem 1.05rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.checkout { width: 100%; }
.wed-toast { position: fixed; z-index: 15; inset-inline: 1rem; bottom: 5.5rem; max-width: max-content; margin: auto; background: #45343b; color: white; border-radius: .65rem; padding: .55rem .9rem; font-size: .95rem; box-shadow: 0 2px 12px rgb(40 22 30 / 14%); opacity: 0; pointer-events: none; }
.wed-toast.show { opacity: 1; }
@media (min-width: 40rem) {
  .catalog-grid { gap: 1.1rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .card-copy { padding: 1rem 1rem .25rem; }
  .card-foot { padding: .45rem 1rem 1rem; }
  .card-art { aspect-ratio: 1.32; }
  .cart-dialog { inset: 0; margin: auto; border-radius: 1.2rem; }
  .cart-dialog[open] { height: max-content; }
}
@media (min-width: 65rem) { .catalog-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 23rem) {
  :root { --gutter: .65rem; }
  .catalog-grid { gap: .65rem .4rem; }
  .card-copy,.card-foot { padding-inline: .5rem; }
  .cart-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.option-form { overflow: auto; padding: 1rem 1.25rem max(1rem,env(safe-area-inset-bottom)); }
.option-form fieldset { border: none; margin: 0 0 1rem; padding: 0; }
.option-form legend { color: var(--soft); margin-bottom: .6rem; }
.option-list { display: grid; gap: .5rem; }
.option-list label { min-height: 3.1rem; display: flex; align-items: center; gap: .75rem; background: #faf3ef; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: .6rem; }
.option-list label:has(:checked) { background: var(--petal); border-color: var(--rose); }
.option-list input { accent-color: var(--berry); width: 1.1rem; height: 1.1rem; }
.option-form .primary-action { width: 100%; }
#search-toggle { border: none; background: transparent; width: 2.75rem; height: 2.75rem; color: var(--berry); display: grid; place-items: center; }
#search-row { margin-block: 1rem; }
#catalog-search { min-height: 2.9rem; padding: .5rem .8rem; width: min(100%,37rem); border: 1px solid #cbb0b1; border-radius: .65rem; background: var(--paper); font-size: 1rem; color: var(--ink); }
.search-empty { color: var(--soft); padding: 2rem 0; }
