/* მარგალიტის წვეთი: black and white beauty shop, thin type, flush photo tiles. Only --md-* roles. */
:root {
  --md-brand-font: "Noto Sans Georgian", system-ui, sans-serif;
  --md-plain-font: "Noto Sans Georgian", system-ui, sans-serif;
  --md-serif-font: "Noto Serif Georgian", "Noto Sans Georgian", serif;
  --md-script-font: "Mrs Saint Delafield", cursive;

  --md-primary: #111111;
  --md-on-primary: #ffffff;
  --md-surface: #ffffff;
  --md-surface-container-lowest: #ffffff;
  --md-surface-container-low: #f8f8f8;
  --md-surface-container: #f3f3f4;
  --md-surface-container-high: #ededee;
  --md-surface-container-highest: #e6e6e7;
  --md-secondary-container: #e3ebf4;
  --md-on-secondary-container: #26313d;
  --md-tertiary-container: #e3ebf4;
  --md-on-tertiary-container: #26313d;
  --md-on-surface: #1b1b1b;
  --md-on-surface-variant: #555759;
  --md-outline-variant: #dcdcde;
  --md-inverse-surface: #0c0c0c;
  --md-inverse-on-surface: #f4f4f4;
  --md-inverse-primary: #ffffff;
  --md-max: 1240px;
}
html, body { overflow-x: clip; }
body { -webkit-tap-highlight-color: transparent; }
.nw { white-space: nowrap; }
.display-l, .display-m, .headline-l, .headline-m { font-weight: 300; }
.script { font-family: var(--md-script-font); font-weight: 400; letter-spacing: 0; line-height: 1; white-space: nowrap; }

/* width switches: the Georgian menu needs more room than 840px */
@media (max-width: 1099px) { .only-wide { display: none !important; } }
@media (min-width: 1100px) { .only-narrow { display: none !important; } }
@media (max-width: 1279px) { .only-xwide { display: none !important; } }

/* ---------- Top strip ---------- */
.strip { background: var(--md-inverse-surface); color: var(--md-inverse-on-surface); font: 400 13px/20px var(--md-serif-font); letter-spacing: .2px; }
.strip__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 40px; }
.strip__side { display: inline-flex; align-items: center; gap: 6px; }
.strip__side--end { justify-self: end; }
.strip .icon { font-size: 16px; }
@media (max-width: 839px) { .strip__row { grid-template-columns: 1fr; justify-items: center; } .strip__side { display: none; } }

/* ---------- Header ---------- */
.top-bar { border-bottom: 1px solid var(--md-outline-variant); }
.top-bar.scrolled { background: var(--md-surface); box-shadow: var(--md-elev-1); }
.bar-main { min-height: 84px; gap: 8px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo { display: inline-block; padding: 6px 8px 0 0; text-decoration: none; color: var(--md-on-surface); font: 400 44px/1 var(--md-script-font); white-space: nowrap; }
.demo-tag { white-space: nowrap; }
.bar-nav { margin-inline-start: 20px; }
.top-bar .bar-nav a { padding: 0 12px; }
.top-bar .bar-nav a { font-weight: 400; color: var(--md-on-surface); position: relative; }
.top-bar .bar-nav a[aria-current="page"] { background: transparent; color: var(--md-on-surface); }
.top-bar .bar-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 1px; background: currentColor; }
.cart .badge { background: var(--md-primary); color: var(--md-on-primary); }
.top-bar .btn { margin-inline-start: 8px; }
@media (max-width: 1099px) { .bar-main { min-height: 68px; gap: 4px; } .logo { font-size: 38px; } }
@media (max-width: 599px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 0; }
  .logo { font-size: 32px; padding-top: 4px; }
  .brand .demo-tag { height: 18px; font-size: 10px; padding: 0 6px; }
}
.drawer a { color: var(--md-on-surface); }

/* ---------- Hero: two photos side by side, the title across the seam ---------- */
.hero { position: relative; display: grid; isolation: isolate; background: var(--md-surface-container); }
.hero__pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-area: 1 / 1; }
.hero__pics img { width: 100%; height: clamp(420px, 34vw, 560px); object-fit: cover; }
.hero__text { grid-area: 1 / 1; z-index: 1; place-self: center; display: grid; justify-items: center; gap: 20px; text-align: center; padding: 40px 56px; max-width: 760px; position: relative; }
.hero__text::before { content: ""; position: absolute; inset: -10% -6%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--md-surface) 82%, transparent), color-mix(in srgb, var(--md-surface) 55%, transparent) 60%, transparent); }
.hero__text h1 { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.12; letter-spacing: -.5px; color: var(--md-on-surface); }
.hero__sub { max-width: 44ch; color: var(--md-on-surface); }
@media (max-width: 839px) {
  .hero { background: var(--md-surface); }
  .hero__pics { grid-template-columns: minmax(0, 1fr); grid-area: auto; }
  .hero__pic-b { display: none; }
  .hero__pics img { height: 260px; object-position: 0 60%; }
  .hero__text { grid-area: auto; padding: 32px 20px 40px; gap: 16px; }
  .hero__text::before { display: none; }
}

