/* მწვანე ნათურა: demo gadget shop. Only Material 3 roles below the :root block. */
:root {
  --md-brand-font: "Noto Sans Georgian", "Inter", system-ui, sans-serif;
  --md-plain-font: "Noto Sans Georgian", "Inter", system-ui, sans-serif;

  /* The reference is white with ink text and yellow fills: ink is primary, yellow is the primary container. */
  --md-primary: #333e48;
  --md-on-primary: #ffffff;
  --md-primary-container: #fed700;
  --md-on-primary-container: #2a2500;
  --md-secondary-container: #fff3b3;
  --md-on-secondary-container: #3d3600;
  --md-tertiary: #0062bd;
  --md-on-tertiary: #ffffff;
  --md-tertiary-container: #e1ecf9;
  --md-on-tertiary-container: #0b3d73;
  --md-surface: #ffffff;
  --md-on-surface: #333e48;
  --md-on-surface-variant: #5b6570;
  --md-surface-container-lowest: #ffffff;
  --md-surface-container-low: #f7f7f7;
  --md-surface-container: #f2f2f2;
  --md-surface-container-high: #ebebeb;
  --md-surface-container-highest: #e4e4e4;
  --md-outline: #7b838b;
  --md-outline-variant: #dddddd;
  --md-inverse-surface: #333e48;
  --md-inverse-on-surface: #f4f5f6;
  --md-max: 1280px;
}
html, body { overflow-x: clip; }
body { -webkit-tap-highlight-color: transparent; }
html { scroll-padding-top: 150px; }
.nw { white-space: nowrap; }
strong { font-weight: 600; }
.d-only { }
@media (max-width: 1199px) { .d-only { display: none !important; } html { scroll-padding-top: 80px; } }
@media (min-width: 1200px) { .m-only { display: none !important; } }

/* Yellow fills with ink text, as in the reference */
.btn-filled { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.btn-text { color: var(--md-on-surface); }
.btn-ink { background: var(--md-primary); color: var(--md-on-primary); }
.add, .bar-search__go { --md-primary: var(--md-primary-container); --md-on-primary: var(--md-on-primary-container); }

/* ---------- Utility strip ---------- */
.util { border-bottom: 1px solid var(--md-outline-variant); color: var(--md-on-surface-variant); }
.util__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 40px; }
.util__facts { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; font: 400 12px/16px var(--md-plain-font); }
.util__facts li, .util__facts a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.util__facts .icon { font-size: 16px; }
.util__facts a:hover { color: var(--md-on-surface); text-decoration: underline; }

/* ---------- Top bar ---------- */
.top-bar.scrolled { background: var(--md-surface); }
.bar-main { min-height: 88px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--md-on-surface); font: 700 28px/1 "Inter", sans-serif; letter-spacing: -1.4px; white-space: nowrap; }
.logo__dot { color: var(--md-primary-container); font-size: 1.3em; line-height: 0; }
.demo-tag { white-space: nowrap; }
.bar-search { flex: 1; max-width: 560px; height: 48px; margin-inline: auto; padding: 0 4px 0 20px; background: var(--md-surface); box-shadow: inset 0 0 0 2px var(--md-primary-container); }
.bar-search input::placeholder { color: var(--md-on-surface-variant); }
.bar-search__go { flex: none; }
.bar-nav { border-top: 1px solid var(--md-outline-variant); }
.bar-nav__row { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.dept-btn { display: inline-flex; align-items: center; gap: 10px; width: 264px; height: 40px; padding: 0 20px; border-radius: var(--md-shape-full); background: var(--md-primary-container); color: var(--md-on-primary-container); font: 600 14px/20px var(--md-plain-font); text-decoration: none; }
.dept-btn .icon { font-size: 20px; }
.bar-nav__note { margin-inline-start: auto; white-space: nowrap; }
@media (max-width: 1199px) {
  .top-bar, .top-bar.scrolled { background: var(--md-primary-container); color: var(--md-on-primary-container); }
  .top-bar .icon-btn { color: var(--md-on-primary-container); }
  .bar-main { min-height: 64px; gap: 4px; }
  .logo { font-size: 21px; letter-spacing: -1px; color: var(--md-on-primary-container); }
  .logo__dot { color: var(--md-surface); }
  .brand .demo-tag { background: var(--md-surface); color: var(--md-on-surface); }
}
@media (max-width: 599px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand .demo-tag { height: 18px; font-size: 10px; padding: 0 6px; }
}
.drawer__search { margin: 8px 4px 12px; height: 48px; }

/* ---------- Hero with the departments list ---------- */
.hero-grid { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.depts { border: 2px solid var(--md-primary-container); border-radius: var(--md-shape-l); padding: 8px; align-self: start; }
.depts ul { list-style: none; margin: 0; padding: 0; }
.depts a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--md-shape-full); text-decoration: none; font: 400 14px/20px var(--md-plain-font); color: var(--md-on-surface); }
.depts li + li:not(.depts__top) a { box-shadow: 0 -1px 0 var(--md-outline-variant); border-radius: 0; }
.depts__top a { font-weight: 600; }
.depts .icon { font-size: 18px; color: var(--md-on-surface-variant); }
@media (hover: hover) { .depts a:hover { background: var(--md-surface-container); } }
.hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--md-shape-l); background: var(--md-surface-container); min-height: 452px; display: grid; align-items: center; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; z-index: -1; }
.hero__text { max-width: 456px; padding: 48px 0 48px 48px; display: grid; gap: 16px; justify-items: start; }
.hero__kicker { color: var(--md-tertiary); }
.hero h1 { font-weight: 300; color: var(--md-on-surface); }
.hero h1 strong { font-weight: 700; }
.hero__actions { margin-top: 8px; }
@media (max-width: 1199px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .depts { display: none; } .hero { min-height: 400px; } .hero__text { max-width: 46%; padding-left: 40px; } .hero h1 { font-size: 34px; line-height: 42px; } }
@media (max-width: 839px) {
  .hero-sec .wrap { width: 100%; }
  .hero { display: block; min-height: 0; border-radius: 0; }
  .hero__bg { position: static; height: auto; aspect-ratio: 16 / 9; object-position: 100% 50%; }
  .hero__text { max-width: none; padding: 20px var(--md-margin) 32px; gap: 12px; }
  .hero h1 { font-size: 32px; line-height: 40px; }
}

