/* KMTstyle storefront design system — ponytail: CSS overlay preserves existing PHP contracts. */
:root {
  --kmt-red: #D92732;
  --kmt-red-dark: #B9202A;
  --kmt-red-soft: #FFF1F2;
  --kmt-bg: #F5F5F5;
  --kmt-surface: #FFFFFF;
  --kmt-ink: #222222;
  --kmt-muted: #6F6F6F;
  --kmt-border: #E6E6E6;
  --kmt-success: #16834B;
  --kmt-warning: #A95D00;
  --kmt-danger: #B9202A;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 1px 3px rgba(28,28,28,.04);
  --shadow-hover: 0 10px 24px rgba(28,28,28,.09);
}

body { background: var(--kmt-bg); color: var(--kmt-ink); }
:focus-visible { outline: 3px solid rgba(217,39,50,.28); outline-offset: 2px; }

/* Header */
.site-header { box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.service-bar { background: #272727; }
.service-bar-inner > span::before { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #57B77A; content: ''; vertical-align: 1px; }
.main-header-inner { min-height: 82px; }
.brand-logo { letter-spacing: -.055em; }
.header-search { height: 50px; border: 1px solid #DADADA; border-radius: 8px; box-shadow: none; }
.header-search:hover { border-color: #BDBDBD; }
.header-search:focus-within { border-color: var(--kmt-red); box-shadow: 0 0 0 3px rgba(217,39,50,.08); }
.header-search input { font-size: 15px; }
.header-search .search-submit { min-width: 112px; }
.header-quick-actions { gap: 8px; }
.header-quick-actions .header-action-button { position: relative; display: inline-grid; width: 44px; height: 44px; min-width: 44px; padding: 0; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--kmt-ink); cursor: pointer; }
.header-quick-actions .header-action-button:hover, .header-quick-actions .header-action-button:focus-visible, .header-quick-actions .header-action-button.active { background: #F7F7F7; color: var(--kmt-red); }
.header-quick-actions .header-action-button .icon, .header-account-action .icon { width: 22px; height: 22px; }
.header-quick-actions .header-account-action { flex-direction: row; justify-content: center; gap: 7px; min-width: auto; padding: 0 8px; font-size: 12px; }
.header-action-button[data-tooltip]::after { position: absolute; top: calc(100% + 7px); left: 50%; z-index: 3; padding: 6px 8px; border-radius: 5px; background: #272727; color: #fff; content: attr(data-tooltip); font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%,-3px); transition: opacity .15s ease,transform .15s ease; }
.header-action-button[data-tooltip]:hover::after, .header-action-button[data-tooltip]:focus-visible::after { opacity: 1; transform: translate(-50%,0); }
.header-action-button[aria-expanded="true"]::after { display: none; }
.header-recent { position: relative; }
.header-recent-badge { top: -2px; right: -3px; }
.recent-popover { position: absolute; top: calc(100% + 10px); right: 0; z-index: 44; width: min(360px,calc(100vw - 32px)); border: 1px solid var(--kmt-border); border-radius: 10px; background: #fff; box-shadow: 0 14px 34px rgba(28,28,28,.16); color: var(--kmt-ink); }
.recent-popover[hidden] { display: none; }
.recent-popover > header { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--kmt-border); }
.recent-popover > header strong { font-size: 14px; }
.recent-popover > header button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--kmt-muted); font-size: 20px; cursor: pointer; }
.recent-popover > header button:hover, .recent-popover > header button:focus-visible { background: #F5F5F5; color: var(--kmt-red); }
.recent-popover-list { padding: 4px 12px; }
.header-quick-actions .recent-popover-item { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 10px; min-height: 76px; padding: 8px 0; border-bottom: 1px solid #EEEEEE; color: var(--kmt-ink); }
.header-quick-actions .recent-popover-item:last-child { border-bottom: 0; }
.recent-popover-image { display: grid; width: 60px; height: 60px; place-items: center; border-radius: 7px; background: #FAFAFA; }
.recent-popover-image img { width: 100%; height: 100%; object-fit: contain; }
.recent-popover-image .icon { width: 24px; height: 24px; color: var(--kmt-muted); }
.recent-popover-copy { min-width: 0; align-self: center; }
.recent-popover-copy strong { font-size: 12px; line-height: 1.35; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.recent-popover-price { display: flex; align-items: baseline; gap: 6px; margin-top: 5px; white-space: nowrap; }
.recent-popover-price .display-price { color: var(--kmt-red); font-size: 13px; font-weight: 800; }
.recent-popover-price del { color: var(--kmt-muted); font-size: 10px; }
.recent-popover-empty { padding: 20px 16px; text-align: center; }
.recent-popover-empty p { margin: 0 0 10px; color: var(--kmt-muted); font-size: 12px; }
.header-quick-actions .recent-popover-empty a, .header-quick-actions .recent-popover-footer { display: inline-flex; min-height: 36px; flex-direction: row; align-items: center; justify-content: center; gap: 6px; color: var(--kmt-red); font-size: 12px; font-weight: 700; }
.header-quick-actions .recent-popover-empty a .icon, .header-quick-actions .recent-popover-footer .icon { width: 15px; height: 15px; }
.header-quick-actions .recent-popover-footer { display: flex; border-top: 1px solid var(--kmt-border); }
.header-quick-actions .recent-popover-footer[hidden] { display: none; }
.recent-popover-skeleton { display: block; height: 60px; margin: 8px 0; border-radius: 7px; background: linear-gradient(90deg,#F2F2F2 25%,#FAFAFA 50%,#F2F2F2 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.35s infinite; }
.mobile-recent-link { display: none !important; }
.recent-history-heading { align-items: center; }
.recent-history-heading .button { flex: 0 0 auto; }
.category-nav-inner { min-height: 46px; }
.category-nav nav a:first-child { color: var(--kmt-red); font-weight: 800; }
.all-categories { min-width: 190px; }

/* Foundation components */
.button { min-height: 44px; border-radius: 8px; letter-spacing: .005em; box-shadow: none; }
.button:hover { transform: none; }
.button:active { transform: translateY(1px); }
.button:disabled { filter: grayscale(.15); }
.button.secondary { background: #fff; }
.button.tertiary { border-color: transparent; background: var(--kmt-red-soft); color: var(--kmt-red-dark); }
.button.tertiary:hover { border-color: #F1C9CC; background: #FFE7E9; }
.icon-button { transition: color .18s ease, background .18s ease, border-color .18s ease; }
.icon-button:active { transform: translateY(1px); }
input, select, textarea { border-color: #D8D8D8; background: #fff; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--kmt-danger); box-shadow: 0 0 0 3px rgba(185,32,42,.1); }
.field-success input, .field-success select, .field-success textarea { border-color: var(--kmt-success); }
.radio-label, .filter-option { cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; accent-color: var(--kmt-red); }
.badge, .discount-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.discount-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--kmt-red); color: #fff; }
.page-heading { margin-bottom: 24px; }
.section-heading { margin-top: 38px; padding-bottom: 10px; border-bottom: 1px solid var(--kmt-border); }
.section-heading h2 { font-size: 22px; }
.breadcrumb { font-size: 12px; }
.breadcrumb a:hover { color: var(--kmt-red); }

/* Homepage merchandising: real product imagery, compact retail density, no global product-card overrides. */
.hero-layout { grid-template-columns: minmax(0,2.35fr) minmax(280px,1fr); gap: 14px; }
.hero-layout.no-promos { grid-template-columns: minmax(0,1fr); }
.hero-banner, .promo-banner { min-height: 0; border: 1px solid #E1E1E1; border-radius: 10px; }
.hero-banner::after, .promo-banner::after { display: none; }
.hero-banner { height: 300px; padding: 0; }
.hero-carousel { position: relative; overflow: hidden; background: #F5F5F3; touch-action: pan-y; }
.hero-carousel-track { display: flex; width: 100%; height: 100%; transition: transform .55s ease; will-change: transform; }
.hero-carousel-slide { flex: 0 0 100%; width: 100%; height: 100%; opacity: .92; transition: opacity .55s ease; }
.hero-carousel-slide[aria-hidden="false"] { opacity: 1; }
.hero-carousel .custom-home-banner, .hero-carousel picture, .hero-carousel img { width: 100%; height: 100%; }
.hero-carousel-arrow { position: absolute; top: 50%; z-index: 3; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #3C4148; box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 30px; line-height: 1; opacity: .58; transform: translateY(-50%); transition: opacity .18s ease, background .18s ease, color .18s ease; }
.hero-carousel:hover .hero-carousel-arrow, .hero-carousel-arrow:focus-visible { opacity: 1; }
.hero-carousel-arrow:hover { background: #fff; color: var(--kmt-red); }
.hero-carousel-arrow.is-prev { left: 14px; }
.hero-carousel-arrow.is-next { right: 14px; }
.hero-carousel-toggle { position: absolute; right: 13px; bottom: 10px; z-index: 4; display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(255,255,255,.82); color: #3C4148; box-shadow: 0 1px 5px rgba(0,0,0,.2); font-size: 11px; line-height: 1; }
.hero-carousel-toggle:hover, .hero-carousel-toggle:focus-visible { background: #fff; color: var(--kmt-red); }
.hero-carousel-dots { position: absolute; right: 52px; bottom: 13px; left: 52px; z-index: 3; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.hero-carousel-dots button { width: 9px; height: 9px; padding: 0; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(255,255,255,.48); box-shadow: 0 1px 4px rgba(0,0,0,.35); pointer-events: auto; }
.hero-carousel-dots button[aria-current="true"] { border-color: var(--kmt-red); background: var(--kmt-red); }
@media (prefers-reduced-motion: reduce) { .hero-carousel-track, .hero-carousel-slide { transition: none; } }
.hero-banner.brand-hero-fallback { position: relative; isolation: isolate; display: flex; min-height: 300px; border: 0; border-radius: 12px; overflow: hidden; color: #fff; background: linear-gradient(110deg,#86121C 0%,#B9202A 52%,#D92732 100%); }
.brand-hero-fallback::before, .brand-hero-fallback::after { display: none; }
.brand-hero-copy { position: relative; z-index: 2; display: flex; width: 100%; max-width: 520px; height: 100%; flex-direction: column; justify-content: center; padding: 48px; }
.brand-name { margin: 0 0 8px; color: rgba(255,255,255,.75); font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.brand-hero-copy h1 { max-width: 520px; margin: 0 0 10px; color: #fff; font-size: clamp(32px,3.2vw,38px); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.brand-hero-copy > p:not(.brand-name) { margin: 0 0 22px; color: rgba(255,255,255,.82); font-size: 15px; }
.brand-hero-copy .button { align-self: flex-start; min-height: 45px; border-color: #fff; background: #fff; color: var(--kmt-red); }
.brand-hero-copy .button:hover { border-color: #F4F4F4; background: #F4F4F4; color: var(--kmt-red-dark); }
.brand-hero-art { position: absolute; inset: 0 0 0 auto; z-index: 1; width: 44%; overflow: hidden; pointer-events: none; }
.brand-hero-art span { position: absolute; border-radius: 50%; background: rgba(255,255,255,.09); }
.brand-hero-art span:first-child { top: -105px; right: -55px; width: 310px; height: 310px; }
.brand-hero-art span:nth-child(2) { right: 170px; bottom: -115px; width: 230px; height: 230px; background: rgba(255,255,255,.07); }
.custom-home-banner { display: block; padding: 0; overflow: hidden; color: var(--kmt-ink); background: #F5F5F3; }
.custom-home-banner::before, .custom-home-banner::after { display: none; }
.custom-home-banner picture, .custom-home-banner img { display: block; width: 100%; height: 100%; }
.custom-home-banner img { object-fit: contain; transition: opacity .18s ease, transform .18s ease; }
a.custom-home-banner:hover img { opacity: .96; transform: scale(1.005); }
.promo-stack { grid-template-rows: repeat(2,minmax(0,1fr)); gap: 14px; }
.promo-stack.single-promo { grid-template-rows: minmax(0,1fr); }
.promo-banner { height: 143px; padding: 0; }
.promo-stack.single-promo .promo-banner { height: 300px; }
body.home .service-strip { margin-top: 12px; border-radius: 8px; background: #fff; box-shadow: none; }
body.home .service-item { min-height: 72px; padding: 0 22px; }
body.home .service-item .icon { width: 21px; height: 21px; color: var(--kmt-red); }
body.home .service-item strong { font-size: 13px; }
body.home .service-item span { color: #777; font-size: 12px; }
body.home .section-heading { align-items: center; margin: 30px 0 14px; padding-bottom: 0; border-bottom: 0; }
body.home .section-heading h2 { font-size: 22px; }
body.home .product-section + .product-section { margin-top: 42px; }

/* Homepage categories appear only when real category data exists. */
body.home .home-category-section .section-heading { margin: 26px 0 10px; }
body.home .home-category-section + .product-section .section-heading { margin-top: 24px; }
body.home .category-grid { grid-template-columns: repeat(8,minmax(0,1fr)); gap: 14px; }
body.home .category-card { display: block; min-width: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--kmt-ink); transition: transform .18s ease; }
body.home .category-card:hover { border-color: transparent; box-shadow: none; transform: translateY(-2px); }
body.home .category-card::after { display: none; }
body.home .category-card-media { display: grid; height: 140px; place-items: center; overflow: hidden; border: 1px solid #E8E8E8; border-radius: 12px; background: #F8F8F8; transition: border-color .18s ease, background-color .18s ease; }
body.home .category-card:hover .category-card-media { border-color: var(--kmt-red); background: #fff; }
body.home .category-card img { width: 100%; height: 100%; min-height: 0; padding: 16px; object-fit: contain; opacity: 1; transition: transform .18s ease; }
body.home .category-card:hover img { transform: scale(1.02); }
body.home .category-card strong { position: static; display: -webkit-box; min-height: 35px; margin-top: 9px; padding: 0 4px; overflow: hidden; color: #2B2B2B; font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
body.home .category-card:hover strong { color: var(--kmt-red); }
body.home .category-card.no-image { display: block; min-height: 0; padding: 0; background: transparent; }
body.home .category-placeholder { color: #777; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
body.categories { background: #F7F7F7; }
.category-directory { min-width: 0; padding: 28px 0 54px; }
.category-directory-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.category-directory-intro h1 { margin: 2px 0 6px; font-size: clamp(28px,3vw,38px); }
.category-directory-intro p { margin: 0; color: var(--muted); }
.category-directory-search { width: min(390px,100%); }
.category-directory-search input { width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid #DADADA; border-radius: 8px; background: #fff; font: inherit; }
.category-directory-search input:focus { border-color: var(--kmt-red); outline: 3px solid rgba(217,39,50,.1); }
.category-directory-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); align-items: start; gap: 28px; }
.category-directory-nav { position: sticky; top: 92px; display: grid; overflow: hidden; border: 1px solid #E7E7E7; border-radius: 10px; background: #fff; }
.category-directory-nav a { min-height: 43px; padding: 12px 16px; border-left: 3px solid transparent; color: #333; font-size: 14px; font-weight: 600; }
.category-directory-nav a + a { border-top: 1px solid #F0F0F0; }
.category-directory-nav a:hover,.category-directory-nav a.active { border-left-color: var(--kmt-red); background: #FFF3F4; color: var(--kmt-red); }
.category-directory-content { min-width: 0; }
.category-directory-section { scroll-margin-top: 96px; }
.category-directory-section + .category-directory-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid #E2E2E2; }
.category-directory-section-header > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.category-directory-section-header h2 { margin: 0; font-size: 22px; }
.category-directory-section-header a { color: var(--kmt-red); font-size: 13px; font-weight: 700; }
.category-directory-section-header button { display: none; }
.category-directory-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.category-directory-card { min-width: 0; overflow: hidden; border: 1px solid #E7E7E7; border-radius: 10px; background: #fff; transition: border-color .18s ease,transform .18s ease; }
.category-directory-card:hover { border-color: var(--kmt-red); transform: translateY(-2px); }
.category-directory-card-main { display: block; color: #2B2B2B; }
.category-directory-card-media { display: grid; height: 156px; place-items: center; overflow: hidden; border-bottom: 1px solid #EFEFEF; background: #F8F8F8; }
.category-directory-card-media img { width: 100%; height: 100%; padding: 15px; object-fit: contain; transition: transform .18s ease; }
.category-directory-card:hover .category-directory-card-media img { transform: scale(1.02); }
.category-directory-card-main strong { display: -webkit-box; min-height: 52px; padding: 13px 13px 8px; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.category-directory-card:hover .category-directory-card-main strong { color: var(--kmt-red); }
.category-directory-links { display: grid; gap: 5px; padding: 0 13px 14px; }
.category-directory-links a { overflow: hidden; color: #666; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.category-directory-links a:hover,.category-directory-links .more { color: var(--kmt-red); }
.category-directory-empty { margin-bottom: 20px; padding: 24px; border: 1px solid #E7E7E7; border-radius: 10px; background: #fff; text-align: center; }
.category-directory-empty p { margin: 0 0 14px; }
.category-directory [hidden] { display: none !important; }
@media (max-width: 1279px) {
  .category-directory-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 1024px) {
  .category-directory-layout { grid-template-columns: 185px minmax(0,1fr); gap: 20px; }
  .category-directory-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .category-directory { padding: 18px 0 38px; }
  .category-directory-intro { align-items: stretch; flex-direction: column; gap: 16px; margin-bottom: 18px; }
  .category-directory-search { width: 100%; }
  .category-directory-layout { display: block; }
  .category-directory-nav { display: none; }
  .category-directory-section,.category-directory-section + .category-directory-section { margin: 0 0 10px; padding: 0; border: 1px solid #E7E7E7; border-radius: 9px; background: #fff; }
  .category-directory-section-header > div { display: none; }
  .category-directory-section-header button { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; padding: 0 14px; border: 0; background: transparent; color: #292929; font: inherit; font-weight: 700; text-align: left; }
  .category-directory-section-header button span:last-child { color: var(--kmt-red); transition: transform .18s ease; }
  .category-directory-section.is-open .category-directory-section-header button span:last-child { transform: rotate(180deg); }
  .category-directory-grid { display: none; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 0 10px 12px; }
  .category-directory-section.is-open .category-directory-grid { display: grid; }
  .category-directory-card-media { height: 120px; }
  .category-directory-card-main strong { min-height: 48px; padding: 10px; font-size: 13px; }
  .category-directory-links { display: none; }
}
@media (max-width: 390px) {
  .category-directory-card-media { height: 108px; }
}
/* Product Card */
.product-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.product-card { border-radius: 8px; box-shadow: var(--shadow-card); overflow: hidden; }
.product-card:hover { border-color: #D2D2D2; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.product-card-media { padding: 8px 8px 0; }
.product-card-image, .product-image { height: 224px; border-radius: 6px; background: #fff; }
.product-card-image img { padding: 8px; }
.product-placeholder { display: grid; justify-items: center; gap: 8px; color: #AAA; }
.product-placeholder .icon { width: 38px; height: 38px; }
.product-placeholder small { color: #999; font-weight: 700; letter-spacing: .08em; }
.wishlist-button { top: 12px; right: 12px; border-color: rgba(0,0,0,.09); background: rgba(255,255,255,.96); }
.wishlist-button.active { border-color: #F2C3C6; background: var(--kmt-red-soft); color: var(--kmt-red); }
.wishlist-button.active .icon { fill: currentColor; }
.product-card-body { min-height: 226px; padding: 12px 14px 14px; }
.product-category { margin: 0 0 6px; color: var(--kmt-muted); font-size: 11px; font-weight: 600; }
.product-card-title { min-height: 42px; font-size: 13px; font-weight: 650; line-height: 1.45; }
.product-rating { min-height: 20px; margin-top: 5px; color: #E7A400; font-size: 12px; letter-spacing: 1px; }
.product-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 4px; }
.product-price { color: var(--kmt-red); font-size: 22px; line-height: 1.15; letter-spacing: -.03em; }
.product-price-row del { color: #929292; font-size: 12px; }
.product-saving { color: var(--kmt-red-dark); font-size: 11px; font-weight: 700; }
.stock-line { display: flex; width: 100%; min-width: 0; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 24px; margin-top: 5px; color: var(--kmt-muted); font-size: 11px; }
.stock-line::before { display: none; }
.stock-line .stock-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #AAA; }
.stock-line .stock-status, .stock-line .stock-delivery { width: auto; height: auto; min-width: 0; flex: 0 0 auto; border-radius: 0; background: transparent; white-space: nowrap; }
.stock-line.is-available .stock-dot { background: var(--kmt-success); }
.stock-line.is-available .stock-status { color: var(--kmt-success); }
.stock-line .stock-delivery { color: var(--kmt-muted); }
.card-footer { margin-top: auto; padding-top: 8px; }
.card-footer form, .card-footer .button { width: 100%; }
.card-footer .button { min-height: 39px; }

/* Catalog */
.catalog-page-heading { margin-bottom: 16px; }
.catalog-page-heading .eyebrow { font-size: 11px; letter-spacing: .13em; }
.catalog-layout { grid-template-columns: 260px minmax(0,1fr); gap: 24px; }
.filters-panel { border-radius: 8px; box-shadow: none; }
.filters-panel .drawer-header { margin-bottom: 0; padding-bottom: 16px; }
.filters-panel .drawer-header strong { font-size: 17px; }
.filters-panel .drawer-header .icon-button { display: none; }
.filters-panel .filter-group:first-of-type { padding-top: 16px; }
.filters-panel .price-fields { gap: 8px; }
.filters-panel .price-fields input { min-height: 40px; }
.filters-panel form > .button { min-height: 42px; border-radius: 8px; background: var(--kmt-red); }
.filters-panel form > .button:hover { background: var(--kmt-red-dark); }
.catalog-toolbar { min-height: 46px; margin-bottom: 16px; border-radius: 8px; box-shadow: none; }
.catalog-toolbar > strong { margin-right: auto; font-size: 14px; font-weight: 600; }
.catalog-toolbar-controls label { gap: 9px; color: var(--kmt-muted); font-size: 13px; white-space: nowrap; }
.catalog-toolbar-controls select { width: 180px; min-width: 180px; min-height: 42px; font-size: 13px; }
.mobile-filter-button { display: none; min-height: 42px; }
.filter-scrim { display: none; }
.catalog-layout .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.catalog-layout .product-card { border-color: #E5E5E5; border-radius: 10px; box-shadow: none; }
.catalog-layout .product-card:hover { border-color: #D8D8D8; box-shadow: 0 4px 14px rgba(0,0,0,.05); transform: none; }
.catalog-layout .product-card-media { padding: 8px 8px 0; }
.catalog-layout .product-card-image { height: 230px; background: #fff; }
.catalog-layout .product-card-image img { padding: 8px; }
.catalog-layout .wishlist-button { width: 36px; height: 36px; border-color: transparent; background: transparent; color: #8A8A8A; }
.catalog-layout .wishlist-button:hover { border-color: #E1E1E1; background: rgba(255,255,255,.96); color: #666; }
.catalog-layout .wishlist-button.active { border-color: #F2C3C6; background: var(--kmt-red-soft); color: var(--kmt-red); }
.catalog-layout .product-card-body { min-height: 204px; padding: 12px 14px 14px; }
.catalog-layout .product-card-title { min-height: 40px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.catalog-layout .product-price-row { margin-top: 10px; }
.catalog-layout .product-price { color: var(--kmt-red); font-size: 20px; font-weight: 700; }
.catalog-layout .product-price-row del { color: #888; font-size: 13px; }
.catalog-layout .stock-line { gap: 6px; min-height: 20px; margin-top: 8px; color: #777; font-size: 12px; font-weight: 500; }
.catalog-layout .stock-line::before { display: none; }
.catalog-layout .stock-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #AAA; }
.catalog-layout .stock-line.is-available .stock-dot { background: #188A42; }
.catalog-layout .stock-line .stock-status, .catalog-layout .stock-line .stock-delivery { width: auto; height: auto; flex: 0 1 auto; border-radius: 0; background: transparent; }
.catalog-layout .stock-line.is-available .stock-status { color: #188A42; font-weight: 600; }
.catalog-layout .stock-delivery { color: #777; }
.catalog-layout .card-footer { margin-top: auto; padding-top: 14px; }
.catalog-layout .card-footer .button { min-height: 40px; border-radius: 8px; background: var(--kmt-red); }
.catalog-layout .card-footer .button:hover { background: var(--kmt-red-dark); }
.pagination a, .pagination span { border-radius: 6px; }

/* Product detail */
.product-detail { border-radius: 10px; box-shadow: none; }
.detail-main-image { background: #fff; }
.detail-price { color: var(--kmt-red); }
.detail-price-note { margin-top: 3px; }
.detail-purchase-box { margin-top: 18px; padding: 18px; border: 1px solid var(--kmt-border); border-radius: 8px; background: #FAFAFA; }
.add-cart-form { margin-top: 0; }
.quantity-stepper { display: grid; grid-template-columns: 42px 54px 42px; overflow: hidden; border: 1px solid #D2D2D2; border-radius: 8px; background: #fff; }
.quantity-stepper button, .quantity-stepper input { min-height: 44px; border: 0; border-radius: 0; text-align: center; }
.quantity-stepper button { background: #fff; color: var(--kmt-ink); }
.quantity-stepper button:hover { background: #F3F3F3; }
.quantity-stepper input { padding: 0; border-right: 1px solid var(--kmt-border); border-left: 1px solid var(--kmt-border); box-shadow: none; }
.trust-list { border-radius: 8px; }
.product-tabs { border-radius: 8px; box-shadow: none; }
.sticky-product-cta { display: none; }

/* Cart, checkout, account and content pages */
.cart-list, .cart-summary-card, .checkout-card, .account-card, .account-nav, .account-content, .order-detail-card, .info-page, .state-card, .empty-state, .success-card { border-radius: 8px; box-shadow: none; }
.cart-summary-card { border-top: 3px solid var(--kmt-red); }
.summary-total strong { color: var(--kmt-red); }
.checkout-steps { overflow: hidden; border-radius: 8px; }
.checkout-steps span.active { background: var(--kmt-red); color: #fff; }
.checkout-steps span.done { color: var(--kmt-success); }
.account-nav nav a { border-radius: 6px; }
.account-nav nav a.active { background: var(--kmt-red-soft); color: var(--kmt-red-dark); }
.order-status { border-radius: 6px; }
.info-page { padding: clamp(24px,4vw,54px); border: 1px solid var(--kmt-border); background: #fff; }
.info-page h1 { max-width: 720px; }
.empty-state { padding: 58px 24px; }
.empty-state-icon { border-radius: 12px; }

/* Drawer, modal, toast, skeleton */
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 90; width: min(88vw,360px); padding: 22px; overflow-y: auto; background: #fff; box-shadow: 18px 0 40px rgba(0,0,0,.18); transform: translateX(-105%); transition: transform .22s ease; }
.drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--kmt-border); }
.drawer-scrim { position: fixed; inset: 0; z-index: 85; border: 0; background: rgba(0,0,0,.46); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.modal { width: min(calc(100% - 32px),560px); padding: 24px; border: 0; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.modal::backdrop { background: rgba(0,0,0,.48); }
.toast { display: flex; align-items: center; gap: 10px; border-left: 4px solid var(--kmt-red); }
.skeleton { position: relative; overflow: hidden; background: #E9E9E9; }
.skeleton::after { position: absolute; inset: 0; background: linear-gradient(90deg,transparent,rgba(255,255,255,.62),transparent); content: ''; transform: translateX(-100%); animation: skeleton-shimmer 1.35s infinite; }
@keyframes skeleton-shimmer { to { transform: translateX(100%); } }

/* Footer */
.site-footer { background: #242424; }
.footer-grid { grid-template-columns: 1.6fr repeat(3,1fr) 1.15fr; }
.footer-grid h2 { padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.1); }

@media (max-width: 1279px) {
  .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .catalog-layout .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .catalog-layout { display: block; }
  .filters-panel { position: fixed; top: 0; bottom: 0; left: 0; z-index: 92; width: min(88vw,360px); padding: 20px; overflow-y: auto; border: 0; border-radius: 0; transform: translateX(-105%); transition: transform .22s ease; }
  .filters-panel.open { transform: translateX(0); }
  .filters-panel form { padding: 0; }
  .filters-panel .drawer-header .icon-button { display: grid; }
  .filter-scrim { position: fixed; inset: 0; z-index: 91; display: block; border: 0; background: rgba(0,0,0,.46); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .filter-scrim.open { opacity: 1; pointer-events: auto; }
  .mobile-filter-button { display: inline-flex; }
  .catalog-toolbar { flex-direction: row; align-items: center; flex-wrap: nowrap; }
  .catalog-toolbar-controls { margin-left: auto; }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .main-header-inner { grid-template-columns: 1fr auto; min-height: 62px; padding-bottom: 58px; }
  .mobile-menu-toggle { display: none !important; }
  .brand-logo { justify-self: start; }
  .header-search { top: 62px; }
  .header-quick-actions a { min-width: 42px; }
  .header-quick-actions a:first-child { display: none; }
  .header-quick-actions a span { display: none; }
  .category-nav { display: none; }
  main.store-main { padding-top: 18px; }
  .hero-layout { gap: 10px; }
  .hero-banner { min-height: 284px; padding: 28px 24px; }
  .hero-banner::before { right: -150px; bottom: -110px; }
  .hero-copy h1 { font-size: 34px; }
  .promo-stack { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .promo-banner { min-height: 128px; padding: 16px; }
  .promo-banner h2 { font-size: 17px; }
  .service-strip { margin-top: 12px; }
  .section-heading { margin-top: 30px; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-card, .category-card img { min-height: 138px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .product-card-image, .product-image { height: 154px; }
  .product-card-body { min-height: 205px; padding: 10px; }
  .product-category { display: none; }
  .product-rating { display: none; }
  .product-card-title { min-height: 39px; font-size: 12px; }
  .product-price { font-size: 18px; }
  .stock-line { font-size: 10px; }
  .stock-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .discount-badge { top: 7px; left: 7px; min-height: 22px; padding: 0 7px; font-size: 10px; }
  .wishlist-button { top: 8px; right: 8px; }
  .card-footer .button span { display: inline; }
  .catalog-page-heading { margin-bottom: 12px; }
  .catalog-toolbar { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; padding: 8px; }
  .catalog-toolbar > strong { grid-column: 1 / -1; grid-row: 2; margin-right: 0; }
  .catalog-toolbar-controls { width: 100%; min-width: 0; margin-left: 0; }
  .catalog-toolbar-controls label { width: 100%; }
  .catalog-toolbar-controls .sort-label { display: none; }
  .catalog-toolbar-controls select { width: 100%; min-width: 0; }
  .catalog-layout .product-card-image { height: 154px; }
  .catalog-layout .product-card-body { min-height: 196px; padding: 10px; }
  .catalog-layout .product-card-title { min-height: 39px; font-size: 12px; }
  .catalog-layout .product-price { font-size: 18px; }
  .catalog-layout .stock-line { overflow: hidden; font-size: 10px; white-space: nowrap; }
  .catalog-layout .wishlist-button { width: 32px; height: 32px; }
  .detail-purchase-box { padding: 14px; }
  .sticky-product-cta { position: fixed; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); left: 0; z-index: 48; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--kmt-border); background: rgba(255,255,255,.98); box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
  .sticky-product-cta strong { color: var(--kmt-red); font-size: 18px; }
  .product-page { padding-bottom: 130px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Local real flag images avoid emoji and CSS approximations. */
.flag-icon { display: inline-block; width: 16px; height: 11px; flex: 0 0 16px; border: 1px solid rgba(0,0,0,.18); border-radius: 2px; object-fit: cover; vertical-align: -1px; }
.language-trigger, .language-option { justify-content: flex-start; }

@media (max-width: 1279px) {
  body.home .category-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  body.home .category-card-media { height: 136px; }
  body.home .hero-copy { padding: 28px; }
}

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-banner { height: 300px; }
  .promo-stack { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; }
  .promo-stack.single-promo { grid-template-columns: 1fr; }
  .promo-banner, .promo-stack.single-promo .promo-banner { height: 140px; }
  body.home .category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  body.home .category-card-media { height: 132px; }
}

@media (max-width: 767px) {
  body.home main.store-main { padding-top: 14px; }
  .hero-layout { gap: 10px; }
  .hero-banner, .hero-banner.brand-hero-fallback { height: 290px; min-height: 290px; padding: 0; }
  .brand-hero-copy { padding: 26px 24px; }
  .brand-hero-copy h1 { max-width: 340px; margin-bottom: 8px; font-size: 32px; }
  .brand-hero-copy > p:not(.brand-name) { margin-bottom: 18px; font-size: 13px; }
  .brand-hero-art { width: 52%; opacity: .72; }
  .promo-stack { grid-template-columns: 1fr; gap: 9px; }
  .promo-banner, .promo-stack.single-promo .promo-banner { height: 126px; padding: 0; }
  body.home .service-strip { margin-top: 10px; }
  body.home .service-item { min-height: 66px; padding: 10px 12px; }
  body.home .section-heading { margin-top: 26px; margin-bottom: 12px; }
  body.home .home-category-section .section-heading { margin: 24px 0 10px; }
  body.home .home-category-section + .product-section .section-heading { margin-top: 18px; }
  body.home .category-grid { display: flex; gap: 12px; padding: 0 1px 8px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; scrollbar-width: none; }
  body.home .category-grid::-webkit-scrollbar { display: none; }
  body.home .category-card { flex: 0 0 132px; scroll-snap-align: start; }
  body.home .category-card-media { height: 120px; }
  body.home .category-card strong { min-height: 33px; margin-top: 8px; font-size: 13px; }
}

@media (max-width: 520px) {
  .promo-stack { grid-template-columns: 1fr; }
  .promo-banner { height: 116px; }
}
@media (max-width: 420px) {
  .hero-banner { min-height: 266px; }
  .promo-banner { min-height: 118px; }
  .product-card-image, .product-image { height: 142px; }
  .card-footer .button { padding: 0 7px; font-size: 11px; }
}

.mobile-header-utilities { display: none; }

/* Mobile storefront audit: scoped corrections for 375/390/430px. */
@media (max-width: 767px) {
  .site-header { position: relative; }
  .main-header-inner { min-width: 0; grid-template-columns: 44px minmax(0,1fr) 80px 84px; gap: 6px; }
  .mobile-menu-toggle { display: grid !important; }
  .brand-logo { min-width: 0; white-space: nowrap; }
  .mobile-header-utilities { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 0; }
  .mobile-header-utilities .utility-select { position: static; }
  .mobile-header-utilities .utility-select__trigger { width: 40px; min-width: 40px; height: 44px; padding: 0; justify-content: center; border-color: var(--border); background: var(--surface); color: var(--ink); box-shadow: none; }
  .mobile-header-utilities .utility-select__arrow { display: none; }
  .mobile-language-switch { position: static !important; min-width: 0; }
  .mobile-language-switch .language-trigger > span:not(.flag-icon) { display: none; }
  .mobile-header-utilities .utility-select__menu { position: fixed; top: 58px; right: 12px; left: auto; width: min(210px,calc(100vw - 24px)); max-width: calc(100vw - 24px); border-color: var(--border); background: var(--surface); color: var(--ink); }
  .mobile-header-utilities .utility-select__item { min-height: 44px; color: var(--muted); white-space: nowrap; }
  .mobile-header-utilities .utility-select__item:hover, .mobile-header-utilities .utility-select__item:focus-visible { color: var(--ink); background: #f5f5f5; }
  .header-quick-actions { min-width: 0; justify-content: flex-end; }
  .header-recent { display: none; }
  .header-quick-actions .header-account-action { min-width: 42px; min-height: 44px; padding: 0; }
  .header-quick-actions .header-account-action span { display: none; }
  .header-quick-actions a, .mobile-wishlist-trigger { min-width: 42px; min-height: 44px; }
  .header-search { right: 12px; left: 12px; width: auto; min-width: 0; }
  .header-search input { padding-right: 40px; font-size: 16px; }
  .header-search .search-submit { width: 48px; min-width: 48px; padding: 0; }
  .live-search-results { right: 0; left: 0; width: auto; max-width: none; }
  .live-search-item { grid-template-columns: 42px minmax(0,1fr) auto; min-width: 0; }
  .live-search-copy strong { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .live-search-price { display: block; font-size: 11px; }
  .category-nav { margin-top: 53px; }
  .category-nav-inner { min-width: 0; }
  .category-nav:not(.mobile-open) .category-nav-inner { min-height: 0; }
  .category-nav:not(.mobile-open) .all-categories { min-height: 42px; }
  .category-nav.mobile-open { display: block; max-height: calc(100dvh - 117px); overflow-y: auto; overscroll-behavior: contain; }
  .category-nav.mobile-open nav { grid-template-columns: 1fr; }
  .category-nav.mobile-open nav a { min-height: 44px; }
  .category-nav.mobile-open .mobile-recent-link { display: flex !important; align-items: center; gap: 10px; }
  .category-nav.mobile-open .mobile-recent-link .icon { width: 20px; height: 20px; }
  .recent-history-heading { align-items: stretch; }
  .recent-history-heading .button { width: 100%; justify-content: center; }

  .hero-banner, .hero-banner.brand-hero-fallback { height: auto; min-height: 0; aspect-ratio: 15 / 8; }
  .hero-banner picture, .hero-banner picture img, .promo-banner picture, .promo-banner picture img { width: 100%; height: 100%; }
  .hero-banner picture img, .promo-banner picture img { object-fit: contain; background: #fff; }
  .promo-banner, .promo-stack.single-promo .promo-banner { height: auto; min-height: 0; aspect-ratio: 3 / 1; }
  body.home .service-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.home .service-item { min-width: 0; }
  body.home .service-item strong, body.home .service-item span { overflow-wrap: anywhere; }

  .product-grid { min-width: 0; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-card { min-width: 0; }
  .product-card-title { min-height: 42px; font-size: 13px; line-height: 1.45; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .product-price { font-size: 17px; line-height: 1.2; white-space: nowrap; }
  .stock-line { min-width: 0; font-size: 11px; }
  .product-card .wishlist-button { width: 40px; height: 40px; top: 6px; right: 6px; }
  .product-card .cart-quantity-badge, .product-card [data-cart-quantity] { max-width: calc(100% - 54px); }
  .product-card .button { min-height: 42px; font-size: 12px; }

  .catalog-toolbar { min-width: 0; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .mobile-filter-button, .catalog-toolbar-controls select { min-height: 44px; }
  .filters-panel { position: fixed; top: 0; bottom: 0; left: 0; z-index: 72; width: min(360px,calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  .filter-scrim { position: fixed; inset: 0; z-index: 71; }
  .active-filters { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: thin; }
  .active-filters > * { flex: 0 0 auto; }
  .pagination { max-width: 100%; flex-wrap: wrap; }

  .product-detail { min-width: 0; }
  .detail-gallery, .detail-content { min-width: 0; }
  .detail-main-image { width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1; }
  .detail-main-image img { width: 100%; height: 100%; object-fit: contain; }
  .gallery-arrow { width: 42px; height: 44px; }
  .gallery-thumbnail-row { overflow: visible; }
  .gallery-thumbnails { max-width: 100%; padding-bottom: 4px; overscroll-behavior-inline: contain; }
  .gallery-thumbnail { width: 64px; height: 64px; flex: 0 0 64px; }
  .tab-list { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .tab-list button { min-height: 44px; flex: 0 0 auto; padding: 0 16px; font-size: 13px; white-space: nowrap; }
  .tab-panel, .tab-panel * { min-width: 0; }
  .specification-list div { grid-template-columns: minmax(0,38%) minmax(0,1fr); gap: 12px; }
  .specification-list dd, .specification-list span, .review-item, .review-item p { overflow-wrap: anywhere; word-break: break-word; }
  .review-form input, .review-form textarea { width: 100%; min-width: 0; }
  .review-rating button, .review-rating label { min-width: 42px; min-height: 42px; }

  .commerce-drawer { width: 100vw; max-width: 100vw; }
  .commerce-drawer > header { min-height: 68px; padding: 12px 14px; }
  .commerce-drawer > header > button { width: 44px; height: 44px; }
  .drawer-product-list { padding-right: 14px; padding-left: 14px; }
  .drawer-product { min-width: 0; grid-template-columns: 64px minmax(0,1fr); gap: 10px; padding-right: 0; }
  .drawer-product-image { width: 64px; height: 64px; }
  .drawer-line-total { grid-column: 2; padding-top: 0; }
  .drawer-quantity { grid-template-columns: 40px 38px 40px; }
  .drawer-quantity button { width: 40px; height: 40px; }

  .cart-layout, .checkout-layout { min-width: 0; }
  .cart-row { min-width: 0; grid-template-columns: 64px minmax(0,1fr) 44px; align-items: start; }
  .cart-row-image { width: 64px; height: 64px; }
  .cart-row-info { min-width: 0; overflow-wrap: anywhere; }
  .cart-row > label { grid-column: 2; grid-row: auto; }
  .cart-row > label .quantity-input, .cart-row .quantity-input { width: 76px; min-height: 44px; }
  .cart-row > strong { grid-column: 2; white-space: nowrap; }
  .cart-row > .link-button { grid-column: 3; grid-row: 1; width: 44px; min-height: 44px; }
  .cart-summary-card, .checkout-card { padding: 18px 14px; }
  .cart-actions { align-items: stretch; flex-direction: column; }
  .cart-actions .button { width: 100%; }

  .checkout-steps { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .checkout-steps span { min-width: 0; min-height: 52px; padding: 8px 3px; border-right: 1px solid var(--border); border-bottom: 0 !important; font-size: 0; }
  .checkout-steps span::first-letter { font-size: 14px; }
  .checkout-steps span.active { font-size: 11px; line-height: 1.15; }
  .checkout-address-card { grid-template-columns: 1fr; }
  .checkout-address-meta { grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
  .checkout-address-meta button { min-height: 40px; padding: 0 10px; justify-self: end; }
  .checkout-item { min-width: 0; align-items: flex-start; }
  .checkout-item span { min-width: 0; overflow-wrap: anywhere; }
  .checkout-item strong { flex: 0 0 auto; }
  .checkout-card .button.full, .checkout-card button[type="submit"] { width: 100%; min-height: 48px; }

  .modal, [role="dialog"] { max-width: calc(100vw - 24px); max-height: 90dvh; overflow: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { grid-column: auto; }
  .footer-grid section { min-width: 0; }
  .footer-grid a, .company-details span { overflow-wrap: anywhere; }
  .footer-bottom .store-container { gap: 8px; }
}

@media (max-width: 430px) {
  .store-container { width: calc(100% - 20px); }
  .main-header-inner { grid-template-columns: 42px minmax(0,1fr) 80px 84px; }
  .brand-logo { font-size: 20px; }
  .brand-logo small { display: none; }
  .header-search { right: 10px; left: 10px; }
  .mobile-header-utilities .utility-select__menu { right: 10px; max-width: calc(100vw - 20px); }
  .product-card-body { min-height: 190px; }
  .product-card-image, .product-image { height: 142px; }
  .product-card .button { padding: 0 8px; }
  .card-footer .button span { display: inline; }
  .specification-list div { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .checkout-steps span.active { font-size: 10px; }
}
