/* ============================================================================
   Gatish marketplace skin: red/white brand on top of site.css.
   One block per page, appended in plan order. No build step.
   ========================================================================== */

:root {
  --red: #F5071E;
  --red-dark: #D20418;
  --red-soft: #FDE8E9;
  --navy: #0B1B3F;
  --gold: #F5A524;
}

img { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sr-only:focus { position: static; width: auto; height: auto; clip: auto; padding: 8px 12px; }
.ico { flex: 0 0 auto; vertical-align: middle; }
.btn.sm { padding: 8px 14px; font-size: 13.5px; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-dark); }

/* ---- header (owner's design, 1536px mock: logo · city · search · five links · login) ---- */
body { font-family: Lato, "Segoe UI", "Nirmala UI", system-ui, -apple-system, sans-serif; }
.mk-head { background: #fff; box-shadow: 0 1px 0 #E9EDF4, 0 2px 10px rgba(11, 27, 63, .04); position: sticky; top: 0; z-index: 20; }
.mk-head-row { display: flex; align-items: center; max-width: 1472px; min-height: 66px; padding-top: 5px; padding-bottom: 5px; padding-left: 23px; }
.logo-link { display: flex; flex-direction: column; line-height: 1; flex: 0 0 auto; }
.logo-link:hover { text-decoration: none; }
/* The mock's wordmark: a slanted, slate-navy "atish" under an orange-to-red G. */
.logo { font-family: Lato, "Segoe UI", sans-serif; font-size: 52px; font-weight: 900; font-style: italic; letter-spacing: -1.4px; color: #2E3F55; line-height: .82; padding-right: 4px; }
.logo::first-letter { color: var(--red); }
/* The mock's G runs orange to red. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .logo::first-letter { background: linear-gradient(165deg, #FF9440 0%, #FE6A38 38%, #F8402C 70%, #EA1F25 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.logo-foot { font-size: 30px; margin-bottom: 8px; }
.tagline { font-size: 11px; font-weight: 400; color: #34445F; margin-top: 3px; letter-spacing: 0; }
/* City pill: pin · city · chevron. "Go" appears once the city is changed (or while the picker has focus). */
.mk-city { position: relative; display: flex; align-items: center; gap: 3px; height: 35px; margin-left: 36px; border: 1px solid #E3E8F0; border-radius: 8px; padding: 0 8px 0 9px; box-shadow: 0 1px 3px rgba(11, 27, 63, .05); color: var(--red); background: #fff; flex: 0 0 auto; }
.mk-city select { -webkit-appearance: none; appearance: none; border: 0; padding: 6px 20px 6px 2px; margin-right: -18px; font: inherit; font-size: 12px; font-weight: 400; background: transparent; width: 98px; text-overflow: ellipsis; color: var(--navy); cursor: pointer; position: relative; z-index: 1; }
.mk-city select:focus { outline: none; }
.mk-city:focus-within { outline: 2px solid var(--navy); outline-offset: 1px; }
.mk-city > .glyph { width: 18px; height: 18px; }
.mk-city-chev { color: var(--navy); pointer-events: none; }
.mk-city .btn { position: absolute; z-index: 2; right: 3px; top: 3px; bottom: 3px; padding: 0 10px; font-size: 12.5px; font-weight: 700; border: 0; border-radius: 6px; background: var(--red); color: #fff; box-shadow: none;
  visibility: hidden; opacity: 0; transition: opacity .12s, visibility 0s .25s; }
.mk-city:focus-within .btn, .mk-city.is-changed .btn { visibility: visible; opacity: 1; transition: opacity .12s; }
.mk-search { position: relative; display: flex; align-items: center; flex: 0 1 439px; min-width: 0; margin-left: 13px; height: 36px; background: #F1F4F9; border: 1px solid #E3E8F0; border-radius: 8px; }
.mk-search .mk-search-ico { position: absolute; left: 13px; color: #5B6785; pointer-events: none; }
.mk-search input[type="search"] { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 10px 0 40px; font: inherit; font-size: 12.5px; color: var(--navy); border-radius: 8px 0 0 8px; text-overflow: ellipsis; }
.mk-search input[type="search"]::placeholder { color: #5B6785; }
.mk-search input[type="search"]:focus { outline: 2px solid var(--navy); outline-offset: -2px; }
.mk-search .btn { height: 36px; margin: 0 -1px 0 0; padding: 0 18px; border-radius: 8px; font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; }
.mk-nav { display: flex; align-items: center; gap: 27.5px; margin-left: 40px; margin-right: 16px; }
.mk-nav a { position: relative; font-size: 11.6px; font-weight: 400; color: var(--navy); white-space: nowrap; }
.mk-nav a:hover { text-decoration: none; color: var(--red); }
.mk-nav a.on { color: var(--red); }
.mk-nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2.5px; border-radius: 2px; background: var(--red); }
.mk-login { display: inline-flex; align-items: center; gap: 8px; margin-left: 0; margin-right: 28px; padding-left: 30px; font-size: 12.5px; font-weight: 400; color: var(--navy); white-space: nowrap; }
.mk-login:hover { text-decoration: none; color: var(--red); }
.mk-login { order: 2; }
.mk-menu { order: 3; }
/* Desktop: the offers link sits where the mock draws its header icon (left of the account button), with the live-offer count. */
.mk-bell { order: 1; position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-left: auto; margin-right: 6px; color: var(--navy); }
.mk-bell:hover { color: var(--red); }
.mk-bell .ico { stroke-width: 2; }
/* Desktop draws a price tag (the count is live offers, not a cart or unread alerts); the phone keeps the app design's bell. */
.mk-bell .mk-ic-m { display: none; }
.mk-count { position: absolute; top: -3px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 900; font-style: normal; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.mk-bell:has(.mk-count) .mk-dot { display: none; }
.mk-dot { position: absolute; top: 3px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.mk-login-av { width: 34px; height: 34px; border-radius: 50%; background: #F1F3F7; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.mk-menu { display: none; margin-left: 12px; margin-right: 0; }
.mk-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #E3E8F0; border-radius: 10px; color: var(--navy); background: #fff; }
.mk-menu summary::-webkit-details-marker { display: none; }
.mk-menu[open] summary { border-color: var(--red); color: var(--red); }
.mk-menu-panel { position: absolute; left: 16px; right: 16px; top: 64px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 16px 40px rgba(11, 27, 63, .14); padding: 8px; display: grid; z-index: 30; }
.mk-menu-panel a { padding: 12px 14px; border-radius: var(--r-sm); font-weight: 700; }
.mk-menu-panel a.on { color: var(--red); background: #FFF1F2; box-shadow: inset 3px 0 0 var(--red); }
@media (max-width: 1400px) {
  .mk-nav { gap: 20px; margin-left: 26px; }
  .mk-city { margin-left: 20px; }
}
@media (max-width: 1240px) {
  .mk-nav { display: none; }
  .mk-menu { display: block; }
  .mk-search { flex: 1 1 auto; }
  .mk-bell { display: none; }
  .mk-login { margin-left: auto; padding-left: 16px; }
}
/* Phone: the app design's header. Row 1 logo, city, menu; row 2 a full-width search field.
   It scrolls away with the page; the bottom bar is the fixed navigation. */
@media (max-width: 760px) {
  .mk-head { position: relative; box-shadow: none; }
  .mk-head-row { flex-wrap: wrap; row-gap: 8px; min-height: 0; padding: 10px 16px 6px; }
  /* .wrap (max-width 620px) resets the side padding later in this file; the top gap is set here so it survives. */
  .mk-head .mk-head-row { padding-top: 4px; }
  .logo { font-size: 29px; letter-spacing: -.5px; }
  .tagline { font-size: 7.5px; margin-top: 1px; }
  .mk-city { order: 2; margin: 0 auto 0 auto; transform: translateX(14px); height: 30px; border-radius: 8px; padding: 0 8px; gap: 4px; }
  .mk-city .ico { width: 15px; height: 15px; }
  .mk-city select { font-size: 11.5px; width: 98px; max-width: 128px; padding-right: 22px; margin-right: -20px; }
  .mk-city > .glyph { width: 20px; height: 20px; }
  .mk-login { display: none; }
  /* The menu stays on phones: it is the only way there to Become a Partner, Business login and Hindi. */
  .mk-menu { display: block; order: 4; margin-left: 4px; }
  .mk-menu summary { width: 36px; height: 36px; }
  .mk-bell { order: 3; position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: 0; margin-right: -6px; color: var(--navy); }
  .mk-count { display: none; }
  .mk-bell .mk-ic-d { display: none; }
  .mk-bell .mk-ic-m { display: block; }
  .mk-bell:has(.mk-count) .mk-dot { display: block; }
  .mk-bell .ico { stroke-width: 2; }
  .mk-search { order: 5; flex: 1 1 100%; margin-left: 0; height: 34px; border-radius: 8px; background: #F7F9FC; }
  .mk-search .mk-search-ico { left: 11px; width: 17px; height: 17px; }
  .mk-search input[type="search"] { font-size: 12px; padding-left: 36px; }
  .mk-search .btn { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
  .mk-menu-panel { top: 58px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
}

/* ---- demo preview (site.demo_mode): a slim brand-red strip above the header, and a chip on demo cards ---- */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 8px; height: 20px; padding: 0 16px; background: var(--red); color: #fff; overflow: hidden;
  font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; letter-spacing: .1px; white-space: nowrap; }
.demo-bar-tag { flex: 0 0 auto; background: #fff; color: var(--red); font-size: 8.5px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; padding: 0 6px; line-height: 13px; border-radius: 999px; }
/* Home (desktop): the note is a slim pill in the strip of open road under the hero's trust row, lined up with the
   headline (the mock has nothing there), so it covers none of the hero art and the page keeps the mock's layout
   (header 0-66, hero 66-320, finder card from 321). It scrolls away with the hero. */
@media (min-width: 901px) {
  .pg-home .demo-bar { position: absolute; z-index: 6; top: 294px; left: calc(max(0px, (100% - 1504px) / 2) + 45px); height: 18px; line-height: 18px; padding: 0 12px 0 3px; border-radius: 999px;
    font-size: 10.5px; box-shadow: 0 2px 6px rgba(11, 27, 63, .16); }
  .pg-home .demo-bar-tag { font-size: 8px; line-height: 12px; }
}
.demo-chip { display: inline-flex; align-items: center; vertical-align: middle; flex: 0 0 auto; height: 18px; padding: 0 7px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark);
  border: 1px solid #F8C3C7; font-size: 10px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.ocard .demo-chip { align-self: flex-start; }
/* Phone: one line. The words already say "Demo preview", so the tag pill goes. */
@media (max-width: 760px) {
  /* It takes the place of the app design's status bar (the top ~24px), so the header below sits where the design draws it. */
  .demo-bar { font-size: 9.5px; font-weight: 400; padding: 0 8px; height: 22px; line-height: 22px; letter-spacing: 0; text-overflow: ellipsis; display: block; }
  .demo-bar-tag { display: none; }
}

/* ---- phone bottom bar ---- */
.mk-tabs { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .mk-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
    height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: calc(4px + env(safe-area-inset-bottom)); background: #fff;
    border-top: 1px solid #E9EDF4; box-shadow: 0 -4px 16px rgba(11, 27, 63, .06); }
  .mk-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: #5A6680; white-space: nowrap; }
  .mk-tab-ico { position: relative; display: flex; height: 26px; align-items: center; }
  .mk-tab-ico .mk-dot { top: -1px; right: -3px; }
  .mk-tabs a:hover { text-decoration: none; }
  .mk-tabs a .ico { stroke-width: 1.7; }
  .mk-tabs a.on { color: var(--red); font-weight: 700; }
  .mk-tabs a.on .ico { stroke-width: 2.2; }
}

/* ---- footer: dark navy, logo + blurb, four link columns (3 Oct home design) ---- */
.site-foot { background: #0B1B3F; color: #B9C4DA; border-top: 0; padding: 44px 0 18px; }
.site-foot .foot-wrap { max-width: 1472px; padding: 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; }
.site-foot a { color: #B9C4DA; font-size: 14px; }
.site-foot a:hover { color: #fff; text-decoration: none; }
.site-foot h4 { color: #fff; font-size: 15px; font-weight: 900; letter-spacing: 0; text-transform: none; margin: 0 0 14px; }
.site-foot li { padding: 4px 0; }
.site-foot .logo-foot { color: #fff; font-size: 34px; margin-bottom: 10px; }
.site-foot .foot-about { font-size: 13.5px; line-height: 1.6; max-width: 360px; margin: 0; color: #B9C4DA; }
.site-foot .foot-promise { font-size: 13.5px; margin: 8px 0 0; color: #fff; font-weight: 700; }
.foot-social { display: flex; gap: 10px; margin: 16px 0 0; }
.foot-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.foot-social a:hover { background: var(--red); }
.site-foot .foot-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #93A2BE; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.foot-lang { margin-left: auto; }
.foot-lang a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #fff; }
.foot-lang .glyph { color: #7FB0FF; }
.foot-heart { color: var(--red); }
@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-foot { padding: 28px 0 18px; }
  .site-foot .foot-wrap { padding: 0 16px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .site-foot h4 { font-size: 14px; margin-bottom: 8px; }
  .site-foot a { font-size: 13px; }
  .site-foot li { padding: 2px 0; }
  .site-foot li a { display: inline-block; padding: 5px 0; }
  .site-foot .logo-foot { font-size: 28px; margin-bottom: 6px; }
  .site-foot .foot-about { font-size: 13px; }
  .site-foot .foot-bottom { margin-top: 22px; justify-content: flex-start; }
  .foot-lang { margin-left: 0; }
}

/* ---- shared bits ---- */
.mk-section { padding: 36px 0; }
.mk-section.paper { background: var(--paper); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: clamp(21px, 2.6vw, 26px); }
.sec-head a { color: var(--red); font-weight: 600; font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--paper); color: var(--t2); }
.pill.ok { background: var(--in-soft); color: var(--in-text); }
.pill.sponsored { background: #FFF4D6; color: #7A5300; }
.pill.red { background: var(--red-soft); color: var(--red-dark); }
.state { border: 1px dashed var(--line2); border-radius: var(--r-lg); padding: 22px; text-align: center; background: #fff; }
.state-title { margin: 0; font-weight: 600; }
.state-body { margin-top: 10px; color: var(--t2); font-size: 14.5px; }
.state-error { border-color: #F3B2B5; background: #FFF7F7; }
.foot-note { font-size: 12.5px; color: var(--t3); margin-top: 14px; }
.foot-about { font-size: 14px; color: var(--on-ink-muted); margin: 0; line-height: 1.6; }

/* ---- cards (Task 3) ---- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.vcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.vcard-media { display: block; aspect-ratio: 16 / 9; background: var(--paper); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard-initial { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 44px; font-weight: 800; color: var(--red); }
.vcard-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.vcard-top h3 { font-size: 17px; margin: 0; }
.vcard-top h3 a { color: var(--t1); }
.vcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.rating .ico { color: var(--gold); fill: var(--gold); }
.vcard-loc { margin: 0; font-size: 13px; color: var(--t2); display: flex; gap: 4px; align-items: center; }
.vcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.vcard-price { font-weight: 700; font-size: 15px; margin: 0; }
.vcard-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.ocard { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.ocard-badge { align-self: flex-start; background: var(--red); color: #fff; font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 8px; }
.ocard h3 { margin: 0; font-size: 16px; }
.ocard p { margin: 0; font-size: 14px; color: var(--t2); }
.ocard details { font-size: 13px; color: var(--t2); }
.ocard .btn { align-self: flex-start; margin-top: 6px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.prod { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.prod img { border-radius: 10px; object-fit: cover; aspect-ratio: 4 / 3; width: 100%; }
.prod h3 { font-size: 15px; margin: 0; }
.prod p { margin: 0; }
.prod-price { font-weight: 800; }
.prod-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.stats { background: #fff; border-top: 1px solid #EDF0F6; padding: 16px 0 18px; }
.stats-row { max-width: 1504px; display: grid; grid-template-columns: repeat(5, minmax(0, max-content)); justify-content: space-between; gap: 24px; padding-left: 58px; padding-right: 76px; }
.stat { display: flex; align-items: center; gap: 16px; min-width: 0; }
.stat-txt { min-width: 0; }
.stat-icon { flex: 0 0 auto; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--red); }
.stat-icon.tone-blue { color: #0A60F4; }
.stat-icon.tone-red { color: #F5071E; }
.stat-icon.tone-violet { color: #731BFC; }
.stat-icon.tone-gold { color: #F5A524; }
.stat-icon.tone-green { color: #16A34A; }
.stat-v { font-size: 17px; font-weight: 900; line-height: 1.25; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-l .l-m { display: none; }
.stat-icon .ic-m { display: none; }
.stat-l { font-size: 14px; color: #4E5A72; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1240px) { .stats-row { padding-left: 16px; padding-right: 16px; gap: 16px; } .stat { gap: 10px; } .stat-v { font-size: 15.5px; } .stat-l { font-size: 13px; } }
@media (max-width: 1000px) { .stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Phone: one rounded light-blue card with the first three items in a row, as in the app design. */
@media (max-width: 760px) {
  .stats { background: transparent; border: 0; padding: 14px 0 16px; }
  .stats-row { margin: 0 12px; padding: 12px 8px; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #EFF5FE; border: 1px solid #E0EAF8; border-radius: 14px; }
  /* The three items the app design shows (served, rating, partners), in its order; the strip marks them m-on. */
  .stat:not(.m-on) { display: none; }
  .stat { order: var(--m-order, 9); }
  .stat-l .l-d { display: none; }
  .stat-l .l-m { display: inline; }
  .stat-icon .ic-d { display: none; }
  .stat-icon .ic-m { display: block; }
  .stat { gap: 6px; }
  .stat-icon, .stat-icon .glyph { width: 28px; height: 28px; }
  .stat-v { font-size: 12.5px; white-space: normal; line-height: 1.2; }
  .stat-l { font-size: 9px; white-space: normal; line-height: 1.2; }
}

/* ---- services (Task 4) ---- */
.page-head { background: var(--paper); padding: 28px 0 22px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; letter-spacing: -0.8px; }
.page-head .lead { margin: 0 0 6px; }
.crumbs { font-size: 13px; color: var(--t3); margin-bottom: 8px; }
.crumbs a { color: var(--t2); }
.sub-h { font-size: 20px; margin: 8px 0 12px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stile { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--t1); min-height: 118px; }
.stile:hover { border-color: var(--red); text-decoration: none; }
.stile-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; }
.stile-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.stile-meta { font-size: 12.5px; color: var(--t3); }
.stile-price { font-size: 13.5px; font-weight: 700; color: var(--red-dark); }
.svc-group { margin-bottom: 30px; }
.svc-group h2 { font-size: 20px; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; padding: 7px 13px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--t2); background: #fff; }
.chip.on { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.chip:hover { text-decoration: none; border-color: var(--red); }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pkg { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.pkg p { margin: 0; }
.pkg-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pkg-name { font-size: 17px; margin: 0; }
.pkg-price { font-size: 19px; font-weight: 800; }
.pkg-where { display: flex; gap: 6px; flex-wrap: wrap; }
.pkg-inc-h { font-size: 13px; margin: 6px 0 0; color: var(--t2); }
.pkg-includes { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 4px; font-size: 13.5px; color: var(--t2); }
.pkg-includes li { display: flex; gap: 6px; align-items: center; }
.pkg-includes .ico { color: var(--in); }
.pkg .btn { align-self: flex-start; margin-top: auto; }
.pay-line { margin-top: 14px; }
.post-band { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--paper); border-radius: 14px; padding: 16px; }
.post-band p { margin: 0; }
.disclosure, .emergency-note { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#partners { margin-top: 28px; flex-wrap: wrap; }
@media (max-width: 620px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- offers (Task 5) ---- */
.offer-grid { align-items: start; }
@media (max-width: 900px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .offer-grid { grid-template-columns: 1fr; } }

/* ---- directory: sticky filter panel (desktop) / bottom sheet (phone), cards in the home tiles' look ---- */
.dir-wrap { max-width: 1472px; margin: 0 auto; padding: 0 32px; }
.dir-head { background: linear-gradient(180deg, #F6F8FC 0%, #fff 100%); border-bottom: 1px solid #EDF0F6; padding: 18px 0 16px; }
.dir-crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5A6680; margin-bottom: 4px; }
.dir-crumbs a { color: #5A6680; }
.dir-crumbs span { color: var(--navy); font-weight: 700; }
.dir-head h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.6px; margin: 0 0 6px; color: var(--navy); font-weight: 900; }
.dir-lead { margin: 0; color: #4E5A72; font-size: 14.5px; }
.dir-main { padding: 20px 0 40px; background: #fff; }
.dir-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }

/* Garages | Products switch under the title */
.dir-tabs { display: inline-flex; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 12px; background: #EEF2F8; }
.dir-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: #4E5A72; white-space: nowrap; }
.dir-tabs a:hover { text-decoration: none; color: var(--navy); }
.dir-tabs a.on { background: #fff; color: var(--red); box-shadow: 0 1px 4px rgba(11, 27, 63, .12); }
.dir-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; font-size: 13.5px; color: #5A6680; }
.pcard-brand { margin: 0; font-size: 11.5px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; color: var(--red); }
.pcard .dcard-name { font-size: 15px; }
.pcard .dcard-loc a { color: var(--navy); font-weight: 700; }
.pcard .dcard-initial { color: #B9C3D6; }

/* the panel */
.dir-sheet > summary { list-style: none; }
.dir-sheet > summary::-webkit-details-marker { display: none; }
.dir-sheet-btn { display: none; }
.dir-backdrop { display: none; }
.dir-panel { background: #fff; border: 1px solid #E6EAF2; border-radius: 14px; box-shadow: 0 4px 18px rgba(11, 27, 63, .06); }
.dir-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid #EDF0F6; }
.dir-panel-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 900; color: var(--navy); flex: 1; }
.dir-panel-head h2 .ico { color: var(--red); }
.dir-clear { font-size: 13px; font-weight: 700; color: var(--red); white-space: nowrap; }
.dir-x { display: none; border: 0; background: #F1F4F9; border-radius: 999px; width: 34px; height: 34px; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; }
.dir-form { padding: 4px 16px 6px; }
.dir-group { padding: 12px 0; border-bottom: 1px solid #EDF0F6; }
.dir-group:last-child { border-bottom: 0; }
.dir-group h3, .dir-group legend.h3 { font-size: 13px; font-weight: 900; color: var(--navy); margin: 0 0 8px; padding: 0; text-transform: none; letter-spacing: 0; }
.dir-group fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.dir-hint { margin: 6px 0 0; font-size: 11.5px; color: #8792A8; line-height: 1.4; }
.dir-hint:empty { display: none; }
.dir-search, .dir-select { position: relative; display: flex; align-items: center; height: 40px; border: 1px solid #DFE5EF; border-radius: 9px; background: #F7F9FC; }
.dir-search:focus-within, .dir-select:focus-within { border-color: var(--navy); background: #fff; }
.dir-search .ico, .dir-select .ico { position: absolute; left: 11px; color: #5B6785; pointer-events: none; }
.dir-search input, .dir-select select { width: 100%; height: 100%; border: 0; background: transparent; padding: 0 10px 0 36px; font: inherit; font-size: 13.5px; color: var(--navy); border-radius: 9px; }
.dir-search input:focus, .dir-select select:focus { outline: none; }
.dir-select { margin-bottom: 8px; }
.dir-locate { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 38px; border: 1px dashed var(--red); border-radius: 9px; background: #FFF6F6; color: var(--red); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.dir-locate[hidden] { display: none; }
.dir-locate:hover { background: var(--red-soft); }
.dir-near-on { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--in-text); }
.dir-near-on a { color: var(--red); font-weight: 700; margin-left: auto; }
/* segmented choice (distance, rating) */
.dir-seg { display: flex; flex-wrap: wrap; gap: 0; margin-top: 10px !important; }
.dir-seg legend { font-size: 12px; font-weight: 700; color: #5A6680; margin: 0 0 6px; padding: 0; float: left; width: 100%; }
.dir-seg legend.h3 { font-size: 13px; font-weight: 900; color: var(--navy); }
.dir-seg label { flex: 1 1 0; position: relative; }
.dir-seg input, .dir-chips input, .dir-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dir-seg span { display: block; text-align: center; padding: 7px 4px; font-size: 12.5px; font-weight: 700; color: var(--navy); border: 1px solid #DFE5EF; margin-left: -1px; background: #fff; cursor: pointer; white-space: nowrap; }
.dir-seg label:first-of-type span { border-radius: 8px 0 0 8px; margin-left: 0; }
.dir-seg label:last-of-type span { border-radius: 0 8px 8px 0; }
.dir-seg input:checked + span { background: var(--red); border-color: var(--red); color: #fff; position: relative; z-index: 1; }
.dir-seg input:focus-visible + span, .dir-chips input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 1px; }
.dir-seg:disabled span { color: #A9B2C3; background: #F7F9FC; cursor: not-allowed; }
/* chips (services, vehicle, business type) */
.dir-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px !important; }
.dir-chips legend { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #8792A8; margin: 2px 0 6px; padding: 0; float: left; width: 100%; }
.dir-chips .dopt { position: relative; }
.dir-chips .dopt span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid #DFE5EF; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--navy); background: #fff; cursor: pointer; line-height: 1.3; }
.dir-chips .dopt span .ico { color: #5B6785; }
.dir-chips .dopt:hover span { border-color: #B9C3D6; }
.dir-chips input:checked + span { background: #FFF1F2; border-color: var(--red); color: var(--red-dark); }
.dir-chips input:checked + span .ico { color: var(--red); }
/* price */
.dir-range { display: flex; align-items: flex-end; gap: 8px; }
.dir-range label { flex: 1; min-width: 0; }
.dir-range label span { display: block; font-size: 11.5px; font-weight: 700; color: #5A6680; margin-bottom: 3px; }
.dir-range input { width: 100%; height: 38px; border: 1px solid #DFE5EF; border-radius: 9px; padding: 0 10px; font: inherit; font-size: 13.5px; color: var(--navy); background: #F7F9FC; }
.dir-range input:focus { outline: none; border-color: var(--navy); background: #fff; }
.dir-range-dash { padding-bottom: 8px; color: #8792A8; }
/* switches */
.dir-switch { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; cursor: pointer; }
.dir-switch-ui { flex: 0 0 auto; width: 34px; height: 20px; border-radius: 999px; background: #D5DDEA; position: relative; transition: background .15s; margin-top: 1px; }
.dir-switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.dir-switch input:checked + .dir-switch-ui { background: var(--red); }
.dir-switch input:checked + .dir-switch-ui::after { transform: translateX(14px); }
.dir-switch input:focus-visible + .dir-switch-ui { outline: 2px solid var(--navy); outline-offset: 2px; }
.dir-switch-text { font-size: 13.5px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.dir-switch-text small { display: block; font-size: 11.5px; font-weight: 400; color: #8792A8; margin-top: 1px; }
.dir-panel-foot { display: flex; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid #EDF0F6; }
.dir-panel-foot .dbtn { flex: 1; justify-content: center; height: 40px; }
.dir-panel-foot .dbtn:first-child { flex: 0 0 auto; }

/* results */
.dir-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.dir-count { margin: 0; font-size: 18px; font-weight: 900; color: var(--navy); flex: 1; }
.dir-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5A6680; white-space: nowrap; }
.dir-sort select { height: 36px; border: 1px solid #DFE5EF; border-radius: 9px; padding: 0 30px 0 10px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--navy); background: #fff; cursor: pointer; }
.dir-applied { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.dir-achip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px; background: #FFF1F2; border: 1px solid #F8C3C7; color: var(--red-dark); font-size: 12.5px; font-weight: 700; }
.dir-achip:hover { text-decoration: none; background: var(--red-soft); }
.dir-achip .ico { background: #fff; border-radius: 50%; padding: 2px; width: 17px; height: 17px; }
.dir-applied .dir-clear { margin-left: 4px; }
.dir-rank { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 9px 12px; border-radius: 10px; background: #F3F7FF; border: 1px solid #E1E9F8; font-size: 12.5px; color: #34445F; line-height: 1.45; }
.dir-rank .ico { color: var(--in); margin-top: 1px; }
.dir-rank-m1 { color: #8792A8; font-style: italic; }
.dir-rank a { font-weight: 700; color: var(--navy); text-decoration: underline; margin-left: 4px; }
.dir-note { margin: -6px 0 12px; font-size: 12.5px; color: var(--due-text); }
.dir-results .state { margin-top: 12px; }

/* the card */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.dcard { display: flex; flex-direction: column; background: #fff; border: 1px solid #E6EAF2; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(11, 27, 63, .06); transition: box-shadow .15s, transform .15s; }
.dcard:hover { box-shadow: 0 10px 26px rgba(11, 27, 63, .12); transform: translateY(-1px); }
.dcard-media { position: relative; display: block; aspect-ratio: 16 / 8.4; background: #EEF2F8; overflow: hidden; }
.dcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dcard-initial { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 44px; font-weight: 900; color: var(--red); }
.dcard-photo-note { position: absolute; left: 8px; bottom: 8px; padding: 1px 7px; border-radius: 999px; background: rgba(11, 27, 63, .62); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .2px; }
.dcard-demo { position: absolute; left: 8px; top: 8px; }
.dcard-demo .demo-chip { background: #fff; }
.dcard-km { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--navy); font-size: 11.5px; font-weight: 900; box-shadow: 0 1px 4px rgba(11, 27, 63, .18); }
.dcard-km .ico { color: var(--red); }
.dcard-body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dcard-name { margin: 0; font-size: 16px; font-weight: 900; line-height: 1.25; letter-spacing: -.2px; }
.dcard-name a { color: var(--navy); }
.dcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; font-size: 12.5px; }
.dcard-meta:empty { display: none; }
.dchip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #F1F4F9; color: #34445F; }
.dchip.ok { background: var(--in-soft); color: var(--in-text); }
.dchip.warn { background: #FFF4D6; color: #7A5300; }
.dcard-rating { display: inline-flex; align-items: center; gap: 3px; color: #5A6680; }
.dcard-rating .ico { color: var(--gold); fill: var(--gold); }
.dcard-rating b { color: var(--navy); }
.dcard-norating { color: #8792A8; font-size: 12px; }
.dcard-open { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #8792A8; }
.dcard-open i { width: 7px; height: 7px; border-radius: 50%; background: #B9C3D6; }
.dcard-open.on { color: var(--in-text); }
.dcard-open.on i { background: #1DB954; box-shadow: 0 0 0 3px rgba(29, 185, 84, .18); }
.dcard-loc { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 12.5px; color: #5A6680; min-width: 0; }
.dcard-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.dcard-tags span { padding: 2px 8px; border-radius: 6px; background: #F3F5FA; color: #34445F; font-size: 11.5px; font-weight: 700; }
.dcard-tags .more { background: transparent; color: #8792A8; }
.dcard-price { margin: 2px 0 0; display: flex; align-items: baseline; gap: 4px; font-size: 12.5px; color: #5A6680; }
.dcard-price b { font-size: 18px; font-weight: 900; color: var(--red); }
.dcard-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.dbtn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 34px; padding: 0 11px; border-radius: 8px; border: 1px solid #DFE5EF; background: #fff; color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.dbtn:hover { text-decoration: none; border-color: #B9C3D6; }
.dbtn.wa .ico { color: #1A9E4B; }
.dbtn.red { background: var(--red); border-color: var(--red); color: #fff; flex: 1; }
.dbtn.red:hover { background: var(--red-dark); }
.dbtn.off { color: #A9B2C3; background: #F7F9FC; cursor: not-allowed; }
.dbtn.sm { height: 30px; }

@media (min-width: 901px) {
  .dir-sheet { position: sticky; top: 82px; }
  .dir-panel { max-height: calc(100vh - 98px); display: flex; flex-direction: column; }
  .dir-form { overflow-y: auto; flex: 1; scrollbar-width: thin; }
}
@media (max-width: 1100px) { .dir-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 20px; } .dir-wrap { padding: 0 20px; } }
@media (max-width: 900px) {
  .dir-wrap { padding: 0 16px; }
  .dir-head { padding: 12px 0 10px; }
  .dir-tabs { display: flex; margin-top: 10px; }
  .dir-tabs a { flex: 1; justify-content: center; padding: 7px 8px; font-size: 13px; }
  .dir-lead { font-size: 13px; }
  .dir-main { padding-top: 0; }
  .dir-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dir-sheet { position: sticky; top: 0; z-index: 15; margin: 0 -16px; padding: 10px 16px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid #EDF0F6; }
  .dir-sheet-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--navy); color: var(--navy); font-size: 14px; font-weight: 900; cursor: pointer; background: #fff; }
  .dir-sheet[open] > .dir-sheet-btn { background: var(--navy); color: #fff; }
  .dir-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; }
  /* Without JavaScript the open panel is simply part of the page. */
  .dir-sheet[open] > .dir-panel { margin-top: 10px; }
  /* With JavaScript it is a bottom sheet over the page and the tab bar. */
  .dir-js .dir-sheet[open] { z-index: 50; }   /* above the tab bar: the sticky bar is the sheet's stacking context */
  .dir-js .dir-sheet[open] > .dir-backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(11, 27, 63, .45); }
  .dir-js .dir-sheet[open] > .dir-panel { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; margin: 0; max-height: 86vh; display: flex; flex-direction: column;
    border-radius: 18px 18px 0 0; border: 0; box-shadow: 0 -10px 40px rgba(11, 27, 63, .25); animation: dir-up .2s ease-out; padding-bottom: env(safe-area-inset-bottom); }
  .dir-js .dir-sheet[open] .dir-form { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
  .dir-js .dir-x { display: inline-flex; }
  .dir-js.dir-sheet-open, .dir-js.dir-sheet-open body { overflow: hidden; }
  .dir-panel-foot .dbtn { height: 46px; font-size: 15px; }
  .dir-toolbar { margin-top: 12px; }
  .dir-count { font-size: 16px; flex-basis: 100%; }
  .dir-sort { flex: 1; }
  .dir-sort select { flex: 1; }
  .dgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dcard { flex-direction: row; }
  .dcard-media { flex: 0 0 34%; aspect-ratio: auto; min-height: 100%; }
  .dcard-body { padding: 10px 11px 11px; min-width: 0; }
  .dcard-name { font-size: 15px; }
  .dcard-actions { flex-wrap: wrap; }
  .dcard-actions .dbtn { height: 32px; padding: 0 9px; font-size: 12.5px; }
  .dcard-tags span:nth-child(n+3):not(.more) { display: none; }
}
@media (min-width: 620px) and (max-width: 900px) { .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dcard { flex-direction: column; } .dcard-media { aspect-ratio: 16 / 8.4; flex: none; } }
@keyframes dir-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dir-js .dir-sheet[open] > .dir-panel { animation: none; } .dcard { transition: none; } }

/* ---- vendor store (Task 7) ---- */
.store-head { padding: 24px 0; border-bottom: 1px solid var(--line); }
.store-head-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.store-cover { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.store-cover img { width: 100%; height: 100%; object-fit: cover; }
.store-initial { font-size: 72px; font-weight: 800; color: var(--red); }
.store-id h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; }
.store-meta, .store-rating, .store-addr { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 8px; font-size: 14px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 8px; }
.store-tabs { position: sticky; top: 68px; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.store-tabs .wrap { display: flex; gap: 18px; overflow-x: auto; white-space: nowrap; }
.store-tabs a { display: inline-block; padding: 12px 0; font-weight: 600; font-size: 14px; color: var(--t2); }
.review { border-bottom: 1px solid var(--line); padding: 14px 0; }
.review p { margin: 0 0 6px; }
.review-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stars { color: var(--gold); letter-spacing: 1px; }
.review-reply { background: var(--paper); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
table.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
table.hours th, table.hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.seller dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.seller dt { color: var(--t3); }
.seller dd { margin: 0; }
@media (max-width: 820px) { .store-head-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .store-tabs { top: 116px; } }

/* ---- search (Task 8) ---- */
.intent { margin-bottom: 22px; }
.intent-h { font-size: 17px; margin: 0 0 8px; }
.intent .chips { margin-bottom: 6px; align-items: center; }
.result-group { margin-bottom: 28px; }

/* ---- home (Task 9) ---- */
.hero-mk { background: linear-gradient(180deg, #fff 0%, #FFF5F5 100%); padding: 28px 0 20px; }
.hero-mk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.hero-mk h1 { color: var(--navy); font-size: clamp(32px, 5vw, 52px); letter-spacing: -1.4px; margin: 0 0 10px; }
.hero-mk h1 .red { color: var(--red); display: block; }
.hero-mk-points { font-weight: 700; font-size: clamp(16px, 2vw, 20px); color: var(--navy); margin: 0 0 6px; }
.hero-mk .lead { margin-bottom: 8px; }
.trust-row { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 14px; font-weight: 600; }
.trust-row li { display: flex; gap: 8px; align-items: center; }
.trust-row .ico { color: var(--red); }
.hero-mk-art { margin: 0; position: relative; }
.hero-mk-art img { width: 100%; border-radius: 16px; display: block; }
.hero-mk-art figcaption { font-size: 12px; color: var(--t3); margin-top: 6px; }
.hero-offer { position: absolute; right: 12px; top: 12px; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(11, 27, 63, .18); display: grid; gap: 4px; max-width: 240px; }
.hero-offer strong { color: var(--red); font-size: 22px; line-height: 1.1; }
.finder { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 34px rgba(11, 27, 63, .08); padding: 14px 16px 10px; }
.cat-bar { border: 0; margin: 0 0 12px; padding: 0 0 10px; display: flex; gap: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); min-width: 0; max-width: 100%; }
.cat-chip { flex: 0 0 auto; position: relative; }
.cat-chip input, .veh-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cat-chip span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--t1); min-width: 96px; text-align: center; cursor: pointer; }
.cat-chip input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.cat-chip input:focus-visible + span, .veh-chip input:focus-visible + span { outline: 2px solid var(--navy); }
.cat-chip.more span { color: var(--t2); }
.cat-chip.more:hover { text-decoration: none; }
.finder-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.veh-class { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.veh-class legend { font-size: 12.5px; color: var(--t3); margin-bottom: 4px; padding: 0; }
.veh-chip { position: relative; }
.veh-chip span { display: inline-flex; gap: 6px; align-items: center; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.veh-chip input:checked + span { border-color: var(--red); color: var(--red-dark); background: var(--red-soft); }
.veh-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.veh-selects[hidden], .veh-free[hidden] { display: none; }
.veh-selects label span, .veh-free span { display: block; font-size: 12.5px; color: var(--t3); margin-bottom: 4px; }
.finder-go { white-space: nowrap; min-height: 48px; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.how-steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.how-steps li { display: flex; gap: 12px; }
.how-n { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.how-steps h3 { font-size: 16px; margin: 0 0 2px; }
.how-steps p { margin: 0; font-size: 14px; color: var(--t2); }
.app-band { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.app-band h2 { font-size: 22px; margin: 0 0 6px; }
.app-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 900px) {
  .hero-mk-grid, .how-grid { grid-template-columns: 1fr; }
  .finder-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .how-steps, .trust-row, .veh-selects { grid-template-columns: 1fr; }
  .hero-offer { position: static; margin-top: 10px; max-width: none; }
}

/* ---- partner (Task 11) ---- */
.partner-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.partner-types { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 14.5px; }
.partner-types li { display: flex; gap: 6px; align-items: center; }
.partner-types .ico { color: var(--in); }
.how-steps.one-col { grid-template-columns: 1fr; margin-bottom: 18px; }
.partner-note { margin: 0 0 18px; }
.partner-rules { padding-left: 18px; color: var(--t2); font-size: 14.5px; }
.partner-rules li { margin-bottom: 6px; }
@media (max-width: 900px) { .partner-grid, .partner-types { grid-template-columns: 1fr; } }

/* No photo yet: on a phone a 16:9 grey box with one letter pushed each card to ~430px, so a results
   list showed one business per screen. The letter keeps a short band instead. */
@media (max-width: 640px) {
  .vcard-media:has(.vcard-initial) { aspect-ratio: auto; height: 76px; }
  .vcard-media:has(.vcard-initial) .vcard-initial { font-size: 34px; }
}
.pkg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.pkg-actions .btn { margin-top: 0; min-height: 44px; }
.dcard-off-note { margin: 6px 0 0; font-size: 12px; color: var(--t3, #8792A8); }
.store-consent { margin: 8px 0 0; }
@media (max-width: 640px) {
  .store-cover:has(.store-initial) { aspect-ratio: auto; height: 96px; }
}

/* Phone: a long category list is one swipeable row instead of six rows of chips above the first offer. */
@media (max-width: 640px) {
  .chip { min-height: 40px; }
  .chips-scroll { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 2px 16px 6px; scrollbar-width: none; scroll-padding: 0 16px; }
  .chips-scroll::-webkit-scrollbar { display: none; }
  .chips-scroll .chip { flex: 0 0 auto; white-space: nowrap; }
}
.chips-scroll { position: relative; }