/* ---------- Three banners ---------- */
.promos-sec { padding-top: 24px; }
.promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.promo { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px; border-radius: var(--md-shape-l); background: var(--md-surface-container); color: var(--md-on-surface); text-decoration: none; overflow: hidden; isolation: isolate; transition: box-shadow var(--md-dur-short) var(--md-ease-standard); }
.promo::after { content: ""; position: absolute; inset: 0; background: var(--md-on-surface); opacity: 0; transition: opacity var(--md-dur-short); pointer-events: none; }
@media (hover: hover) { .promo:hover { box-shadow: var(--md-elev-1); } .promo:hover::after { opacity: .04; } }
.promo__img { aspect-ratio: 1; border-radius: var(--md-shape-m); overflow: hidden; }
.promo__img img { width: 100%; height: 100%; object-fit: cover; }
.promo__text { display: grid; gap: 4px; justify-items: start; }
.promo__text .title-m { font-weight: 400; }
.promo__go { margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; font: 600 14px/20px var(--md-plain-font); }
.promo__arrow { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--md-primary-container); color: var(--md-on-primary-container); }
.promo__arrow .icon { font-size: 18px; }
@media (max-width: 1023px) { .promos { grid-template-columns: minmax(0, 1fr); gap: 12px; } .promo { grid-template-columns: 104px minmax(0, 1fr); } }

/* ---------- Section heads: thin rule with a yellow stroke under the title ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--md-outline-variant); margin-bottom: 24px; }
.sec-head h2 { position: relative; padding-bottom: 12px; font-weight: 500; }
.sec-head h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--md-primary-container); }
.sec-head p { padding-bottom: 12px; }
.sec-head--center { justify-content: center; }

/* ---------- Offer card + product grid ---------- */
.shop { padding-block: 48px var(--md-section); }
.shop-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.offer { border: 2px solid var(--md-primary-container); border-radius: var(--md-shape-xl); padding: 24px 20px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.offer__title { justify-self: start; font-weight: 400; }
.offer__media { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--md-shape-l); overflow: hidden; background: var(--md-surface-container); }
.offer__media img { width: 100%; height: 100%; object-fit: cover; }
.offer__name { color: var(--md-tertiary); }
.offer__price { font: 400 32px/40px var(--md-plain-font); font-variant-numeric: tabular-nums; }
.offer__facts { list-style: none; margin: 0; padding: 12px 0; width: 100%; display: grid; gap: 8px; border-block: 1px solid var(--md-outline-variant); font: 400 13px/18px var(--md-plain-font); color: var(--md-on-surface-variant); text-align: left; }
.offer__facts li, .feature__facts li { display: flex; align-items: center; gap: 8px; }
.offer__facts .icon, .feature__facts .icon { font-size: 18px; color: var(--md-on-surface); }
.sec-head--tabs { align-items: center; }
.sec-head--tabs .chips-row { padding-bottom: 10px; }
.chips-row .chip { flex: none; }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product[hidden] { display: none; }
.products li.product > .card h3, .mosaic article.card.product h3 { color: var(--md-tertiary); -webkit-line-clamp: 3; }
.ship { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/16px var(--md-plain-font); color: var(--md-on-surface-variant); }
.ship .icon { font-size: 16px; }
.empty { margin-top: 24px; }
@media (max-width: 1199px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .offer { grid-template-columns: 220px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 24px; align-content: center; }
  .offer__title { grid-column: 1 / -1; }
  .offer__media { grid-row: span 5; }
  .offer .btn { align-self: start; }
}
@media (max-width: 767px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sec-head--tabs { border-bottom: 0; }
  .sec-head--tabs h2 { width: 100%; box-shadow: 0 1px 0 var(--md-outline-variant); }
  .sec-head--tabs h2::after { right: auto; width: 96px; }
  .chips-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--md-margin)); padding-inline: var(--md-margin); scrollbar-width: none; max-width: 100vw; }
}
@media (max-width: 599px) {
  .offer { grid-template-columns: 128px minmax(0, 1fr); column-gap: 16px; padding: 16px; border-radius: var(--md-shape-l); }
  .offer__media { grid-row: span 3; align-self: start; }
  .offer__facts, .offer .btn { grid-column: 1 / -1; }
  .offer .btn { justify-self: stretch; }
  .offer__price { font-size: 28px; line-height: 36px; }
}