/* ---------- Category tiles: flush row, thin inset frame, script word behind the name ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { position: relative; display: block; aspect-ratio: 8 / 5; overflow: hidden; isolation: isolate; color: var(--md-on-surface); text-decoration: none; background: var(--md-surface-container); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--md-dur-long) var(--md-ease-standard); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(315deg, color-mix(in srgb, var(--md-surface) 88%, transparent) 0, color-mix(in srgb, var(--md-surface) 50%, transparent) 32%, transparent 58%); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--md-on-surface); opacity: 0; transition: opacity var(--md-dur-short) var(--md-ease-standard); pointer-events: none; }
.tile__frame { position: absolute; inset: 14px; z-index: 2; border: 1px solid color-mix(in srgb, var(--md-surface) 85%, transparent); border-radius: var(--md-shape-m); pointer-events: none; }
.tile__text { position: absolute; right: 32px; bottom: 28px; z-index: 2; display: grid; justify-items: end; text-align: right; }
.tile__text .script { font-size: 54px; color: color-mix(in srgb, var(--md-on-surface) 30%, transparent); transform: rotate(-6deg) translate(-12px, 6px); }
.tile__text .title-l { position: relative; font-weight: 400; font-size: 24px; line-height: 32px; }
@media (hover: hover) { .tile:hover img { transform: scale(1.04); } .tile:hover::after { opacity: .06; } }
.tile:focus-visible { outline-offset: -4px; }
.tile:focus-visible::after, .tile:active::after { opacity: .1; }
@media (max-width: 1099px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile { aspect-ratio: 16 / 9; } }

/* ---------- Section heads: pale script word behind a thin title ---------- */
.section-head { position: relative; text-align: center; max-width: 680px; margin: 0 auto 48px; padding-top: 48px; display: grid; gap: 8px; justify-items: center; isolation: isolate; }
.section-head__ghost { position: absolute; top: -4px; left: 50%; z-index: -1; font-size: 60px; color: var(--md-outline-variant); transform: translateX(-50%) rotate(-5deg); pointer-events: none; }
@media (max-width: 599px) { .section-head { margin-bottom: 32px; } .section-head__ghost { font-size: 54px; } }

