/* ჭრელი კუბიკი: demo toy store. Colours only through --md-* roles (theme.css + the overrides below). */

:root {
  --md-brand-font: "Noto Sans Georgian", "Quicksand", system-ui, sans-serif;
  --md-plain-font: "Noto Sans Georgian", "Quicksand", system-ui, sans-serif;
  --md-latin-font: "Quicksand", "Noto Sans Georgian", system-ui, sans-serif;

  /* the sky blue of the design, deepened for 4.5:1 under white text */
  --md-primary: #007ca8;
  --md-on-primary: #ffffff;
  --md-primary-container: #12aee0;
  --md-on-primary-container: #0b1440;
  --md-secondary-container: #d8f1fb;
  --md-on-secondary-container: #0b4a61;
  /* the green of the hero button */
  --md-tertiary: #1b8338;
  --md-on-tertiary: #ffffff;
  --md-tertiary-container: #ffe9a8;
  --md-on-tertiary-container: #4a3800;

  /* white page, cool grey steps, navy ink */
  --md-surface: #ffffff;
  --md-on-surface: #181d4e;
  --md-on-surface-variant: #5c5f6e;
  --md-surface-container-lowest: #ffffff;
  --md-surface-container-low: #f5f6f7;
  --md-surface-container: #eff0f3;
  --md-surface-container-high: #e8eaee;
  --md-surface-container-highest: #e1e3e9;
  --md-outline: #8a8d9b;
  --md-outline-variant: #d0d3dc;
  --md-inverse-surface: #181d4e;
  --md-inverse-on-surface: #f5f6f7;
  --md-inverse-primary: #6ed2ff;

  /* hero ground and the toy-box accents of the logo */
  --md-hero: #f5cb74;
  --md-on-hero: #181d4e;
  --md-accent-red: #e5484d;
  --md-accent-yellow: #f6c12c;

  --md-max: 1240px;
}
html, body { overflow-x: clip; }
body { -webkit-tap-highlight-color: transparent; }
.display-l, .display-m, .display-s, .headline-l, .headline-m, .headline-s { font-weight: 700; }
.title-l, .title-m { font-weight: 600; }
.nw { white-space: nowrap; }
.overline { display: block; font: 600 14px/20px var(--md-plain-font); color: var(--md-primary); }
.btn { font-weight: 600; }
.btn .icon-end { margin-inline: 0 -8px; }
.btn-go { background: var(--md-tertiary); color: var(--md-on-tertiary); }
.btn-sky { background: var(--md-primary-container); color: var(--md-on-primary-container); }
@media (hover: hover) { .btn-go:hover, .btn-sky:hover { box-shadow: var(--md-elev-1); } }

/* ---------- Top bar ---------- */
.top-bar.scrolled { background: var(--md-surface); box-shadow: var(--md-elev-2); }
.bar-main { min-height: 88px; gap: 8px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-radius: var(--md-shape-s); }
.logo__cube { width: 36px; height: 36px; flex: none; }
.logo__cube .c1 { fill: var(--md-accent-yellow); }
.logo__cube .c2 { fill: var(--md-accent-red); }
.logo__cube .c3 { fill: var(--md-primary-container); }
.logo__word { font: 700 26px/1 var(--md-latin-font); letter-spacing: -.3px; white-space: nowrap; }
.logo__word span:first-child { color: var(--md-primary); }
.logo__word span:last-child { color: var(--md-tertiary); }
.demo-tag { white-space: nowrap; }
.bar-nav { margin-inline-start: 24px; }
.top-bar .bar-nav a { font-weight: 600; color: var(--md-on-surface); }
.top-bar .bar-nav a[aria-current="page"] { background: transparent; color: var(--md-on-surface); box-shadow: inset 0 -2px 0 var(--md-on-surface); border-radius: 0; }
.top-bar .icon-btn { color: var(--md-on-surface); }
.menu-btn { display: none; margin-inline-start: -12px; }
.badge { background: var(--md-primary); color: var(--md-on-primary); }
@media (max-width: 1099px) {
  .bar-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .bar-main { min-height: 68px; gap: 4px; }
}
@media (max-width: 599px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 2px; }
  .brand .demo-tag { height: 18px; font-size: 10px; padding: 0 6px; margin-inline-start: 36px; }
  .logo { gap: 6px; }
  .logo__cube { width: 30px; height: 30px; }
  .logo__word { font-size: 20px; }
  .wa-btn { display: none; }
}
.drawer a { color: var(--md-on-surface); }