/* ---------- Grey band: four small products around one large ---------- */
.band { background: var(--md-surface-container); padding-block: 40px 56px; }
.band .sec-head { margin-bottom: 24px; }
.mosaic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "a big c" "b big d"; gap: 20px; }
.mosaic__a { grid-area: a; } .mosaic__b { grid-area: b; } .mosaic__c { grid-area: c; } .mosaic__d { grid-area: d; }
.mosaic__big { grid-area: big; }
.feature { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 8px; padding: 28px; border-radius: 22px; background: var(--md-surface-container-lowest); box-shadow: 0 0 0 1px var(--md-outline-variant); }
.feature__name { color: var(--md-tertiary); }
.feature__media { position: relative; min-height: 280px; border-radius: var(--md-shape-l); overflow: hidden; margin-block: 12px; background: var(--md-surface-container); }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font: 400 14px/20px var(--md-plain-font); color: var(--md-on-surface-variant); }
.feature__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.feature__price { font: 400 32px/40px var(--md-plain-font); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "big big big big" "a b c d"; }
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 28px; }
  .feature__media { grid-column: 1; grid-row: 1 / -1; margin: 0; aspect-ratio: 1; min-height: 0; }
  .feature > :not(.feature__media) { grid-column: 2; }
  .feature__buy { align-self: end; flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "big big" "a b" "c d"; gap: 12px; }
}
@media (max-width: 599px) {
  .feature { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: 20px; border-radius: 18px; }
  .feature__media { grid-column: 1; grid-row: auto; order: -1; margin-bottom: 8px; }
  .feature > :not(.feature__media) { grid-column: 1; }
}

