/* Market-style discovery for the local demo. Original SHUTTR layout and copy. */
body { background: #fffdfa; }
.demo-bar { padding: 5px 14px; font-size: .7rem; }
.site-header {
  max-width: 1640px; display: grid; grid-template-columns: auto minmax(165px,230px) minmax(260px,1fr) auto auto;
  align-items: center; gap: clamp(12px,2vw,34px); padding: 16px 3%; border-bottom: 0;
}
.site-header .brand { white-space: nowrap; font-size: 1.95rem; }
.site-header .brand small { font-size: .55rem; margin-top: 7px; letter-spacing: .1em; }
.site-header .location { min-width: 0; text-align: left; }
.site-header .location strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-chevron { margin-left: auto; font-size: 1.3rem; }
.site-header .search { min-width: 0; margin: 0; padding: 12px 15px; background: #f8f6f2; border-color: #e9e6df; box-shadow: none; }
.site-header .search input { font-size: .95rem; }
.site-header .search kbd { display: none; }
.site-header .text-button { margin: 0; white-space: nowrap; }
.site-header .bag-button { white-space: nowrap; }
.category-bar { border-top: 1px solid #f0e8da; border-bottom: 1px solid #e9e3d7; background: #fffdfa; position: sticky; top: 0; z-index: 7; }
.category-bar .categories { max-width: 1640px; margin: auto; padding: 0 3%; gap: clamp(14px,2.5vw,38px); overflow-x: auto; scrollbar-width: none; }
.category-bar .categories::-webkit-scrollbar { display: none; }
.category-bar .category {
  flex: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent;
  padding: 12px 3px 9px; color: #55493e; font-size: .92rem; box-shadow: none; gap: 7px;
}
.category-bar .category:hover { border-color: #ead6ad; }
.category-bar .category.active { color: var(--sienna); border-color: var(--clay); background: transparent; box-shadow: none; }
.category-bar .category span.category-count { background: #f4ead7; color: #735441; padding: 1px 6px; font-size: .68rem; }
.category-nav-image { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; }
.category-nav-icon { width: 23px; height: 23px; display: grid; place-items: center; color: var(--clay); font-size: 1.2rem; }
main { max-width: 1640px; padding: 0 3%; }
.intro { margin: 22px 0 18px; padding: 0; border-radius: 24px; min-height: 315px; grid-template-columns: 1.25fr 1fr; background: linear-gradient(112deg,#f5deb3 0%,#f5deb3 55%,#edcc98 100%); }
.intro-copy { padding: clamp(25px,2.7vw,40px); }
.intro .eyebrow { margin-bottom: 14px; }
.intro h1 { font-size: clamp(2.7rem,4.2vw,4.25rem); }
.intro-text { max-width: 510px; line-height: 1.45; margin: 11px 0 14px; }
.hero-cta { display: inline-flex; align-items: center; gap: 18px; background: var(--ink); color: #fff; border-radius: 13px; padding: 11px 16px; font-weight: 750; }
.hero-cta:hover { background: var(--sienna); }
.hero-smallprint { margin-top: 11px; font-size: .72rem; color: #6a5140; }
.hero-photo { border-radius: 0 24px 24px 0; min-height: 315px; }
.hero-photo img { object-position: center; }
.photo-note { bottom: 18px; right: 18px; left: auto; }
.promo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 35px; }
.promo-card { position: relative; min-width: 0; min-height: 224px; overflow: hidden; border-radius: 22px; padding: 26px; display: flex; align-items: flex-start; }
.promo-card>div { position: relative; z-index: 1; width: 60%; }
.promo-card h2 { font-size: clamp(1.25rem,2.1vw,2rem); letter-spacing: -.05em; line-height: 1.1; margin: 9px 0; }
.promo-card p:not(.promo-kicker) { font-size: .85rem; line-height: 1.4; max-width: 270px; }
.promo-card .promo-kicker { font-size: .65rem; font-weight: 800; letter-spacing: .11em; }
.promo-card button { margin-top: 15px; padding: 8px 13px; min-height: 37px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 750; }
.promo-card button span { margin-left: 5px; }
.promo-card>img { position: absolute; right: -12px; bottom: -26px; width: 47%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 16px 13px #402e2540); }
.promo-repair { background: #f8e6d3; }
.promo-repair>img { right: 15px; bottom: -38px; width: 41%; height: 110%; transform: rotate(-13deg); }
.promo-plywood { background: #e9e1c1; }
.promo-plywood>img { right: 15px; width: 44%; transform: rotate(-8deg); }
.category-discovery { scroll-margin-top: 88px; margin: 0 0 38px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 17px; }
.section-heading .eyebrow { color: var(--sienna); font-size: .7rem; font-weight: 800; margin-bottom: 3px; }
.section-heading h2 { font-size: clamp(1.55rem,2.4vw,2.2rem); letter-spacing: -.055em; line-height: 1.15; }
.section-heading>p { color: var(--muted); font-size: .83rem; }
.category-tiles { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: clamp(9px,1.4vw,18px); }
.category-tile { min-width: 0; padding: 0 0 4px; min-height: 0; text-align: center; border: 0; background: transparent; display: flex; flex-direction: column; align-items: stretch; }
.category-tile-image { height: clamp(105px,12vw,170px); border-radius: 18px; background: #f5f3ee; display: grid; place-items: center; overflow: hidden; transition: background-color .18s,transform .18s; }
.category-tile:hover .category-tile-image { background: #f7e6c6; transform: translateY(-3px); }
.category-tile-image img { width: 85%; height: 85%; object-fit: contain; mix-blend-mode: multiply; }
.category-tile strong { margin-top: 10px; font-size: .98rem; line-height: 1.2; }
.category-tile small { margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.3; }
.category-tile-request .category-tile-image { background: #f5deb3; }
.category-tile-request .category-tile-image>span { background: var(--sienna); color: #fff; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; font-size: 2.7rem; line-height: 1; }
.store-layout { display: block; scroll-margin-top: 90px; }
.bag-panel { display: none; }
.shop-heading { margin: 0; }
.catalogue-controls { margin: 10px 0 22px; }
.catalogue-controls p { font-size: .82rem; }
.product-sections { gap: 31px; }
.category-section { scroll-margin-top: 92px; }
.category-section-heading { align-items: end; margin-bottom: 12px; }
.category-section-heading h3 { font-size: 1.4rem; }
.section-see-all { border: 0; background: none; color: var(--clay); padding: 7px 2px; font-size: .83rem; font-weight: 750; white-space: nowrap; }
.section-see-all:hover { text-decoration: underline; }
.product-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); grid-template-columns: none; gap: 11px; overflow-x: auto; padding: 0 2px 14px; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: thin; }
.category-section:has(.product:nth-child(6)) .product-grid { grid-auto-columns: minmax(170px,calc((100% - 55px)/6)); }
.product { scroll-snap-align: start; border-radius: 15px; box-shadow: none; }
.product:hover { transform: translateY(-2px); box-shadow: 0 7px 19px #402e2514; }
.product-topline { padding: 8px 10px; font-size: .67rem; }
.product-photo, .product-photo img { height: 125px; }
.product-photo { margin: 0 7px; background: #f9f8f5; }
.product-photo img { padding: 9px; mix-blend-mode: multiply; }
.photo-caption { padding: 5px 10px 0; font-size: .67rem; line-height: 1.2; }
.product-body { padding: 9px 11px 11px; }
.brand-label { margin-bottom: 3px; font-size: .66rem; }
.product h3 { font-size: .91rem; line-height: 1.25; min-height: 2.3em; }
.product .spec { font-size: .73rem; line-height: 1.35; margin: 5px 0; min-height: 2.6em; }
.product-unit { font-size: .72rem; margin: 0 0 7px; }
.request-status { font-size: .64rem; padding: 3px 7px; }
.details-button { font-size: .7rem; padding: 5px 0; }
.product-bottom { gap: 5px; padding-top: 8px; }
.price { font-size: 1.06rem; }
.demo-price-label { margin-top: 1px; font-size: .62rem; }
.add { min-width: 59px; min-height: 37px; padding: 5px 8px; font-size: .75rem; }
.quantity button { min-height: 37px; min-width: 27px; }
.request-card { margin-top: 28px; }
.bag-dialog { width: min(460px,100%); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border-radius: 25px 0 0 25px; }
.bag-dialog .bag-title { display: none; }
.bag-dialog .dialog-heading { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
@media(max-width: 1120px) {
  .site-header { grid-template-columns: auto minmax(130px,200px) minmax(220px,1fr) auto; }
  .site-header .text-button { display: none; }
  .category-tiles { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .category-tile-image { height: 150px; }
  .product-grid { grid-auto-columns: minmax(160px,calc((100% - 44px)/5)); }
}
@media(max-width: 800px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; padding: 11px 4% 12px; }
  .site-header .brand { grid-column: 1; grid-row: 1; font-size: 1.7rem; }
  .site-header .brand-mark { width: 33px; height: 35px; font-size: 24px; }
  .site-header .location { grid-column: 1 / -1; grid-row: 2; order: 0; flex-basis: auto; width: fit-content; padding: 5px 0; }
  .site-header .location small { display: inline; font-size: .62rem; }
  .site-header .location strong { font-size: .83rem; }
  .site-header .search { grid-column: 1 / -1; grid-row: 3; padding: 10px 12px; margin: 2px 0 0; }
  .site-header .bag-button { grid-column: 2; grid-row: 1; margin: 0; padding: 8px 10px; }
  .location-chevron { margin-left: 2px; }
  .category-bar .categories { margin: 0; padding: 0 4%; gap: 18px; }
  .category-bar .category { padding: 9px 0 7px; font-size: .78rem; }
  .category-bar .category span.category-count { display: none; }
  .category-nav-image { width: 19px; height: 19px; }
  main { padding: 0 4%; }
  .intro { grid-template-columns: minmax(0,1fr) 33%; min-height: 0; margin: 14px 0 11px; border-radius: 17px; }
  .intro-copy { padding: 17px 12px 17px 16px; }
  .intro .eyebrow { font-size: .59rem; padding: 5px 7px; margin-bottom: 9px; }
  .intro h1 { font-size: clamp(1.7rem,6.5vw,2.65rem); }
  .intro-text { display: block; font-size: .74rem; line-height: 1.3; margin: 8px 0; }
  .hero-cta { padding: 8px 10px; font-size: .7rem; gap: 5px; border-radius: 9px; }
  .hero-smallprint { display: none; }
  .hero-photo { min-height: 210px; border-radius: 0 17px 17px 0; }
  .photo-note { display: none; }
  .promo-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px,82%); grid-template-columns: none; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 25px; scroll-snap-type: x proximity; }
  .promo-card { min-height: 180px; padding: 16px; border-radius: 17px; scroll-snap-align: start; }
  .promo-card h2 { font-size: 1.18rem; }
  .promo-card p:not(.promo-kicker) { font-size: .71rem; }
  .promo-card button { font-size: .68rem; min-height: 33px; padding: 7px 9px; }
  .category-discovery { margin-bottom: 28px; scroll-margin-top: 66px; }
  .section-heading h2 { font-size: 1.5rem; }
  .section-heading>p { display: none; }
  .category-tiles { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 9px; }
  .category-tile-image { height: clamp(94px,28vw,150px); border-radius: 13px; }
  .category-tile strong { font-size: .8rem; margin-top: 7px; }
  .category-tile small { font-size: .62rem; }
  .category-tile-request .category-tile-image>span { width: 55px; height: 55px; font-size: 2.1rem; }
  .store-layout { scroll-margin-top: 65px; }
  .shop-heading h2 { font-size: 1.5rem; }
  .shop-heading .eyebrow { display: block; font-size: .65rem; }
  .shop-heading .outline-button { font-size: .72rem; padding: 7px 9px; }
  .catalogue-controls { margin: 10px 0 15px; }
  .product-sections { gap: 25px; }
  .category-section { scroll-margin-top: 68px; }
  .category-section-heading h3 { font-size: 1.2rem; }
  .product-grid, .category-section:has(.product:nth-child(6)) .product-grid { grid-auto-columns: minmax(153px,44%); gap: 9px; margin-right: -4vw; padding-right: 4vw; }
  .product-photo, .product-photo img { height: 118px; }
  .product-bottom { flex-wrap: nowrap; }
  .product-bottom>.add, .product-bottom>.quantity { width: auto; }
  .bag-dialog { width: 100%; height: auto; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .how-section ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 380px) {
  .intro { grid-template-columns: minmax(0,1fr) 29%; }
  .intro-copy { padding: 13px 10px 13px 13px; }
  .intro h1 { font-size: 1.57rem; }
  .intro-text { font-size: .67rem; }
  .hero-photo { min-height: 180px; }
  .product-grid, .category-section:has(.product:nth-child(6)) .product-grid { grid-auto-columns: minmax(144px,58%); grid-template-columns: none; }
  .how-section ol { grid-template-columns: 1fr; }
}