/* ---------- Hero: one still picture on the mustard ground ---------- */
.hero { position: relative; overflow: hidden; background: var(--md-hero); color: var(--md-on-hero); min-height: clamp(480px, 45vw, 650px); display: grid; align-items: center; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, var(--md-hero) 0 40%, transparent 58%); pointer-events: none; }
.hero__sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cloud { position: absolute; fill: var(--md-surface); }
.cloud--a { top: 5%; left: 14%; }
.cloud--b { top: 9%; left: 55%; }
.cloud--c { top: 3%; right: 5%; }
.star { position: absolute; color: var(--md-surface); font-size: 28px; }
.star--a { top: 14%; left: 38%; font-size: 22px; }
.star--b { top: 22%; right: 12%; }
.star--c { bottom: 14%; right: 4%; font-size: 20px; }
.hero__inner { position: relative; z-index: 2; padding-block: 72px; }
.hero__text { margin-inline-start: 54%; max-width: 520px; display: grid; gap: 20px; justify-items: start; }
.hero__actions { margin-top: 8px; }
@media (max-width: 1099px) { .hero__text { margin-inline-start: 50%; } .hero::after { background: linear-gradient(270deg, var(--md-hero) 0 46%, transparent 62%); } }
@media (max-width: 839px) {
  .hero { min-height: 0; display: block; }
  .hero::after { display: none; }
  .hero__bg { position: relative; height: auto; aspect-ratio: 4 / 3; object-position: 0 60%; }
  .hero__sky { bottom: auto; height: 0; padding-bottom: 75%; }
  .cloud--b { left: auto; right: 4%; top: 6%; }
  .cloud--c, .star--c { display: none; }
  .hero__inner { padding-block: 24px 44px; }
  .hero__text { margin: 0; max-width: none; gap: 14px; }
}

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; display: grid; gap: 10px; justify-items: center; }
@media (max-width: 599px) { .section-head { margin-bottom: 28px; } .section-head .display-s { font-size: 28px; line-height: 36px; } }

/* ---------- Category tiles ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--md-shape-l); overflow: hidden; isolation: isolate; color: var(--md-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: 45% 0 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--md-inverse-surface) 78%, transparent)); z-index: 1; pointer-events: none; }
.tile::after { content: ""; position: absolute; inset: 0; background: var(--md-surface); opacity: 0; transition: opacity var(--md-dur-short) var(--md-ease-standard); z-index: 2; pointer-events: none; }
.tile__label { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 3; }
@media (hover: hover) { .tile:hover img { transform: scale(1.04); } .tile:hover::after { opacity: .08; } }
.tile:active::after { opacity: .12; }
@media (max-width: 839px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .tile__label { left: 14px; right: 14px; bottom: 12px; font-size: 16px; line-height: 22px; } }
@media (max-width: 599px) { .tile { aspect-ratio: 1; } .tile__label { font-size: 14px; line-height: 20px; } }

/* ---------- Products (card look comes from the shared cards.css) ---------- */
.popular { padding-top: 0; }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product[hidden] { display: none; }
.products .product > .card.card > .media { aspect-ratio: 1; background: var(--md-surface-container-low); }
.chips-row { justify-content: center; margin-bottom: 32px; }
.chips-row .chip { flex: none; border-radius: var(--md-shape-full); }
.empty { text-align: center; margin-top: 24px; }
@media (max-width: 1023px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } .popular .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .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; }
  .chips-row::-webkit-scrollbar { display: none; }
}