/* ---------- Products ---------- */
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.product[hidden] { display: none; }
.product .card { overflow: visible; }
.product .price { font-family: var(--md-serif-font); }
.products .product .card h3 { overflow-wrap: anywhere; }
@media (max-width: 599px) { .products .product .card h3 { font-size: 14px; line-height: 20px; } }
.picks__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: stretch; }
.picks__photo { margin: 0; border-radius: var(--md-shape-xl); overflow: hidden; background: var(--md-secondary-container); min-height: 100%; }
.picks__photo img { width: 100%; height: 100%; object-fit: cover; }
.products--picks { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; }
.match { background: var(--md-surface-container-low); }
.chips-row { justify-content: center; margin-bottom: 36px; }
.chips-row .chip { flex: none; background: var(--md-surface); }
.chips-row .chip[aria-pressed="true"] { background: var(--md-primary); color: var(--md-on-primary); }
.products--match { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.empty { text-align: center; margin-top: 24px; }
@media (max-width: 1099px) {
  .picks__grid { gap: 24px; }
  .products--match { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products .product .card h3 { font-size: 15px; -webkit-line-clamp: 3; }
}
@media (max-width: 899px) {
  .picks__grid { grid-template-columns: minmax(0, 1fr); }
  .picks__photo { aspect-ratio: 16 / 10; min-height: 0; }
  .products--match { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .products { gap: 12px; }
  .picks__photo { aspect-ratio: 4 / 5; }
  .chips-row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-inline: calc(-1 * var(--md-margin)); padding-inline: var(--md-margin); scrollbar-width: none; }
}

/* ---------- Wide photo banner with the delivery facts ---------- */
.banner { position: relative; display: grid; align-items: center; min-height: clamp(420px, 38vw, 560px); isolation: isolate; background: var(--md-surface-container); }
.banner__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.banner__inner { padding-block: 48px; }
.banner__card { max-width: 440px; display: grid; gap: 20px; justify-items: start; padding: 36px; border-radius: var(--md-shape-xl); background: color-mix(in srgb, var(--md-surface) 90%, transparent); }
.banner__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font: 400 15px/22px var(--md-plain-font); }
.banner__facts li { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.banner__facts .icon { font-size: 22px; }
@media (max-width: 839px) {
  .banner { display: block; min-height: 0; }
  .banner__bg { position: relative; z-index: 0; height: 240px; }
  .banner__inner { padding-block: 0 8px; }
  .banner__card { max-width: none; margin-top: -40px; position: relative; padding: 24px; background: var(--md-surface); box-shadow: var(--md-elev-1); }
}

/* ---------- How ordering works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--md-outline-variant); }
.step { display: grid; align-content: start; gap: 8px; padding: 28px 28px 8px; }
.step + .step { border-left: 1px solid var(--md-outline-variant); }
.step__n { font: 400 44px/1 var(--md-serif-font); color: var(--md-on-surface); margin-bottom: 8px; }
@media (max-width: 1099px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { padding-bottom: 28px; }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--md-outline-variant); }
}
@media (max-width: 599px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 44px 1fr; column-gap: 12px; padding: 20px 0; }
  .step__n { grid-row: span 2; font-size: 36px; margin: 0; }
  .step p { grid-column: 2; }
  .step + .step { border-left: 0; border-top: 1px solid var(--md-outline-variant); }
}

/* ---------- Advice (the reference's journal cards) ---------- */
.tips { padding-top: 0; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.post { display: grid; gap: 10px; align-content: start; }
.post__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--md-shape-l); background: var(--md-surface-container); margin-bottom: 10px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post .title-l { font-weight: 400; }
@media (max-width: 1099px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .posts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Payment chips ---------- */
.pay { border-top: 1px solid var(--md-outline-variant); padding-block: 28px; }
.pay__inner { display: flex; align-items: center; justify-content: center; gap: 12px 24px; flex-wrap: wrap; }
.pay__list { list-style: none; margin: 0; padding: 0; justify-content: center; }
.pay .chip { cursor: default; color: var(--md-on-surface); }
.pay .chip::after { display: none; }

/* ---------- Footer: black, logo and newsletter in the middle ---------- */
.footer { background: var(--md-inverse-surface); color: var(--md-inverse-on-surface); padding-top: 80px; }
.footer__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; padding-bottom: 64px; align-items: start; }
.footer h2 { margin-bottom: 16px; color: var(--md-inverse-on-surface); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font: 400 14px/20px var(--md-serif-font); color: color-mix(in srgb, var(--md-inverse-on-surface) 78%, transparent); }
.footer__col li { display: flex; align-items: center; gap: 8px; }
.footer__col li > span:not(.icon) { min-width: 0; }
.footer__col .icon { font-size: 18px; }
.footer__col--end { text-align: right; }
.footer__col--end li { justify-content: flex-end; }
.footer a:not(.btn):not(.logo) { text-decoration: none; }
@media (hover: hover) { .footer a:not(.btn):not(.logo):hover { color: var(--md-inverse-on-surface); text-decoration: underline; } }
.footer__wa { margin-top: 20px; color: var(--md-inverse-on-surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--md-inverse-on-surface) 50%, transparent); }
.footer__mid { display: grid; justify-items: center; text-align: center; gap: 20px; }
.logo--footer { color: var(--md-inverse-on-surface); font-size: 56px; padding: 0; transform: rotate(-4deg); }
.footer__lead { font-weight: 300; max-width: 30ch; color: var(--md-inverse-on-surface); }
.news-form { width: min(100%, 460px); display: grid; gap: 6px; justify-items: center; margin-top: 12px; }
.news-form h2 { margin: 0; }
.news-form p { color: color-mix(in srgb, var(--md-inverse-on-surface) 72%, transparent); }
.news-form__row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; text-align: left; }
.news-form .field { --field-bg: var(--md-inverse-surface); }
.news-form .field input { border-color: color-mix(in srgb, var(--md-inverse-on-surface) 50%, transparent); color: var(--md-inverse-on-surface); border-radius: var(--md-shape-full); padding-inline: 24px; }
.news-form .field input:focus { border: 1px solid transparent; padding: 16px 24px; outline: 2px solid var(--md-inverse-primary); outline-offset: -2px; }
.news-form .field label { left: 20px; color: color-mix(in srgb, var(--md-inverse-on-surface) 85%, transparent); }
.news-form .btn { background: var(--md-inverse-on-surface); color: var(--md-inverse-surface); }
.footer :focus-visible { outline-color: var(--md-inverse-primary); }
.footer__bottom { display: grid; justify-items: center; gap: 16px; text-align: center; padding-block: 24px 104px; border-top: 1px solid color-mix(in srgb, var(--md-inverse-on-surface) 16%, transparent); }
.footer__bottom ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-family: var(--md-plain-font); }
.footer__note { max-width: 70ch; color: color-mix(in srgb, var(--md-inverse-on-surface) 68%, transparent); }
@media (min-width: 1100px) { .footer__bottom { padding-bottom: 28px; } }
@media (max-width: 899px) {
  .footer { padding-top: 56px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .footer__mid { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 479px) {
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .footer__col--end { text-align: left; }
  .footer__col--end li { justify-content: flex-start; }
  .news-form__row { grid-template-columns: minmax(0, 1fr); }
  .news-form .btn { justify-self: stretch; }
}

/* ---------- Phone: extended action button ---------- */
.fab-order { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; border-radius: var(--md-shape-full); background: var(--md-primary); color: var(--md-on-primary); }