/* ---------- Horizontal cards: under 200 ₾ ---------- */
.under { padding-bottom: 48px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.row-card { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px 64px 12px 12px; border-radius: var(--md-shape-l); box-shadow: inset 0 0 0 1px var(--md-outline-variant); background: var(--md-surface-container-lowest); }
.row-card > img { width: 104px; height: 130px; object-fit: cover; border-radius: var(--md-shape-m); }
.row-card__text { display: grid; gap: 4px; }
.row-card h3 { color: var(--md-tertiary); }
.row-card__price { font: 400 20px/28px var(--md-plain-font); font-variant-numeric: tabular-nums; }
.row-card .add { position: absolute; right: 12px; bottom: 12px; }
@media (max-width: 1023px) { .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .rows { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ---------- Wide banner ---------- */
.wide { position: relative; display: flex; align-items: center; gap: 24px; min-height: 232px; padding: 24px 44% 24px 56px; border-radius: var(--md-shape-l); background: var(--md-surface-container); color: var(--md-on-surface); text-decoration: none; overflow: hidden; isolation: isolate; }
.wide__bg { position: absolute; inset: 0 0 0 auto; width: 58%; height: 100%; object-fit: cover; object-position: 100% 66%; z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent, black 35%); mask-image: linear-gradient(90deg, transparent, black 35%); }
.wide__text { font-weight: 300; font-size: 24px; line-height: 32px; }
.wide__tag { flex: none; display: grid; justify-items: center; padding: 8px 20px; border-radius: var(--md-shape-m); background: var(--md-primary-container); color: var(--md-on-primary-container); }
.wide__price { font: 700 24px/28px var(--md-plain-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 767px) {
  .wide { flex-wrap: wrap; gap: 12px; min-height: 168px; padding: 20px 44% 20px 20px; }
  .wide__bg { width: 62%; object-position: 100% 60%; }
  .wide__text { font-size: 18px; line-height: 26px; }
  .wide__price { font-size: 20px; }
}

/* ---------- Four steps ---------- */
.how { padding-block: 64px 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.step > div { display: grid; gap: 4px; }
.step__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--md-surface-container); color: var(--md-on-surface); }
.step:first-child .step__icon { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.step__icon .icon { font-size: 28px; }
.step__n { color: var(--md-on-surface-variant); }
@media (max-width: 1199px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } }
@media (max-width: 599px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ---------- Payment chips (in place of a logo strip) ---------- */
.pay { border-block: 1px solid var(--md-outline-variant); padding-block: 28px; }
.pay__inner { display: flex; align-items: center; justify-content: center; gap: 16px 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; }

/* ---------- Three advice columns + side picture ---------- */
.tips { padding-block: 56px 64px; }
.tips-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 300px; gap: 32px; align-items: start; }
.tip { display: grid; gap: 8px; justify-items: start; }
.tip__head { width: 100%; padding-bottom: 12px; margin-bottom: 12px; box-shadow: 0 1px 0 var(--md-outline-variant); position: relative; font-weight: 500; font-size: 18px; }
.tip__head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 2px; background: var(--md-primary-container); }
.tip__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--md-surface-container); margin-bottom: 4px; }
.bulb { position: relative; display: block; border-radius: var(--md-shape-l); overflow: hidden; background: var(--md-surface-container); color: var(--md-on-surface); text-decoration: none; }
.bulb img { width: 100%; aspect-ratio: 10 / 11; object-fit: cover; object-position: 50% 62%; }
.bulb__text { position: absolute; left: 20px; top: 20px; display: grid; gap: 2px; }
.bulb__tag { position: absolute; right: 16px; top: 16px; }
@media (max-width: 1199px) { .tips-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bulb { grid-column: 1 / -1; width: 100%; max-width: 360px; justify-self: center; } }
@media (max-width: 767px) { .tips-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .bulb { max-width: none; } .bulb img { aspect-ratio: 1; } }

/* ---------- Newsletter band ---------- */
.news { background: var(--md-primary-container); color: var(--md-on-primary-container); padding-block: 16px; }
.news__row { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.news__icon { font-size: 28px; }
.news h2 { font-weight: 400; }
.news__note { font-weight: 600; }
.news-form { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; flex: 0 1 460px; }
.news-form .field { flex: 1; --field-bg: var(--md-primary-container); }
.news-form .field input { border-color: var(--md-on-primary-container); color: var(--md-on-primary-container); background: var(--md-surface); }
.news-form .field input:focus { border: 1px solid var(--md-on-primary-container); padding: 16px; outline: 2px solid var(--md-on-primary-container); outline-offset: -2px; }
.news-form .field label { color: var(--md-on-primary-container); background: linear-gradient(var(--md-primary-container) 50%, var(--md-surface) 50%); border-radius: var(--md-shape-xs); }
@media (max-width: 1023px) { .news { padding-block: 24px; } .news-form { flex-basis: 100%; margin: 8px 0 0; } }
@media (max-width: 479px) { .news-form { flex-direction: column; align-items: stretch; } }

/* ---------- Footer ---------- */
.footer { background: var(--md-surface-container-low); color: var(--md-on-surface); padding-top: 56px; }
.footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px 32px; padding-bottom: 48px; }
.footer h2 { margin-bottom: 16px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font: 400 14px/20px var(--md-plain-font); color: var(--md-on-surface-variant); }
.footer a:not(.logo) { text-decoration: none; }
.footer a:not(.logo):hover { color: var(--md-on-surface); text-decoration: underline; }
.footer__about { display: grid; gap: 20px; justify-items: start; align-content: start; }
.logo--footer { font-size: 30px; }
.footer__wa { display: flex; align-items: center; gap: 14px; }
.footer__wa > .icon { font-size: 44px; color: var(--md-primary-container); -webkit-text-stroke: 0; filter: none; }
.footer__wa > span { display: grid; }
.footer__wa a { color: var(--md-on-surface); }
.footer__facts li { display: flex; align-items: center; gap: 8px; }
.footer__facts .icon { font-size: 18px; }
.footer__bottom { background: var(--md-surface-container-high); color: var(--md-on-surface-variant); }
.footer__bottom-row { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 16px 96px; }
@media (min-width: 1200px) { .footer__bottom-row { padding-bottom: 16px; } }
@media (max-width: 1023px) { .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__about { grid-column: 1 / -1; } }
@media (max-width: 599px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } .footer__cols > :last-child { grid-column: 1 / -1; } }

/* ---------- 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); }
