:root {
  color-scheme: light;
  --paper: #f6f1eb;
  --ink: #291c22;
  --muted: #6b5a60;
  --accent: #501e30;
  --line: #e0d3cc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 2000; padding: 10px 14px; background: #fff; color: #000; border: 2px solid #000; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid #926344; outline-offset: 3px; }
p { line-height: 1.55; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5.1rem); line-height: .99; letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); }
.bar { position: sticky; top: 0; z-index: 500; background: #f6f1ebf0; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: max(8px, env(safe-area-inset-top)) max(5vw, env(safe-area-inset-right)) 8px max(5vw, env(safe-area-inset-left)); }
.brand { font: 1.75rem/.82 var(--serif); letter-spacing: .14em; display: grid; align-content: center; min-height: 46px; }
.brand span { font: 600 .48rem/1.4 system-ui; letter-spacing: .28em; margin-top: 5px; }
.bar nav { display: flex; gap: 1.6rem; align-items: center; font-size: .86rem; }
.bar nav a { min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; }
.badge { display: inline-grid; place-items: center; min-width: 1.55rem; height: 1.55rem; border-radius: 50%; background: #ebdedb; }
main { max-width: 1280px; margin-inline: auto; padding: 24px clamp(14px, 4vw, 52px) 64px; }
.hero { display: flex; align-items: center; min-height: clamp(380px, 45vw, 580px); border-radius: 28px; overflow: hidden; color: #fff1e4; background: linear-gradient(90deg,#251019ed 0%, #29101b84 40%, transparent 75%), #401e28 url("hero.webp") center 51%/cover no-repeat; }
.hero-copy { padding: clamp(24px, 6vw, 74px); }
.hero-copy p { max-width: 260px; }
.hero h1 em { font-weight: inherit; color: #f1cdb4; }
.eyebrow { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; margin: 0 0 .6rem; }
.hero .eyebrow { color: #efd0b8; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: .75rem 1.2rem; border-radius: 14px; border: 1px solid transparent; background: var(--accent); color: #fff7f0; font-weight: 650; text-align: center; }
.button.cream { background: #f6e5d4; color: #391a26; }
.button.secondary { background: white; color: var(--ink); border-color: var(--line); }
.full { width: 100%; }
.collection { margin-top: clamp(34px, 6vw, 74px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head span, .notes, .line p, .stack p { color: var(--muted); font-size: .86rem; }
.filters { display: flex; overflow-x: auto; gap: 8px; padding: 12px 3px 10px; }
.chip { min-height: 44px; padding: 0 .85rem; border-radius: 30px; border: 1px solid var(--line); color: var(--ink); background: transparent; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: white; }
.search { display: flex; align-items: center; gap: 8px; margin: 0 0 15px; padding: 0 12px; min-height: 46px; background: #fffaf6; border: 1px solid var(--line); border-radius: 12px; max-width: 420px; }
.search input { width: 100%; min-height: 44px; border: 0; background: transparent; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.7vw, 24px); }
.product { background: #fffbf7; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.product-image { aspect-ratio: 1 / .98; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(ellipse at 35% 20%, #f0d9c5, #c99a82); }
.product-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tone-1 { background: radial-gradient(ellipse at 35% 20%, #f0dadd, #c89ba7); }
.tone-2 { background: radial-gradient(ellipse at 35% 20%, #d9c6cc, #856e7b); }
.tone-3 { background: radial-gradient(ellipse at 35% 20%, #f7e8cc, #c9af81); }
.bottle { position: relative; margin-top: 12%; width: 37%; height: 48%; border-radius: 12% 12% 17% 17%; display: grid; place-items: center; background: linear-gradient(100deg,#411c17,#b76b38 22%,#d99855 54%,#642e20 88%); box-shadow: inset 0 0 0 3px #fff4ca45, 12px 17px 20px #34121b55; }
.tone-1 .bottle { background: linear-gradient(100deg,#743045,#cd8c9f 23%,#e6a4af 54%,#873451 88%); }
.tone-2 .bottle { background: linear-gradient(100deg,#201225,#674e63 23%,#8d687e 54%,#382137 88%); }
.tone-3 .bottle { background: linear-gradient(100deg,#69572d,#d2b570 23%,#e2ce8f 54%,#846c2e 88%); }
.bottle::before { content: ""; position: absolute; top: -32%; left: 23%; width: 54%; height: 34%; border-radius: 4px 4px 0 0; background: repeating-linear-gradient(90deg,#21191c 0 3px,#392b30 4px 6px); }
.bottle span { background: #f9ead6; padding: 15% 18%; font: clamp(.5rem, 1.4vw, .87rem) var(--serif); letter-spacing: .1em; }
.product-info { display: flex; flex-direction: column; flex: 1; padding: clamp(10px, 1.7vw, 20px); overflow-wrap: anywhere; }
.product-info .eyebrow { color: var(--muted); }
.notes { margin: .45rem 0 .75rem; }
.product-action { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; }
.price { font-weight: 720; }
.price del { color: var(--muted); display: block; font-size: .75rem; }
.add { min-width: 44px; min-height: 44px; color: var(--accent); background: #f1e6e2; border: 0; border-radius: 50%; font-size: 1.3rem; }
.panel { max-width: 620px; padding: clamp(20px, 4vw, 42px); margin: 10px auto 0; border: 1px solid var(--line); border-radius: 24px; background: #fffaf6; }
.panel h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: 24px; }
.panel h2 { font-size: 1.8rem; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 10px; color: var(--accent); }
.stack { display: grid; gap: 14px; margin-top: 18px; }
.stack p { margin: 0; }
.stack label { display: grid; gap: 6px; font-size: .9rem; font-weight: 650; }
.stack input, .stack textarea { color: var(--ink); background: white; padding: 11px; min-height: 46px; border: 1px solid #baa7a2; border-radius: 10px; font-size: 16px; width: 100%; }
.stack textarea { resize: vertical; min-height: 78px; }
.line, .total { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.line p { margin: .2rem 0 0; }
.quantity { display: flex; align-items: center; gap: 8px; }
.total { margin-bottom: 18px; }
.signout, details { margin-top: 18px; }
details summary { padding: 10px 0; cursor: pointer; }
.notice, .toast { background: var(--accent); color: white; padding: 12px 16px; border-radius: 12px; }
.toast { position: fixed; right: 18px; bottom: 22px; z-index: 1000; max-width: min(85%, 360px); }
.toast:empty, .tabbar { display: none; }
.timeline { border-left: 2px solid var(--line); margin-left: .35rem; list-style: none; padding-left: 18px; }
.timeline li { position: relative; padding: .65rem 0; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -24px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: #ae969b; }
.timeline .current { color: var(--accent); font-weight: 750; }
.timeline .current::before { background: var(--accent); }
#map { height: 320px; border-radius: 14px; }
@media (max-width: 830px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  main { padding-top: 13px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .bar nav a:first-child { display: none; }
  .hero { border-radius: 22px; align-items: flex-end; background-position: 59% center; background-image: linear-gradient(0deg,#26101ae8 0%,#29101b89 47%,transparent 86%), url("hero.webp"); }
  .hero-copy { padding: 24px 18px; }
  .tabbar { display: flex; justify-content: space-evenly; position: fixed; bottom: 0; inset-inline: 0; z-index: 600; padding: 4px max(10px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: #f6f1ebf5; backdrop-filter: blur(18px); }
  .tabbar a { min-width: 96px; min-height: 47px; text-align: center; font-size: .74rem; display: block; }
  .tabbar a span { display: block; font-size: 1.4rem; line-height: 1.25; color: var(--accent); }
  .toast { bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

[dir="rtl"] {
  --serif: "Noto Serif Hebrew", "Times New Roman", Georgia, serif;
}
.hero {
  position: relative;
  isolation: isolate;
  background: #401e28;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(-1);
  background: linear-gradient(90deg, #251019ed 0%, #29101b85 42%, transparent 75%),
    url("hero.webp") center 51% / cover no-repeat;
}
.hero-copy { margin-inline-end: auto; }
.hero h1 { letter-spacing: 0; }
.hero .eyebrow { direction: ltr; text-align: right; }
.toast { right: auto; inset-inline-end: 18px; }
.timeline { border-left: 0; border-inline-start: 2px solid var(--line); margin-left: 0; margin-inline-start: .35rem; padding-left: 0; padding-inline-start: 18px; }
.timeline li::before { left: auto; inset-inline-start: -24px; }
.catalog-filters, .coordinates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.catalog-filters { max-width: 420px; margin-bottom: 12px; }
.catalog-filters label { display: grid; gap: 5px; color: var(--muted); font-size: .85rem; }
select { font: inherit; color: var(--ink); min-height: 46px; width: 100%; border: 1px solid #baa7a2; border-radius: 10px; background: #fffaf6; padding-inline: 10px; font-size: 16px; }
.inspiration { margin: .5rem 0 0; color: var(--accent); font-size: .78rem; }
.muted { color: var(--muted); font-size: .85rem; }
.admin-panel { max-width: 760px; }
.admin-filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; }
.admin-row { min-height: 64px; overflow-wrap: anywhere; }
.admin-row > :last-child { text-align: end; }
.admin-row:hover { background: #f6ede7; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.pagination .chip { display: inline-flex; align-items: center; }
.delivery-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; }
.delivery-details dd { margin: 0; overflow-wrap: anywhere; }
.admin-notifications { margin-top: 24px; }
.admin-nav { color: var(--accent); font-weight: 700; }
.customer-order { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.customer-order .line { border-bottom: 0; }
.customer-order form { display: flex; justify-content: flex-end; }
.chip.danger { color: #982c37; border-color: #d9aeb3; }
.cancelled-status { padding: 14px; border-radius: 12px; background: #f4e4e5; color: #842b35; }
.admin-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.admin-menu .button { min-height: 84px; }
.telegram-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f6ede7; }
.telegram-card p, .driver-row p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.driver-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.driver-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.accessibility-trigger { position: fixed; z-index: 1100; inset-inline-start: 18px; bottom: 18px; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.45rem; box-shadow: 0 6px 24px #2c16203b; }
.accessibility-panel { position: fixed; z-index: 1099; inset-inline-start: 18px; bottom: 80px; width: min(300px, calc(100vw - 36px)); padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fffaf6; box-shadow: 0 12px 40px #2c162033; }
.accessibility-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.accessibility-close { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.6rem; }
.accessibility-panel > button:not(.accessibility-close) { display: block; width: 100%; min-height: 44px; margin-top: 7px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }
.accessibility-panel > button[aria-pressed="true"] { background: var(--accent); color: white; }
html[data-accessibility-font="1"] { font-size: 112.5%; }
html[data-accessibility-font="2"] { font-size: 125%; }
html[data-accessibility-font="3"] { font-size: 137.5%; }
html[data-accessibility-contrast] { --paper: #000; --ink: #fff; --muted: #fff; --accent: #ffdf00; --line: #fff; filter: none; }
html[data-accessibility-contrast] body, html[data-accessibility-contrast] .bar, html[data-accessibility-contrast] .panel, html[data-accessibility-contrast] .product, html[data-accessibility-contrast] .accessibility-panel { background: #000; color: #fff; }
html[data-accessibility-contrast] .button, html[data-accessibility-contrast] .accessibility-trigger { background: #ffdf00; color: #000; }
html[data-accessibility-grayscale] { filter: grayscale(1); }
html[data-accessibility-links] a { text-decoration: underline !important; text-decoration-thickness: 3px !important; text-underline-offset: 3px; }
html[data-accessibility-readable] { font-family: Arial, sans-serif; }
html[data-accessibility-readable] h1, html[data-accessibility-readable] h2, html[data-accessibility-readable] h3, html[data-accessibility-readable] .brand { font-family: Arial, sans-serif; letter-spacing: normal; }
@media (max-width: 580px) {
  .hero::before {
    background: linear-gradient(0deg,#26101af5 0%,#29101b8c 45%,transparent 88%),
      url("hero.webp") 67% center / cover no-repeat;
  }
  .search input { font-size: 16px; }
  .admin-filters { grid-template-columns: 1fr; }
  .admin-menu { grid-template-columns: 1fr; }
  .telegram-card, .driver-row { align-items: stretch; flex-direction: column; }
  .driver-actions { justify-content: flex-start; }
  .accessibility-trigger { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .accessibility-panel { bottom: calc(134px + env(safe-area-inset-bottom)); }
}

.product { position: relative; }
.product-link::after { position: absolute; inset: 0; content: ""; }
.product:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-action form { position: relative; z-index: 1; }
.perfume-dialog {
  width: min(34rem, calc(100% - 2rem));
  max-height: min(85dvh, 44rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffbf7;
  color: inherit;
}
.perfume-dialog::backdrop { background: rgb(32 16 23 / 65%); }
.dialog-close { margin-bottom: .75rem; }
.perfume-detail { display: grid; gap: 1rem; }
.perfume-photo { min-width: 0; display: grid; place-items: center; background: #f7eee8; border-radius: 14px; }
.perfume-photo img { width: 100%; max-height: 12rem; object-fit: contain; border-radius: 14px; }
.perfume-copy { min-width: 0; }
.perfume-copy h1 { font-size: clamp(1.6rem, 5vw, 2.25rem); margin: .3rem 0; }
.perfume-description { font-size: .9rem; overflow-wrap: anywhere; }
.perfume-copy form { margin-top: .75rem; }
.detail-feedback:empty { display: none; }
@media (min-width: 520px) {
  .perfume-detail:has(.perfume-photo) { grid-template-columns: 8.5rem minmax(0, 1fr); align-items: start; }
}

.perfume-stock { font-size: .8rem; font-weight: 600; color: #3a6548; margin: .5rem 0; }
.perfume-stock-empty { color: #a32632; }

.destination-picker { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.destination-picker legend { padding-inline: 4px; font-weight: 700; }
.destination-picker p { margin: 4px 0; }
.destination-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px; }
.destination-map { height: clamp(220px, 44vh, 340px); border-radius: 10px; z-index: 0; }
.destination-picker .coordinates { margin-top: 8px; }
[data-destination-message]:empty { display: none; }