/* ---------- Story: two pictures, text, a round smile ---------- */
.story { background: var(--md-surface-container-low); }
.story__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto auto; column-gap: clamp(32px, 7vw, 112px); row-gap: 48px; }
.story__a { grid-column: 1; grid-row: 1 / 3; align-self: start; aspect-ratio: 4 / 5; border-radius: var(--md-shape-l); overflow: hidden; }
.story__b { grid-column: 2; grid-row: 2; aspect-ratio: 4 / 3; border-radius: var(--md-shape-l); overflow: hidden; margin-bottom: -40px; align-self: end; }
.story__a img, .story__b img { width: 100%; height: 100%; object-fit: cover; }
.story__text { grid-column: 2; grid-row: 1; display: grid; gap: 16px; justify-items: start; align-content: start; padding-top: 32px; max-width: 560px; }
.story__badge { position: absolute; left: calc(5 / 11 * 100% - 20px); bottom: 22%; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--md-accent-yellow); color: var(--md-on-surface); box-shadow: 0 0 0 10px var(--md-surface-container-low); z-index: 2; }
.story__badge .icon { font-size: 52px; font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 48; }
@media (max-width: 839px) {
  .story__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 28px; column-gap: 12px; }
  .story__text { grid-column: 1 / -1; grid-row: 1; padding-top: 0; }
  .story__a { grid-column: 1; grid-row: 2; aspect-ratio: 4 / 5; }
  .story__b { grid-column: 2; grid-row: 2; aspect-ratio: 4 / 5; margin: 0; align-self: start; }
  .story__badge { display: none; }
}

/* ---------- Delivery facts row ---------- */
.shop { padding-bottom: calc(var(--md-section) / 2); }
.facts { padding-block: 0 calc(var(--md-section) / 2); }
.facts__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts__row li { display: flex; align-items: center; gap: 16px; padding: 16px 24px; }
.facts__row li + li { border-left: 1px solid var(--md-outline-variant); }
.facts__row li > span:last-child { display: grid; gap: 2px; }
.facts__row .icon { font-size: 36px; color: var(--md-on-surface); font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 40; }
@media (max-width: 1099px) { .facts__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts__row li:nth-child(3) { border-left: 0; } }
@media (max-width: 599px) { .facts__row { grid-template-columns: minmax(0, 1fr); } .facts__row li { padding: 12px 0; } .facts__row li + li { border-left: 0; border-top: 1px solid var(--md-outline-variant); } }

/* ---------- Wide photo ---------- */
.wide-photo { height: clamp(240px, 40vw, 580px); overflow: hidden; background: var(--md-surface-container); }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- How ordering works: the navy band ---------- */
.how { background: var(--md-inverse-surface); color: var(--md-inverse-on-surface); padding-block: var(--md-section); }
.how__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 88px); align-items: center; }
.how__intro { display: grid; gap: 14px; justify-items: start; }
.how__intro .overline { color: var(--md-inverse-primary); }
.how__intro p { color: color-mix(in srgb, var(--md-inverse-on-surface) 78%, transparent); }
.how__intro .btn { margin-top: 10px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.step { display: grid; gap: 8px; align-content: start; padding: 28px; border-radius: var(--md-shape-l); background: var(--md-surface-container-lowest); color: var(--md-on-surface); }
.step__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; background: var(--md-secondary-container); color: var(--md-on-secondary-container); font: 700 18px/1 var(--md-latin-font); }
.step:nth-child(2) .step__n { background: var(--md-tertiary-container); color: var(--md-on-tertiary-container); }
.step:nth-child(3) .step__n { background: var(--md-tertiary-container); color: var(--md-on-tertiary-container); }
@media (max-width: 1023px) { .how__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; } .step { padding: 20px; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; } .step__n { grid-row: span 2; margin: 0; } .step p { grid-column: 2; } }

