/* Storefront composition, product browsing and the product editor. */
:root { --wrap: 1320px; --sinhala: "Noto Sans Sinhala", "Nirmala UI", "Iskoola Pota"; }
body { background: var(--canvas); }
body { font-family: var(--font), var(--sinhala), Arial, sans-serif; }
.skip:not(:focus) { clip-path: inset(50%); }
.shell { width: min(var(--wrap),calc(100% - 72px)); }
.topbar { min-height: 58px; }
.topbar .brand { font-size: clamp(21px,2.12vw,32px); }
body[data-mode="store"] p { overflow-wrap: anywhere; }

.hero-home { width: min(var(--wrap),calc(100% - 72px)); min-height: 422px; margin: -58px auto 0; padding: 82px 26px 29px; border-radius: 0 0 18px 18px; }
.hero-home picture { border-radius: inherit; }
.hero-home picture img { object-position: 50% 57%; }
.hero-home::after {
  inset: 0;
  height: 100%;
  background: radial-gradient(ellipse at 50% 45%,#fff8e9b5 3%,#fff8e95c 36%,transparent 63%),
              linear-gradient(0deg,var(--canvas) 0%,transparent 18%);
}
.hero-home .hero-inner { width: min(620px,100%); margin: 0; }
.hero-home .hero-mark { width: 230px; height: 91px; margin: 0 0 5px; }
.hero-home .hero-word {
  font-family: Georgia, var(--display), var(--sinhala), serif;
  font-size: clamp(56px,5.5vw,83px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.047em;
  padding: 0 5px 7px;
  overflow-wrap: anywhere;
}
.hero-home .hero-tagline { font-size: 12px; letter-spacing: .21em; line-height: 1.5; }
.hero-home .hero-intro { max-width: 475px; font-size: 19px; line-height: 1.37; margin: 13px 0 19px; }
.hero-home .search-bar { width: min(530px,100%); padding: 5px 6px 5px 16px; box-shadow: 0 4px 15px #723c262a; }
.hero-home .search-bar input { font-size: 14px; }
.hero-home .search-bar .btn { min-height: 39px; padding-inline: 20px; }
.hero-home .hero-quick { margin-top: 14px; gap: 0; }
.hero-home .hero-quick span { font-size: 11px; padding-inline: 10px; }
.hero-home .hero-quick svg { width: 18px; height: 18px; color: #964020; }

.cat-band { margin-block: 3px 33px; }
.cat-band .categories { gap: 10px; }
.cat-band .category-tile { height: 91px; min-height: 0; display: grid; grid-template-columns: minmax(65px,54%) minmax(0,1fr); align-items: stretch; background: linear-gradient(125deg,#f6e4d2,var(--surface)); border-color: #ead6c5; }
.cat-band .category-image { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; mask-image: linear-gradient(90deg,#000 78%,transparent 100%); }
.cat-band .cat-label { display: grid; grid-template-rows: auto auto; align-content: center; justify-items: start; padding: 6px 6px 6px 3px; gap: 4px; font-size: clamp(11px,.94vw,14px); line-height: 1.17; margin: 0; }
.cat-band .cat-label strong { width: auto; overflow-wrap: anywhere; }
.cat-band .cat-label svg { width: 17px; height: 17px; }
.cat-band .cat-label svg:last-child { display: none; }

.shelf { display: block; margin-block: 0 33px; }
.shelf .section-intro { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 0 0 18px; }
.shelf .section-intro .btn { flex: 0 0 auto; min-height: 40px; }
.shelf .section-intro h2, .industry-band .section-intro h2 {
  font-family: var(--display), Georgia, serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(34px,4vw,56px);
  line-height: 1.01;
  letter-spacing: -.044em;
}
.shelf .section-intro h2 { font-style: italic; }
.shelf .section-intro p { max-width: 52ch; margin: 5px 0 0; font-size: 15px; line-height: 1.45; color: var(--mute); }
.shelf-track { grid-auto-columns: calc((100% - 3 * 18px)/4); gap: 18px; padding: 1px 1px 10px; }
.shelf-track .product-card { scroll-snap-align: start; border-color: #e8d3c2; box-shadow: 0 2px 5px #8b452311; }
.shelf-track .card-art, .shelf-track .product-image { aspect-ratio: 1.33; }
.shelf-track .card-info { padding: 12px 13px 15px; }
.shelf-track .card-info h3 { font-family: var(--display),Georgia,serif; font-weight: 700; font-size: clamp(19px,1.95vw,29px); line-height: 1.04; }
.shelf-track .product-price { font-size: 16px; margin-block: 5px; }
.shelf-track .card-actions .btn { min-height: 42px; padding-inline: 10px; font-size: 13px; }
.shelf-tools { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.shelf-arrows { display: flex; gap: 5px; }
.shelf-arrows[hidden] { display: none; }
.shelf-tools button { background: var(--surface); border-color: var(--line); min-width: 40px; min-height: 40px; }
.shelf-tools [data-shelf-step="-1"] svg { rotate: 180deg; }
.shelf-tools button:disabled { opacity: .42; }
.actions-band { min-height: 96px; }
.actions-band h2 { line-height: 1; }
.actions-band a { padding-block: 9px; }
.wa-band { min-height: 60px; margin-block: 12px 8px; }
.benefits { margin-block: 10px 24px; }
.industry-band { grid-template-columns: 155px minmax(0,1fr); align-items: center; gap: 16px; margin-block: 0 25px; }
.industry-band .section-intro { padding: 0; }
.industry-band .section-intro h2 { font: 750 23px/1.13 var(--font),var(--sinhala),sans-serif; letter-spacing: -.035em; color: var(--ink); }
.industry-band .section-intro p { max-width: 29ch; line-height: 1.43; color: var(--mute); }
.industry-band .industries { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; overflow: visible; }
.industry-band .category-tile { display: grid; height: 117px; border-color: #e3cbb7; background: #6d3826; }
.industry-band .category-image { grid-area: 1 / 1; height: 100%; min-height: 0; object-position: 50% 43%; mix-blend-mode: normal; }
.industry-band .cat-label { grid-area: 1 / 1; align-self: end; justify-content: start; padding: 13px 7px 6px; min-height: 39px; background: linear-gradient(transparent,#572a1ce8 60%); line-height: 1.19; }
.industry-band .cat-label svg { display: none; }
.footer { width: min(var(--wrap),calc(100% - 72px)); margin-inline: auto; border-radius: 17px 17px 0 0; background: linear-gradient(102deg,#69321f,#81482f 64%,#a45e38); }
.footer-art { width: 41%; object-position: 50% 65%; mask-image: linear-gradient(90deg,transparent 14%,#000 82%); }
.footer-inner { display: grid; grid-template-columns: minmax(220px,1.47fr) repeat(4,minmax(0,.66fr)); align-items: start; gap: 24px; padding: 24px 26px; }
.footer-brand { width: auto; padding-right: 14px; }
.footer .brand { font-size: clamp(21px,2.4vw,33px); }
.footer .brand-mark { width: 63px; }
.footer-brand p { max-width: 34ch; margin-top: 4px; }
.footer h2 { font-size: 13px; letter-spacing: .02em; }
.footer a:not(.brand) { padding-block: 3px; }

.collection-masthead {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: 139px; margin-top: 19px; padding: 17px 35px; border-radius: var(--radius);
  border: 1px solid #e9ceba; background: linear-gradient(110deg,#f7e1ca,#fff4e8 63%);
}
.collection-masthead .masthead-art {
  position: absolute; right: 0; top: 0; z-index: -1; width: 54%; height: 100%; object-fit: cover;
  object-position: 48% 57%; mask-image: linear-gradient(90deg,transparent,#000 37%);
}
.collection-masthead > div { max-width: 58%; min-width: 0; }
.collection-masthead h1 { font: 700 clamp(40px,4vw,64px)/1 var(--display),Georgia,serif; letter-spacing: -.04em; }
.collection-masthead p { margin: 4px 0 0; max-width: 42ch; color: #683b2c; font-weight: 600; }
.product-masthead { min-height: 73px; padding-block: 8px; }
.product-masthead .masthead-art { width: 38%; object-position: 50% 45%; }
.product-masthead > div { max-width: 72%; }
.product-masthead p { color: #843b25; font-size: .81rem; }
.product-masthead .crumb { min-height: auto; padding-block: 5px 2px; }
.crumb span[aria-current] { overflow-wrap: anywhere; }
.shop-shell { padding-bottom: 50px; }
.shop-heading { margin: 12px 0 15px; }
.shop-heading h2 { font-size: clamp(25px,3vw,38px); }
.shop-tiles { gap: 10px; margin-bottom: 20px; }
.shop-tiles .category-image { min-height: 0; height: 97px; }
.shop-tiles .cat-label { min-height: 36px; }
.shop-grid { grid-template-columns: 214px minmax(0,1fr); gap: 17px; }
.shop-results .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.shop-results .card-info { padding: 9px 12px 13px; }

.detail { margin-top: 16px; padding: 24px; background: var(--surface); border-color: #eee0d3; }
.detail-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(18px,3.2vw,48px); }
.gallery { grid-template-columns: minmax(0,1fr); gap: 10px; }
.main-photo { grid-row: 1; min-height: 0; }
.main-photo img { aspect-ratio: 1.25; }
.gallery .thumbs { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.gallery .thumbs button { width: 61px; }
.detail-copy .chip { max-width: 100%; white-space: normal; }
.detail-copy h1 { margin-block: 8px 9px; font: 700 clamp(35px,3.5vw,58px)/.99 var(--display),Georgia,serif; letter-spacing: -.04em; }
.detail-short { margin: 0 0 12px; font-size: 15px; line-height: 1.54; color: var(--mute); }
.product-offer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; margin-block: 6px 16px; }
.product-offer p { margin: 0; }
.product-offer .detail-price { font-size: clamp(24px,2.35vw,35px); }
.purchase-panel { padding: 15px; background: #faf1e7; border: 1px solid #ecdbcc; border-radius: var(--radius); }
.purchase-panel .order-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.purchase-panel .order-options label:first-child { flex: 1 1 145px; }
.purchase-panel .order-options input, .purchase-panel .order-options select { min-height: 44px; background: #fffdf8; }
.product-minimum { margin: 8px 0 12px; font-size: .84rem; color: var(--mute); }
.product-minimum strong { margin-left: .25em; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-actions .btn { flex: 1 1 auto; min-height: 43px; font-size: 13px; }
.detail-actions .wa { flex-basis: 100%; }
.bulk-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; padding: 12px; border: 1px solid #ecd7c7; border-radius: var(--radius); }
.bulk-panel > svg, .product-delivery svg { color: var(--accent); flex: 0 0 auto; }
.bulk-panel > div { flex: 1 1 150px; }
.bulk-panel h2 { font-size: 24px; line-height: 1; }
.bulk-panel p { margin: 4px 0 0; color: var(--mute); font-size: .83rem; }
.bulk-panel .btn { min-height: 40px; }
.product-information { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 24px; margin-top: 26px; border-top: 1px solid #eddcd0; padding-top: 20px; }
.product-information h2 { font-size: clamp(24px,2.5vw,34px); margin-bottom: 7px; }
.product-information h3 { font-size: 19px; margin-top: 17px; }
.product-overview .long-text { max-width: 70ch; margin: 0; color: var(--mute); line-height: 1.6; }
.product-overview .specs { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; margin: 4px 0 0; }
.product-overview .specs div, .detail-tiers li { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 9px; padding: 7px 0; border-bottom: 1px solid #f1e4d9; background: transparent; color: var(--ink); }
.product-overview .specs dd { margin: 0; overflow-wrap: anywhere; }
.detail-tiers ul { padding: 0; margin: 0; }
.product-delivery { align-self: start; padding: 14px 16px; background: #faf1e7; border-radius: var(--radius); }
.product-delivery h2 { display: flex; align-items: center; gap: 9px; }
.product-delivery p { margin: 7px 0 9px; line-height: 1.55; }
.product-delivery a { color: #8e3820; text-decoration: underline; text-underline-offset: 3px; }
.steps, .related { margin-block: 24px 36px; }

.editor-tabs[hidden], .editor-step[hidden] { display: none; }
.editor-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding-block: 4px 8px; margin-top: 2px; border-bottom: 1px solid var(--line); }
.editor-tabs button { min-height: 41px; flex: 1 1 auto; padding: 5px 7px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 700; }
.editor-tabs [aria-selected="true"] { color: #85371f; border-color: #e7c5ac; background: #f8e7d5; }
.editor-step { padding-block: 12px 6px; }
.editor-step > h3 { margin-bottom: 10px; font-size: 24px; }
.editor-help { margin: 0 0 9px; color: var(--mute); }
.product-editor .edit-actions { padding-block: 10px; }
.product-editor .edit-actions .btn { min-height: 41px; }
.lead-result textarea { min-height: 148px; }
.product-workspace { width: 100%; max-width: 1090px; margin-inline: auto; }
.product-workspace .product-editor { position: static; padding: clamp(13px,2.25vw,26px); }
.product-workspace .edit-actions { padding-block: 11px; }
.editor-return { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; color: #6b3826; font-size: 13px; }
.editor-return a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 40px); }
  .hero-home, .footer { width: calc(100% - 40px); }
  .cat-band .category-tile { grid-template-columns: minmax(46px,48%) minmax(0,1fr); }
  .industry-band .industries { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .footer-inner { grid-template-columns: minmax(200px,1.5fr) repeat(3,minmax(0,1fr)); }
  .shelf-track { grid-auto-columns: calc((100% - 2 * 15px)/3); gap: 15px; }
  .shop-grid { grid-template-columns: 176px minmax(0,1fr); }
  .shop-results .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 750px) {
  .shell { width: calc(100% - 28px); }
  .topbar { min-height: 58px; }
  .hero-home { width: 100%; margin: 0; min-height: 0; padding: 139px 14px 16px; background: #fbf0e2; }
  .hero-home picture { bottom: auto; height: 177px; }
  .hero-home picture img { object-position: 50% 45%; }
  .hero-home::after { height: 180px; background: linear-gradient(0deg,#fbf0e2 0%,#fbf0e272 32%,transparent 60%); }
  .hero-home .hero-inner { max-width: 440px; }
  .hero-home .hero-mark { width: 119px; height: 53px; margin: 0 0 2px; }
  .hero-home .hero-word { font-size: clamp(37px,12vw,68px); letter-spacing: -.055em; line-height: 1; padding-bottom: 4px; }
  .hero-home .hero-tagline { letter-spacing: .112em; font-size: 10px; max-width: 100%; }
  .hero-home .hero-tagline::before, .hero-home .hero-tagline::after { display: none; }
  .hero-home .hero-intro { max-width: 29ch; margin: 8px 0 13px; font-size: 15px; line-height: 1.37; }
  .hero-home .search-bar { padding: 4px 5px 4px 10px; }
  .hero-home .search-bar input { font-size: 13px; }
  .hero-home .search-bar .btn { min-height: 36px; padding-inline: 12px; }
  .hero-home .hero-quick { margin-top: 10px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 8px; text-align: left; }
  .hero-home .hero-quick span { font-size: 10px; min-width: 0; padding: 0 2px; border: 0; }
  .hero-home .hero-quick svg { width: 14px; height: 14px; flex: 0 0 14px; }
  .cat-band { margin-block: 15px 25px; }
  .cat-band .categories { gap: 8px; }
  .cat-band .categories { grid-auto-columns: minmax(106px,30%); }
  .cat-band .category-tile { height: auto; grid-template-columns: minmax(0,1fr); }
  .cat-band .category-image { height: 64px; aspect-ratio: 1.52; mask-image: none; object-position: center 44%; }
  .cat-band .cat-label { display: flex; font-size: 11px; min-height: 39px; padding: 5px; }
  .cat-band .cat-label svg { width: 14px; flex-basis: 14px; }
  .cat-band .cat-label svg:last-child { display: none; }
  .shelf { margin-bottom: 26px; }
  .shelf .section-intro { display: block; padding-bottom: 11px; }
  .shelf .section-intro p { font-size: 13px; }
  .shelf .section-intro h2, .industry-band .section-intro h2 { font-size: clamp(29px,9vw,41px); }
  .shelf-tools { margin-top: 8px; justify-content: space-between; }
  .shelf-track { grid-auto-columns: calc((100% - 9px)/2); gap: 9px; }
  .shelf-track .card-info { padding: 9px 8px 10px; }
  .shelf-track .card-info h3 { font-size: 21px; }
  .shelf-track .product-price { font-size: 14px; }
  .shelf-track .card-actions .btn { min-height: 39px; font-size: 11px; }
  .actions-band { min-height: 0; }
  .actions-art { opacity: .38; }
  .wa-band { width: calc(100% - 28px); }
  .industry-band { grid-template-columns: minmax(0,1fr); gap: 8px; margin-bottom: 23px; }
  .industry-band .section-intro p { max-width: none; margin: 5px 0 4px; }
  .industry-band .industries { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-flow: row; gap: 7px; }
  .industry-band .category-tile { height: 100px; }
  .footer { width: 100%; }
  .footer-inner { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 16px 14px 21px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand small { margin-top: 6px; }
  .footer-art { width: 56%; opacity: .47; }
  .collection-masthead { min-height: 105px; margin-top: 12px; padding: 11px 13px; }
  .collection-masthead > div { max-width: 70%; }
  .collection-masthead .masthead-art { width: 58%; }
  .collection-masthead h1 { font-size: 38px; }
  .collection-masthead p { font-size: 12px; }
  .product-masthead { min-height: 66px; }
  .product-masthead > div { max-width: 86%; }
  .product-masthead .masthead-art { width: 43%; opacity: .6; }
  .product-masthead .crumb { gap: 4px; font-size: 11px; }
  .shop-heading .flow-tabs { order: initial; }
  .shop-heading { margin-top: 1px; }
  .shop-grid, .shop-results .product-grid { grid-template-columns: minmax(0,1fr); }
  .shop-tiles { margin-bottom: 13px; }
  .shop-tiles .category-image { height: 70px; }
  .shop-results .product-card { grid-template-columns: 35% minmax(0,1fr); }
  .shop-results .card-info { padding: 6px 8px 8px; }
  .detail { margin-top: 10px; padding: 11px; }
  .detail-grid, .product-information { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .detail-copy h1 { font-size: clamp(31px,9.1vw,43px); }
  .main-photo img { aspect-ratio: 1.32; }
  .gallery .thumbs button { width: 50px; }
  .purchase-panel { padding: 10px; }
  .purchase-panel .order-options label:first-child { flex-basis: 113px; }
  .purchase-panel .order-options input, .purchase-panel .order-options select { font-size: 16px; }
  .bulk-panel .btn { flex-basis: 100%; }
  .product-information { margin-top: 16px; padding-top: 14px; }
  .steps, .related { margin-block: 14px 24px; }
  .editor-tabs button { min-height: 43px; font-size: 11px; padding-inline: 4px; }
  .product-editor .field-grid { grid-template-columns: minmax(0,1fr); }
  .product-editor .edit-actions .btn { flex: 1 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .shelf-track { scroll-behavior: auto; }
}
