﻿:root {
  box-sizing: border-box;
  --page: #f5f5f5;
  --surface: #fff;
  --ink: #282828;
  --muted: #757575;
  --accent: #c8a45d;
  --accent-dark: #a78645;
  --accent-soft: #f7f0e1;
  --border: #e8e8e8;
  --green: #168a52;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.5 Arial, Helvetica, sans-serif; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f6b56c; outline-offset: 2px; }

header { position: sticky; top: 0; z-index: 10; background: var(--surface); box-shadow: 0 2px 8px #0000000d; }
.top-strip { display: flex; justify-content: space-between; gap: 12px; padding: 5px max(20px, calc((100% - 1240px) / 2)); background: #191816; color: #e2cf9f; font-size: 12px; }
.header-main { max-width: 1280px; min-height: 76px; margin: auto; padding: 12px 20px; display: flex; align-items: center; gap: 26px; }
.brand { flex: 0 0 auto; display: flex; align-items: center; border: 0; padding: 0; background: transparent; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--accent); color: white; font-size: 16px; letter-spacing: -1px; }
.brand-logo-image { display: block; width: 132px; height: 45px; flex: 0 0 132px; object-fit: contain; object-position: left center; }
.brand small { display: block; color: var(--muted); font-size: 9px; letter-spacing: 1.1px; }
.site-search { display: flex; flex: 1; min-width: 120px; max-width: 650px; height: 44px; margin: 0 auto; border: 1px solid #cfcfcf; border-radius: 5px; overflow: hidden; background: #fff; }
.site-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 14px; background: transparent; }
.site-search input:focus-visible { outline: 0; }
.site-search button { min-width: 84px; border: 0; background: var(--accent); color: #fff; font-weight: 700; }
.site-search button:hover, .hero-button:hover { background: var(--accent-dark); }
#nav { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
#nav button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: #333; font-size: 14px; white-space: nowrap; }
#nav button:hover, #nav button.on { background: var(--accent-soft); color: #a95100; }
.nav-group-label { padding-left: 8px; color: #8a8178; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.nav-divider { width: 1px; height: 22px; margin: 0 4px; background: #e8e2dc; }
.cart-count { display: inline-grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; border-radius: 10px; background: var(--accent); color: white; font-size: 11px; font-weight: 700; }
.category-nav { max-width: 1280px; min-height: 42px; margin: auto; padding: 0 20px; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.category-nav:empty { display: none; }
.category-nav button { flex: 0 0 auto; padding: 8px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #555; font-size: 13px; }
.category-nav button:hover, .category-nav button.active { border-bottom-color: var(--accent); color: #a95100; }

main { width: min(1240px, 100%); min-height: calc(100vh - 190px); margin: 0 auto; padding: 24px 20px 46px; }
.shop-hero { position: relative; display: flex; min-height: 310px; overflow: hidden; border-radius: 8px; background: linear-gradient(110deg, #fff1df 0%, #ffe1bc 57%, #ffc984 100%); }
.hero-copy { position: relative; z-index: 1; width: 60%; padding: 38px 44px; }
.eyebrow { color: #a95100; font-size: 11px; font-weight: 700; letter-spacing: 1.3px; }
.hero-copy h1 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -1.6px; }
.hero-copy p { max-width: 430px; margin: 0 0 22px; color: #5e5145; }
.hero-button { display: inline-flex; gap: 18px; align-items: center; padding: 11px 16px; border: 0; border-radius: 4px; background: var(--accent); color: #fff; font-weight: 700; }
.hero-button span { font-size: 19px; line-height: 1; }
.hero-art { position: absolute; inset: 0 0 0 54%; display: block; }
.hero-photo { position: absolute; overflow: hidden; border: 5px solid #ffffffd9; border-radius: 12px; background: #fff; box-shadow: 0 16px 36px #653b1e30; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo-1 { width: 43%; height: 82%; top: 9%; left: 14%; transform: rotate(-5deg); }
.hero-photo-2 { width: 31%; height: 59%; top: 19%; left: 49%; transform: rotate(6deg); }
.hero-photo-3 { width: 25%; height: 43%; right: 3%; bottom: 6%; transform: rotate(-3deg); }
.hero-tag { position: absolute; right: 8%; top: 8%; display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 20px #98521330; color: #fff; font-size: 11px; font-weight: 800; line-height: 1.2; text-align: center; transform: rotate(8deg); }
.service-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 32px; }
.service-row>div { display: grid; grid-template-columns: 34px 1fr; column-gap: 9px; align-items: center; padding: 12px 14px; border-radius: 6px; background: var(--surface); }
.service-row>div>span { grid-row: span 2; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: #aa5707; font-size: 18px; }
.service-row b { font-size: 13px; }
.service-row small { color: var(--muted); font-size: 11px; }
.category-section, .product-section { margin-top: 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading h2 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.5px; }
.result-count { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.category-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.category-tile { position: relative; display: grid; min-height: 176px; grid-template-columns: 1fr 22px; grid-template-rows: 1fr auto auto; align-items: end; gap: 1px 8px; padding: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #333; color: white; text-align: left; transition: transform .18s, box-shadow .18s; }
.category-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px #00000012; }
.category-photo, .category-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.category-photo { object-fit: cover; object-position: center 38%; transition: transform .35s; }
.category-tile:hover .category-photo { transform: scale(1.06); }
.category-shade { background: linear-gradient(180deg,#0000 18%,#0002 42%,#000b 100%); }
.category-tile b, .category-tile small, .category-arrow { position: relative; z-index: 1; }
.category-tile b { grid-column: 1; font-size: 16px; text-shadow: 0 1px 5px #0008; }
.category-tile small { grid-column: 1; color: #ffffffd6; font-size: 11px; }
.category-arrow { grid-column: 2; grid-row: 2 / 4; justify-self: end; color: #fff; font-size: 20px; }
.product-section { scroll-margin-top: 170px; }
.sort-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.sort-control select { width: auto; min-width: 150px; margin: 0; padding: 8px 28px 8px 10px; border: 1px solid #ddd; border-radius: 4px; background: #fff; color: var(--ink); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.card { min-width: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); transition: transform .16s, box-shadow .16s; }
.card { position: relative; }
.save-item { position: absolute; z-index: 2; top: 9px; right: 9px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e5e5e5; border-radius: 50%; background: #ffffffed; color: #555; font-size: 21px; line-height: 1; }
.save-item:hover, .save-item.saved { border-color: #f2c2bc; color: #d43f55; }
.market-promo { position: relative; display: flex; min-height: 130px; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0; padding: 22px 30px; overflow: hidden; border-radius: 8px; background: linear-gradient(110deg,#fff0df,#ffdaa9); }
.market-promo h2 { margin: 3px 0; font-size: 23px; }
.market-promo p { margin: 0; color: #665443; }
.market-promo .pri { z-index: 1; }
.market-promo-icon { position: absolute; right: 120px; color: #eea24c55; font-size: 130px; font-weight: 800; line-height: 1; transform: rotate(-12deg); }
.catalog-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: -2px 0 14px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.catalog-filters>label:not(.stock-filter) { display: grid; gap: 3px; color: var(--muted); font-size: 11px; }
.catalog-filters input[type=number] { width: 120px; min-height: 36px; padding: 7px 9px; border: 1px solid #ddd; border-radius: 4px; }
.catalog-filters .stock-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: #555; font-size: 12px; }
.catalog-filters button { min-height: 36px; padding: 7px 11px; border: 1px solid #e3e3e3; border-radius: 4px; background: #fff; color: #555; font-size: 12px; }
.catalog-filters button:hover { border-color: var(--accent); color: #9c4c00; }
.pos .save-item { display: none; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px #00000014; }
.product-open { width: 100%; flex: 1; display: flex; flex-direction: column; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.product-open:disabled { cursor: not-allowed; opacity: .65; }
.product-media { position: relative; display: grid; aspect-ratio: 4 / 4.3; place-items: center; overflow: hidden; background: #f7f5f1; }
.product-media img { display: block; width: 100%; height: 100%; padding: 7px; object-fit: contain; object-position: center; background: #fff; }
.product-placeholder { position: relative; width: 100%; height: 100%; padding: 7px; }
.product-placeholder img { border-radius: 4px; opacity: .72; }
.product-placeholder span { position: absolute; right: 12px; bottom: 12px; padding: 4px 7px; border-radius: 3px; background: #222c; color: #fff; font-size: 10px; }
.product-art { width: 100%; height: 100%; padding: 12px; }
.product-art svg { display: block; width: 100%; height: 100%; }
.sale-badge { position: absolute; top: 9px; left: 9px; padding: 4px 7px; border-radius: 3px; background: #fff0df; color: #ad5100; font-size: 11px; font-weight: 700; }
.product-info { display: grid; gap: 3px; padding: 10px 11px 12px; }
.product-description { display: -webkit-box; min-height: 32px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pick-description { margin: -5px 0 8px; color: var(--muted); }
.product-category { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.product-info b { min-height: 38px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.product-price { font-size: 17px; font-weight: 700; }
.old-price { color: #888; font-size: 11px; }
.stock-note { color: var(--green); font-size: 11px; }
.low-stock { color: #b25b00; font-size: 11px; }
.product-meta { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); }
.product-meta>small:last-child { font-size: 10px; }
.card-action { display: flex; width: calc(100% - 20px); justify-content: space-between; align-items: center; margin: auto 10px 10px; padding: 8px 9px; border: 1px solid #f1c99f; border-radius: 4px; background: #fffaf4; color: #9c4c00; font-size: 11px; font-weight: 700; }
.card-action:hover:not(:disabled) { border-color: var(--accent); background: var(--accent); color: #fff; }
.card-action:disabled { cursor: not-allowed; border-color: var(--border); background: #f5f5f5; color: #888; }
.empty-state { grid-column: 1 / -1; padding: 32px 12px; border: 1px dashed #ccc; border-radius: 5px; color: var(--muted); text-align: center; }
.empty-cart { max-width: 520px; margin: 48px auto; padding: 34px 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-align: center; }
.empty-cart-icon { display: grid; width: 68px; height: 68px; margin: 0 auto 12px; place-items: center; border-radius: 50%; background: var(--accent-soft); font-size: 34px; }
.empty-cart h2 { margin: 6px 0; font-size: 22px; }
.empty-cart p, .checkout-heading p { color: var(--muted); }
.checkout-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin: 4px 0 18px; }
.checkout-heading h1 { margin: 2px 0; font-size: 28px; }
.checkout-heading p { margin: 2px 0; }
.checkout-count { padding: 6px 10px; border-radius: 20px; background: var(--accent-soft); color: #984b00; font-size: 12px; font-weight: 700; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); align-items: start; gap: 18px; }
.checkout-items, .checkout-panel { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.checkout-panel { box-shadow: 0 3px 12px #00000008; }
.checkout-panel-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.checkout-panel-heading h2 { margin: 0; font-size: 17px; }
.checkout-panel-heading small { color: var(--muted); font-size: 12px; }
.cart-line { align-items: center; gap: 12px; padding: 12px 0; }
.cart-line-info { min-width: 0; display: flex; flex: 1; align-items: center; gap: 12px; }
.cart-line-info>div:last-child { min-width: 0; font-weight: 700; }
.cart-line-info small { margin-top: 3px; font-size: 12px; font-weight: 400; }
.cart-thumb { flex: 0 0 76px; width: 76px; height: 68px; overflow: hidden; border-radius: 4px; background: #f8f4ee; }
.cart-thumb .product-art, .cart-thumb img { display: block; width: 100%; height: 100%; padding: 2px; object-fit: cover; }
.cart-line-actions { flex: 0 0 auto; }
.text-button { padding: 4px 0; border: 0; background: transparent; color: #a95100; font-size: 12px; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.step-number { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-weight: 700; }
.checkout-subtotal, .checkout-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid var(--border); }
.checkout-subtotal { margin-top: 8px; }
.checkout-total { margin: 14px 0; padding: 13px 12px; border: 0; border-radius: 5px; background: #fff7ee; }
.checkout-total b { font-size: 19px; }
.checkout-submit { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 5px; }
.payment-heading { margin-top: 4px; }
.payment-notice { padding: 14px; border: 1px solid #f1d4b3; border-radius: 5px; background: #fff9f2; font-size: 13px; }
.payment-notice> b { color: #94500b; }
.payment-notice p { margin: 8px 0; color: #57514b; }
.till-display { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 4px; background: white; }
.till-display small { color: var(--muted); }
.till-display strong { font-size: 15px; }
.payment-notice .payment-total { display: flex; justify-content: space-between; margin-bottom: 0; color: var(--ink); }
.payment-total b { font-size: 16px; }
.edit-details { display: block; margin: 10px auto 0; }
.checkout-footnote { margin: 12px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; padding: 20px max(20px, calc((100% - 1200px) / 2)); background: #282828; color: white; }
.site-footer { background: #191816; color: #ead8aa; }
.company-footer-inner { display: flex; width: 100%; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.company-footer-title { display: grid; gap: 2px; }
.company-footer-title small, .company-footer-socials { color: #c9c2b1; font-size: 12px; }
.company-footer-socials { display: flex; flex-wrap: wrap; gap: 9px 17px; }
.company-footer-socials a { color: #ead8aa; text-decoration: none; }
.company-footer-socials a:hover { text-decoration: underline; }
.site-footer span { font-weight: 700; }
.site-footer small { color: #ccc; }

input, select, textarea { width: 100%; border: 1px solid #d5d5d5; border-radius: 5px; padding: 9px 10px; background: #fff; }
label { display: block; margin: 8px 0; color: var(--muted); font-size: 13px; }
label input, label select, label textarea { margin-top: 4px; color: var(--ink); }
button.pri, .pri { border: 0; border-radius: 4px; background: var(--accent); color: white; font-weight: 700; }
button.pri:hover, .pri:hover { background: var(--accent-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips button { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.chips .on { background: var(--ink); color: white; }
.pos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
aside, .box { padding: 14px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.ln { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ln small { display: block; color: var(--muted); }
.ln div:last-child { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.ln .cart-line-info>div:last-child { display: block; }
.ln button { padding: 2px 9px; }
.tot { margin: 12px 0; font-size: 21px; font-weight: 700; }
.row { display: flex; gap: 8px; margin-top: 10px; }
.row>* { flex: 1; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 7px 4px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
td:last-child, th:last-child { text-align: right; }
#modal { position: fixed; inset: 0; z-index: 20; display: none; place-items: center; padding: 14px; background: #0009; }
#modal.on { display: grid; }
#modal>div { width: min(600px, 100%); max-height: 90vh; overflow: auto; padding: 18px; border-radius: 8px; background: var(--surface); }
.pick-modal { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: 20px; }
.pick-image .product-art, .pick-image img { display: block; width: 100%; aspect-ratio: 1; padding: 8px; object-fit: contain; border-radius: 6px; background: #fff; }
.pick-content h2 { margin: 4px 0; font-size: 20px; line-height: 1.25; }
.pick-price { margin: 4px 0 12px; font-size: 20px; font-weight: 700; }
.pick-stock { min-height: 22px; color: var(--green); font-size: 12px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; background: #eee; font-size: 12px; }
#toast { position: fixed; z-index: 30; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; display: none; transform: translateX(-50%); padding: 10px 16px; border-radius: 5px; background: #282828; color: white; }
.vr { display: grid; grid-template-columns: 1fr 1fr 70px 34px; gap: 4px; margin: 4px 0; }

@media (max-width: 1000px) {
  .header-main { gap: 13px; }
  #nav button { padding: 7px; font-size: 13px; }
  .nav-group-label, .nav-divider { display: none; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 700px) {
  .top-strip { justify-content: center; padding: 5px 12px; }
  .top-strip span:last-child { display: none; }
  .header-main { min-height: auto; flex-wrap: wrap; gap: 9px; padding: 10px 12px 8px; }
  .brand { max-width: 132px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-logo-image { width: 118px; height: 40px; flex-basis: 118px; }
  #nav { margin-left: auto; }
  #nav button { min-height: 36px; padding: 6px; }
  #searchbar { order: 3; flex-basis: 100%; }
  .site-search { max-width: none; height: 40px; }
  .category-nav { padding: 0 10px; }
  main { padding: 14px 12px 32px; }
  .shop-hero { min-height: 250px; }
  .hero-copy { width: 82%; padding: 26px 20px; }
  .hero-copy h1 { font-size: clamp(28px, 8vw, 38px); }
  .hero-copy p { max-width: 270px; font-size: 13px; }
  .hero-art { left: 58%; opacity: .92; }
  .hero-photo { border-width: 3px; border-radius: 8px; }
  .hero-photo-1 { width: 54%; left: 5%; }
  .hero-photo-2 { width: 38%; left: 48%; }
  .hero-photo-3 { display: none; }
  .hero-tag { right: 3%; top: 4%; width: 42px; height: 42px; font-size: 8px; }
  .service-row { gap: 7px; margin: 12px 0 25px; }
  .service-row>div { grid-template-columns: 1fr; justify-items: center; padding: 9px 4px; text-align: center; }
  .service-row>div>span { grid-row: auto; margin-bottom: 4px; }
  .service-row b { font-size: 11px; }
  .service-row small { display: none; }
  .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .category-tile { min-height: 138px; grid-template-columns: 1fr 15px; padding: 10px; }
  .category-tile b { font-size: 14px; }
  .category-tile small { font-size: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-info { gap: 2px; padding: 8px; }
  .product-info b { min-height: 36px; font-size: 13px; }
  .product-price { font-size: 15px; }
  .product-art { padding: 5px; }
  .card-action { width: calc(100% - 14px); margin: auto 7px 7px; padding: 7px; font-size: 10px; }
  .section-heading h2 { font-size: 19px; }
  .market-promo { min-height: 112px; padding: 17px; }
  .market-promo h2 { max-width: 210px; font-size: 19px; }
  .market-promo p { max-width: 215px; font-size: 12px; }
  .market-promo-icon { right: 74px; font-size: 95px; }
  .market-promo .pri { padding: 9px 10px; font-size: 12px; white-space: nowrap; }
  .catalog-filters { gap: 7px; padding: 9px; }
  .catalog-filters input[type=number] { width: 105px; }
  .sort-control { gap: 4px; font-size: 0; }
  .sort-control select { min-width: 135px; font-size: 11px; }
  .pos { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .checkout-items, .checkout-panel { padding: 14px; }
  .checkout-heading h1 { font-size: 24px; }
  .checkout-panel-heading h2 { font-size: 16px; }
  .pick-modal { grid-template-columns: 1fr; gap: 10px; }
  .pick-image { max-width: 180px; margin: auto; }
  .pick-content h2 { font-size: 18px; }
  .row { flex-wrap: wrap; }
  .site-footer { padding: 18px 14px; }
}
@media (max-width: 380px) {
  .header-main { gap: 6px; }
  #nav button { font-size: 11px; }
  .hero-copy { width: 80%; padding-left: 15px; }
  .hero-art { opacity: .48; }
  .hero-copy p { max-width: 230px; }
  .sort-control select { min-width: 120px; }
}
@media print {
  header, main, .site-footer, #toast, .noprint { display: none !important; }
  #modal { position: static; display: block; background: none; }
  #modal>div { width: 100%; box-shadow: none; }
  body { background: white; color: black; }
}

.auth-card, .account-card, .staff-create, .staff-list { padding: 22px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); box-shadow: 0 8px 24px #2424240a; }
.auth-card { width: min(440px, 100%); margin: 34px auto; }
.auth-card h1, .account-card h1 { margin: 5px 0; font-size: 27px; letter-spacing: -.7px; }
.auth-card p, .account-card p { color: var(--muted); }
.auth-card .pri { min-height: 44px; margin-top: 12px; }
.dashboard-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 4px 0 20px; }
.dashboard-head h1 { margin: 4px 0; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.8px; }
.dashboard-head p { margin: 0; color: var(--muted); }
.dashboard-head>.pri { flex: 0 0 auto; padding: 11px 16px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { display: flex; min-height: 145px; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); box-shadow: 0 5px 16px #24242408; }
.metric-card small { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card strong { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.7px; }
.metric-card span { color: var(--muted); font-size: 11px; }
.metric-orange { border-color: #f3d0a9; background: linear-gradient(140deg, #fff8f0, #fff); }
.metric-orange strong { color: #b65b00; }
.dashboard-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.dashboard-shortcuts button { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-align: left; }
.dashboard-shortcuts button:hover { border-color: #efbd89; box-shadow: 0 5px 16px #2424240a; }
.dashboard-shortcuts b { font-size: 14px; }
.dashboard-shortcuts span { color: var(--muted); font-size: 12px; }
.account-card { max-width: 560px; margin: 20px auto; }
.account-card .pri { padding: 10px 15px; }
.staff-layout { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.5fr); align-items: start; gap: 14px; }
.staff-create h2, .staff-list h2 { margin: 0 0 12px; font-size: 18px; }
.staff-create .pri { width: 100%; min-height: 42px; margin-top: 12px; }
.staff-create>small { color: var(--muted); }
.staff-row { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(260px, 1.3fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.staff-details { display: flex; flex-direction: column; gap: 4px; }
.staff-details span { color: var(--muted); font-size: 12px; }
.staff-actions { display: grid; grid-template-columns: minmax(140px, 1fr) auto auto; align-items: center; gap: 6px; }
.staff-actions input { min-width: 0; padding: 7px; font-size: 12px; }
.staff-actions button { min-height: 34px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-size: 11px; }
.staff-actions button:hover { border-color: var(--accent); color: #9c4c00; }
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dashboard-head { align-items: flex-start; }
  .dashboard-head>.pri { padding: 9px; font-size: 12px; }
  .metric-card { min-height: 122px; padding: 13px; }
  .dashboard-shortcuts { grid-template-columns: 1fr; }
  .staff-row { grid-template-columns: 1fr; gap: 8px; }
  .staff-actions { grid-template-columns: minmax(0, 1fr) auto; }
  .staff-actions input { grid-column: 1 / -1; }
  .auth-card, .account-card, .staff-create, .staff-list { padding: 16px; }
}
.products-admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 4px 0 20px; }
.products-admin-heading h1 { margin: 4px 0; font-size: clamp(25px, 4vw, 32px); letter-spacing: -.8px; }
.products-admin-heading p, .store-settings-card p { margin: 0; color: var(--muted); }
.products-admin-heading h1 { margin: 4px 0; font-size: clamp(25px, 4vw, 32px); letter-spacing: -.8px; }
.products-admin-heading>.pri { flex: 0 0 auto; padding: 11px 16px; }
.inventory-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 15px; }
.inventory-summary article { display: grid; gap: 3px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.inventory-summary small { color: var(--muted); font-size: 11px; }
.inventory-summary b { font-size: 22px; }
.catalog-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.catalog-search { display: grid; width: min(360px,100%); gap: 4px; font-weight: 700; }
.catalog-search input { margin: 0; }
.photo-empty { color: var(--muted); font-size: 12px; }
.photo-manager { display: flex; align-items: center; gap: 13px; margin: 10px 0 14px; padding: 11px; border: 1px solid var(--border); border-radius: 7px; background: white; }
.photo-manager-preview { display: grid; width: 80px; height: 80px; flex: 0 0 80px; place-items: center; overflow: hidden; border-radius: 5px; background: #f5f2ed; color: var(--muted); font-size: 10px; }
.photo-manager-preview img { width: 100%; height: 100%; object-fit: contain; }
.photo-manager>div:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; }
.photo-manager>div:last-child b, .photo-manager>div:last-child small { width: 100%; }
.photo-manager>div:last-child small { color: var(--muted); font-size: 10px; }
.photo-upload-button { position: relative; display: inline-flex; padding: 7px 10px; border: 1px solid #efd0b0; border-radius: 5px; background: #fff8f0; color: #92500c; cursor: pointer; font-size: 11px; font-weight: 700; }
.photo-upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.products-admin-actions { display: flex; align-items: center; gap: 14px; }
.products-admin-actions .pri { min-height: 42px; padding: 10px 15px; }
.products-total { color: var(--muted); font-size: 12px; white-space: nowrap; }
.products-total i { padding: 0 3px; color: #bbb; font-style: normal; }
.admin-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); align-items: start; gap: 15px; }
.admin-product-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); box-shadow: 0 4px 16px #25252508; transition: border-color .16s, box-shadow .16s, transform .16s; }
.admin-product-card:hover { transform: translateY(-2px); border-color: #efc79f; box-shadow: 0 9px 22px #25252512; }
.admin-product-card[open] { grid-column: span 2; border-color: #edbd89; box-shadow: 0 8px 22px #2525250d; }
.admin-product-summary { display: block; cursor: pointer; list-style: none; }
.admin-product-summary::-webkit-details-marker { display: none; }
.admin-product-photo { position: relative; display: grid; height: 190px; place-items: center; overflow: hidden; background: linear-gradient(145deg, #faf7f2, #f1ede6); }
.admin-product-photo .product-art, .admin-product-photo>img { display: block; width: 100%; height: 100%; padding: 10px; object-fit: contain; background: #fff; }
.admin-product-photo .product-art { padding: 6px; }
.admin-product-photo .sale-badge { top: 12px; left: 12px; padding: 5px 8px; }
.admin-product-info { display: grid; gap: 7px; padding: 14px 15px 15px; }
.admin-product-category { color: #9c5716; font-size: 10px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; }
.admin-product-name { min-height: 22px; overflow: hidden; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.admin-product-price { display: flex; align-items: baseline; gap: 8px; }
.admin-product-price strong { font-size: 19px; }
.admin-product-price s { color: #929292; font-size: 12px; }
.admin-product-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.admin-stock-pill { padding: 4px 8px; border-radius: 20px; background: #eaf5ee; color: #26734a; font-size: 10px; font-weight: 700; }
.admin-stock-pill.low { background: #fff3df; color: #a45b08; }
.admin-stock-pill.out { background: #fbeceb; color: #a13d37; }
.admin-product-edit-hint { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; padding-top: 10px; border-top: 1px solid #f0eee9; color: #98500b; font-size: 11px; font-weight: 700; }
.admin-product-edit-hint b { font-size: 17px; transition: transform .16s; }
.admin-product-card[open] .admin-product-edit-hint b { transform: rotate(90deg); }
.admin-product-editor { padding: 15px; border-top: 1px solid var(--border); background: #fffdfa; }
.admin-editor-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.admin-editor-heading small { color: var(--muted); font-size: 10px; text-align: right; }
.admin-photo-preview { display: block; width: 72px; height: 72px; margin: 6px 0 12px; border: 1px solid var(--border); border-radius: 5px; object-fit: cover; }
.admin-variants-heading { display: flex; justify-content: space-between; margin: 12px 0 5px; font-size: 12px; }
.admin-variants-heading span { color: var(--muted); font-size: 10px; }
.admin-variant-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 64px 32px; gap: 5px; margin: 6px 0; }
.admin-variant-row input { min-width: 0; padding: 7px; font-size: 12px; }
.admin-variant-row button { border: 1px solid #f0d7d4; border-radius: 4px; background: #fff; color: #a13d37; font-size: 18px; }
.admin-add-variant, .admin-delete-product { width: 100%; margin-top: 8px; padding: 9px 10px; border: 1px solid #efd0b0; border-radius: 5px; background: #fff8f0; color: #92500c; font-size: 12px; font-weight: 700; }
.admin-add-variant:hover { background: #fff0df; }
.admin-delete-product { margin-top: 12px; border-color: #f1d8d6; background: #fff; color: #a13d37; }
.admin-delete-product:hover { background: #fff3f2; }
.store-settings-card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 20px; padding: 20px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.store-settings-card>div:first-child { grid-column: 1 / -1; margin-bottom: 4px; }
.store-settings-card h2 { margin: 3px 0; font-size: 19px; }
.store-settings-card p { font-size: 12px; }
.track-order, .order-success { width: min(100%, 620px); margin: 36px auto; padding: clamp(20px, 5vw, 38px); border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 40px #2525250a; }
.track-order h1, .order-success h1 { margin: 5px 0 8px; font-size: clamp(26px, 5vw, 36px); letter-spacing: -1px; }
.track-order>p, .order-success>p { color: var(--muted); line-height: 1.6; }
.track-order form { display: grid; gap: 13px; margin-top: 20px; }
.track-order form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.tracked-result { margin-top: 20px; padding: 17px; border: 1px solid #eddfce; border-radius: 8px; background: #fffaf4; }
.tracked-result>div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tracked-result p { color: #555; font-size: 13px; line-height: 1.7; }
.order-success { text-align: center; }
.order-success .eyebrow { color: #398052; }
.order-success button { margin: 8px 4px 0; }
.payment-notice { margin: 12px 0; }
.checkout-submit:disabled { cursor: wait; opacity: .65; }
.sales-report { max-width: 1020px; margin: 0 auto; }
.report-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 16px; }
.report-toolbar h1 { margin: 4px 0; font-size: clamp(25px, 4vw, 32px); letter-spacing: -.8px; }
.report-toolbar p { margin: 0; color: var(--muted); }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-actions button { min-height: 42px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 5px; background: white; font-weight: 700; }
.report-actions button.pri { border-color: var(--accent); background: var(--accent); color: white; }
.report-filters { display: flex; gap: 10px; margin: 0 0 14px; }
.report-filters label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.report-filters input, .report-filters select { min-width: 155px; margin: 0; }
.report-paper { padding: 28px; border: 1px solid var(--border); border-radius: 9px; background: white; box-shadow: 0 8px 28px #2424240a; }
.report-header { position: static; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 0 0 18px; border-bottom: 2px solid var(--accent); background: transparent; box-shadow: none; }
.report-brand { display: flex; align-items: center; gap: 11px; }
.report-logo { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; background: var(--accent); color: white; font-weight: 800; letter-spacing: -1px; }
.report-logo-image { display: block; width: 150px; height: 52px; flex: 0 0 150px; object-fit: contain; object-position: left center; }
.report-brand b { display: block; font-size: 22px; letter-spacing: -.5px; }
.report-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.report-company-details { display: grid; gap: 3px; color: var(--muted); font-size: 11px; text-align: right; }
.report-title-row { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin: 22px 0 15px; }
.report-title-row h2 { margin: 3px 0 0; font-size: 24px; }
.report-title-row p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.report-title-row>small { color: var(--muted); font-size: 10px; }
.report-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 17px; }
.report-metrics article { display: grid; gap: 5px; padding: 13px; border: 1px solid #eee8e0; border-radius: 7px; background: #fffaf5; }
.report-metrics small { color: var(--muted); font-size: 10px; }
.report-metrics b { font-size: clamp(15px,2vw,20px); }
.report-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.report-section { margin: 14px 0; break-inside: avoid; }
.report-section h2 { margin: 0 0 7px; font-size: 14px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.report-table th, .report-table td { padding: 8px 9px; border-bottom: 1px solid #ece8e3; text-align: left; }
.report-table th { background: #f7f3ee; color: #60564d; font-size: 10px; }
.report-orders .report-table { font-size: 9px; }
.report-orders .report-table th, .report-orders .report-table td { padding: 6px 5px; }
.report-table td:last-child, .report-table th:last-child { text-align: right; }
.report-empty { color: var(--muted); text-align: center !important; }
.report-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 9px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }
@media (max-width: 700px) {
  .products-admin-heading { align-items: flex-start; flex-direction: column; }
  .inventory-summary { gap: 7px; }
  .inventory-summary article { padding: 10px; }
  .inventory-summary b { font-size: 18px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .products-admin-actions { width: 100%; justify-content: space-between; }
  .admin-product-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
  .admin-product-card[open] { grid-column: 1 / -1; }
  .admin-product-photo { height: 160px; }
  .store-settings-card { grid-template-columns: 1fr; padding: 15px; }
  .track-order, .order-success { margin: 20px auto; }
  .report-toolbar { align-items: flex-start; flex-direction: column; }
  .report-paper { padding: 16px; }
  .report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-columns { grid-template-columns: 1fr; gap: 0; }
  .report-header { flex-direction: column; }
  .report-logo-image { width: 124px; height: 44px; flex-basis: 124px; }
  .report-company-details { text-align: left; }
}
@page { size: A4; margin: 12mm; }
@page reportlandscape { size: A4 landscape; margin: 10mm; }
@media print {
  body.printing-report { background: #fff !important; color: #222 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-report>header, body.printing-report>.site-footer, body.printing-report>#toast, body.printing-report>#modal { display: none !important; }
  body.printing-report main { display: block !important; width: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
  body.printing-report .report-toolbar, body.printing-report .report-filters { display: none !important; }
  body.printing-report .report-paper { width: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  body.printing-report .report-paper.report-orders { page: reportlandscape; }
  body.printing-report .report-header { position: static; display: flex !important; padding-bottom: 12px; background: #fff; box-shadow: none; }
  body.printing-report .report-section { break-inside: avoid; }
  body.printing-report .report-metrics article, body.printing-report .report-table th { background: #fff7ee !important; }
  body.printing-report .report-footer { position: fixed; right: 0; bottom: -5mm; left: 0; }
}
.product-save-button { width: 100%; margin-top: 12px; }
.settings-save-row { display: flex; justify-content: flex-end; margin: 16px 0 24px; }

/* Modern storefront polish */
:root {
  --page: #f6f7f8;
  --surface: #fff;
  --ink: #20252b;
  --muted: #68727d;
  --accent: #f28c18;
  --accent-dark: #d96c08;
  --accent-soft: #fff1df;
  --border: #e6e9ed;
  --green: #198754;
}
body { font-family: Inter, "Segoe UI", Arial, sans-serif; }
header { box-shadow: 0 3px 16px #18223012; }
.top-strip { background: #20252b; color: #ffe0b5; }
.header-main { min-height: 72px; gap: 22px; }
.site-search { border-color: #d9dee4; border-radius: 8px; background: #f8f9fa; }
.site-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #f28c1820; }
.site-search button { background: var(--accent); }
#nav button { border-radius: 8px; transition: background .16s, color .16s, transform .16s; }
#nav button:hover { transform: translateY(-1px); }
.cart-count { background: #e76f00; }
.category-nav { gap: 4px; }
.category-nav button { border-radius: 7px 7px 0 0; }
main { padding-top: 22px; }
.shop-hero { min-height: 332px; border-radius: 16px; background: linear-gradient(115deg,#fff1df 0%,#ffe3c2 58%,#ffc77e 100%); box-shadow: 0 14px 32px #8a4d1712; }
.hero-copy { padding: 44px 48px; }
.hero-copy h1 { max-width: 540px; }
.hero-button, button.pri, .pri { border-radius: 8px; background: var(--accent); box-shadow: 0 5px 12px #cf6b1520; transition: transform .16s, background .16s, box-shadow .16s; }
.hero-button:hover, button.pri:hover, .pri:hover { background: var(--accent-dark); box-shadow: 0 7px 16px #cf6b1530; transform: translateY(-1px); }
.service-row>div { border: 1px solid #eef0f2; border-radius: 11px; box-shadow: 0 3px 12px #18223008; }
.category-tile { min-height: 194px; border-radius: 12px; }
.section-heading { margin-bottom: 16px; }
.grid { gap: 15px; }
.card { border-color: #e8eaed; border-radius: 11px; box-shadow: 0 3px 12px #18223008; }
.card:hover { transform: translateY(-4px); border-color: #f3c18a; box-shadow: 0 14px 28px #18223014; }
.product-media { background: #f6f7f8; }
.product-media img { transition: transform .28s ease; }
.card:hover .product-media img { transform: scale(1.035); }
.save-item { top: 10px; right: 10px; border-color: #e9edf0; box-shadow: 0 2px 8px #16202a12; }
.product-info { gap: 5px; padding: 12px 13px 13px; }
.product-info b { min-height: 40px; font-weight: 600; }
.product-price { color: #20252b; }
.card-action { width: calc(100% - 24px); margin: auto 12px 12px; padding: 9px 10px; border-color: #f4d2ae; border-radius: 7px; background: #fffaf4; font-size: 12px; }
.sale-badge { border-radius: 5px; background: #fff0df; }
.market-promo { border-radius: 13px; box-shadow: 0 8px 22px #d88a2d12; }
.catalog-filters { border-radius: 10px; box-shadow: 0 3px 12px #18223008; }
.empty-cart { border-radius: 14px; box-shadow: 0 8px 28px #1822300a; }
.checkout-heading { margin-bottom: 20px; }
.checkout-grid { grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: 20px; }
.checkout-items, .checkout-panel { border-color: #e7eaee; border-radius: 12px; box-shadow: 0 6px 20px #18223008; }
.checkout-panel { position: sticky; top: 148px; }
.cart-line { padding: 14px 0; border-bottom: 1px solid #eff1f3; }
.cart-thumb { width: 82px; height: 76px; flex-basis: 82px; border: 1px solid #edf0f2; border-radius: 9px; }
.cart-line-info>div:last-child { line-height: 1.4; }
.cart-line-actions button { min-width: 30px; height: 30px; border: 1px solid #e3e7eb; border-radius: 7px; background: white; }
.cart-line-actions button:hover { border-color: var(--accent); color: var(--accent-dark); }
.cart-line-actions b { min-width: 84px; text-align: right; }
.checkout-total { border-radius: 8px; background: #fff6eb; }
.checkout-count { background: var(--accent-soft); color: #9a4d05; }
.step-number { background: var(--accent); }
.payment-notice { border-radius: 9px; }
.site-footer { background: #20252b; }
#modal { backdrop-filter: blur(3px); }
#modal>div { border: 1px solid #e9edf0; border-radius: 14px; box-shadow: 0 22px 70px #10182040; }
.pick-image .product-art, .pick-image img { border: 1px solid #eceff2; border-radius: 12px; }
input, select, textarea { border-color: #dce1e6; border-radius: 7px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: minmax(0,1fr) minmax(300px,.9fr); gap: 13px; }
  .checkout-panel { top: 138px; }
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .header-main { gap: 8px; }
  #nav { max-width: calc(100% - 140px); overflow-x: auto; scrollbar-width: none; }
  #nav::-webkit-scrollbar { display: none; }
  #nav button { flex: 0 0 auto; padding: 7px 8px; }
  .category-nav { min-height: 39px; }
  main { padding: 12px 11px 28px; }
  .shop-hero { min-height: 254px; border-radius: 12px; }
  .hero-copy { width: 84%; padding: 25px 18px; }
  .hero-art { left: 55%; }
  .service-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .service-row>div { min-width: 0; border-radius: 9px; }
  .service-row b { font-size: 10px; }
  .category-tile { min-height: 130px; border-radius: 10px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .card { border-radius: 9px; }
  .product-info { padding: 9px 9px 10px; }
  .product-info b { min-height: 36px; font-size: 12px; }
  .product-description { min-height: 0; }
  .product-meta { flex-wrap: wrap; }
  .card-action { width: calc(100% - 16px); margin: auto 8px 8px; padding: 8px 7px; font-size: 10px; }
  .checkout-heading { align-items: flex-start; }
  .checkout-grid { grid-template-columns: minmax(0,1fr); }
  .checkout-panel { position: static; }
  .checkout-items, .checkout-panel { padding: 13px; border-radius: 11px; }
  .cart-line { gap: 8px; flex-wrap: wrap; }
  .cart-line-info { gap: 9px; }
  .cart-thumb { width: 66px; height: 64px; flex-basis: 66px; }
  .cart-line-info>div:last-child { font-size: 13px; }
  .cart-line-actions { width: calc(100% - 75px); margin-left: 75px; justify-content: flex-end; }
  .cart-line-actions b { min-width: 0; margin-left: auto; font-size: 13px; }
  .checkout-panel label { font-size: 12px; }
  .checkout-submit { min-height: 46px; }
  .market-promo { gap: 8px; padding: 15px; border-radius: 11px; }
  .market-promo .pri { white-space: normal; }
  .row { gap: 7px; }
  .row>* { min-width: 0; }
  .products-admin-heading { gap: 12px; }
  .admin-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 390px) {
  .brand-logo-image { width: 104px; flex-basis: 104px; }
  #nav { max-width: calc(100% - 115px); }
  #nav button { padding: 6px; font-size: 10px; }
  .hero-copy { width: 88%; padding-left: 14px; }
  .hero-copy h1 { font-size: 27px; }
  .hero-copy p { max-width: 200px; font-size: 12px; }
  .hero-art { opacity: .42; }
  .checkout-heading h1 { font-size: 22px; }
  .cart-line-actions { width: 100%; margin-left: 0; }
  .cart-line-actions b { min-width: 70px; }
  .admin-product-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Marketplace navigation and basket */
#nav .nav-market-link { position: relative; min-width: 68px; min-height: 44px; flex-direction: column; gap: 1px; padding: 4px 10px; border-radius: 9px; color: #3b4249; font-size: 11px; font-weight: 600; }
#nav .nav-market-link svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
#nav .nav-market-link:hover, #nav .nav-market-link.on { background: #fff1df; color: #bd5e05; }
#nav .nav-cart-link { min-width: 75px; margin-left: 2px; border: 1px solid #f0d1af; background: #fff9f1; color: #9c4c00; }
#nav .nav-cart-link:hover, #nav .nav-cart-link.on { border-color: #f1bd81; background: #fff1df; }
#nav .nav-market-link .nav-count { position: absolute; top: 0; right: 8px; display: grid; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #fff; border-radius: 12px; background: #e76f00; color: white; font-size: 9px; line-height: 1; }
@media (max-width: 700px) {
  #nav { max-width: calc(100% - 140px); gap: 3px; }
  #nav .nav-market-link { min-width: 42px; width: 42px; height: 42px; min-height: 42px; padding: 7px; }
  #nav .nav-market-link>span:not(.nav-count) { display: none; }
  #nav .nav-market-link svg { width: 22px; height: 22px; }
  #nav .nav-market-link .nav-count { top: 0; right: -2px; }
  #nav .nav-cart-link { margin-left: 0; }
}
@media (max-width: 390px) {
  #nav { max-width: calc(100% - 112px); }
  #nav .nav-market-link { min-width: 36px; width: 36px; height: 38px; min-height: 38px; padding: 6px; }
  #nav .nav-market-link svg { width: 20px; height: 20px; }
}

/* Centered category navigation and featured category panel */
#nav .nav-market-link { font-size: 12px; }
.category-nav { justify-content: center; flex-wrap: wrap; gap: 5px 10px; padding-top: 2px; padding-bottom: 3px; }
.category-nav button { padding: 9px 14px; border: 0; border-radius: 999px; color: #424a52; font-size: 14px; font-weight: 600; transition: color .16s, background .16s, transform .16s; }
.category-nav button:hover, .category-nav button.active { border: 0; background: #fff0df; color: #a95100; transform: translateY(-1px); }
.category-section { padding: 23px; border: 1px solid #e9edf0; border-radius: 16px; background: linear-gradient(180deg,#fff 0%,#fbfcfd 100%); box-shadow: 0 8px 24px #18223008; }
.category-section .section-heading { align-items: center; margin-bottom: 18px; }
.category-section .section-heading h2 { margin-top: 4px; font-size: clamp(22px,2.6vw,28px); letter-spacing: -.7px; }
.category-section .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.category-section .eyebrow::before { width: 18px; height: 2px; border-radius: 2px; background: var(--accent); content: ""; }
.category-tiles { grid-template-columns: repeat(auto-fit,minmax(205px,1fr)); gap: 14px; }
.category-tile { min-height: 208px; border: 0; border-radius: 13px; box-shadow: 0 5px 14px #141a2218; isolation: isolate; }
.category-tile::after { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg,#0d182000 20%,#0d182000 48%,#0d182099 100%); content: ""; transition: opacity .2s; }
.category-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 25px #141a222b; }
.category-tile:hover::after { opacity: .82; }
.category-tile b { font-size: 17px; letter-spacing: -.2px; }
.category-tile small { font-size: 12px; }
.category-arrow { display: grid; width: 30px; height: 30px; place-items: center; align-self: end; margin-bottom: 1px; border: 1px solid #ffffff75; border-radius: 50%; background: #ffffff24; color: #fff; font-size: 22px; line-height: 1; transition: background .18s, transform .18s; }
.category-arrow::before { content: "›"; }
.category-tile:hover .category-arrow { background: var(--accent); transform: translateX(2px); }
.category-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 8px 0 18px; padding: 22px 24px; border: 1px solid #f0dfcc; border-radius: 14px; background: linear-gradient(110deg,#fff8ef,#fff 72%); }
.category-focus>div { flex: 1 1 220px; }
.category-focus h1 { margin: 3px 0; font-size: clamp(25px,4vw,34px); line-height: 1.15; }
.category-focus p { margin: 3px 0 0; }
.category-back { flex: 0 0 auto; padding: 9px 12px; border: 1px solid #f1d7bb; border-radius: 8px; background: #fff; }
.category-results { margin-top: 0; }
.category-results .section-heading { align-items: center; }
@media (max-width: 700px) {
  .category-nav { flex-wrap: nowrap; justify-content: flex-start; gap: 5px; padding: 0 11px; }
  .category-nav button { padding: 7px 12px; font-size: 13px; }
  .category-section { padding: 15px 12px; border-radius: 12px; }
  .category-section .section-heading { margin-bottom: 12px; }
  .category-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .category-tile { min-height: 138px; padding: 11px; border-radius: 10px; }
  .category-tile b { font-size: 14px; }
  .category-tile small { font-size: 10px; }
  .category-arrow { width: 25px; height: 25px; font-size: 18px; }
  .category-focus { align-items: flex-start; gap: 9px; padding: 15px; border-radius: 11px; }
  .category-focus>div { flex-basis: 100%; }
  .category-focus h1 { font-size: 25px; }
  .category-back { padding: 7px 10px; }
  .category-results .section-heading { align-items: flex-start; flex-direction: column; }
}

/* Keep the header and shop footer balanced across viewport widths */
.header-main { justify-content: space-between; gap: clamp(12px,2vw,24px); }
#searchbar { flex: 1 1 320px; width: 100%; min-width: 0; max-width: 620px; margin-inline: auto; }
#searchbar .site-search { width: 100%; }
.site-footer { display: block; padding-top: 25px; padding-bottom: calc(20px + env(safe-area-inset-bottom,0px)); }
.company-footer-inner { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; }
.company-footer-title { justify-items: center; }
.company-footer-title b { font-size: 17px; }
.company-footer-socials { justify-content: center; gap: 8px 20px; }
.footer-credit { display: block; width: 100%; margin-top: 18px; padding-top: 12px; border-top: 1px solid #ffffff25; color: #c9c2b1; font-size: 11px; text-align: center; }
@media (max-width: 700px) {
  .header-main { justify-content: space-between; }
  #searchbar { flex-basis: 100%; max-width: none; margin: 0; }
  .company-footer-socials { max-width: 100%; flex-direction: column; align-items: center; gap: 6px; }
  .footer-credit { max-width: 330px; margin: 15px auto 0; line-height: 1.6; }
}
.company-footer-socials a, .company-footer-socials span { display: inline-flex; align-items: center; gap: 9px; }
.company-footer-socials a::before, .company-footer-socials span::before { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; color: #fff; font-size: 18px; font-weight: 700; line-height: 1; }
.company-footer-socials a[href^="https://wa.me"]::before { background: #25d366; content: "☎"; font-size: 16px; }
.company-footer-socials a[href*="instagram.com"]::before { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); content: "◎"; font-size: 22px; }
.company-footer-socials span::before { background: #1877f2; content: "f"; font-family: Arial,sans-serif; font-size: 21px; }
.company-footer-socials a:hover::before { transform: translateY(-2px); }

.whatsapp-float { position: fixed; z-index: 30; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom,0px)); display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 13px; border: 1px solid #ffffff70; border-radius: 999px; background: #20bd5a; color: #fff; box-shadow: 0 8px 24px #10251845; font-weight: 750; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.whatsapp-float[hidden] { display: none; }
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #10251855; }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }
#receipt { max-width: 760px; margin: 0 auto; padding: 4px 2px 18px; color: #24292f; }
.receipt-letterhead { display: grid; grid-template-columns: minmax(120px,190px) 1fr; align-items: center; gap: 22px; margin: 0 0 18px; padding: 10px 0 17px; border-bottom: 3px solid var(--accent); }
.receipt-letterhead img { display: block; width: 100%; max-height: 84px; object-fit: contain; object-position: left center; }
.receipt-letterhead h2 { margin: 0; font-size: 25px; }
.receipt-letterhead p { margin: 4px 0 8px; color: #6f675b; }
.receipt-letterhead small { display: block; margin-top: 3px; color: #555; }
#receipt > p { line-height: 1.65; }
#receipt table { width: 100%; margin: 14px 0; border-collapse: collapse; }
#receipt td { padding: 9px 6px; border-bottom: 1px solid #e6e2db; }
#receipt td:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 600px) {
  .whatsapp-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom,0px)); width: 54px; height: 54px; justify-content: center; padding: 10px; }
  .whatsapp-float span { display: none; }
  .whatsapp-float svg { width: 31px; height: 31px; }
  .receipt-letterhead { grid-template-columns: 1fr; justify-items: center; gap: 9px; text-align: center; }
  .receipt-letterhead img { width: min(190px,70%); max-height: 75px; object-position: center; }
  .receipt-letterhead h2 { font-size: 22px; }
}
