/* Homepage presentation. Catalogue, cart and account behavior remain in app.js. */
body[data-page="home"] { font-family: Arial, Helvetica, sans-serif; --home-unit: clamp(1px,.09765625vw,1.37px); }
body[data-page="home"] .header-main { min-height: 74px; padding-block: 4px; }
body[data-page="home"] .header-main>.brand img { width: 180px; height: 60px; }
body[data-page="home"] .main-nav { height: 39px; }
body[data-page="home"] .hero-wrap { padding-top: 12px; background: var(--paper,#fff); }
body[data-page="home"] .home-hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(340 * var(--home-unit)); padding: calc(27 * var(--home-unit)) calc(42 * var(--home-unit)); border-radius: 24px; color: #fff; background: linear-gradient(110deg,#033b2b,#064a32 58%,#197348); }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background: radial-gradient(ellipse at 2% 120%,#0a7047 0 35%,transparent 35.2%),radial-gradient(ellipse at 98% 0%,#157b4f 0 42%,transparent 42.2%); }
.home-hero-copy { position: relative; z-index: 2; width: 49%; }
.home-eyebrow { margin: 0 0 10px; font-size: 11px; line-height: 1.5; letter-spacing: .13em; font-weight: 600; color: #d7eadc; }
body[data-page="home"] #hero-title { margin: 0; font-family: inherit; font-size: calc(51 * var(--home-unit)); line-height: .95; letter-spacing: -.045em; font-weight: 700; color: #fff; }
body[data-page="home"] #hero-title>span { position: relative; display: inline-block; color: #9be0b5; }
.home-underline { display: block; position: absolute; left: 0; bottom: -15px; width: 100%; height: 18px; fill: none; stroke: #9be0b5; stroke-width: 3; stroke-linecap: round; }
.home-hero-intro { margin: 27px 0 0; max-width: 450px; color: #eff8f1; font-size: calc(14 * var(--home-unit)); line-height: 1.5; }
.home-hero-actions { display: flex; gap: 14px; margin-top: 19px; }
body[data-page="home"] .home-hero-actions .button { min-height: 46px; min-width: 145px; border-radius: 8px; padding: 11px 18px; font-size: 14px; gap: 12px; }
body[data-page="home"] .home-browse-button { background: #fff; color: #123e2d; border: 1px solid #fff; }
body[data-page="home"] .home-browse-button:hover { background: #e8f5ed; }
body[data-page="home"] .home-sell-button { color: #fff; border: 1px solid #86b89a; background: transparent; }
body[data-page="home"] .home-sell-button:hover { background: #ffffff14; border-color: #fff; }
.home-hero-art { position: absolute; top: calc(13 * var(--home-unit)); right: calc(8 * var(--home-unit)); width: 56%; height: calc(267 * var(--home-unit)); object-fit: contain; pointer-events: none; mask-image: linear-gradient(to right,transparent,#000 6% 98%,transparent),linear-gradient(to bottom,transparent,#000 3% 97%,transparent); mask-composite: intersect; }
.home-hero-benefits { position: absolute; right: 3%; bottom: 23px; display: flex; align-items: center; gap: calc(23 * var(--home-unit)); max-width: 56%; }
.home-hero-benefits>span { display: flex; align-items: center; gap: 8px; color: #f1f8f1; font-size: 12px; line-height: 1.4; }
.home-hero-benefits .icon { width: 24px; height: 24px; color: #c6ebd3; flex-shrink: 0; }
body[data-page="home"] .categories-section { padding-block: 29px 0; }
body[data-page="home"] .section-heading { margin-bottom: 16px; }
body[data-page="home"] .section-heading h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.035em; }
body[data-page="home"] .categories-section .eyebrow,
body[data-page="home"] .finds-heading .eyebrow { display: none; }
body[data-page="home"] .category-grid:not(.sub) { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 14px; }
body[data-page="home"] .category-grid:not(.sub) .category-card { padding: 0 0 13px; min-width: 0; border-radius: 14px; border: 1px solid #dfeae1; background: #eff7f0; gap: 0; overflow: hidden; }
body[data-page="home"] .category-grid:not(.sub) .category-icon { margin: 0 0 8px; width: 100%; height: auto; aspect-ratio: 210/116; border: 0; border-radius: 0; background-color: #eff7f0; background-size: contain; background-repeat: no-repeat; background-position: center; }
body[data-page="home"] .category-grid:not(.sub) .category-icon picture { display: block; width: 100%; height: 100%; aspect-ratio: auto; }
body[data-page="home"] .category-grid:not(.sub) .category-icon img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
/* This existing collage has a baked-in blue caption. Show its artwork above
   the live category label; a replacement upload uses the normal image rules. */
body[data-page="home"] .category-grid:not(.sub) [data-category="phones-and-earbuds"] .category-icon { position: relative; }
body[data-page="home"] .category-grid:not(.sub) img[src*="01m5t01yqbmvc40et11hc33ajn"] { position: absolute; top: 0; left: 0; width: 100%; height: auto; padding: 0; clip-path: inset(0 0 25% 0); }
/* Only the four original top-level categories use the supplied illustrations.
   Uploaded artwork for subcategories and future categories remains available. */
body[data-page="home"] .category-grid:not(.sub) [data-category="cloths-shoes"] .category-icon { background-image: url('/assets/home/clothing-v11.webp'); }
body[data-page="home"] .category-grid:not(.sub) [data-category="computers-accessories"] .category-icon { background-image: url('/assets/home/computers-v11.webp'); }
body[data-page="home"] .category-grid:not(.sub) [data-category="sport-fitness"] .category-icon { background-image: url('/assets/home/sports-v11.webp'); }
body[data-page="home"] .category-grid:not(.sub) [data-category="office-home-furniture"] .category-icon { background-image: url('/assets/home/furniture-v11.webp'); }
body[data-page="home"] .category-grid:not(.sub) :is([data-category="cloths-shoes"],[data-category="computers-accessories"],[data-category="sport-fitness"],[data-category="office-home-furniture"]) .category-icon>* { visibility: hidden; }
body[data-page="home"] .category-grid:not(.sub) .category-name { color: #173b29; font-size: 14px; line-height: 1.25; padding-inline: 8px; min-height: 35px; display: flex; align-items: center; justify-content: center; }
body[data-page="home"] .category-grid:not(.sub) .category-count { display: block; color: #627568; font-size: 11px; margin-top: 4px; }
body[data-page="home"] .finds-section { padding-top: 30px; padding-bottom: 0; }
body[data-page="home"] .finds-heading .section-subtitle { font-size: 13px; margin-top: 7px; }
body[data-page="home"] .listing-toolbar { margin: 0 0 17px; padding: 0; border: 0; gap: 12px; flex-wrap: wrap; }
body[data-page="home"] .listing-tabs { gap: 7px; flex-wrap: wrap; }
body[data-page="home"] .listing-tabs .tab { border: 1px solid var(--line,#dde6df); border-radius: 8px; min-height: 36px; padding: 8px 13px; font-size: 12px; background: var(--paper,#fff); color: var(--muted,#607368); }
body[data-page="home"] .listing-tabs .tab.active { background: #e6f3e9; border-color: #c4dfcc; color: #115c34; }
body[data-page="home"] .listing-tabs .tab::after { display: none; }
body[data-page="home"] .sort-control { margin-left: auto; font-size: 11px; }
body[data-page="home"] .sort-control select { font-size: 12px; max-width: 190px; }
body[data-page="home"] .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
body[data-page="home"] .product-card { display: flex; flex-direction: column; border: 1px solid var(--line,#dce5dd); border-radius: 14px; overflow: hidden; box-shadow: none; background: var(--paper,#fff); padding: 6px; }
body[data-page="home"] .product-photo { aspect-ratio: 1.5; border-radius: 9px; background: #fff; }
body[data-page="home"] .product-photo img { object-fit: contain; padding: 8px; }
body[data-page="home"] .product-body { display: flex; flex-direction: column; flex: 1; padding: 10px 9px 8px; }
body[data-page="home"] .product-price { font-size: 24px; line-height: 1.2; letter-spacing: -.04em; color: var(--ink,#152c1d); }
body[data-page="home"] .product-price small { font-size: 11px; letter-spacing: 0; margin-right: 5px; }
body[data-page="home"] .product-title { font-size: 13px; line-height: 1.4; font-weight: 500; min-height: 37px; margin-top: 6px; color: var(--text,#344c3c); }
body[data-page="home"] .product-attributes { gap: 7px; margin-top: 9px; font-size: 11px; }
body[data-page="home"] .product-location { white-space: nowrap; }
body[data-page="home"] .product-bottom { font-size: 10px; gap: 5px; margin-top: 9px; padding-top: 0; border: 0; }
body[data-page="home"] .product-cart-button { margin-top: 12px; min-height: 37px; padding: 8px; border-radius: 7px; font-size: 12px; }
body[data-page="home"] .save-item { top: 9px; right: 9px; width: 34px; height: 34px; border: 1px solid #e0e8e1; background: #ffffffed; color: #617569; }
body[data-page="home"] .save-item.saved { color: #bb3848; }
body[data-page="home"] .listing-bottom { border: 0; padding-top: 19px; margin-top: 0; padding-bottom: 0; }
body[data-page="home"] .listing-bottom p { font-size: 12px; max-width: 760px; }
body[data-page="home"] .listing-bottom>.button { display: none; }
body[data-page="home"] .home-selling { margin-top: 33px; padding: 27px 32px; display: grid; grid-template-columns: .95fr 1.25fr; gap: 22px; align-items: center; border-radius: 22px; background: linear-gradient(100deg,#e9f5eb,#edf8f0); }
.home-selling-intro { display: flex; align-items: center; gap: 22px; min-width: 0; }
.home-price-tag { width: 133px; height: 119px; flex-shrink: 0; object-fit: contain; mix-blend-mode: multiply; }
.home-selling-intro h2 { font-size: 30px; line-height: 1.05; letter-spacing: -.04em; color: #193d29; }
.home-selling-intro p { font-size: 13px; margin-top: 8px; color: #526a59; }
body[data-page="home"] .home-selling-intro .button { font-size: 12px; min-height: 40px; padding: 10px 14px; border-radius: 7px; margin-top: 12px; background: #08713c; color: #fff; }
.home-selling-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; margin: 0; padding: 0; }
.home-selling-steps li { padding: 4px 12px 5px 21px; border-left: 1px solid #ccdfd2; min-width: 0; }
.home-step-top { display: flex; gap: 9px; align-items: center; color: #386c47; margin-bottom: 15px; }
.home-step-top>span:first-child { font-size: 20px; font-weight: 700; color: #82ad8e; }
.home-step-top .icon { width: 25px; height: 25px; }
.home-selling-steps h3 { font-size: 14px; line-height: 1.3; color: #23432e; }
.home-selling-steps p { font-size: 12px; line-height: 1.5; color: #526a59; margin-top: 6px; }
body[data-page="home"] .local-info { margin-top: 20px; margin-bottom: 30px; padding: 27px 0 0; border-top: 1px solid var(--line,#dde6df); display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; }
body[data-page="home"] .local-info .eyebrow { font-size: 9px; }
body[data-page="home"] .local-info h2 { font-size: 22px; line-height: 1.15; letter-spacing: -.03em; }
body[data-page="home"] .local-info p,body[data-page="home"] .local-info address { font-size: 12px; line-height: 1.6; }
body[data-page="home"] .local-info-grid { padding: 0; gap: 26px; }
body[data-page="home"] .local-info-grid h3 { font-size: 16px; }
body[data-page="home"] .local-info .text-link { font-size: 12px; }
body[data-page="home"].category-view .hero-wrap { display: none; }
@media (max-width:1100px) {
  .home-hero-benefits>span { font-size: 10px; gap: 6px; }
  .home-hero-benefits .icon { width: 21px; height: 21px; }
  body[data-page="home"] .home-hero-actions .button { min-width: 130px; font-size: 13px; padding-inline: 13px; }
  body[data-page="home"] .home-selling { padding: 24px; gap: 18px; }
  .home-price-tag { width: 100px; height: 100px; }
  .home-selling-intro { gap: 14px; }
  .home-selling-intro h2 { font-size: 26px; }
  .home-selling-steps li { padding-inline: 15px 8px; }
}
@media (max-width:850px) {
  body[data-page="home"] .header-main { padding-block: 4px 12px; }
  body[data-page="home"] .home-hero { padding: 30px; min-height: 370px; }
  .home-hero-copy { width: 53%; }
  body[data-page="home"] #hero-title { font-size: 48px; }
  .home-eyebrow { font-size: 9px; }
  .home-hero-intro { font-size: 14px; }
  .home-hero-art { width: 52%; top: 12px; height: 270px; }
  .home-hero-benefits { max-width: none; left: 30px; right: 30px; justify-content: space-between; bottom: 20px; }
  .home-hero-benefits>span { font-size: 11px; }
  body[data-page="home"] .home-selling { grid-template-columns: 1fr; gap: 25px; }
  .home-selling-intro { justify-content: center; gap: 24px; }
  .home-selling-steps li:first-child { border-left: 0; }
  .home-selling-steps li { padding-inline: 20px; }
  body[data-page="home"] .local-info { grid-template-columns: 1fr; gap: 25px; }
  body[data-page="home"] .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  body[data-page="home"] .category-grid:not(.sub) .category-name { font-size: 12px; }
  body[data-page="home"] .category-grid:not(.sub) { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:600px) {
  body[data-page="home"] .header-main>.brand img { width: 172px; height: 58px; }
  body[data-page="home"] .hero-wrap { padding-top: 14px; }
  body[data-page="home"] .home-hero { min-height: 0; padding: 26px 22px 19px; border-radius: 20px; }
  .home-hero-copy { width: 100%; }
  .home-eyebrow { font-size: 10px; margin-bottom: 13px; }
  body[data-page="home"] #hero-title { font-size: clamp(43px,12vw,64px); line-height: .98; }
  .home-underline { bottom: -14px; height: 16px; }
  .home-hero-intro { max-width: 370px; margin-top: 26px; font-size: 14px; line-height: 1.6; }
  .home-hero-actions { gap: 10px; margin-top: 19px; }
  body[data-page="home"] .home-hero-actions .button { min-width: 0; flex: 1; min-height: 45px; padding: 10px 12px; font-size: 13px; gap: 8px; }
  body[data-page="home"] .home-hero-actions .icon { width: 17px; height: 17px; }
  .home-hero-art { position: relative; display: block; top: auto; right: auto; width: calc(100% + 22px); height: auto; aspect-ratio: 510/267; max-height: 280px; margin: 12px -11px 0; }
  .home-hero-benefits { position: static; max-width: none; gap: 10px; margin-top: 12px; padding-top: 17px; border-top: 1px solid #ffffff2e; align-items: flex-start; }
  .home-hero-benefits>span { flex: 1; display: flex; flex-direction: column; align-items: flex-start; font-size: 10px; line-height: 1.45; gap: 7px; }
  .home-hero-benefits .icon { width: 23px; height: 23px; }
  body[data-page="home"] .categories-section { padding-top: 25px; }
  body[data-page="home"] .section-heading { margin-bottom: 13px; gap: 12px; }
  body[data-page="home"] .section-heading h2 { font-size: 22px; }
  body[data-page="home"] #categories-link { font-size: 11px; gap: 5px; flex-shrink: 0; }
  body[data-page="home"] #categories-link .icon { width: 15px; }
  body[data-page="home"] .category-grid:not(.sub) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  body[data-page="home"] .category-grid:not(.sub) .category-card { border-radius: 12px; padding-bottom: 12px; }
  body[data-page="home"] .category-grid:not(.sub) .category-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 5px); justify-self: center; }
  body[data-page="home"] .category-grid:not(.sub) .category-name { font-size: 13px; min-height: 32px; display: flex; justify-content: center; align-items: center; }
  body[data-page="home"] .category-grid:not(.sub) .category-count { margin-top: 3px; font-size: 10px; }
  body[data-page="home"] .finds-section { padding-top: 26px; }
  body[data-page="home"] .finds-heading .section-subtitle { font-size: 12px; }
  body[data-page="home"] .filter-button { font-size: 12px; padding: 8px 10px; min-height: 40px; }
  body[data-page="home"] .listing-tabs { gap: 6px; width: 100%; }
  body[data-page="home"] .listing-tabs .tab { padding: 8px 10px; font-size: 11px; min-height: 36px; }
  body[data-page="home"] .sort-control { font-size: 11px; margin-top: 4px; }
  body[data-page="home"] .sort-control select { font-size: 12px; min-height: 38px; }
  body[data-page="home"] .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 10px; }
  body[data-page="home"] .product-card { border-radius: 12px; padding: 4px; }
  body[data-page="home"] .product-photo { aspect-ratio: 1.1; border-radius: 8px; }
  body[data-page="home"] .product-photo img { padding: 6px; }
  body[data-page="home"] .product-body { padding: 9px 5px 6px; }
  body[data-page="home"] .product-price { font-size: 21px; }
  body[data-page="home"] .product-price small { font-size: 10px; margin-right: 4px; }
  body[data-page="home"] .product-title { font-size: 12px; line-height: 1.4; min-height: 34px; }
  body[data-page="home"] .product-attributes { font-size: 10px; gap: 5px; }
  body[data-page="home"] .product-bottom { flex-wrap: wrap; gap: 4px; font-size: 9px; }
  body[data-page="home"] .product-cart-button { font-size: 11px; min-height: 39px; gap: 6px; }
  body[data-page="home"] .save-item { width: 30px; height: 30px; top: 6px; right: 6px; }
  body[data-page="home"] .save-item .icon { width: 16px; height: 16px; }
  body[data-page="home"] .listing-bottom { padding-top: 14px; }
  body[data-page="home"] .listing-bottom p { font-size: 11px; line-height: 1.6; }
  body[data-page="home"] .home-selling { margin-top: 27px; padding: 23px 18px; border-radius: 18px; gap: 24px; }
  .home-selling-intro { gap: 19px; }
  .home-selling-intro h2 { font-size: 28px; }
  .home-price-tag { width: 94px; height: 100px; }
  .home-selling-intro p { font-size: 12px; }
  .home-selling-steps li { padding-inline: 11px; }
  .home-selling-steps li:first-child { padding-left: 0; }
  .home-selling-steps li:last-child { padding-right: 0; }
  .home-step-top { gap: 7px; margin-bottom: 10px; }
  .home-step-top>span:first-child { font-size: 18px; }
  .home-step-top .icon { width: 21px; height: 21px; }
  .home-selling-steps h3 { font-size: 12px; }
  .home-selling-steps p { font-size: 11px; line-height: 1.5; }
  .home-selling-steps br { display: none; }
  body[data-page="home"] .local-info { margin-bottom: 25px; margin-top: 23px; padding-top: 23px; gap: 22px; }
  body[data-page="home"] .local-info-grid { grid-template-columns: 1fr; gap: 22px; }
  body[data-page="home"] .local-info-grid>div+div { border: 0; padding-left: 0; }
  body[data-page="home"] .local-info h2 { font-size: 22px; }
}
@media (max-width:350px) {
  body[data-page="home"] .home-hero { padding-inline: 17px; }
  body[data-page="home"] #hero-title { font-size: 43px; }
  .home-hero-intro { font-size: 13px; }
  body[data-page="home"] .home-hero-actions .button { font-size: 12px; padding-inline: 8px; }
  body[data-page="home"] .section-heading h2 { font-size: 20px; }
  body[data-page="home"] .product-price { font-size: 19px; }
  .home-selling-intro { gap: 12px; }
  .home-price-tag { width: 78px; }
  .home-selling-intro h2 { font-size: 25px; }
}
@media (prefers-color-scheme:dark) {
  body[data-page="home"] .category-grid:not(.sub) .category-card { border-color: #3c5344; background: #1b3024; }
  body[data-page="home"] .category-grid:not(.sub) .category-name { color: #e2f0e6; }
  body[data-page="home"] .category-grid:not(.sub) .category-count { color: #adc4b5; }
  body[data-page="home"] .listing-tabs .tab.active { background: #234631; border-color: #52735e; color: #b3e9c3; }
  body[data-page="home"] .home-selling { background: linear-gradient(100deg,#1c3527,#213c2c); }
  .home-selling-intro h2,.home-selling-steps h3 { color: #e2f2e6; }
  .home-selling-intro p,.home-selling-steps p { color: #b6cebe; }
  .home-selling-steps li { border-color: #476550; }
  .home-step-top { color: #b8e5c5; }
  .home-step-top>span:first-child { color: #8ab99a; }
  .home-price-tag { mix-blend-mode: normal; border-radius: 15px; }
}
