:root {
  --brand: #2f784f;
  --brand-dark: #235b3c;
  --text: #171a18;
  --muted: #747b76;
  --line: #d8dcd9;
  --panel: #f4f5f4;
  --soft: #eceeef;
  --danger: #c9343c;
  --max: 1120px;
  --header-height: 245px;
  --shadow: 0 14px 42px rgba(22, 35, 27, .09);
}
* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; font-family: "Inter", "Noto Sans KR", sans-serif; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; color: var(--text); background: #fff; font-family: inherit; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.nav-item:focus-visible, .home-category button:focus-visible, .filter-toggle:focus-visible, .filter-option:focus-visible, .search-tabs button:focus-visible, .quick-actions a:focus-visible, .top-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; background: #fff; }
.login-card { width: min(360px, calc(100vw - 40px)); }
.login-form { display: grid; gap: 12px; }
.login-form input { height: 48px; border: 1px solid #c7ccc8; border-radius: 7px; padding: 0 15px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.login-form input:hover:not(:focus) { border-color: #111; }
.login-form input:focus { border: 1px solid #111; box-shadow: none; }
.login-form button { height: 50px; color: #fff; background: var(--brand); border: 0; border-radius: 7px; font-weight: 700; }
.login-error { margin: 2px 0 0; color: var(--danger); font-size: 14px; text-align: center; }

/* Login modal (guest browsing: home/category/products는 비로그인 접근 가능, 로그인은 이 오버레이로) */
.login-modal-overlay { position: fixed !important; inset: 0 !important; margin: 0 !important; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(20, 24, 21, .6); padding: 20px; animation: loginModalFadeIn .18s ease-out both; }
.login-modal-box { position: relative; width: min(380px, 100%); background: #fff; border-radius: 16px; padding: 40px 30px 32px; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); animation: loginModalPop .22s cubic-bezier(.22,.68,.36,1.15) both; }
.login-modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #888; font-size: 24px; line-height: 1; cursor: pointer; transition: background .15s ease, color .15s ease; }
.login-modal-close:hover { color: #111; background: #f1f1ef; }
.login-modal-header { text-align: center; margin-bottom: 22px; }
.login-modal-header h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; color: #171a18; }
.login-modal-sub { margin: 0; color: #8a908c; font-size: 13.5px; }
.login-modal-box .login-form { margin-top: 0; gap: 14px; }
.login-modal-box .login-form button[type="submit"] { margin-top: 4px; }
.login-modal-box .login-error { min-height: 18px; margin-top: -4px; visibility: hidden; }
.login-modal-box .login-error.is-visible { visibility: visible; }
@keyframes loginModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes loginModalPop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Global shell */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transform: translateY(0); transition: transform .26s ease; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-header.home-header { box-shadow: none; }
.site-header.header-hidden { transform: translateY(-100%); }
.utility-bar { height: 46px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; max-width: var(--max); margin: 0 auto; padding: 0 18px; font-size: 13px; }
.utility-bar a, .utility-bar button { display: inline-flex; align-items: center; gap: 6px; color: #333; background: none; border: 0; padding: 0; }
.utility-icon { width: 16px; height: 16px; flex: 0 0 auto; object-fit: contain; }
.brand-strip { min-height: 86px; display: grid; place-items: center; background: var(--brand); background-position: center; background-repeat: repeat-x; background-size: auto 180px; overflow: hidden; }
.brand-strip.texture { min-height: 106px; }
.brand-strip img { width: 434px; height: 52.43px; object-fit: contain; }
.site-header.compact-brand .brand-strip { min-height: 60.2px; height: 60.2px; }
.site-header.compact-brand .brand-strip.texture { min-height: 74.2px; height: 74.2px; background-repeat: repeat-x; background-size: auto 180px; }
.site-header.compact-brand .brand-strip img { width: 434px; height: 52.43px; }
.main-nav { background: #fff; }
.search-wrap { padding: 14px 18px 8px; }
.site-header.home-header .search-wrap { padding-top: 38px; padding-bottom: 38px; }
.global-search { width: min(570px, 100%); margin: 0 auto; position: relative; }
.global-search-submit { position: absolute; z-index: 1; left: 0; top: 0; width: 56px; height: 100%; display: grid; place-items: center; padding: 0; border: 0; background: transparent; }
.search-icon { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: #262b28; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.global-search-submit .search-icon { position: static; grid-area: 1 / 1; transform: none; }
.search-icon-mobile { display: none; }
.global-search input { width: 100%; height: 48px; border: 0; border-radius: 28px; background: #e9ebed; padding: 0 50px; outline: none; }
.global-search input:focus,
.global-search input:focus-visible,
.responsive-product-search input:focus,
.responsive-product-search input:focus-visible { outline: none; box-shadow: none; }
@media (min-width: 981px) {
  .brand-strip img,
  .site-header.compact-brand .brand-strip img { width: 412.3px; height: 49.81px; }
  .global-search input:focus { box-shadow: none; }
  .global-search input::-webkit-search-cancel-button {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background:
      linear-gradient(45deg, transparent 44%, #4c4947 44%, #4c4947 56%, transparent 56%),
      linear-gradient(-45deg, transparent 44%, #4c4947 44%, #4c4947 56%, transparent 56%);
  }
}
.nav-items { max-width: 780px; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--category-count, 6), minmax(0, 1fr)); align-items: end; min-height: 68px; }
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; padding: 9px 7px 15px; color: #464b47; background: none; border: 0; border-bottom: 2px solid transparent; font-family: inherit; font-size: 19px; font-weight: 500; letter-spacing: -.5px; }
.nav-item img { display: none; width: 44px; height: 44px; object-fit: contain; }
.home-route .nav-item img { display: block; }
.home-route .nav-items { min-height: 104px; }
.nav-item:hover, .nav-item.active { color: #111; font-weight: 500; }
.nav-item.active { border-bottom-color: transparent; }
.nav-item::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: #b5bab7; pointer-events: none; transform: scaleX(0); transform-origin: left center; transition: transform .4s cubic-bezier(.4, 0, .2, 1); }
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px); will-change: opacity, transform; transition: opacity .38s ease-out, transform .4s cubic-bezier(.22,.65,.25,1), visibility 0s linear .4s; }
.mega-panel.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.mega-panel.persistent { position: static; box-shadow: none; }
.mega-inner { --mega-title-gutter: 32px; max-width: var(--max); margin: 0 auto; padding: 26px 26px 32px; display: flex; justify-content: center; gap: 0; }
.mega-inner.single-row-menu { display: block; padding: 0; }
.single-row-menu .mega-column { width: 100%; max-width: none; padding: 0; }
.single-row-menu .mega-links { display: flex; justify-content: center; width: 100%; gap: 0; font-size: 16px; font-weight: 500; letter-spacing: -.5px; }
.single-row-menu .mega-links a { position: relative; flex: 0 0 auto; min-width: 0; height: 72px; display: flex; align-items: center; justify-content: center; padding: 0 var(--mega-title-gutter); text-align: center; white-space: nowrap; }
.single-row-menu .mega-links a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 1em; background: #ddd; transform: translateY(-50%); }
.mega-column { flex: 0 0 auto; min-width: max-content; max-width: none; padding: 0 var(--mega-title-gutter); }
.mega-column.has-overflow { max-width: none; }
.mega-column + .mega-column { position: relative; }
.mega-column + .mega-column::before { content: ""; position: absolute; left: 0; top: .3em; width: 1px; height: 1em; background: #ddd; }
.mega-title { display: block; margin-bottom: 12px; color: #616763; font-size: 16px; font-weight: 500; line-height: 1.6; letter-spacing: -.5px; text-align: center; white-space: nowrap; transition: font-weight .15s ease, color .15s ease; }
.mega-column:hover > .mega-title, .mega-column:focus-within > .mega-title { color: #111; font-weight: 700; }
.mega-link-columns { display: flex; align-items: flex-start; justify-content: center; gap: 34px; }
.mega-tile .mega-column[data-mega-title="종류별"] .mega-link-columns { gap: 34px; }
.mega-column.has-overflow .mega-links { min-width: 150px; }
.mega-links { display: grid; gap: 12px; color: #616763; font-size: 15px; font-weight: 400; line-height: 1.6; letter-spacing: -.5px; }
.mega-links a { display: flex; align-items: center; justify-content: center; text-align: center; }
.mega-links a:hover { color: #111; font-weight: 500; }
.mega-furniture { gap: 0; justify-content: stretch; }
.mega-furniture .mega-column { flex: 0 0 auto; min-width: max-content; max-width: none; padding-inline: var(--mega-title-gutter); }

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover::after { transform: scaleX(1); }
  .mega-panel.open .mega-inner { animation: megaMenuReveal .38s ease-out both; }
}

@keyframes megaMenuReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 981px) {
  .product-list-header .nav-item,
  .product-detail-header .nav-item { font-size: 18px; }
  .product-list-header .mega-title,
  .product-detail-header .mega-title,
  .product-list-header .single-row-menu .mega-links,
  .product-detail-header .single-row-menu .mega-links { font-size: 15px; }
  .product-list-header .mega-links,
  .product-detail-header .mega-links { font-size: 13px; }
  .mega-title.active,
  .mega-links a.active { color: #111; font-weight: 700; }
}

.content-shell { min-height: 650px; }
.page-container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.page-section { padding: 28px 0 70px; }
.page-title { margin: 0 0 26px; font-size: 27px; letter-spacing: -.035em; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 18px; color: #777e79; font-size: 13px; }
.breadcrumb-home { display: inline-flex; align-items: center; gap: 5px; color: #515653; }
.breadcrumb-home img { width: 15px; height: 15px; flex: 0 0 auto; object-fit: contain; }
.breadcrumb-item::before { content: ">"; margin-right: 7px; color: #aaa; }
.breadcrumb-item.current { color: #454a47; }
.breadcrumb-item.current .breadcrumb-label { text-decoration: underline; text-underline-offset: 3px; }
.empty-state { padding: 80px 20px; text-align: center; color: var(--muted); }

/* Home */
.home-stage { min-height: calc(100vh - 260px); padding-top: 80px; }
.home-categories { display: grid; grid-template-columns: repeat(var(--category-count, 6), minmax(0, 1fr)); gap: 0; max-width: 1120px; margin: 0 auto; }
.home-category { text-align: center; }
.home-category a, .home-category button { position: relative; display: grid; justify-items: center; gap: 16px; margin: 0 auto; padding: 0; color: inherit; background: none; border: 0; font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: -.5px; }
.home-category a::after, .home-category button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: #b5bab7; pointer-events: none; transform: scaleX(0); transform-origin: left center; transition: transform .4s cubic-bezier(.4, 0, .2, 1); }
.home-category img { width: 60px; height: 60px; object-fit: contain; transition: transform .2s; }
.home-category a:hover img, .home-category button:hover img, .home-category button.active img { transform: translateY(-4px); }
.home-category a:hover, .home-category a.active, .home-category button:hover, .home-category button.active { color: #000; font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .home-category a:hover::after, .home-category button:hover::after { transform: scaleX(1); }
}
.home-menu-display { display: none; border-top: 1px solid var(--line); margin-top: 24px; background: #fff; }
.home-menu-display.open, .home-menu-display.is-static { display: block; }
.home-menu-display .mega-inner { box-shadow: none; }
.responsive-category-page { display: none; }
.responsive-product-list-header { display: none; }
.responsive-product-detail-header { display: none; }
.responsive-utility-titlebar { display: none; }

/* Product cards/list */
.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.result-count { color: #777; font-size: 13px; }
.filter-toggle { width: auto; height: 28.5px; display: inline-flex; align-items: center; justify-content: center; gap: 10.125px; padding: 0 11.25px; border: 1px solid #aeb2af; border-radius: 0; color: #262626; background: #fff; }
.filter-toggle-label { font-size: 12.75px; font-weight: 500; line-height: 1; }
.filter-toggle img { width: 18px; height: 16.5px; object-fit: contain; }
.filter-panel { position: relative; margin-bottom: 18px; padding: 18px 26px 12px; background: #f1f1ef; border: 1px solid #e2e3e1; box-shadow: 0 9px 26px rgba(0,0,0,.06); }
.filter-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 14px; min-height: 70px; padding: 0; border-bottom: 1px solid #d8dad7; }
.filter-row:last-of-type { border-bottom: 0; }
.filter-label { font-weight: 800; }
.filter-options { display: grid; width: 100%; }
.filter-option-row { height: 70px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: center; gap: 18px; }
.filter-option-row + .filter-option-row { border-top: 1px solid #d8dad7; }
.filter-option { min-width: 0; border: 0; background: none; color: #8a908c; padding: 0; text-align: left; white-space: nowrap; }
.filter-option.selected { color: var(--danger); font-weight: 800; }
.filter-actions { display: flex; justify-content: center; gap: 12px; padding: 14px 0 2px; }
.filter-actions button { min-width: 140px; height: 40px; border: 1px solid #c8cac7; background: #fff; }
.filter-actions .apply { color: #fff; border-color: #242424; background: #242424; }
.responsive-filter-screen { display: none; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 34px; }
.product-card { min-width: 0; text-align: center; }
.product-card a { display: block; }
.product-image-box { aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; background: #fafafa; position: relative; }
.product-image-box::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.product-image-box img { position: relative; z-index: 1; width: 90%; height: auto; max-width: none; max-height: none; object-fit: contain; }
.standard-product-card .product-image-box { isolation: isolate; background: #fafafa; transition: background-color .18s cubic-bezier(.2,.7,.2,1); }
.standard-product-card .product-image-box img { mix-blend-mode: multiply; }
.standard-product-card .product-image-box::after { background: #fefefe; mix-blend-mode: multiply; opacity: .5; transition: opacity .18s cubic-bezier(.2,.7,.2,1); }
.standard-product-card:hover .product-image-box, .standard-product-card:focus-within .product-image-box { background: #fff; }
.standard-product-card:hover .product-image-box::after, .standard-product-card:focus-within .product-image-box::after { opacity: 0; }
.product-name { min-height: 52px; margin-top: 14px; display: grid; place-items: center; font-size: 18px; font-weight: 700; word-break: keep-all; }
.product-name > span { overflow-wrap: normal; word-break: keep-all; line-break: strict; }
.product-meta { display: flex; justify-content: center; gap: 28px; font-size: 15px; }
.product-list-section .product-name { font-size: 16px; }
.product-list-section .product-meta { font-size: 13px; }
.product-price, .product-stock { display: inline-flex; align-items: baseline; color: #111; }
.product-price-symbol { margin-right: .75em; color: #cf3941; font-size: 1em; font-weight: 300; }
.product-stock-label { margin-right: .75em; color: #cf3941; font-size: 1em; font-weight: 500; }
.product-price-amount { color: #111; font-size: 1em; font-weight: 600; }
.product-price-unit { color: #111; font-size: 1em; font-weight: 500; }
.product-stock { gap: 0; }
.product-stock-amount { color: #111; font-size: 1em; font-weight: 600; }
.product-stock-unit { margin-left: 3px; color: #111; font-size: 1em; font-weight: 500; }
.installation-card .product-image-box { aspect-ratio: 4 / 5; }
.installation-card .product-image-box::after { display: none; }
.installation-card .product-image-box img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: top; }
.installation-card:hover .product-image-box, .installation-card:focus-within .product-image-box { animation: selectedBlink .7s ease infinite; }
@keyframes selectedBlink { 0%,100% { opacity: 1; } 50% { opacity: .72; } }
.pagination { display: flex; justify-content: center; gap: 13px; align-items: center; margin-top: 56px; font-size: 14px; color: #969b97; }
.pagination a { border: 0; background: none; padding: 3px; color: inherit; }
.pagination a.current { color: #111; font-weight: 800; }

/* Detail */
.product-detail-section { padding-top: 0; }
.detail-hero { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 70px; align-items: center; padding: 34px 60px 50px; }
.detail-media { min-height: 430px; display: grid; place-items: center; }
.detail-media img { width: 100%; max-height: 520px; object-fit: contain; }
.detail-info { align-self: center; }
.detail-name { max-width: 360px; margin: 0 0 20px; font-size: 24px; line-height: 1.32; word-break: keep-all; }
.detail-price { margin-bottom: 25px; font-size: 19px; font-weight: 800; }
.detail-spec { display: grid; grid-template-columns: 68px 1fr; gap: 8px 12px; color: #636a65; font-size: 15px; }
.installation-detail-section .detail-hero { padding-block: 10px; }
.installation-detail-section .detail-info { padding-top: 0; }
.detail-spec dt { color: #484e4a; }
.detail-spec dd { margin: 0; }
.tile-faces { width: min(100%, 980px); max-width: none; margin: 15px auto 72px; }
.tile-faces h2 { text-align: center; font-size: 22px; }
.faces-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: #fff; }
.faces-grid img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.dimension-diagram { width: min(100%, 980px); margin: 0 auto 72px; }
.dimension-diagram img { display: block; width: 100%; height: auto; }
.installation-feature { width: min(100%, 980px); margin: 0 auto 72px; }
.installation-feature img { display: block; width: 100%; height: auto; object-fit: contain; }
.tile-detail-reference { width: min(100%, 980px); margin: 0 auto 72px; }
.tile-detail-reference img { display: block; width: 100%; height: auto; }
.tile-detail-gallery { width: min(100%, 980px); margin: 0 auto 72px; }
.tile-detail-gallery h2 { margin: 0 0 22px; text-align: center; font-size: 22px; }
.tile-detail-gallery-grid { display: grid; gap: 34px; align-items: start; }
.tile-detail-gallery-grid.installation-gallery, .tile-detail-gallery-grid.photo-gallery { grid-template-columns: minmax(0, 1fr); }
.tile-detail-gallery-grid figure { min-width: 0; margin: 0; }
.tile-detail-gallery-grid img { display: block; width: 100%; height: auto; }

@media (min-width: 821px) {
  .product-detail-section .detail-hero { height: calc(100vh - var(--detail-header-height, 258px)); min-height: 0; }
  .product-detail-section .detail-media { min-height: 0; align-self: stretch; }
  .product-detail-section .detail-media img { max-height: min(520px, calc(100vh - var(--detail-header-height, 258px) - 84px)); }
  .product-detail-section .detail-info { align-self: center; }
  .product-detail-section.top-aligned-detail-section .detail-info { align-self: start; }
  .installation-detail-section .detail-hero { grid-template-rows: minmax(0, 1fr); }
  .installation-detail-section .detail-media { position: relative; height: 100%; min-height: 0; overflow: hidden; }
  .installation-detail-section .detail-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
  .installation-detail-content { min-height: 0; }
  .installation-detail-section { padding-bottom: 0; }
}

@media (min-width: 981px) {
  :is(.tile-faces, .dimension-diagram, .installation-feature, .tile-detail-reference, .tile-detail-gallery) {
    width: min(100%, 830px);
  }
}

/* Utility side menu/pages */
.utility-layout { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 48px; padding-top: 36px; }
.utility-layout::before { content: ""; position: absolute; top: 36px; bottom: 0; left: 204px; width: 1px; background: rgba(20,24,21,.18); pointer-events: none; }
.side-menu { position: sticky; top: 275px; align-self: start; display: grid; }
.side-menu a { padding: 12px 13px; border-bottom: 1px solid #eee; color: #555; }
.side-menu-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.side-menu-arrow { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.side-menu-link[aria-expanded="true"] .side-menu-arrow { transform: rotate(180deg); }
.side-menu a:hover { background: #f5f6f5; }
.side-menu a.active { color: #111; font-weight: 800; border-bottom: 3px solid #111; }
.utility-content { min-width: 0; padding-left: 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.section-heading h1 { margin: 0; font-size: 25px; }
.list-table { width: 100%; border-collapse: collapse; }
.list-table th, .list-table td { padding: 16px 14px; border-bottom: 1px solid #e4e6e4; text-align: left; }
.notice-list-table td { padding-top: 30px; padding-bottom: 30px; }
.list-table tr:hover td { background: #f7f8f7; }
.list-table a:hover { font-weight: 800; text-decoration: underline; }
.list-table .date, .list-table th:last-child { width: 130px; text-align: right; }
.notice-detail { padding: 0 0 60px; }
.notice-detail h1 { font-size: 26px; }
.notice-date { color: #777; padding-bottom: 15px; border-bottom: 1px solid #ddd; }
.notice-body { min-height: 260px; white-space: pre-wrap; padding: 30px 0; font-size: 16px; }
.back-button { display: inline-flex; min-width: 90px; justify-content: center; padding: 10px 17px; border: 1px solid #bbb; background: #fff; }

/* Date, ledger, delivery */
.account-line { margin-bottom: 18px; color: var(--brand); font-size: 18px; font-weight: 700; }
.date-filter { display: flex; align-items: center; gap: 10px; padding: 18px; background: #f6f7f6; margin-bottom: 20px; }
.date-filter label { font-weight: 800; margin-right: 12px; }
.date-filter input { height: 38px; border: 1px solid #d2d5d2; padding: 0 10px; background: #fff; }
.date-filter button { margin-left: auto; height: 38px; min-width: 78px; color: #fff; border: 0; background: var(--brand); }
.date-filter-ledger { display: grid; grid-template-columns: 100px minmax(390px, 1fr) 135px; gap: 24px; padding: 10px 12px; margin: 28px 0 38px; border: 1px solid rgba(255,255,255,.95); border-radius: 18px; background: rgba(255,255,255,.4); box-shadow: 0 5px 16px rgba(31,39,34,.07); }
.ledger-responsive-page .date-filter.date-filter-ledger { box-shadow: 0 2px 7px rgba(31,39,34,.17); }
.date-filter-ledger .date-filter-label { align-self: stretch; display: grid; place-items: center; color: #666b68; font-size: 18px; font-weight: 500; text-align: center; }
.ledger-date-control { position: relative; min-width: 0; }
.ledger-date-range { height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; border: 1px solid #606561; border-radius: 15px; background: #fff; overflow: hidden; }
.date-filter-ledger .ledger-date-trigger { position: relative; width: 100%; height: 56px; min-width: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 42px; color: #242725; border: 0; border-radius: 0; outline: 0; background: transparent; font-size: 18px; font-weight: 600; text-align: center; }
.ledger-date-trigger span { width: 100%; text-align: center; }
.date-filter-ledger .ledger-date-trigger:focus-visible { box-shadow: inset 0 0 0 2px rgba(47,120,79,.35); }
.ledger-date-trigger svg { position: absolute; right: 17px; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.date-range-separator { color: #272a28; text-align: center; font-size: 18px; font-weight: 700; }
.date-filter-ledger > button[type="submit"] { width: 135px; height: 58px; min-width: 0; margin: 0; border-radius: 10px; font-size: 18px; font-weight: 800; }
.ledger-datepicker { position: absolute; z-index: 40; top: calc(100% + 10px); left: 50%; width: min(72%, 432px); padding: 29px 19px 18px; border: 2px solid var(--brand); background: #fff; box-shadow: 0 12px 28px rgba(20,45,29,.12); transform: translateX(-50%); }
.date-filter-ledger .ledger-datepicker-close { position: absolute; top: -2px; right: -2px; width: 37px; height: 37px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--brand); }
.ledger-datepicker-close span::before, .ledger-datepicker-close span::after { content: ""; position: absolute; top: 18px; left: 7px; width: 23px; height: 1px; background: rgba(255,255,255,.78); }
.ledger-datepicker-close span::before { transform: rotate(45deg); }
.ledger-datepicker-close span::after { transform: rotate(-45deg); }
.ledger-calendar-header { display: grid; grid-template-columns: 31px 1fr 31px; align-items: center; gap: 13px; padding: 11px 27px 16px; }
.ledger-calendar-header strong { color: #4e514f; text-align: center; font-size: 18px; font-weight: 400; }
.date-filter-ledger .ledger-calendar-header button { width: 31px; height: 31px; min-width: 0; display: grid; place-items: center; margin: 0; padding: 0; color: var(--brand); border: 1px solid var(--brand); border-radius: 2px; background: #fff; }
.ledger-calendar-header button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.ledger-calendar-weekdays, .ledger-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ledger-calendar-weekdays { height: 37px; align-items: center; color: #5f625f; background: #e4e6e2; font-size: 14px; }
.ledger-calendar-weekdays span { text-align: center; }
.ledger-calendar-days { grid-auto-rows: 39px; padding-top: 4px; }
.ledger-calendar-blank { display: block; }
.date-filter-ledger .ledger-calendar-day { width: 72%; height: 32px; min-width: 0; align-self: center; justify-self: center; margin: 0; padding: 0; color: #303330; border: 0; border-radius: 0; background: #fff; font-size: 15px; font-weight: 400; }
.date-filter-ledger .ledger-calendar-day.sunday { color: #e13c35; }
.date-filter-ledger .ledger-calendar-day:hover { color: var(--brand); background: #eef4ef; }
.date-filter-ledger .ledger-calendar-day.selected { color: #fff; background: var(--brand); }
.ledger-results { overflow-x: auto; }
.ledger-table { width: 100%; min-width: 680px; table-layout: fixed; border-collapse: collapse; }
.ledger-col-item { width: 32%; }
.ledger-col-size { width: 17%; }
.ledger-col-qty { width: 12%; }
.ledger-col-price { width: 20%; }
.ledger-col-total { width: 19%; }
.ledger-table-heading th { height: 58px; padding: 0 24px; color: #454a46; border-right: 1px solid #d2d6d3; background: #e0e3e4; text-align: center; font-size: 16px; }
.ledger-table th:nth-child(4), .ledger-table td:nth-child(4) { padding-inline: 6px; overflow: hidden; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.ledger-table td:nth-child(4) { font-size: 14px; }
.ledger-table-heading th:first-child { text-align: left; }
.ledger-table-heading th:last-child { border-right: 0; }
.ledger-group { min-width: 650px; margin: 18px 0 28px; }
.ledger-group-title { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 9px 28px 8px; border-bottom: 2px solid #272a28; }
.ledger-group-title span { display: flex; gap: 16px; }
.ledger-group-title strong { font-weight: 800; }
.ledger-group .ledger-table th, .ledger-group .ledger-table td { height: 47px; padding: 0 24px; border-bottom: 1px solid #d6dad7; border-right: 1px solid #d6dad7; text-align: center; font-weight: 400; }
.ledger-group .ledger-table th:first-child, .ledger-group .ledger-table td:first-child { text-align: left; }
.ledger-group .ledger-table th:last-child, .ledger-group .ledger-table td:last-child { border-right: 0; }
.ledger-group .ledger-table .ledger-subtotal th, .ledger-group .ledger-table .ledger-subtotal td { height: 47px; border-bottom: 0; background: #e0e3e4; }
.ledger-group .ledger-table .ledger-subtotal th { font-weight: 800; }
.ledger-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 58px 0 22px; }
.ledger-summary > div { min-width: 0; height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid #8b908c; border-radius: 12px; }
.ledger-summary dt { display: flex; align-items: center; gap: 12px; margin: 0; white-space: nowrap; font-size: 16px; font-weight: 800; }
.ledger-summary dt::after { content: ""; width: 1px; height: 19px; background: #b2b6b3; }
.ledger-summary dd { min-width: 0; margin: 0 0 0 auto; white-space: nowrap; text-align: right; font-size: 16px; font-weight: 800; }
.delivery-list { counter-reset: row; }
.delivery-row { display: grid; grid-template-columns: 50px 1fr 130px; gap: 15px; align-items: center; padding: 15px 10px; border-bottom: 1px solid #e2e4e2; }
.delivery-row:hover { background: #f7f8f7; }
.delivery-row .no { color: #777; }
.delivery-row .date { text-align: right; color: #666; }
.delivery-section-title { margin-bottom: 28px; font-size: 25px; font-weight: 700; }
.delivery-detail-title { margin: 0; font-size: 22px; }
.delivery-detail-content { margin: 20px 0 0; padding: 36px 0; border-top: 1px solid #555a56; border-bottom: 1px solid #555a56; }
.delivery-detail-grid { display: grid; grid-template-columns: 180px 1fr; }
.delivery-detail-grid dt, .delivery-detail-grid dd { min-height: 55px; display: flex; align-items: center; margin: 0; padding: 12px 24px; border-bottom: 1px solid #dfe2e0; }
.delivery-detail-grid dt { color: #626863; border-bottom-color: #c8cdca; font-weight: 700; background: #e2e4e3; }
.delivery-detail-grid dd { color: #3f4440; }
.delivery-detail-nav { margin-top: 32px; }
.prev-next { margin-top: 36px; border-top: 1px solid #ddd; }
.prev-next a { display: grid; grid-template-columns: 80px 1fr; padding: 13px 5px; border-bottom: 1px solid #ddd; }

/* Downloads */
.download-category-grid { width: 60%; display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 34px; }
.download-category-card { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; border: 1px solid transparent; border-radius: 22px; background: #f0f2f2; font-size: 18px; font-weight: 800; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.download-category-card:hover { border-color: #555b57; box-shadow: 0 8px 20px rgba(0,0,0,.05); transform: translateY(-1px); }
.download-category-card:hover > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.download-category-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: #252825; }
.download-category-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.download-category-icon img { display: block; width: 40px; height: 40px; object-fit: contain; }
.download-list-table { border-top: 1px solid #202321; }
.download-list-table td { padding-top: 37px; padding-bottom: 37px; }
.download-list-table td:first-child a { font-size: 17px; }
.download-submenu { display: grid; gap: 3px; margin: 14px 0 20px; }
.download-submenu a { padding-left: 26px; font-size: 14px; }
.download-submenu a.active { color: var(--brand); border-bottom: 1px solid #eee; font-weight: 800; }
.download-detail > .section-heading { margin-bottom: 30px; }
.download-detail > .section-heading h1 { font-size: 25px; }
.download-detail .download-detail-title { margin: 0; font-size: 22px; }
.file-list { display: grid; gap: 11px; margin: 20px 0 32px; padding: 28px 0; border-top: 1px solid #333735; border-bottom: 1px solid #333735; }
.file-row { min-height: 42px; display: flex; align-items: center; gap: 13px; padding: 8px 14px; border: 1px solid #d2d6d3; border-radius: 8px; background: #fff; }
.file-row .file-download-icon { width: 19px; height: 19px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; color: var(--brand); background: transparent; }
.file-download-icon svg { width: 17px; height: 17px; }
.file-download-icon rect { fill: currentColor; stroke: none; }
.file-download-icon path { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.download-detail-nav { margin-top: 0; padding: 7px 38px; border: 1px solid #c9ceca; border-radius: 10px; background: #fff; }
.download-detail-nav.delivery-detail-nav { margin-top: 32px; }
.download-detail-nav a, .download-detail-nav .detail-nav-row { display: grid; grid-template-columns: 64px 1px minmax(0, 1fr); align-items: center; gap: 22px; padding: 12px 0; border-bottom: 1px solid #e0e3e1; }
.download-detail-nav > :last-child { border-bottom: 0; }
.download-detail-nav a > span, .download-detail-nav .detail-nav-row > span { font-size: 16px; font-weight: 800; }
.download-detail-nav a > i, .download-detail-nav .detail-nav-row > i { width: 1px; height: 18px; background: #aeb3af; }
.download-detail-nav a > strong, .download-detail-nav .detail-nav-row > strong { overflow: hidden; color: #5e645f; font-size: 15px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.download-detail-nav a:hover > strong { color: #171a18; text-decoration: underline; }
.download-detail-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.download-detail-actions .back-button { min-width: 98px; min-height: 48px; align-items: center; border-color: #8f9490; border-radius: 7px; font-weight: 800; }

/* Sales center */
.rep-phone { margin-bottom: 22px; font-size: 25px; font-weight: 400; }
.rep-phone strong { font-weight: 700; }
.staff-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 14px; }
.staff-card { min-width: 0; min-height: 230px; display: grid; grid-template-rows: auto auto minmax(72px, 1fr); align-items: start; padding: 14px 9px 7px; border-radius: 18px; background: var(--staff-card-color, #e7efd9); box-shadow: inset 0 0 0 1px rgba(44,57,48,.025); overflow: hidden; }
.staff-card-head { min-width: 0; display: flex; align-items: center; gap: 9px; text-align: left; }
.staff-photo { width: 60px; height: 60px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #fff; }
.staff-name { min-width: 0; font-size: 19px; font-weight: 700; line-height: 1.3; word-break: keep-all; }
.staff-phone { margin: 17px 0 12px; color: var(--staff-accent-color, #69b96a); font-size: clamp(16px, 1.45vw, 21px); font-weight: 600; line-height: 1.2; letter-spacing: -.45px; text-align: center; white-space: nowrap; }
.staff-actions, .rep-phone-mobile { display: none; }
.staff-area { min-height: 72px; display: grid; place-items: center; align-self: stretch; padding: 10px 6px; color: #555b56; border-radius: 9px; background: #fff; font-size: 14px; line-height: 1.5; letter-spacing: -.4px; text-align: center; word-break: keep-all; }
.staff-area-dot { display: inline-block; margin: 0 2px; }
.location-section { margin-top: 52px; padding: 30px; border: 1px solid #cdd2ce; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(22,28,24,.03); }
.location-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.location-title h2, .business-info h2 { margin: 0; font-size: 25px; font-weight: 700; }
.location-title strong { color: #6c726d; font-size: 16px; font-weight: 600; }
.map-frame { position: relative; height: 360px; overflow: hidden; border: 1px solid #ccd2cd; background: #eef2ec; }
.map-canvas { width: 100%; height: 100%; background: #eef2ec; }
.map-canvas img { max-width: none; }
.map-loading, .map-error-message { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; color: #68706a; text-align: center; }
.map-loading::before { content: ""; width: 28px; height: 28px; border: 3px solid #d5dad6; border-top-color: var(--brand); border-radius: 50%; animation: mapLoadingSpin .75s linear infinite; }
.map-load-error { background: #f5f6f5; }
.map-error-message strong { color: #343936; font-size: 17px; }
.map-error-message span { font-size: 14px; }
.map-error-message a { margin-top: 7px; padding: 8px 14px; color: #fff; border-radius: 5px; background: #03c75a; font-weight: 700; }
.naver-brand-marker { position: relative; width: 116px; display: grid; justify-items: center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.16)); cursor: pointer; }
.naver-brand-marker span { min-width: 116px; padding: 7px 13px; color: #d8392e; border: 2px solid #d8392e; border-radius: 20px; background: #fff; font-size: 15px; font-weight: 800; line-height: 1; text-align: center; white-space: nowrap; }
.naver-brand-marker i { z-index: -1; width: 12px; height: 12px; margin-top: -7px; border-right: 2px solid #d8392e; border-bottom: 2px solid #d8392e; background: #fff; transform: rotate(45deg); }
.naver-brand-marker b { position: relative; width: 20px; height: 21px; margin-top: 1px; border-radius: 50% 50% 46% 46%; background: #d9262e; box-shadow: inset 0 0 0 1px rgba(122,0,5,.25); }
.naver-brand-marker b::before { content: ""; position: absolute; left: 7px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.naver-brand-marker b::after { content: ""; position: absolute; left: 5px; bottom: -6px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid #d9262e; }
@keyframes mapLoadingSpin { to { transform: rotate(360deg); } }
.business-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 52px; margin-top: 34px; padding: 30px 40px 32px; border: 1px solid #cdd2ce; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(22,28,24,.03); }
.business-info h2 { grid-column: 1 / -1; margin-bottom: 4px; }
.business-info p { margin: 8px 0; color: #656b66; font-size: 16px; }

/* Floating actions */
.quick-actions { position: fixed; right: 24px; bottom: 84px; z-index: 45; width: 68px; display: grid; background: #363836; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,.18); }
.quick-actions a { min-height: 60px; display: grid; place-items: center; align-content: center; gap: 3px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 11px; text-align: center; }
.quick-actions a:last-child { border-bottom: 0; }
.quick-actions a:hover, .quick-actions a.active { background: var(--brand); }
.quick-logout { display: none; }
.quick-icon-mobile { display: none; }
.quick-icon-mobile-slot { display: none; }
.quick-icon { width: 25px; height: 25px; object-fit: contain; }
.top-button { position: fixed; right: 35px; bottom: 30px; z-index: 45; width: 45px; height: 45px; display: grid; place-items: center; padding: 0; border-radius: 50%; color: #fff; background: #363836; border: 0; }
.top-icon { width: 28px; height: 34px; object-fit: contain; }

@media (min-width: 981px) {
  .utility-bar { gap: 0; }
  .utility-bar a,
  .utility-bar button {
    gap: 0;
    color: #bdb6b2;
    font-weight: 500;
    transition: color .18s ease;
  }
  .utility-bar a:hover,
  .utility-bar button:hover { color: #7d7771; }
  .utility-bar .utility-icon { display: none; }
  .utility-bar button::before {
    content: "";
    width: 1px;
    height: 1em;
    margin: 0 18px;
    background: #bdb6b2;
  }
  .home-category a,
  .home-category button,
  .home-category a:hover,
  .home-category a.active,
  .home-category button:hover,
  .home-category button.active { color: #4c4947; }
  .home-category a::after,
  .home-category button::after { display: none; }
  .home-category span { position: relative; }
  .home-category span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: #b5bab7;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  }
  .home-category a:hover span::after,
  .home-category button:hover span::after { transform: scaleX(1); }
  .home-category img {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    height: 60px;
    min-height: 60px;
    image-rendering: -webkit-optimize-contrast;
    filter: brightness(.88) contrast(1.02) saturate(1.06);
  }
  .home-category [data-home-menu="tile"] img { filter: none; }
  .quick-actions { bottom: 93px; background: #4c4947; }
  .quick-actions a:hover, .quick-actions a.active { background: #547d5c; }
  .top-button { background: #4c4947; }
  .top-button .top-icon { display: none; }
  .top-button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: translate(-50%, -32%) rotate(45deg);
  }

  .side-menu { width: 220px; transform: translateX(-40px); }
}

/* Search */
.search-heading { margin: 0 0 20px; font-size: 24px; }
.search-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.search-tabs button { border: 1px solid #ddd; background: #fff; padding: 8px 14px; }
.search-tabs button.active { color: #fff; border-color: var(--brand); background: var(--brand); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 100; transform: translate(-50%, 20px); padding: 12px 20px; color: #fff; background: rgba(20,25,22,.92); border-radius: 8px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 981px) and (max-width: 1200px) {
  .page-container { width: min(var(--max), calc(100% - 128px)); }
  .quick-actions { right: 8px; width: 56px; }
  .quick-actions a { min-height: 56px; font-size: 10px; }
  .top-button { right: 14px; }
}

@media (max-width: 980px) {
  :root { --max: 920px; --mobile-dock-height: 66px; }
  .login-form input,
  .global-search input { font-size: 16px; }
  .global-search input::placeholder { font-size: 15px; }
  .page-section { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mega-inner { justify-content: flex-start; gap: 0; padding-inline: 22px; overflow-x: auto; }
  .detail-hero { gap: 30px; padding-inline: 24px; }
  .product-detail-section .detail-name { margin-bottom: 14.4px; font-size: 19.2px; }
  .product-detail-section .detail-price { margin-bottom: 20px; font-size: 15.2px; }
  .product-detail-section .detail-spec { grid-template-columns: 54.4px minmax(0, 1fr); gap: 6.4px 9.6px; font-size: 12px; }
  .utility-layout { grid-template-columns: 155px minmax(0, 1fr); gap: 32px; }
  .utility-layout::before { left: 171px; }
  .utility-content { padding-left: 40px; }
  .date-filter-ledger { grid-template-columns: 86px minmax(0, 1fr) 104px; gap: 12px; }
  .date-filter-ledger .date-filter-label { font-size: 16px; }
  .date-filter-ledger .ledger-date-trigger { padding-inline: 36px; font-size: 15px; }
  .date-filter-ledger > button[type="submit"] { width: 104px; }
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-category-grid { width: 75%; }
  .quick-actions { left: 12px; right: 12px; bottom: max(6px, env(safe-area-inset-bottom)); width: auto; display: flex; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .quick-actions a { flex: 1 1 0; min-width: 0; min-height: 54px; gap: 1px; padding: 4px 2px; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 0; font-size: 10px; line-height: 1.2; }
  .quick-actions a:last-child { border-right: 0; }
  .quick-icon { width: 22px; height: 22px; }
  .top-button { right: 16px; bottom: calc(var(--mobile-dock-height) + env(safe-area-inset-bottom) + 8px); }
  .toast { bottom: calc(var(--mobile-dock-height) + env(safe-area-inset-bottom) + 12px); }
}

@media (max-width: 820px) {
  :root { --mobile-dock-height: 66px; }
  body { font-size: 15px; }
  .content-shell { min-height: calc(100dvh - 190px); }
  .utility-bar { height: calc(40px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; gap: 15px; font-size: 12px; }
  .utility-bar a, .utility-bar button { min-height: 36px; gap: 5px; }
  .utility-icon { width: 17px; height: 17px; }
  .brand-strip, .brand-strip.texture { min-height: 74px; }
  .brand-strip img { width: min(434px, calc(100vw - 56px)); height: 52.43px; }
  .site-header.compact-brand .brand-strip, .site-header.compact-brand .brand-strip.texture { min-height: 52px; height: 52px; }
  .site-header.compact-brand .brand-strip.texture { background-size: auto 180px; }
  .site-header.compact-brand .brand-strip img { width: min(434px, calc(100vw - 56px)); height: 52.43px; }
  .search-wrap { padding: 10px 12px 7px; }
  .site-header.home-header .search-wrap { padding: 24px 12px 22px; }
  .global-search input { height: 42px; padding-inline: 45px 18px; }
  .search-icon { left: 15px; width: 19px; height: 19px; }
  .nav-items { min-height: 58px; display: flex; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; padding: 0 8px; scroll-padding-inline: 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .nav-items::-webkit-scrollbar, .side-menu::-webkit-scrollbar, .single-row-menu .mega-links::-webkit-scrollbar, .search-tabs::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 96px; min-width: 96px; min-height: 58px; padding: 8px 6px 10px; scroll-snap-align: center; font-size: 15px; }
  .home-route .nav-items { min-height: 82px; }
  .home-route .nav-item img { width: 36px; height: 36px; }
  .mega-panel { position: absolute; top: 100%; max-height: calc(100dvh - var(--responsive-header-height, 231px)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .mega-panel.persistent { position: static; max-height: none; overflow: visible; }
  .mega-inner:not(.single-row-menu) { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 24px 18px; padding: 22px 18px 28px; overflow: visible; }
  .mega-inner.single-row-menu { padding: 0; overflow: hidden; }
  .single-row-menu .mega-links { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
  .single-row-menu .mega-links a { flex: 0 0 auto; min-width: 108px; height: 56px; padding-inline: 16px; scroll-snap-align: start; font-size: 15px; }
  .mega-column, .mega-furniture .mega-column { width: auto; min-width: 0; max-width: none; padding: 0; }
  .mega-column.has-overflow { grid-column: 1 / -1; }
  .mega-column + .mega-column { padding-left: 0; }
  .mega-column + .mega-column::before { display: none; }
  .mega-title { margin-bottom: 10px; font-size: 16px; text-align: left; white-space: normal; }
  .mega-link-columns { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 18px; }
  .mega-tile .mega-column[data-mega-title="종류별"] .mega-link-columns { gap: 8px; }
  .mega-column.has-overflow .mega-links { min-width: 0; }
  .mega-links { gap: 8px; font-size: 14px; }
  .mega-links a { min-height: 27px; display: flex; align-items: center; }
  .home-stage { min-height: calc(100dvh - 180px); padding-top: 8px; }
  .home-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 8px; }
  .home-category a, .home-category button { width: 100%; min-height: 82px; gap: 7px; }
  .home-category img { width: 52px; height: 52px; }
  .home-menu-display { display: none; margin-top: 20px; }
  .page-container { width: min(calc(100% - 24px), var(--max)); }
  .page-section { padding: 22px 0 calc(44px + var(--mobile-dock-height) + env(safe-area-inset-bottom)); }
  .page-title { margin-bottom: 20px; font-size: 24px; }
  .breadcrumb { gap: 5px; margin-bottom: 15px; font-size: 12px; }
  .breadcrumb-item::before { margin-right: 5px; }
  .list-toolbar { min-height: 42px; margin-bottom: 10px; }
  .filter-toggle { width: auto; height: 31.5px; }
  .filter-toggle img { width: 18px; height: 16.5px; }
  .filter-panel { margin-inline: -2px; padding: 10px 14px 12px; }
  .filter-row { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .filter-label { min-height: 44px; display: flex; align-items: center; }
  .filter-option-row { height: auto; min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
  .filter-option-row + .filter-option-row { border-top: 1px solid #d8dad7; }
  .filter-option { min-height: 46px; overflow: hidden; text-overflow: ellipsis; }
  .filter-option-row .filter-option:nth-child(n+4) { border-top: 1px solid #d8dad7; }
  .filter-actions { gap: 8px; padding-top: 12px; }
  .filter-actions button { flex: 1 1 0; min-width: 0; min-height: 44px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 14px; }
  .product-name { min-height: 50px; margin-top: 10px; font-size: clamp(15px, 4vw, 18px); line-height: 1.4; }
  .product-meta { display: grid; gap: 1px; font-size: 14px; line-height: 1.45; }
  .product-list-section .product-name { font-size: clamp(13px, calc(4vw - 2px), 16px); }
  .product-list-section .product-meta { font-size: 12px; }
  .pagination { flex-wrap: wrap; gap: 5px; margin-top: 40px; }
  .pagination a { min-width: 38px; min-height: 38px; display: grid; place-items: center; }
  .detail-hero { min-height: 0; grid-template-columns: 1fr; gap: 8px; padding: 18px 2px 38px; }
  .detail-media { min-height: 0; height: min(calc(100vw - 24px), 58dvh, 520px); aspect-ratio: auto; }
  .detail-media img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
  .detail-info { padding: 12px 9.6px 0; }
  .installation-detail-section .detail-hero { padding-block: 10px 30px; }
  .installation-detail-section .detail-media { height: auto; aspect-ratio: auto; }
  .installation-detail-section .detail-media img { height: auto; max-height: min(58dvh, 520px); }
  .installation-detail-section .detail-info { padding: 0 9.6px; }
  .product-detail-section .detail-name { max-width: none; margin-bottom: 14.4px; font-size: 17.6px; }
  .product-detail-section .detail-price { margin-bottom: 16px; font-size: 14.4px; }
  .product-detail-section .detail-spec { grid-template-columns: 48px minmax(0, 1fr); font-size: 12px; }
  .tile-faces { margin: 5px auto 48px; }
  .tile-faces h2 { font-size: 20px; }
  .dimension-diagram { margin-bottom: 48px; }
  .installation-feature { margin-bottom: 48px; }
  .tile-detail-reference, .tile-detail-gallery { margin-bottom: 48px; }
  .tile-detail-gallery h2 { margin-bottom: 16px; font-size: 20px; }
  .tile-detail-gallery-grid { gap: 14px; }
  .tile-detail-gallery-grid.installation-gallery, .tile-detail-gallery-grid.photo-gallery { grid-template-columns: 1fr; }
  .utility-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 14px; }
  .utility-layout::before { display: none; }
  .utility-content { padding-left: 0; }
  .side-menu { position: static; display: flex; overflow-x: auto; overscroll-behavior-x: contain; margin-inline: 0; padding-inline: 0; border-bottom: 1px solid #ddd; scroll-padding-inline: 0; scroll-snap-type: x proximity; scrollbar-width: none; }
  .side-menu > a { flex: 0 0 auto; min-height: 48px; display: flex; align-items: center; padding: 10px 14px; white-space: nowrap; scroll-snap-align: start; }
  .side-menu a.active { border-bottom-width: 2px; }
  .download-submenu { flex: 0 0 auto; display: flex; align-items: stretch; gap: 0; margin: 0; }
  .download-submenu a { min-height: 48px; display: flex; align-items: center; padding: 10px 13px; white-space: nowrap; }
  .section-heading { gap: 12px; margin-bottom: 18px; }
  .section-heading h1 { font-size: 23px; }
  .rep-phone { font-size: 23px; }
  .list-table { table-layout: fixed; }
  .list-table th, .list-table td { padding: 15px 10px; overflow-wrap: anywhere; }
  .notice-list-table td { padding-top: 28px; padding-bottom: 28px; }
  .list-table .date, .list-table th:last-child { width: 96px; font-size: 13px; }
  .list-table .date { white-space: nowrap; }
  .notice-detail { padding-bottom: 28px; }
  .notice-detail h1 { font-size: 23px; line-height: 1.4; }
  .notice-body { min-height: 200px; padding-block: 24px; }
  .account-line { font-size: 16px; overflow-wrap: anywhere; }
  .date-filter { flex-wrap: wrap; padding: 14px; }
  .date-filter label { width: 100%; }
  .date-filter button { min-height: 44px; margin-left: 0; }
  .date-filter-ledger { grid-template-columns: max-content minmax(0, 1fr); gap: 11px; margin-block: 18px 28px; }
  .date-filter-ledger .date-filter-label { width: auto; font-size: 16px; }
  .date-filter-ledger .ledger-date-control { width: 100%; min-width: 0; }
  .ledger-date-range { height: 54px; border-radius: 13px; }
  .date-filter-ledger .ledger-date-trigger { height: 52px; padding-inline: 34px; font-size: 14px; }
  .ledger-date-trigger svg { right: 10px; width: 18px; height: 18px; }
  .date-filter-ledger > button[type="submit"] { grid-column: 1 / -1; width: 100%; height: 50px; min-height: 50px; }
  .ledger-datepicker { position: fixed; z-index: 80; top: 50%; left: 50%; width: min(calc(100% - 24px), 390px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 29px 10px 16px; transform: translate(-50%, -50%); }
  .date-filter-ledger .ledger-datepicker-close { width: 36px; height: 36px; }
  .ledger-datepicker-close span::before, .ledger-datepicker-close span::after { top: 17px; left: 7px; width: 22px; }
  .ledger-calendar-header { grid-template-columns: 30px 1fr 30px; gap: 8px; padding: 13px 11px 16px; }
  .ledger-calendar-header strong { font-size: 18px; }
  .date-filter-ledger .ledger-calendar-header button { width: 30px; height: 30px; }
  .ledger-calendar-weekdays { height: 36px; font-size: 14px; }
  .ledger-calendar-days { grid-auto-rows: 38px; }
  .date-filter-ledger .ledger-calendar-day { height: 31px; font-size: 15px; }
  .ledger-results { margin-inline: -2px; padding-bottom: 8px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .ledger-table, .ledger-group { min-width: 680px; }
  .ledger-group-title { grid-template-columns: 200px minmax(0, 1fr); padding-inline: 20px; }
  .ledger-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 34px; }
  .ledger-summary > div { height: 58px; padding-inline: 13px; }
  .ledger-summary dt, .ledger-summary dd { font-size: 15px; }
  .delivery-row { grid-template-columns: 42px minmax(0, 1fr) 96px; gap: 10px; padding-inline: 6px; }
  .delivery-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .delivery-row .date { font-size: 13px; }
  .delivery-section-title { margin-bottom: 22px; font-size: 24px; }
  .delivery-detail-title, .download-detail .download-detail-title { font-size: 21px; line-height: 1.4; }
  .delivery-detail-content { padding-block: 24px; }
  .delivery-detail-grid { grid-template-columns: 132px minmax(0, 1fr); }
  .delivery-detail-grid dt, .delivery-detail-grid dd { min-width: 0; min-height: 52px; padding: 11px 15px; overflow-wrap: anywhere; }
  .prev-next { margin-top: 28px; }
  .download-category-grid { width: 100%; grid-template-columns: 1fr; gap: 15px; margin-top: 23px; }
  .download-category-card { min-height: 66px; padding-inline: 22px; border-radius: 18px; font-size: 17px; }
  .download-category-icon, .download-category-icon svg, .download-category-icon img { width: 34px; height: 34px; }
  .download-list-table td { padding-block: 32px; }
  .download-list-table td:first-child a { font-size: 16px; }
  .file-list { margin-block: 18px 26px; padding-block: 20px; }
  .file-row { min-width: 0; padding-inline: 11px; }
  .file-row span { min-width: 0; overflow-wrap: anywhere; }
  .download-detail-nav { padding-inline: 16px; }
  .download-detail-nav a, .download-detail-nav .detail-nav-row { grid-template-columns: 52px 1px minmax(0, 1fr); gap: 11px; }
  .download-detail-nav a > span, .download-detail-nav .detail-nav-row > span { font-size: 15px; }
  .download-detail-nav a > strong, .download-detail-nav .detail-nav-row > strong { font-size: 14px; }
  .download-detail-actions .back-button { min-width: 88px; min-height: 44px; }
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .staff-card { min-height: 218px; border-radius: 16px; }
  .staff-photo { width: 54px; height: 54px; }
  .staff-name { font-size: 17px; }
  .staff-phone { font-size: clamp(15px, 4.1vw, 19px); }
  .staff-area { font-size: 14px; }
  .location-section { margin-top: 38px; padding: 20px; border-radius: 14px; }
  .location-title { display: grid; gap: 7px; margin-bottom: 18px; }
  .location-title h2, .business-info h2 { font-size: 23px; }
  .location-title strong { font-size: 14px; overflow-wrap: anywhere; }
  .map-frame { height: 270px; }
  .business-info { grid-template-columns: 1fr; gap: 4px; padding: 22px; border-radius: 14px; }
  .business-info h2 { margin-bottom: 10px; }
  .business-info p { margin-block: 6px; font-size: 15px; overflow-wrap: anywhere; }
  .quick-actions { left: 8px; right: 8px; bottom: max(6px, env(safe-area-inset-bottom)); width: auto; display: flex; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .quick-actions a { flex: 1 1 0; min-width: 0; min-height: 54px; gap: 1px; padding: 4px 2px; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 0; font-size: 9px; line-height: 1.2; }
  .quick-actions a:last-child { border-right: 0; }
  .quick-icon { width: 21px; height: 21px; }
  .top-button { right: 12px; bottom: calc(var(--mobile-dock-height) + env(safe-area-inset-bottom) + 8px); width: 42px; height: 42px; }
  .top-icon { width: 25px; height: 30px; }
  .search-heading { font-size: 21px; line-height: 1.4; }
  .search-tabs { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 3px; scrollbar-width: none; }
  .search-tabs button { flex: 0 0 auto; min-height: 42px; white-space: nowrap; }
  .toast { bottom: calc(var(--mobile-dock-height) + env(safe-area-inset-bottom) + 12px); width: min(calc(100% - 32px), 420px); text-align: center; }
}

@media (max-width: 440px) {
  .page-container { width: calc(100% - 20px); }
  .mega-inner:not(.single-row-menu) { padding-inline: 16px; }
  .filter-option-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-option-row .filter-option:nth-child(n) { border-top: 0; }
  .filter-option-row .filter-option:nth-child(n+3) { border-top: 1px solid #d8dad7; }
  .product-grid { gap: 30px 10px; }
  .product-name { min-height: 48px; }
  .staff-grid { grid-template-columns: minmax(0, 1fr); }
  .staff-card { max-width: 360px; width: 100%; margin-inline: auto; }
  .delivery-row { grid-template-columns: 34px minmax(0, 1fr) 82px; gap: 7px; }
  .delivery-detail-grid { grid-template-columns: 108px minmax(0, 1fr); }
  .delivery-detail-grid dt, .delivery-detail-grid dd { padding-inline: 11px; font-size: 14px; }
  .list-table th:first-child, .list-table td:first-child { padding-left: 5px; }
  .list-table .date, .list-table th:last-child { width: 100px; }
  .ledger-date-range { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); }
  .date-filter-ledger .ledger-date-trigger { padding-inline: 27px; font-size: 13px; }
  .ledger-date-trigger svg { right: 7px; width: 16px; height: 16px; }
  .ledger-datepicker { width: calc(100% - 20px); }
  .ledger-summary { grid-template-columns: minmax(0, 1fr); }
  .location-section { padding: 14px; }
  .map-frame { height: 240px; }
  .business-info { padding: 18px 16px; }
  .download-detail-nav { padding-inline: 12px; }
  .download-detail-nav a, .download-detail-nav .detail-nav-row { grid-template-columns: 48px 1px minmax(0, 1fr); gap: 9px; }
}

@media (max-width: 340px) {
  .utility-bar { gap: 10px; }
  .nav-item { flex-basis: 86px; min-width: 86px; }
  .home-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-inner:not(.single-row-menu) { grid-template-columns: minmax(0, 1fr); }
  .mega-column.has-overflow { grid-column: auto; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-image-box { max-height: 390px; }
  .date-filter-ledger .ledger-date-trigger { padding-inline: 23px; font-size: 12px; }
  .quick-actions a { font-size: 8px; }
}

@media (max-width: 820px) and (max-height: 520px) {
  .utility-bar { height: calc(36px + env(safe-area-inset-top)); }
  .brand-strip, .brand-strip.texture { min-height: 54px; }
  .site-header.compact-brand .brand-strip, .site-header.compact-brand .brand-strip.texture { min-height: 44px; height: 44px; }
  .search-wrap, .site-header.home-header .search-wrap { padding-block: 6px; }
  .global-search input { height: 38px; }
  .nav-items, .nav-item { min-height: 50px; }
}

/* Responsive home: ERP brand hero, category cards and bottom app navigation */
@media (max-width: 980px) {
  .site-header.home-header { position: static; background: var(--account-brand-color, var(--brand)); transform: none; }
  .site-header.home-header.header-hidden { transform: none; }
  .site-header.home-header .utility-bar { display: none; }
  .site-header.home-header .brand-strip,
  .site-header.home-header .brand-strip.texture { min-height: 84px; height: 84px; background-size: cover; }
  .site-header.home-header .brand-strip img { width: min(434px, calc(100vw - 92px)); height: 54px; }
  .site-header.home-header .main-nav { background: var(--account-brand-color, var(--brand)); }
  .site-header.home-header .search-wrap { padding: 0 18px 25px; }
  .site-header.home-header .global-search { width: 100%; }
  .site-header.home-header .global-search input { height: 54px; padding: 0 58px 0 24px; border-radius: 30px; background: #fff; color: #252825; font-size: 17px; }
  .site-header.home-header .global-search input::placeholder { color: #b8bbb9; opacity: 1; }
  .site-header.home-header .search-icon { left: auto; right: 19px; width: 27px; height: 27px; stroke: #58ba70; stroke-width: 3.4; }
  .content-shell.home-content-shell {
    min-height: 0;
    background: var(--account-brand-color, var(--brand));
  }
  .home-stage { min-height: calc(100dvh - 180px); margin-top: -1px; padding: 37px 14px calc(94px + env(safe-area-inset-bottom)); border-radius: 32px 32px 0 0; background: #f4f5f6; }
  .home-stage .page-container { width: 100%; }
  .home-categories { max-width: 680px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .home-category { min-width: 0; aspect-ratio: 1.18 / 1; text-align: left; }
  .home-category a,
  .home-category button { position: relative; width: 100%; height: 100%; min-height: 0; display: block; margin: 0; padding: 20px; border-radius: 23px; background: #fff; box-shadow: 0 5px 10px rgba(26,32,28,.09); text-align: left; }
  .home-category a::after,
  .home-category button::after { display: none; }
  .home-category span { position: absolute; left: 20px; top: 18px; font-size: clamp(18px, 5vw, 22px); font-weight: 400; line-height: 1.25; }
  .home-category img { position: absolute; right: 17px; bottom: 16px; width: clamp(39px, 11vw, 49px); height: clamp(39px, 11vw, 49px); margin: 0; }
  .home-category a:hover img,
  .home-category button:hover img,
  .home-category button.active img { transform: none; }
  .home-menu-display { display: none !important; }

  .quick-actions.home-quick-actions { left: 0; right: 0; bottom: 0; width: 100%; height: calc(76px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(var(--quick-action-count, 6), minmax(0, 1fr)); align-items: stretch; padding: 0 3px env(safe-area-inset-bottom); border-radius: 0; background: #fff; box-shadow: 0 -5px 18px rgba(24,29,26,.10); overflow: visible; }
  .quick-actions.home-quick-actions a,
  .quick-actions.home-quick-actions .quick-logout { min-width: 0; min-height: 76px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 6px 1px 4px; color: #242724; border: 0; border-right: 0; background: transparent; font-family: inherit; font-size: clamp(9px, 2.65vw, 12px); line-height: 1.15; text-align: center; white-space: nowrap; }
  .quick-actions.home-quick-actions a:hover,
  .quick-actions.home-quick-actions a.active,
  .quick-actions.home-quick-actions .quick-logout:hover { background: #f5f7f6; }
  .quick-actions.home-quick-actions .quick-icon { width: 30px; height: 30px; filter: brightness(0); }
  .quick-actions.home-quick-actions .quick-logout .quick-icon { filter: none; }
  .home-only-actions + .top-button { display: none; }
}

@media (min-width: 821px) and (max-width: 980px) {
  .site-header.home-header .brand-strip,
  .site-header.home-header .brand-strip.texture { min-height: 118px; height: 118px; }
  .site-header.home-header .brand-strip img { width: min(520px, calc(100vw - 180px)); height: 72px; }
  .site-header.home-header .search-wrap { padding: 0 56px 38px; }
  .site-header.home-header .global-search { max-width: 820px; }
  .site-header.home-header .global-search input { height: 72px; padding-inline: 34px 82px; border-radius: 40px; font-size: 22px; }
  .site-header.home-header .search-icon { right: 28px; width: 35px; height: 35px; }
  .home-stage { padding: 52px 38px calc(126px + env(safe-area-inset-bottom)); border-radius: 46px 46px 0 0; }
  .home-categories { max-width: 820px; gap: 28px; }
  .home-category { aspect-ratio: 1.2 / 1; }
  .home-category a,
  .home-category button { padding: 30px; border-radius: 30px; box-shadow: 0 7px 14px rgba(26,32,28,.09); }
  .home-category span { left: 30px; top: 27px; font-size: 29px; }
  .home-category img { right: 28px; bottom: 26px; width: 70px; height: 70px; }
  .quick-actions.home-quick-actions { height: calc(98px + env(safe-area-inset-bottom)); padding-inline: 10px; }
  .quick-actions.home-quick-actions a,
  .quick-actions.home-quick-actions .quick-logout { min-height: 98px; gap: 7px; font-size: 15px; }
  .quick-actions.home-quick-actions .quick-icon { width: 40px; height: 40px; }
}

@media (min-width: 481px) and (max-width: 820px) {
  .home-category img { width: clamp(52px, 9.5vw, 72px); height: clamp(52px, 9.5vw, 72px); }
}

/* Keep the responsive home proportions consistent with the reference app. */
@media (max-width: 980px) {
  .site-header.home-header .brand-strip,
  .site-header.home-header .brand-strip.texture {
    min-height: clamp(84px, calc(68px + 4.1vw), 108px);
    height: clamp(84px, calc(68px + 4.1vw), 108px);
  }
  .site-header.home-header .brand-strip img {
    width: clamp(108px, calc(67px + 13.6vw), 200px);
    height: auto;
  }
  .site-header.home-header .search-wrap {
    padding: 0 clamp(18px, calc(-7px + 6.4vw), 56px) clamp(32px, calc(28px + 1vw), 38px);
  }
  .site-header.home-header .global-search input {
    height: clamp(52px, calc(48px + 1.6vw), 64px);
    font-size: clamp(16px, calc(14px + .51vw), 19px);
  }
  .site-header.home-header .global-search input::placeholder {
    font-size: clamp(15px, calc(13px + .51vw), 18px);
  }
  .site-header.home-header .search-icon {
    right: clamp(19px, calc(14px + 1.3vw), 27px);
    width: clamp(24px, calc(20px + 1vw), 30px);
    height: clamp(24px, calc(20px + 1vw), 30px);
  }
  .home-stage {
    padding: clamp(20px, calc(7px + 3.4vw), 40px)
      clamp(14px, calc(-2px + 4.1vw), 38px)
      calc(clamp(94px, 13vw, 126px) + env(safe-area-inset-bottom));
  }
  .home-categories {
    gap: clamp(16px, 2vw, 20px) clamp(15px, 2vw, 20px);
  }
  .home-category { aspect-ratio: 1.19 / 1; }
  .home-category a,
  .home-category button {
    padding: clamp(18px, calc(13px + 1.35vw), 26px);
    border-radius: clamp(19px, calc(15px + 1vw), 25px);
  }
  .home-category span {
    left: clamp(18px, calc(13px + 1.35vw), 26px);
    top: clamp(18px, calc(14px + 1vw), 24px);
    font-size: clamp(17px, calc(12.9px + 1.15vw), 24px);
    font-weight: 400;
  }
  .home-category img {
    right: clamp(8px, calc(-1px + 2.35vw), 22px);
    bottom: clamp(12px, calc(7px + 1.35vw), 20px);
    width: clamp(30.6px, calc(16.15px + 3.91vw), 54.4px);
    height: clamp(30.6px, calc(16.15px + 3.91vw), 54.4px);
  }
  .quick-actions.home-quick-actions {
    height: calc(clamp(76px, 10vw, 98px) + env(safe-area-inset-bottom));
  }
  .quick-actions.home-quick-actions a,
  .quick-actions.home-quick-actions .quick-logout {
    min-height: clamp(76px, 10vw, 98px);
    font-size: clamp(11px, calc(9px + .51vw), 14px);
  }
  .quick-actions.home-quick-actions .quick-icon {
    width: clamp(30px, calc(23px + 1.7vw), 40px);
    height: clamp(30px, calc(23px + 1.7vw), 40px);
  }
  .quick-actions.home-quick-actions .quick-logout .quick-icon {
    width: auto;
    height: clamp(21.6px, calc(16.56px + 1.224vw), 28.8px);
    padding: 0;
  }
  .quick-actions.home-quick-actions .quick-icon-default { display: none; }
  .quick-actions.home-quick-actions .quick-icon-mobile-slot {
    width: clamp(30px, calc(23px + 1.7vw), 40px);
    height: clamp(30px, calc(23px + 1.7vw), 40px);
    display: grid;
    place-items: center;
    line-height: 0;
  }
  .quick-actions.home-quick-actions .quick-icon-mobile,
  .quick-actions.home-quick-actions .quick-logout .quick-icon-mobile {
    width: auto;
    height: auto;
    max-width: 29px;
    max-height: 29px;
    display: block;
    padding: 0;
    object-fit: contain;
    image-rendering: auto;
    filter: none;
  }
  .quick-actions.home-quick-actions [data-quick-key="notice"] .quick-icon-mobile { max-width: 23px; max-height: 23px; }
  .quick-actions.home-quick-actions [data-quick-key="ledger"] .quick-icon-mobile { max-width: 29px; max-height: 24px; }
  .quick-actions.home-quick-actions [data-quick-key="download"] .quick-icon-mobile { max-width: 23px; max-height: 25px; }
  .quick-actions.home-quick-actions [data-quick-key="delivery"] .quick-icon-mobile { max-width: 27px; max-height: 23px; }
  .quick-actions.home-quick-actions [data-quick-key="sales"] .quick-icon-mobile { max-width: 28px; max-height: 29px; }
  .quick-actions.home-quick-actions .quick-logout .quick-icon-mobile { max-width: 21px; max-height: 21px; }
}

@media (min-width: 821px) and (max-width: 980px) {
  .home-categories { max-width: calc(87.5vw - 37.5px); }
}

/* Responsive product listing */
@media (max-width: 980px) {
  body.filter-screen-open { overflow: hidden; }
  .site-header.product-list-header,
  .site-header.product-detail-header,
  .site-header.search-results-source-header { display: none; }
  .product-list-shell,
  .search-results-shell { min-height: 100dvh; }
  .product-detail-shell { min-height: 100dvh; }
  .product-list-section,
  .responsive-search-results-section {
    --product-list-gutter: clamp(16px, calc(7px + 2.35vw), 30px);
    padding: 0 0 calc(46px + clamp(76px, 10vw, 98px) + env(safe-area-inset-bottom));
  }
  .responsive-product-list-header,
  .responsive-product-detail-header { display: block; background: #fff; }
  .responsive-product-titlebar {
    position: relative;
    height: clamp(48px, calc(32px + 4.1vw), 72px);
    display: grid;
    place-items: center;
  }
  .responsive-product-titlebar > button,
  .responsive-product-titlebar > a {
    position: absolute;
    top: 50%;
    width: clamp(30px, calc(21px + 2.35vw), 44px);
    height: clamp(30px, calc(21px + 2.35vw), 44px);
    display: grid;
    place-items: center;
    padding: 0;
    color: #111;
    border: 0;
    background: transparent !important;
    transform: translateY(-50%);
  }
  .responsive-product-titlebar > button { left: clamp(14px, calc(8px + 1.55vw), 23px); }
  .responsive-product-titlebar > a { right: clamp(14px, calc(8px + 1.55vw), 23px); }
  .responsive-product-titlebar img {
    width: clamp(21px, calc(14px + 1.8vw), 32px);
    height: clamp(21px, calc(14px + 1.8vw), 32px);
    object-fit: contain;
  }
  .responsive-product-titlebar > a img,
  .responsive-category-titlebar > a img,
  .responsive-utility-titlebar > a img { transform: scale(.95); }
  .responsive-product-titlebar .responsive-product-back-icon {
    width: clamp(21px, calc(14px + 1.8vw), 32px);
    height: clamp(21px, calc(14px + 1.8vw), 32px);
  }
  .responsive-back-icon {
    fill: none;
    stroke: #111;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .responsive-product-path {
    max-width: calc(100% - clamp(96px, 18vw, 150px));
    overflow: hidden;
    font-size: clamp(14px, calc(10px + 1.03vw), 20px);
    font-weight: 400;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .responsive-product-search-row {
    height: clamp(60px, calc(44px + 4.1vw), 84px);
    display: flex;
    align-items: center;
    gap: clamp(9px, 2.3vw, 16px);
    padding: 0 var(--product-list-gutter);
  }
  .responsive-product-search {
    position: relative;
    min-width: 0;
    flex: 1 1 auto;
    height: clamp(40px, calc(29px + 2.8vw), 56px);
  }
  .responsive-product-search input {
    width: 100%;
    height: 100%;
    padding: 0 clamp(46px, 12vw, 66px) 0 18px;
    border: 1px solid #d2d5d3;
    border-radius: 999px;
    outline: 0;
    background: #fff;
    color: #252825;
    font-size: max(16px, clamp(14px, calc(11px + .77vw), 18px));
    text-align: left;
  }
  .responsive-product-search input::placeholder { color: #c2c5c3; opacity: 1; text-align: center; }
  .responsive-product-search input::placeholder { font-size: clamp(12px, calc(9px + .77vw), 16px); }
  .responsive-product-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    width: clamp(52px, 13vw, 72px);
    height: 100%;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .responsive-product-search-submit img {
    width: clamp(19px, calc(14px + 1.3vw), 27px);
    height: clamp(19px, calc(14px + 1.3vw), 27px);
    object-fit: contain;
    pointer-events: none;
  }
  .responsive-product-filter {
    width: auto;
    height: clamp(27px, calc(24px + .8vw), 32px);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, calc(6.5px + .4vw), 10.5px);
    padding: 0 clamp(9px, calc(7px + .5vw), 12px);
    border: 0;
    border-radius: 0;
    color: #262626;
    background: #fff;
  }
  .responsive-product-filter .filter-toggle-label {
    font-size: clamp(11.5px, calc(10.5px + .35vw), 13.5px);
    font-weight: 500;
    line-height: 1;
  }
  .responsive-product-filter img {
    width: clamp(16.5px, calc(15px + .45vw), 19.5px);
    height: clamp(15px, calc(13.7px + .4vw), 17.6px);
    object-fit: contain;
  }
  .product-list-section > .page-container,
  .responsive-search-results-section > .page-container { width: 100%; }
  .responsive-search-results-section .search-heading,
  .responsive-search-results-section .search-tabs { display: none; }
  .product-list-section .breadcrumb,
  .product-list-section .list-toolbar { display: none; }
  .product-list-section .filter-panel {
    position: fixed;
    z-index: 900;
    inset: 0 0 env(safe-area-inset-bottom);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #fff;
    box-shadow: none;
  }
  body.filter-screen-open .home-quick-actions { display: none; }
  .product-list-section .filter-desktop-content { display: none; }
  .responsive-filter-screen {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: clamp(48px, calc(32px + 4.1vw), 72px) minmax(0, 1fr) clamp(62px, calc(48px + 3.6vw), 83px);
    background: #fff;
  }
  .responsive-filter-titlebar {
    position: relative;
    display: grid;
    place-items: center;
    border-bottom: 1px solid #d9dcda;
  }
  .responsive-filter-titlebar h2 {
    margin: 0;
    font-size: clamp(14px, calc(10px + 1.03vw), 20px);
    font-weight: 400;
  }
  .responsive-filter-titlebar button {
    position: absolute;
    left: clamp(14px, calc(8px + 1.55vw), 23px);
    top: 50%;
    width: clamp(30px, calc(21px + 2.35vw), 44px);
    height: clamp(30px, calc(21px + 2.35vw), 44px);
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
  }
  .responsive-filter-titlebar img,
  .responsive-filter-titlebar .responsive-back-icon {
    width: clamp(21px, calc(14px + 1.8vw), 32px);
    height: clamp(21px, calc(14px + 1.8vw), 32px);
    object-fit: contain;
  }
  .responsive-filter-body {
    min-height: 0;
    display: grid;
    grid-template-columns: 33.333% minmax(0, 1fr);
    overflow: hidden;
  }
  .responsive-filter-kinds {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    border-right: 1px solid #e1e3e2;
    background: #f1f1f3;
    scrollbar-width: none;
  }
  .responsive-filter-kinds::-webkit-scrollbar,
  .responsive-filter-options::-webkit-scrollbar { display: none; }
  .responsive-filter-kinds button {
    width: 100%;
    min-height: clamp(70px, calc(50px + 5.1vw), 100px);
    display: flex;
    align-items: center;
    padding: 12px clamp(24px, calc(17px + 1.75vw), 34px);
    color: #555a56;
    border: 0;
    background: transparent;
    font-size: clamp(16px, calc(12px + 1.03vw), 22px);
    text-align: left;
  }
  .responsive-filter-kinds button.active {
    color: #171a18;
    background: #fff;
    font-weight: 700;
  }
  .responsive-filter-options {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: clamp(6px, 1.55vw, 15px) clamp(16px, calc(8px + 2.05vw), 28px) 24px;
    background: #fff;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .responsive-filter-option-list { display: grid; align-content: start; }
  .responsive-filter-option {
    min-height: clamp(48px, calc(34px + 3.6vw), 69px);
    display: grid;
    grid-template-columns: clamp(16px, calc(12px + 1vw), 22px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 3vw, 20px);
    padding: 7px 0;
    color: #2c302d;
    border: 0;
    background: transparent;
    font-size: clamp(14px, calc(10px + 1.03vw), 20px);
    text-align: left;
  }
  .responsive-filter-checkbox {
    position: relative;
    width: clamp(16px, calc(12px + 1vw), 22px);
    height: clamp(16px, calc(12px + 1vw), 22px);
    border: 1px solid #cfd2d0;
    background: #fff;
  }
  .responsive-filter-option.selected .responsive-filter-checkbox {
    border-color: #252725;
    background: #252725;
  }
  .responsive-filter-option.selected .responsive-filter-checkbox::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: 45%;
    height: 24%;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  .responsive-filter-actions {
    display: grid;
    grid-template-columns: minmax(86px, 110px) minmax(0, 230px);
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 3vw, 20px);
    padding: 9px var(--product-list-gutter);
    border-top: 1px solid #e1e3e2;
    background: #fff;
    box-shadow: 0 -5px 15px rgba(24, 31, 27, .06);
  }
  .responsive-filter-actions button {
    min-width: 0;
    height: clamp(40px, calc(31px + 2.3vw), 54px);
    padding: 0 12px;
    border: 1px solid #d0d3d1;
    border-radius: 5px;
    background: #fff;
    color: #252825;
    font-size: clamp(13px, calc(9.7px + .85vw), 18px);
    font-weight: 500;
    white-space: nowrap;
  }
  .responsive-filter-actions .apply {
    color: #fff;
    border-color: var(--brand);
    background: var(--brand);
    font-weight: 700;
  }
  :is(.product-list-section, .responsive-search-results-section) .product-grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  :is(.product-list-section, .responsive-search-results-section) .product-grid {
    width: 100%;
    margin-top: clamp(36px, 6vw, 60px);
    gap: clamp(96px, 12vw, 132px);
  }
  :is(.product-list-section, .responsive-search-results-section) .product-card {
    width: calc(100% - var(--product-list-gutter) - var(--product-list-gutter));
    margin-inline: auto;
    text-align: left;
  }
  :is(.product-list-section, .responsive-search-results-section) .product-image-box {
    width: min(75vw, 600px);
    margin-inline: auto;
  }
  .responsive-full-bleed-product-list .product-image-box {
    width: 100%;
    margin-inline: 0;
  }
  :is(.product-list-section, .responsive-search-results-section) .product-name {
    min-height: clamp(24px, calc(17px + 1.8vw), 35px);
    margin-top: clamp(20px, 2.8vw, 26px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: clamp(14px, calc(10px + 1.03vw), 20px);
    line-height: 1.35;
    text-align: left;
  }
  :is(.product-list-section, .responsive-search-results-section) .installation-card .product-name {
    margin-top: clamp(22px, 3vw, 28px);
  }
  :is(.product-list-section, .responsive-search-results-section) .product-meta {
    min-height: clamp(20px, calc(15px + 1.3vw), 28px);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-top: clamp(10px, 1.8vw, 16px);
    font-size: clamp(13px, calc(10.4px + .67vw), 17px);
    line-height: 1.35;
  }
  :is(.product-list-section, .responsive-search-results-section) .standard-product-card .product-image-box,
  :is(.product-list-section, .responsive-search-results-section) .standard-product-card:hover .product-image-box,
  :is(.product-list-section, .responsive-search-results-section) .standard-product-card:focus-within .product-image-box {
    aspect-ratio: auto;
    display: block;
    background: #fff;
    transition: none;
  }
  :is(.product-list-section, .responsive-search-results-section) .standard-product-card .product-image-box img,
  :is(.product-list-section, .responsive-search-results-section) .standard-product-card:hover .product-image-box img,
  :is(.product-list-section, .responsive-search-results-section) .standard-product-card:focus-within .product-image-box img {
    width: 100%;
    height: auto;
    mix-blend-mode: normal;
  }
  :is(.product-list-section, .responsive-search-results-section) .standard-product-card .product-image-box::after,
  :is(.product-list-section, .responsive-search-results-section) .standard-product-card:hover .product-image-box::after,
  :is(.product-list-section, .responsive-search-results-section) .standard-product-card:focus-within .product-image-box::after { display: none; opacity: 0; transition: none; }
  :is(.product-list-section, .responsive-search-results-section) .installation-card:hover .product-image-box,
  :is(.product-list-section, .responsive-search-results-section) .installation-card:focus-within .product-image-box { animation: none; }

  .product-list-shell + .home-quick-actions + .top-button,
  .search-results-shell + .home-quick-actions + .top-button,
  .product-detail-shell + .home-quick-actions + .top-button,
  .utility-responsive-shell + .home-quick-actions + .top-button {
    right: clamp(18px, calc(9px + 2.35vw), 32px);
    bottom: calc(clamp(76px, 10vw, 98px) + clamp(28px, calc(23px + 1.35vw), 36px) + env(safe-area-inset-bottom));
    width: clamp(40px, calc(28px + 3.1vw), 58px);
    height: clamp(40px, calc(28px + 3.1vw), 58px);
    display: grid;
    border: 1px solid #caccca;
    border-radius: clamp(13px, calc(10px + .8vw), 18px);
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.04);
  }
  .product-list-shell + .home-quick-actions + .top-button .top-icon { display: none; }
  .product-list-shell + .home-quick-actions + .top-button::before {
    content: "";
    width: clamp(15px, calc(10px + 1.3vw), 22px);
    height: clamp(15px, calc(10px + 1.3vw), 22px);
    margin-top: 8px;
    border-top: 3px solid #8b8e8c;
    border-left: 3px solid #8b8e8c;
    transform: rotate(45deg);
  }
}

@media (max-width: 980px) {
  .site-header.category-landing-header { display: none; }
  .responsive-category-page { min-height: 100dvh; display: block; padding-bottom: calc(76px + env(safe-area-inset-bottom)); background: #f7f7f7; }
  .responsive-category-titlebar { position: relative; height: 60px; display: grid; place-items: center; background: #fff; box-shadow: 0 3px 12px rgba(30,34,31,.04); }
  .responsive-category-titlebar h1 { margin: 0; font-size: 20px; font-weight: 400; }
  .responsive-category-titlebar > a { position: absolute; right: 18px; top: 50%; width: 32px; height: 32px; display: grid; place-items: center; transform: translateY(-50%); }
  .responsive-category-titlebar svg { width: 29px; height: 29px; fill: none; stroke: #111; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .responsive-category-tabs { height: 112px; display: flex; align-items: center; gap: 7px; padding: 10px 14px 8px; overflow-x: auto; overscroll-behavior-x: contain; border-bottom: 1px solid #d5d7d5; background: #fff; scrollbar-width: none; scroll-behavior: smooth; }
  .responsive-category-tabs::-webkit-scrollbar { display: none; }
  .responsive-category-tabs > a { flex: 0 0 65px; min-width: 0; display: grid; justify-items: center; gap: 7px; color: #252825; scroll-snap-align: center; }
  .responsive-category-tab-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: #eff0f1; }
  .responsive-category-tabs > a:nth-child(2) .responsive-category-tab-icon { background: #eef8f8; }
  .responsive-category-tabs > a:nth-child(4) .responsive-category-tab-icon { background: #f6f6e9; }
  .responsive-category-tabs > a:nth-child(5) .responsive-category-tab-icon { background: #f8f1ed; }
  .responsive-category-tabs > a:nth-child(6) .responsive-category-tab-icon { background: #fff9e9; }
  .responsive-category-tab-icon img { width: 40px; height: 40px; object-fit: contain; transition: opacity .18s ease; }
  .responsive-category-tabs > a:not(.active) .responsive-category-tab-icon img { opacity: .55; }
  .responsive-category-tabs strong { font-size: 15px; font-weight: 500; white-space: nowrap; }
  .responsive-category-tabs > a.active strong { font-weight: 800; }

  .responsive-category-browser { min-height: calc(100dvh - 248px); display: grid; grid-template-columns: 34% minmax(0, 1fr); background: #fff; }
  .responsive-category-sections { border-right: 1px solid #e2e3e2; background: #f6f6f6; }
  .responsive-category-sections a { min-height: 80px; display: flex; align-items: center; padding: 15px 22px; color: #666a67; font-size: 18px; line-height: 1.3; word-break: keep-all; }
  .responsive-category-sections a.active { color: #111; background: #fff; font-weight: 800; }
  .responsive-category-children { background: #fff; }
  .responsive-category-children a { min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) 12px; align-items: center; gap: 14px; padding: 12px 20px; color: #262a27; font-size: 18px; }
  .responsive-category-children i { width: 9px; height: 9px; border-top: 2px solid #c9ccca; border-right: 2px solid #c9ccca; transform: rotate(45deg); }
  .responsive-category-flat-list { min-height: calc(100dvh - 248px); display: grid; align-content: start; padding: 14px 24px 40px; background: #f7f7f7; }
  .responsive-category-flat-list a { min-height: 86px; display: flex; align-items: center; color: #666a67; font-size: 20px; line-height: 1.35; }
  .responsive-furniture-menu { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); overflow: hidden; background: #f7f7f7; }
  .responsive-furniture-list { min-height: 0; display: grid; align-content: start; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; padding: 6px clamp(24px, calc(15px + 2.35vw), 38px) 40px; background: #f7f7f7; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .responsive-furniture-list::-webkit-scrollbar { display: none; }
  .responsive-furniture-list a { min-height: clamp(70px, calc(50px + 5.1vw), 100px); display: flex; align-items: center; color: #666a67; font-size: clamp(17px, calc(13.7px + .85vw), 22px); font-weight: 300; line-height: 1.35; }

  .responsive-category-page + .home-quick-actions + .top-button { right: 18px; bottom: calc(90px + env(safe-area-inset-bottom)); width: 52px; height: 52px; display: grid; border: 1px solid #caccca; border-radius: 15px; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.04); }
  .responsive-category-page + .home-quick-actions + .top-button .top-icon { display: none; }
  .responsive-category-page + .home-quick-actions + .top-button::before { content: ""; width: 18px; height: 18px; margin-top: 8px; border-top: 4px solid #8b8e8c; border-left: 4px solid #8b8e8c; transform: rotate(45deg); }
}

@media (min-width: 481px) and (max-width: 820px) {
  .responsive-category-titlebar { height: 78px; }
  .responsive-category-titlebar h1 { font-size: 26px; }
  .responsive-category-titlebar > a { right: 26px; width: 40px; height: 40px; }
  .responsive-category-titlebar svg { width: 35px; height: 35px; }
  .responsive-category-tabs { height: 142px; gap: 14px; padding-inline: 24px; }
  .responsive-category-tabs > a { flex-basis: 90px; gap: 9px; }
  .responsive-category-tab-icon { width: 74px; height: 74px; border-radius: 24px; }
  .responsive-category-tab-icon img { width: 54px; height: 54px; }
  .responsive-category-tabs strong { font-size: 19px; }
  .responsive-category-browser { min-height: calc(100dvh - 296px); }
  .responsive-category-sections a { min-height: 110px; padding-inline: 30px; font-size: 23px; }
  .responsive-category-children a { min-height: 83px; padding-inline: 28px; font-size: 22px; }
  .responsive-category-flat-list { min-height: calc(100dvh - 296px); padding: 20px 36px 50px; }
  .responsive-category-flat-list a { min-height: 105px; font-size: 25px; }
  .responsive-category-page + .home-quick-actions + .top-button { right: 26px; bottom: calc(100px + env(safe-area-inset-bottom)); width: 64px; height: 64px; border-radius: 18px; }
}

@media (min-width: 821px) and (max-width: 980px) {
  .responsive-category-page { padding-bottom: calc(98px + env(safe-area-inset-bottom)); }
  .responsive-category-titlebar { height: 94px; }
  .responsive-category-titlebar h1 { font-size: 31px; }
  .responsive-category-titlebar > a { right: 34px; width: 46px; height: 46px; }
  .responsive-category-titlebar svg { width: 40px; height: 40px; }
  .responsive-category-tabs { height: 164px; gap: 24px; padding-inline: 34px; }
  .responsive-category-tabs > a { flex-basis: 104px; gap: 11px; }
  .responsive-category-tab-icon { width: 88px; height: 88px; border-radius: 28px; }
  .responsive-category-tab-icon img { width: 62px; height: 62px; }
  .responsive-category-tabs strong { font-size: 21px; }
  .responsive-category-browser { min-height: calc(100dvh - 356px); }
  .responsive-category-sections a { min-height: 132px; padding-inline: 36px; font-size: 28px; }
  .responsive-category-children a { min-height: 99px; padding-inline: 34px; font-size: 27px; }
  .responsive-category-flat-list { min-height: calc(100dvh - 356px); padding: 24px 44px 60px; }
  .responsive-category-flat-list a { min-height: 124px; font-size: 29px; }
  .responsive-category-page + .home-quick-actions + .top-button { right: 32px; bottom: calc(118px + env(safe-area-inset-bottom)); width: 72px; height: 72px; border-radius: 20px; }
  .responsive-category-page + .home-quick-actions + .top-button::before { width: 25px; height: 25px; }
}

/* Responsive category browser: lock the page and scroll only the menu panes. */
@media (max-width: 980px) {
  .responsive-category-page {
    --category-titlebar-height: clamp(48px, calc(32px + 4.1vw), 72px);
    --category-tabs-height: clamp(100px, calc(72px + 7.2vw), 142px);
    width: 100%;
    height: 100dvh;
    min-height: 0;
    display: grid;
    grid-template-rows: var(--category-titlebar-height) var(--category-tabs-height) minmax(0, 1fr);
    padding-bottom: calc(clamp(76px, 10vw, 98px) + env(safe-area-inset-bottom));
    overflow: hidden;
  }
  .responsive-category-titlebar { height: 100%; }
  .responsive-category-titlebar h1 { font-size: clamp(14px, calc(10px + 1.03vw), 20px); font-weight: 400; }
  .responsive-category-titlebar > a {
    right: clamp(14px, calc(8px + 1.55vw), 23px);
    width: clamp(30px, calc(21px + 2.35vw), 44px);
    height: clamp(30px, calc(21px + 2.35vw), 44px);
  }
  .responsive-category-titlebar img {
    width: clamp(21px, calc(14px + 1.8vw), 32px);
    height: clamp(21px, calc(14px + 1.8vw), 32px);
    object-fit: contain;
  }
  .responsive-category-tabs {
    height: 100%;
    gap: clamp(8px, calc(.1px + 2vw), 20px);
    padding: 8px clamp(11px, calc(-3px + 3.55vw), 32px) 7px;
    scroll-snap-type: none;
    scroll-behavior: auto;
    touch-action: pan-x;
  }
  .responsive-category-tabs > a {
    flex-basis: clamp(58px, calc(34px + 6.15vw), 94px);
    gap: clamp(7px, calc(5px + .51vw), 10px);
  }
  .responsive-category-tab-icon {
    width: clamp(50px, calc(33px + 4.4vw), 76px);
    height: clamp(50px, calc(33px + 4.4vw), 76px);
    border-radius: clamp(17px, calc(12px + 1.35vw), 25px);
    background: transparent !important;
  }
  .responsive-category-tab-icon img {
    width: 95%;
    height: 95%;
    object-fit: contain;
    opacity: 1;
  }
  .responsive-category-tabs > a:not(.active) .responsive-category-tab-icon img { opacity: 1; }
  .responsive-category-tabs strong {
    font-size: clamp(12px, calc(8.7px + .85vw), 17px);
    font-weight: 400;
  }
  .responsive-category-tabs > a.active strong { font-weight: 600; }

  .responsive-category-browser {
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-columns: 33.333% minmax(0, 1fr);
    overflow: hidden;
  }
  .responsive-category-sections,
  .responsive-category-children,
  .responsive-category-flat-list {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .responsive-category-sections::-webkit-scrollbar,
  .responsive-category-children::-webkit-scrollbar,
  .responsive-category-flat-list::-webkit-scrollbar { display: none; }
  .responsive-category-sections a {
    min-height: clamp(70px, calc(50px + 5.1vw), 100px);
    padding: 12px clamp(24px, calc(17px + 1.75vw), 34px);
    font-size: clamp(15px, calc(11px + 1.03vw), 21px);
    font-weight: 200;
  }
  .responsive-category-sections a.active { font-weight: 600; }
  .responsive-category-children a {
    min-height: clamp(57px, calc(42px + 3.85vw), 80px);
    padding: 10px clamp(15px, calc(6px + 2.25vw), 28px);
    font-size: clamp(15px, calc(11px + 1.03vw), 21px);
    font-weight: 400;
  }
  .responsive-category-children.single-item a {
    min-height: clamp(70px, calc(50px + 5.1vw), 100px);
  }
  .responsive-category-children a.new-label { font-size: clamp(14px, calc(10px + 1.03vw), 20px); }
  .responsive-category-children i {
    width: clamp(9px, calc(7px + .51vw), 12px);
    height: clamp(9px, calc(7px + .51vw), 12px);
  }
  .responsive-category-flat-list {
    height: 100%;
    min-height: 0;
    align-content: start;
    padding: 6px clamp(24px, calc(15px + 2.35vw), 38px) 40px;
  }
  .responsive-category-flat-list a {
    min-height: clamp(70px, calc(50px + 5.1vw), 100px);
    font-size: clamp(17px, calc(13.7px + .85vw), 22px);
    font-weight: 300;
  }
  .responsive-furniture-list a.active,
  .responsive-category-children a.active,
  .responsive-category-flat-list a.active {
    color: #111;
    font-weight: 700;
  }
  .responsive-category-page a.leaf-menu-item { font-size: 15px; }

  .responsive-category-page + .home-quick-actions + .top-button {
    right: clamp(18px, calc(9px + 2.35vw), 32px);
    bottom: calc(clamp(76px, 10vw, 98px) + clamp(28px, calc(23px + 1.35vw), 36px) + env(safe-area-inset-bottom));
    width: clamp(40px, calc(28px + 3.1vw), 58px);
    height: clamp(40px, calc(28px + 3.1vw), 58px);
    border-radius: clamp(13px, calc(10px + .8vw), 18px);
  }
  .responsive-category-page + .home-quick-actions + .top-button::before {
    width: clamp(15px, calc(10px + 1.3vw), 22px);
    height: clamp(15px, calc(10px + 1.3vw), 22px);
    border-width: 3px 0 0 3px;
  }
}

@media (min-width: 821px) and (max-height: 880px) {
  .ledger-datepicker { position: fixed; z-index: 80; top: 50%; left: 50%; width: min(calc(100% - 40px), 432px); max-height: calc(100dvh - 32px); overflow-y: auto; transform: translate(-50%, -50%); }
}

/* Responsive bulletin lists: keep the desktop table and stack the date under the title on touch layouts. */
@media (max-width: 980px) {
  .site-header.utility-responsive-source-header { display: none; }
  .utility-responsive-shell { min-height: 100dvh; }
  .notice-responsive-shell { background: #fbfbfb; }
  .responsive-utility-titlebar {
    position: sticky;
    z-index: 60;
    top: 0;
    height: clamp(48px, calc(32px + 4.1vw), 72px);
    display: grid;
    place-items: center;
    border-bottom: 1px solid #f1f2f1;
    background: #fff;
    box-shadow: 0 3px 12px rgba(30, 34, 31, .04);
  }
  .responsive-utility-titlebar h1 {
    margin: 0;
    font-size: clamp(14px, calc(10px + 1.03vw), 20px);
    font-weight: 400;
  }
  .responsive-utility-titlebar > button,
  .responsive-utility-titlebar > a {
    position: absolute;
    top: 50%;
    width: clamp(30px, calc(21px + 2.35vw), 44px);
    height: clamp(30px, calc(21px + 2.35vw), 44px);
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: #111;
    background: transparent;
    transform: translateY(-50%);
  }
  .responsive-utility-titlebar > button { left: clamp(14px, calc(8px + 1.55vw), 23px); }
  .responsive-utility-titlebar > a { right: clamp(14px, calc(8px + 1.55vw), 23px); }
  .responsive-utility-titlebar img {
    width: clamp(21px, calc(14px + 1.8vw), 32px);
    height: clamp(21px, calc(14px + 1.8vw), 32px);
    object-fit: contain;
  }
  .responsive-utility-titlebar .responsive-back-icon {
    width: clamp(21px, calc(14px + 1.8vw), 32px);
    height: clamp(21px, calc(14px + 1.8vw), 32px);
  }
  .notice-responsive-page { padding-top: clamp(20px, 4vw, 32px); }
  .notice-responsive-page .section-heading h1 {
    font-size: clamp(18px, 2.65vw, 22px);
    font-weight: 600;
  }
  .notice-responsive-page .notice-detail h1 {
    font-size: clamp(17px, 2.4vw, 20px);
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
  }
  .notice-responsive-page .notice-list-table td:first-child a {
    font-size: clamp(15px, 2.25vw, 18px);
    font-weight: 500;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
  }
  .notice-responsive-page .notice-date,
  .notice-responsive-page .notice-list-table .date { font-size: clamp(10px, 1.6vw, 12px); }
  .ledger-responsive-page,
  .download-responsive-page,
  .delivery-responsive-page,
  .sales-responsive-page { padding-top: clamp(20px, 4vw, 32px); }
  .ledger-responsive-page .section-heading h1,
  .download-responsive-page .section-heading h1,
  .delivery-responsive-page .section-heading h1,
  .sales-responsive-page .section-heading h1 {
    font-size: clamp(18px, 2.65vw, 22px);
    font-weight: 600;
  }
  :is(
    .notice-responsive-page,
    .ledger-responsive-page,
    .download-responsive-page,
    .delivery-responsive-page,
    .sales-responsive-page
  ) .utility-content { padding-inline: 8px; }
  .sales-responsive-page :is(.location-title h2, .business-info h2) {
    font-size: clamp(18px, 2.65vw, 22px);
    font-weight: 600;
  }
  :is(.ledger-responsive-page, .delivery-responsive-page) .date-filter-ledger {
    gap: clamp(8px, 1.4vw, 12px);
    padding: clamp(10px, 1.5vw, 13px);
    margin-block: clamp(16px, 2.4vw, 24px) clamp(24px, 3.3vw, 32px);
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(31, 39, 34, .11);
  }
  :is(.ledger-responsive-page, .delivery-responsive-page) .date-filter-ledger .date-filter-label {
    font-size: clamp(14px, 1.85vw, 16px);
    font-weight: 500;
  }
  .ledger-responsive-page .account-line {
    font-size: clamp(14px, 1.85vw, 16px);
  }
  :is(.ledger-responsive-page, .delivery-responsive-page) .ledger-date-range {
    height: clamp(46px, 5.4vw, 52px);
    border-radius: 12px;
  }
  :is(.ledger-responsive-page, .delivery-responsive-page) .date-filter-ledger .ledger-date-trigger {
    height: clamp(44px, 5.2vw, 50px);
    padding-inline: clamp(25px, 4vw, 36px);
    font-size: clamp(12px, 1.8vw, 14px);
    font-weight: 500;
  }
  :is(.ledger-responsive-page, .delivery-responsive-page) .ledger-date-trigger svg {
    right: clamp(7px, 1.35vw, 12px);
    width: clamp(15px, 2vw, 18px);
    height: clamp(15px, 2vw, 18px);
  }
  :is(.ledger-responsive-page, .delivery-responsive-page) .date-range-separator { font-size: clamp(13px, 1.8vw, 16px); }
  :is(.ledger-responsive-page, .delivery-responsive-page) .date-filter-ledger > button[type="submit"] {
    height: clamp(44px, 5.4vw, 50px);
    min-height: clamp(44px, 5.4vw, 50px);
    font-size: clamp(14px, 1.9vw, 16px);
    font-weight: 700;
  }
  .ledger-responsive-page .ledger-table-heading th { font-size: clamp(14px, 1.8vw, 15px); }
  .ledger-responsive-page .ledger-group-title { font-size: clamp(13px, 1.75vw, 15px); }
  .ledger-responsive-page .ledger-group .ledger-table th,
  .ledger-responsive-page .ledger-group .ledger-table td { font-size: clamp(13px, 1.65vw, 14px); }
  .ledger-responsive-page .ledger-table td:nth-child(4) { font-size: clamp(12px, 1.55vw, 13px); }
  .ledger-responsive-page .ledger-summary dt,
  .ledger-responsive-page .ledger-summary dd { font-size: clamp(13px, 1.75vw, 14px); }
  .delivery-responsive-page .delivery-section-title {
    margin-bottom: clamp(16px, 2.8vw, 22px);
    font-size: clamp(18px, 2.65vw, 22px);
    font-weight: 600;
  }
  .download-responsive-page .download-category-card {
    font-size: clamp(15px, 2.2vw, 17px);
    font-weight: 600;
  }
  .download-responsive-page .download-list-table td:first-child a {
    font-size: clamp(15px, 2.25vw, 18px);
    font-weight: 500;
  }
  .download-responsive-page .download-detail > .section-heading { margin-bottom: 27px; }
  .download-responsive-page .download-detail .download-detail-title,
  .delivery-responsive-page .delivery-detail-title {
    font-size: clamp(16px, 2.4vw, 19px);
    font-weight: 500;
  }
  .download-responsive-page .file-row { font-size: clamp(13px, 1.9vw, 15px); }
  .download-responsive-page .download-detail-nav a > span,
  .download-responsive-page .download-detail-nav .detail-nav-row > span,
  .delivery-responsive-page .download-detail-nav a > span,
  .delivery-responsive-page .download-detail-nav .detail-nav-row > span {
    font-size: clamp(13px, 1.8vw, 14px);
    font-weight: 600;
  }
  .download-responsive-page .download-detail-nav a > strong,
  .download-responsive-page .download-detail-nav .detail-nav-row > strong,
  .delivery-responsive-page .download-detail-nav a > strong,
  .delivery-responsive-page .download-detail-nav .detail-nav-row > strong { font-size: clamp(12px, 1.75vw, 14px); }
  .download-responsive-page .download-detail-actions .back-button,
  .delivery-responsive-page .download-detail-actions .back-button {
    font-size: clamp(13px, 1.8vw, 14px);
    font-weight: 600;
  }
  .delivery-responsive-page .delivery-row {
    font-size: clamp(12px, 1.7vw, 14px);
  }
  .delivery-responsive-page .delivery-row strong {
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 500;
  }
  .delivery-responsive-page .delivery-row .date { font-size: clamp(11px, 1.55vw, 13px); }
  .delivery-responsive-page .delivery-detail-grid dt,
  .delivery-responsive-page .delivery-detail-grid dd { font-size: clamp(12px, 1.75vw, 14px); }
  .delivery-responsive-page .delivery-detail-grid dt { font-weight: 600; }
  .utility-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .utility-layout::before { display: none; }
  .utility-layout > .side-menu { display: none; }
  .utility-content { padding-left: 0; }

  .quick-actions.home-quick-actions { z-index: 1000; }
  .sales-content .map-frame { z-index: 0; isolation: isolate; }
  .sales-content .map-canvas { position: relative; z-index: 0; }

  .notice-list-table,
  .download-list-table {
    display: block;
    width: 100%;
    padding: 10px 0 22px;
    border-top: 0;
    border-collapse: separate;
    background: #fbfbfb;
  }

  .notice-list-table tbody,
  .download-list-table tbody {
    display: grid;
    gap: clamp(14px, 2.5vw, 20px);
  }

  .notice-list-table tr,
  .download-list-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    padding: clamp(18px, 3.2vw, 28px);
    border: 1px solid #e7e9e7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(27, 33, 29, .07);
  }

  .download-responsive-page .download-list-table,
  .download-responsive-page .download-list-table tr { background: transparent; }

  .notice-list-table td,
  .download-list-table td,
  .notice-list-table td:first-child,
  .download-list-table td:first-child {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .notice-list-table td:first-child a,
  .download-list-table td:first-child a {
    display: block;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 600;
    line-height: 1.45;
  }

  .notice-list-table .date,
  .download-list-table .date {
    width: auto;
    margin-top: 10px;
    color: #a1a5a2;
    font-size: clamp(13px, 2vw, 16px);
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
  }

  .notice-list-table tr:hover td,
  .download-list-table tr:hover td {
    background: transparent;
  }

  .sales-content .rep-phone-desktop { display: none; }
  .sales-content .rep-phone-mobile {
    display: block;
    margin: 70px 0;
    font-size: clamp(21px, 3vw, 23px);
    font-weight: 400;
    text-align: center;
  }
  .sales-content .rep-phone-mobile strong { font-weight: 700; }
  .sales-content .staff-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: clamp(12px, 2vw, 18px) clamp(8px, 1.4vw, 12px);
    margin: 0;
    padding: 4px 0 20px;
    overflow: visible;
  }
  .sales-content .staff-card {
    min-height: clamp(210px, 34vw, 270px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    isolation: isolate;
    margin: 0;
    padding: clamp(12px, 2.3vw, 18px) 0 0;
    border-radius: clamp(12px, 2.3vw, 18px);
    box-shadow: 0 2px 5px rgba(37, 43, 39, .11), 0 0 0 1px rgba(37, 43, 39, .025);
  }
  .sales-content .staff-card-head {
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(6px, 1.3vw, 10px);
    padding-inline: 4px;
    text-align: center;
  }
  .sales-content .staff-photo { width: clamp(48px, 9.7vw, 76px); height: clamp(48px, 9.7vw, 76px); }
  .sales-content .staff-name { font-size: clamp(12px, 2.2vw, 17px); text-align: center; }
  .sales-content .staff-phone { display: none; }
  .sales-content .staff-actions {
    display: flex;
    justify-content: center;
    gap: clamp(3px, 1vw, 8px);
    margin: clamp(8px, 1.7vw, 13px) 0 clamp(10px, 2.3vw, 18px);
  }
  .sales-content .staff-actions a {
    width: clamp(28px, 5.4vw, 42px);
    height: clamp(28px, 5.4vw, 42px);
    display: grid;
    place-items: center;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .88);
    border-radius: 50%;
    background: var(--staff-accent-color, #69b96a);
    box-shadow: 0 2px 5px rgba(26, 34, 28, .22);
  }
  .sales-content .staff-actions svg { width: clamp(17px, 3.1vw, 24px); height: clamp(17px, 3.1vw, 24px); fill: currentColor; }
  .sales-responsive-page .sales-content .staff-actions { display: none; }
  .sales-responsive-page .sales-content .staff-phone {
    width: calc(100% - 4px);
    max-width: calc(100% - 4px);
    min-height: clamp(30px, 5.4vw, 42px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: clamp(8px, 1.7vw, 13px) 2px clamp(10px, 2.3vw, 18px);
    font-size: var(--responsive-staff-phone-size, clamp(13px, calc(2vw + 2px), 20px));
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.55px;
    white-space: nowrap;
  }
  .sales-content .staff-area {
    width: 100%;
    height: clamp(84px, 12.3vw, 98px);
    min-height: clamp(84px, 12.3vw, 98px);
    flex: 0 0 auto;
    margin: auto 0 0;
    padding: clamp(10px, 2vw, 16px) 4px;
    border-radius: 0 0 clamp(12px, 2.3vw, 18px) clamp(12px, 2.3vw, 18px);
    font-size: clamp(11px, 1.8vw, 14px);
    line-height: 1.38;
  }
  .sales-content .staff-area.staff-area-regions {
    padding: clamp(5px, 1vw, 8px) 4px;
    background: #fff;
    font-size: clamp(10px, 1.65vw, 13px);
  }
  .sales-content .staff-area.staff-area-regions .staff-area-text {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    align-items: center;
    justify-content: center;
    gap: 3px .6em;
  }
  .sales-content .staff-area-regions .staff-area-region {
    min-width: 0;
    display: block;
    white-space: nowrap;
  }
  .sales-content .staff-area-regions .staff-area-dot,
  .sales-content .staff-area-regions .staff-area-break { display: none; }
  .sales-content .location-section { margin-top: 0; }
}

@media (hover: none) {
  .installation-card:hover .product-image-box { animation: none; }
}

@media (max-width: 980px) {
  .site-header.home-header .search-icon-vector { display: none; }
  .site-header.home-header .global-search-submit { left: auto; right: 0; width: clamp(65px, 9.3vw, 91px); }
  .site-header.home-header .search-icon-mobile {
    width: clamp(19px, calc(14px + 1.3vw), 27px);
    height: clamp(19px, calc(14px + 1.3vw), 27px);
    display: block;
    filter: none;
  }
  .top-button {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .top-button .top-icon {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain;
  }
  .top-button::before {
    content: none !important;
    display: none !important;
  }
}

@media (max-width: 340px) {
  :is(.ledger-responsive-page, .delivery-responsive-page) .date-filter-ledger .ledger-date-trigger {
    padding: 0 21px 0 4px;
  }
  :is(.ledger-responsive-page, .delivery-responsive-page) .ledger-date-trigger span { white-space: nowrap; }
}

@media (min-width: 981px) {
  .quick-actions a { min-height: 64px; padding-block: 4px; }
  .download-category-card { font-size: 16px; font-weight: 600; }
}

input[type="search"]:focus::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

@media (max-width: 980px) {
  a,
  button { -webkit-tap-highlight-color: transparent; }

  a:focus:not(:focus-visible),
  button:focus:not(:focus-visible) { outline: none; }

  :is(
    .home-category button,
    .responsive-category-tabs > a,
    .responsive-category-sections a,
    .responsive-category-children a,
    .responsive-category-flat-list a,
    .responsive-furniture-list a,
    .home-quick-actions a,
    .home-quick-actions button
  ) { transition: background-color .16s ease; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