/* ---------- Advice (the blog cards) ---------- */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.post__media { aspect-ratio: 4 / 3; border-radius: var(--md-shape-l); overflow: hidden; background: var(--md-surface-container); }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { display: grid; gap: 8px; padding: 20px 4px 0; }
.post__tag { display: inline-flex; align-items: center; gap: 10px; color: var(--md-primary); }
.post__tag::before { content: ""; width: 32px; height: 2px; border-radius: 2px; background: currentColor; }
@media (max-width: 1023px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .posts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Payment strip ---------- */
.pay { border-top: 1px solid var(--md-outline-variant); padding-block: 40px; }
.pay__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.pay__list { list-style: none; margin: 0; padding: 0; gap: 12px; }
.pay .chip { cursor: default; height: 40px; border-radius: var(--md-shape-full); color: var(--md-on-surface); }
.pay .chip::after { display: none; }
@media (max-width: 839px) { .pay__inner { flex-direction: column-reverse; align-items: flex-start; } }

/* ---------- Newsletter card ---------- */
.news-sec { padding-bottom: var(--md-section); }
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--md-shape-xl); overflow: hidden; background: var(--md-surface-container-low); }
.news__img { position: relative; min-height: 340px; }
.news__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news__text { display: grid; gap: 12px; align-content: center; padding: clamp(24px, 5vw, 64px); }
.news-form { display: grid; gap: 16px; margin-top: 12px; }
.news-form .field { --field-bg: var(--md-surface-container-low); }
.news-form .btn { justify-self: start; }
@media (max-width: 767px) { .news { grid-template-columns: minmax(0, 1fr); } .news__img { min-height: 0; aspect-ratio: 16 / 10; } .news-form .btn { justify-self: stretch; } }

/* ---------- Footer ---------- */
.footer { background: var(--md-inverse-surface); color: var(--md-inverse-on-surface); }
.footer__inner { display: grid; justify-items: center; text-align: center; gap: 24px; padding-block: 64px 48px; }
.logo--footer .logo__word { font-size: 32px; }
.logo--footer .logo__cube { width: 44px; height: 44px; }
.logo--footer .logo__word span:first-child { color: var(--md-inverse-primary); }
.logo--footer .logo__word span:last-child { color: var(--md-accent-yellow); }
.footer__about { max-width: 46ch; color: color-mix(in srgb, var(--md-inverse-on-surface) 78%, transparent); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.footer__nav { gap: 4px; }
.footer__nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--md-shape-full); text-decoration: none; font: 600 14px/20px var(--md-plain-font); transition: background var(--md-dur-short) var(--md-ease-standard); }
@media (hover: hover) { .footer__nav a:hover { background: color-mix(in srgb, var(--md-inverse-on-surface) 10%, transparent); } }
.footer :focus-visible { outline-color: var(--md-inverse-primary); }
.footer__facts { gap: 8px 28px; font: 400 14px/20px var(--md-plain-font); color: color-mix(in srgb, var(--md-inverse-on-surface) 78%, transparent); }
.footer__facts li { display: inline-flex; align-items: center; gap: 8px; }
.footer__facts .icon { font-size: 18px; color: var(--md-inverse-primary); }
.footer__bottom { border-top: 1px solid color-mix(in srgb, var(--md-inverse-on-surface) 16%, transparent); padding-block: 20px 96px; text-align: center; color: color-mix(in srgb, var(--md-inverse-on-surface) 70%, transparent); }
@media (min-width: 840px) { .footer__bottom { padding-bottom: 24px; } }

/* ---------- Phone: extended FAB with the main action ---------- */
.fab-order { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; background: var(--md-tertiary); color: var(--md-on-tertiary); font-weight: 600; }
@media (min-width: 840px) { .fab-order { display: none; } }
