:root {
  --brand: #D92732;
  --brand-dark: #B9202A;
  --brand-soft: #fff0f1;
  --ink: #222222;
  --muted: #6F6F6F;
  --subtle: #8b8b8b;
  --bg: #F5F5F5;
  --surface: #ffffff;
  --border: #E6E6E6;
  --border-strong: #d2d2d2;
  --success: #16834b;
  --warning: #a95d00;
  --danger: #bd202b;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 2px 10px rgba(34,34,34,.05);
  --shadow-hover: 0 12px 28px rgba(34,34,34,.11);
  --container: 1440px;
  --header-offset: 142px;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
body, button, input, select, textarea { font-family: Inter, Arial, sans-serif; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.store-container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-160%); padding: 10px 14px; border-radius: var(--radius); background: var(--ink); color: #fff; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.service-bar { background: #252525; color: #f7f7f7; font-size: 12px; }
.service-bar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 32px; gap: 20px; }
.service-bar nav { display: flex; gap: 22px; color: #d8d8d8; }
.service-bar a:hover { color: #fff; text-decoration: underline; }
.main-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.main-header-inner { display: grid; grid-template-columns: 174px minmax(300px, 1fr) auto; align-items: center; gap: 32px; min-height: 86px; }
.brand-logo { display: inline-flex; align-items: baseline; gap: 7px; color: var(--brand); font-size: 27px; line-height: 1; font-weight: 800; letter-spacing: -.06em; }
.brand-logo > span > span { color: var(--ink); font-weight: 500; }
.brand-logo small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.brand-logo-light { color: #fff; }
.brand-logo-light > span > span { color: #fff; }
.brand-logo-light small { color: rgba(255,255,255,.7); }
.header-search { position: relative; display: flex; height: 48px; border: 2px solid var(--brand); border-radius: var(--radius); background: #fff; overflow: visible; }
.search-input-wrapper { position: relative; display: flex; min-width: 0; flex: 1; }
.header-search input { width: 100%; min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 48px 0 16px; color: var(--ink); }
.header-search input::-webkit-search-cancel-button, .header-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.header-search input::-ms-clear, .header-search input::-ms-reveal { display: none; width: 0; height: 0; }
.header-search input::placeholder { color: #999; }
.header-search .search-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 102px; border: 0; background: var(--brand); color: #fff; font-weight: 700; transition: background .2s ease; }
.header-search .search-submit:hover { background: var(--brand-dark); }
.header-search .search-submit:active { background: #9d1822; }
.header-search .search-clear { position: absolute; top: 50%; right: 8px; display: inline-grid; width: 32px; height: 32px; min-width: 32px; padding: 0; place-items: center; transform: translateY(-50%); border: 0; border-radius: 6px; background: transparent; color: #666; font-size: 18px; font-weight: 500; line-height: 1; cursor: pointer; }
.header-search .search-clear:hover, .header-search .search-clear:focus-visible { background: #f2f2f2; color: var(--brand); }
.header-search .search-clear[hidden] { display: none; }
.header-quick-actions { display: flex; align-items: center; gap: 19px; }
.header-quick-actions a { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.header-quick-actions a:hover, .header-quick-actions a.active { color: var(--brand); }
.header-quick-actions b { position: absolute; top: 1px; left: 12px; display: grid; min-width: 16px; height: 16px; padding: 0 4px; place-items: center; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10px; line-height: 1; }
.mobile-menu-toggle { display: none !important; }
.icon-button { display: inline-grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--ink); }
.icon-button:hover { border-color: var(--border); background: var(--bg); }
.category-nav { border-bottom: 1px solid var(--border); background: var(--surface); }
.category-nav-inner { display: flex; align-items: center; min-height: 45px; gap: 22px; }
.category-nav nav { display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.category-nav nav::-webkit-scrollbar { display: none; }
.category-nav nav a, .all-categories { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.category-nav nav a { color: #4c4c4c; }
.category-nav nav a:hover, .category-nav nav a.active { color: var(--brand); }
.all-categories { padding-right: 22px; border-right: 1px solid var(--border); color: var(--ink); font-weight: 800; }
.all-categories .icon { width: 17px; height: 17px; color: var(--brand); }

/* Global primitives */
main.store-main { min-height: 560px; padding: 30px 0 68px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--brand); border-radius: var(--radius); background: var(--brand); color: #fff; font-weight: 700; line-height: 1; transition: background .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease; }
.button:hover { border-color: var(--brand-dark); background: var(--brand-dark); transform: translateY(-1px); }
.button:active { transform: translateY(0); background: #9e1822; }
.button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.button.secondary { border-color: var(--border-strong); background: #fff; color: var(--ink); }
.button.secondary:hover { border-color: var(--ink); background: #fafafa; }
.button.ghost { border-color: transparent; background: transparent; color: var(--brand); }
.button.small { min-height: 36px; padding: 0 13px; font-size: 12px; }
.button.full { width: 100%; }
.button.loading { position: relative; color: transparent; pointer-events: none; }
.button.loading::after { content: ''; position: absolute; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: #fff; color: var(--ink); outline: 0; transition: border-color .18s ease, box-shadow .18s ease; }
textarea { min-height: 96px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #b8b8b8; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(217,39,50,.13); }
input:disabled, select:disabled, textarea:disabled { background: #f1f1f1; color: #999; cursor: not-allowed; }
label { color: var(--ink); font-weight: 600; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--danger); }
.form-error { margin: 0; color: var(--danger); font-size: 13px; font-weight: 600; }
.eyebrow { margin: 0 0 7px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.muted-text { color: var(--muted); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-heading h1, .page-heading h2 { margin: 0; letter-spacing: -.035em; }
.page-heading h1 { font-size: clamp(26px, 3vw, 38px); }
.page-heading h2 { font-size: 24px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 42px 0 17px; }
.section-heading h2 { min-width: 0; margin: 0; font-size: 23px; letter-spacing: -.035em; }
.section-heading a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 13px; font-weight: 800; }
.section-heading a:hover { color: var(--brand-dark); }
.section-heading .icon { width: 16px; height: 16px; }

/* Homepage Banner structure. Visual states are defined in store-design.css. */
.hero-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(250px, .9fr); gap: 14px; }
.hero-banner, .promo-banner { position: relative; min-width: 0; max-width: 100%; overflow: hidden; border-radius: var(--radius-lg); }
.hero-banner { min-height: 310px; }
.promo-stack { display: grid; grid-template-rows: repeat(2, 1fr); gap: 14px; }
.promo-banner { min-height: 148px; }

.service-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.service-item { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 15px 22px; border-right: 1px solid var(--border); }
.service-item:last-child { border-right: 0; }
.service-item .icon { color: var(--brand); width: 25px; height: 25px; }
.service-item strong, .service-item span { display: block; }
.service-item strong { font-size: 13px; }
.service-item span { margin-top: 2px; color: var(--muted); font-size: 11px; }

.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.category-card { position: relative; min-height: 142px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.category-card:hover { border-color: #d7a0a3; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.category-card img { width: 100%; height: 100%; min-height: 142px; object-fit: cover; opacity: .86; transition: transform .3s ease; }
.category-card:hover img { transform: scale(1.04); }
.category-card::after { position: absolute; inset: 35% 0 0; content: ''; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.category-card strong { position: absolute; right: 12px; bottom: 11px; left: 12px; z-index: 1; color: #fff; font-size: 13px; line-height: 1.2; }
.category-card.no-image { display: flex; align-items: end; padding: 15px; background: #fff4f4; }
.category-card.no-image::after { display: none; }
.category-card.no-image strong { position: static; color: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.product-card { position: relative; display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { border-color: #d7a0a3; box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-card-media { position: relative; display: block; padding: 10px; }
.product-card-image, .product-image { display: flex; align-items: center; justify-content: center; height: 218px; overflow: hidden; border-radius: var(--radius-sm); background: #fafafa; }
.product-card-image img, .product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.product-card:hover .product-card-image img { transform: scale(1.045); }
.product-card .discount-badge { position: absolute; top: 18px; left: 18px; }
.product-card .product-cart-quantity { position: absolute; top: 10px; left: 10px; z-index: 3; display: grid; width: 24px; height: 24px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #D92732; color: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.2); font-size: 12px; font-weight: 700; line-height: 1; }
.product-card .product-cart-quantity[hidden] { display: none; }
.product-card .product-cart-quantity:not([hidden]) ~ .discount-badge { top: 42px; }
.product-card .product-cart-quantity.quantity-pop { animation: product-cart-quantity-pop .2s ease; }
.discount-badge, .badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; }
.wishlist-button { position: absolute; top: 14px; right: 14px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,.95); color: #777; animation: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
.wishlist-button:active { transform: scale(.94); }
.wishlist-button:hover, .wishlist-button.active { border-color: #f2b4b8; color: var(--brand); background: var(--brand-soft); }
.wishlist-button.active .icon { fill: currentColor; }
.product-card-body { display: flex; min-height: 184px; flex: 1; flex-direction: column; padding: 12px 14px 14px; }
.product-card-body .eyebrow { overflow: hidden; margin-bottom: 5px; color: var(--muted); font-size: 10px; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.product-card-title { display: -webkit-box; min-height: 42px; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-card-title:hover { color: var(--brand); }
.rating { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; margin-top: 5px; color: #e4a000; font-size: 12px; }
.rating small { color: var(--muted); font-size: 11px; }
.product-price { margin-top: auto; padding-top: 10px; color: var(--brand-dark); font-size: 21px; font-weight: 800; letter-spacing: -.035em; }
.product-old-price { min-height: 18px; color: #999; font-size: 12px; text-decoration: line-through; }
.product-saving { color: var(--success); font-size: 11px; font-weight: 700; }
.stock-line { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--success); font-size: 11px; font-weight: 650; }
.stock-line::before { width: 6px; height: 6px; content: ''; border-radius: 50%; background: currentColor; }
.card-footer { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.card-footer .button { flex: 1; min-width: 0; }
.card-footer .icon-button { border-color: var(--border); }

/* Listing */
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.catalog-toolbar strong { font-size: 14px; }
.catalog-toolbar-controls { display: flex; align-items: center; gap: 9px; }
.catalog-toolbar-controls label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.catalog-toolbar-controls select { min-width: 178px; min-height: 40px; padding: 7px 10px; font-size: 12px; }
.catalog-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); align-items: start; gap: 22px; }
.filters-panel { position: sticky; top: 160px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.filters-panel h2 { margin: 0 0 17px; font-size: 16px; }
.filter-group { padding: 16px 0; border-top: 1px solid var(--border); }
.filter-group:first-of-type { padding-top: 0; border-top: 0; }
.filter-group h3 { margin: 0 0 11px; font-size: 13px; }
.filter-option { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 12px; font-weight: 500; }
.filter-option input { width: 16px; min-height: 16px; accent-color: var(--brand); }
.price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.price-fields input { min-height: 38px; padding: 7px; font-size: 12px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 30px; }
.pagination a, .pagination span { display: grid; min-width: 36px; height: 36px; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--muted); font-size: 12px; font-weight: 700; }
.pagination a:hover, .pagination span.active { border-color: var(--brand); color: var(--brand); }

/* Detail */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .icon { width: 13px; height: 13px; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 44px; padding: 25px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.detail-media { min-width: 0; }
.detail-main-image { display: flex; align-items: center; justify-content: center; height: min(580px, 46vw); min-height: 360px; border-radius: var(--radius); background: #fafafa; }
.detail-main-image img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbnails { display: flex; gap: 9px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbnail { width: 68px; height: 68px; padding: 3px; flex: 0 0 68px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.gallery-thumbnail.active, .gallery-thumbnail:hover { border-color: var(--brand); }
.gallery-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.detail-content { min-width: 0; padding: 7px 0; }
.detail-content h1 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 35px); line-height: 1.12; letter-spacing: -.045em; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.detail-price { margin: 20px 0 2px; color: var(--brand-dark); font-size: 34px; font-weight: 800; letter-spacing: -.05em; }
.detail-price-note { color: var(--success); font-size: 12px; font-weight: 700; }
.product-meta { margin: 24px 0 0; border-top: 1px solid var(--border); }
.product-meta div { display: grid; grid-template-columns: 130px 1fr; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.product-meta dt { color: var(--muted); }
.product-meta dd { margin: 0; font-weight: 650; }
.add-cart-form { display: flex; align-items: end; gap: 10px; margin-top: 22px; }
.add-cart-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.add-cart-form input { width: 82px; }
.add-cart-form .button { min-width: 190px; }
.trust-list { display: grid; gap: 9px; margin: 24px 0 0; padding: 16px; border: 1px solid #f0d2d4; border-radius: var(--radius); background: #fff8f8; }
.trust-list li { display: flex; align-items: center; gap: 8px; color: #4e3133; font-size: 12px; font-weight: 600; list-style: none; }
.trust-list .icon { width: 17px; height: 17px; color: var(--brand); }
.brand-story { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 44px; padding: 28px 32px; border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius); background: #fff; }
.brand-story h2 { margin: 0 0 6px; font-size: 25px; letter-spacing: -.04em; }
.brand-story p:last-child { margin: 0; color: var(--muted); }
.product-tabs { margin-top: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.tab-list { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border); }
.tab-list button { position: relative; min-height: 52px; padding: 0 20px; border: 0; background: transparent; color: var(--muted); font-weight: 700; white-space: nowrap; }
.tab-list button:hover, .tab-list button.active { color: var(--brand); }
.tab-list button.active::after { position: absolute; right: 15px; bottom: -1px; left: 15px; height: 2px; content: ''; background: var(--brand); }
.tab-panel { padding: 23px; }
.tab-panel[hidden] { display: none; }

/* Product detail tabs and gallery */
.detail-main-image { position: relative; overflow: hidden; background: #fff; touch-action: pan-y; }
.detail-main-image img { transition: opacity 180ms ease; }
.product-gallery-fallback { display: grid; gap: 8px; place-items: center; color: var(--brand); font-size: 11px; font-weight: 700; }
.product-gallery-fallback[hidden] { display: none; }
.product-gallery-fallback .icon { width: 42px; height: 42px; }
.detail-main-image img.is-switching { opacity: .25; }
.gallery-arrow { position: absolute; top: 50%; z-index: 2; display: grid; width: 38px; height: 46px; place-items: center; padding: 0; transform: translateY(-50%); border: 1px solid #e5e5e5; border-radius: 6px; background: rgba(255,255,255,.92); color: #333; font-size: 30px; line-height: 1; }
.gallery-arrow:hover { border-color: var(--brand); color: var(--brand); }
.gallery-arrow.is-prev { left: 12px; }
.gallery-arrow.is-next { right: 12px; }
.gallery-counter { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 999px; background: rgba(30,30,30,.72); color: #fff; font-size: 11px; font-weight: 700; }
.gallery-thumbnail-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.gallery-thumbnails { flex: 1 1 auto; margin-top: 0; scrollbar-width: thin; scroll-snap-type: x proximity; }
.gallery-thumbnail { scroll-snap-align: start; }
.gallery-thumbnail.active { border: 2px solid var(--brand); padding: 2px; }
.gallery-scroll { flex: 0 0 34px; width: 34px; height: 68px; padding: 0; border: 1px solid #e5e5e5; border-radius: var(--radius-sm); background: #fff; color: #555; font-size: 22px; }
.gallery-scroll:hover { border-color: var(--brand); color: var(--brand); }
.product-description p { margin: 0; color: #333; font-size: 15px; line-height: 1.7; }
.specification-list { margin: 0; }
.specification-list div { display: grid; grid-template-columns: minmax(150px, 30%) 1fr; gap: 24px; padding: 12px 0; border-bottom: 1px solid #eee; }
.specification-list div:last-child { border-bottom: 0; }
.specification-list dt { color: #777; font-weight: 500; }
.specification-list dd { margin: 0; color: #222; font-weight: 500; overflow-wrap: anywhere; }
.delivery-stock { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 700; }
.delivery-stock::before { width: 8px; height: 8px; content: ''; border-radius: 50%; background: currentColor; }
.delivery-stock.is-in-stock { color: #26703d; }
.delivery-stock.is-out-of-stock { color: #a33a42; }
.delivery-panel .delivery-list dd small { display: block; margin-top: 5px; color: #777; font-size: 12px; font-weight: 400; line-height: 1.55; }
.delivery-panel .delivery-list a { color: var(--brand); font-weight: 700; }
.review-form h3, .review-item h3 { margin: 0 0 8px; }
.review-flash { margin-bottom: 18px; padding: 12px 14px; border-radius: var(--radius-sm); }
.review-flash.is-success { background: #eef8f1; color: #1f6b38; }
.review-flash.is-error { background: #fff1f1; color: #9d1f28; }
.review-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.review-summary > strong { font-size: 26px; }
.review-stars { color: #e3a008; letter-spacing: 1px; }
.review-list { display: grid; gap: 0; }
.review-item { padding: 20px 0; border-bottom: 1px solid #eee; }
.review-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.review-heading time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.verified-review { display: inline-block; margin-left: 9px; padding: 3px 7px; border-radius: 999px; background: #eef8f1; color: #26703d; font-size: 10px; font-weight: 700; }
.review-item .review-stars { margin: 7px 0; }
.review-item p { margin: 0; line-height: 1.65; }
.review-form { display: grid; gap: 14px; max-width: 680px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #eee; }
.review-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.review-form textarea { resize: vertical; overflow-wrap: anywhere; }
.review-form .button { justify-self: start; }
.review-first { margin: 8px 0 0; color: #333; font-weight: 600; }
.review-rating { margin: 0; padding: 0; border: 0; }
.review-rating legend { margin-bottom: 7px; color: #777; font-size: 12px; font-weight: 700; }
.review-rating-options { display: flex; flex-wrap: wrap; gap: 7px; }
.review-rating-options label { display: inline-flex; min-width: 48px; min-height: 44px; align-items: center; justify-content: center; gap: 4px; padding: 7px 9px; border: 1px solid #e5e5e5; border-radius: var(--radius-sm); background: #fff; color: #777; cursor: pointer; }
.review-rating-options label:has(input:checked) { border-color: var(--brand); color: var(--brand); }
.review-rating-options input { width: 1px; height: 1px; margin: -1px; position: absolute; overflow: hidden; clip: rect(0 0 0 0); }
.review-rating-options span { color: #e3a008; font-size: 20px; line-height: 1; }
.review-rating-options small { font-size: 11px; }
.review-note { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid #eee; color: var(--muted); }
.review-note a { color: var(--brand); font-weight: 700; }


/* Cart, checkout, account */
.cart-layout, .checkout-layout, .account-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); align-items: start; gap: 22px; }
.cart-list, .cart-summary-card, .checkout-card, .account-card, .success-card, .order-detail-card, .orders-section { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.cart-list { overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 74px minmax(180px, 1fr) 110px 110px 28px; align-items: center; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: 0; }
.cart-row-image { display: flex; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: var(--radius-sm); background: #fafafa; }
.cart-row-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-row-info strong, .cart-row-info small { display: block; }
.cart-row-info strong { font-size: 13px; }
.cart-row-info small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.quantity-input { width: 78px; min-height: 38px; }
.link-button { padding: 5px; border: 0; background: transparent; color: var(--muted); }
.link-button:hover { color: var(--danger); }
.cart-summary-card, .checkout-card, .account-card, .success-card, .order-detail-card, .orders-section { padding: 23px; }
.cart-summary-card { position: sticky; top: 160px; }
.summary-line { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; color: var(--muted); font-size: 13px; }
.summary-total { display: flex; justify-content: space-between; gap: 15px; margin-top: 9px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 17px; font-weight: 800; }
.summary-total strong { color: var(--brand-dark); font-size: 24px; letter-spacing: -.04em; }
.cart-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.account-form { display: grid; gap: 15px; }
.account-form label { display: grid; gap: 6px; font-size: 13px; }
.account-form fieldset { display: grid; gap: 8px; margin: 0; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius); }
.account-form legend { padding: 0 5px; font-size: 13px; font-weight: 800; }
.radio-label { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.radio-label input { width: 17px; min-height: 17px; accent-color: var(--brand); }
.checkout-layout { grid-template-columns: minmax(0, 1fr) 360px; }
.checkout-card h1, .checkout-card h2, .account-card h1, .account-card h2 { margin-top: 0; }
.checkout-address-book { display: grid; gap: 12px; margin: 8px 0 16px; }
.checkout-address-book h2, .checkout-address-fields h3 { margin: 0; font-size: 18px; }
.checkout-address-book [data-checkout-address-list] { display: grid; gap: 10px; }
.checkout-address-book [data-checkout-address-list][hidden] { display: none; }
.checkout-address-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .16s ease,box-shadow .16s ease; }
.checkout-address-card:hover { border-color: #d7a4a8; }
.checkout-address-card.selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(217,39,50,.1); }
.checkout-address-card>label { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; margin: 0; cursor: pointer; }
.checkout-address-card input[type=radio] { width: 17px; min-height: 17px; margin-top: 2px; accent-color: var(--brand); }
.checkout-address-card small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.5; }
.checkout-address-meta { display: grid; justify-items: end; gap: 8px; }
.checkout-address-meta b { color: var(--brand); font-size: 10px; }
.checkout-address-meta button, .checkout-address-add { padding: 0; border: 0; background: transparent; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }
.checkout-address-fields { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; }
.checkout-address-fields[hidden] { display: none; }
.checkout-address-fields .form-error.is-success { color: var(--success); }
.checkout-item { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.checkout-item strong { white-space: nowrap; }
.bank-transfer-note { margin-top: 12px; padding: 12px; border-radius: var(--radius); background: #fff5e8; color: #81500f; font-size: 12px; }
.bank-transfer-note p { margin: 5px 0 0; }
.checkout-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.checkout-steps span { position: relative; padding: 13px 16px; border-right: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.checkout-steps span:last-child { border-right: 0; }
.checkout-steps span.done { color: var(--success); background: #f5fbf7; }
.checkout-steps span.active { color: var(--brand); background: var(--brand-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 22px; }
.account-nav { position: sticky; top: 160px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.account-person { display: grid; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.account-person > span { display: grid; width: 42px; height: 42px; margin-bottom: 10px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.account-person strong { font-size: 13px; }
.account-person small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; }
.account-nav nav { display: grid; gap: 4px; margin-bottom: 18px; }
.account-nav nav a { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--muted); font-size: 12px; font-weight: 650; }
.account-nav nav a:hover, .account-nav nav a.active { background: var(--brand-soft); color: var(--brand); }
.account-nav nav .icon { width: 17px; height: 17px; }
.account-content { min-width: 0; }
.account-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; grid-column: 1 / -1; }
.order-list { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); }
.order-list-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; padding: 16px; border-bottom: 1px solid var(--border); }
.order-list-item:last-child { border-bottom: 0; }
.order-list-item:hover { background: #fff8f8; }
.order-list-item strong, .order-list-item small { display: block; }
.order-list-item small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.order-status { display: inline-flex; padding: 4px 8px; border-radius: 4px; background: #edf8f1; color: var(--success); font-size: 11px; font-weight: 800; }
.order-detail-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 20px; }
.order-item-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.order-item-row strong, .order-item-row small { display: block; }
.order-item-row small { color: var(--muted); }

/* Empty/error/info */
.state-card, .empty-state, .info-page { padding: 48px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; text-align: center; }
.state-card h1, .empty-state h1 { margin: 0 0 8px; font-size: 24px; }
.state-card p, .empty-state p { max-width: 520px; margin: 0 auto 20px; color: var(--muted); }
.error-state { border-color: #f0c4c7; background: #fff7f7; }
.empty-state-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 14px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.empty-state-icon .icon { width: 28px; height: 28px; }
.info-page { max-width: 860px; margin: 0 auto; text-align: left; }
.info-page h1 { margin-top: 0; font-size: 34px; letter-spacing: -.04em; }
.info-page h2 { margin-top: 28px; font-size: 19px; }
.info-page .info-lead { margin-bottom: 28px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.info-page p, .info-page li { color: #4f4f4f; }
.info-page ul { padding-left: 20px; }

/* Footer */
.site-footer { background: #252525; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.55fr repeat(3, 1fr) 1.25fr; gap: 36px; padding: 52px 0 44px; }
.footer-brand p { max-width: 280px; margin: 16px 0 20px; color: #c7c7c7; font-size: 13px; }
.footer-grid h2 { margin: 0 0 15px; color: #fff; font-size: 14px; }
.footer-grid ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-grid li, .footer-grid a { color: #bdbdbd; font-size: 12px; }
.footer-grid a:hover { color: #fff; }
.company-details { display: grid; gap: 7px; margin-top: 18px; color: #c7c7c7; font-size: 12px; line-height: 1.5; }
.company-details strong { color: #fff; font-size: 13px; letter-spacing: .02em; }
.company-details a { display: inline-flex; align-items: center; gap: 8px; }
.company-details .icon { width: 16px; height: 16px; color: #f4878c; }
.footer-contact { display: grid; gap: 9px; margin-top: 9px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact .icon { width: 16px; height: 16px; color: #f4878c; }
.footer-social { margin-top: 20px; color: #c7c7c7; font-size: 12px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.social-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; background: rgba(255,255,255,.06); color: #fff !important; font-size: 11px !important; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.social-button:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.14); transform: translateY(-1px); }
.social-button .icon { width: 15px; height: 15px; }
.social-facebook .icon { color: #6da8ff; }
.social-instagram .icon { color: #f29ac7; }
.social-youtube .icon { color: #ff7676; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); color: #9b9b9b; font-size: 11px; }
.footer-bottom .store-container { display: flex; justify-content: space-between; gap: 15px; padding: 16px 0; }
.footer-payments { min-width: 0; }
.footer-payments h2 { margin-bottom: 16px; }
.payment-logo-list { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.payment-logo { display: block; flex: 0 0 auto; width: auto; max-width: 100%; object-fit: contain; }
.payment-logo-raiffeisen { height: 34px; }
.payment-logo-visa { height: 25px; }
.payment-logo-mastercard { height: 33px; }
.payment-logo-dinacard { height: 32px; }
.payment-logo-unionpay { height: 36px; }
.mobile-bottom-nav { display: none; }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; gap: 8px; }
.toast { min-width: 240px; padding: 13px 15px; border-radius: var(--radius); background: #252525; color: #fff; box-shadow: var(--shadow-hover); font-size: 13px; animation: toast-in .2s ease both; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

@media (max-width: 1279px) {
  .store-container { width: min(calc(100% - 36px), 1160px); }
  .main-header-inner { grid-template-columns: 160px minmax(260px, 1fr) auto; gap: 18px; }
  .header-quick-actions { gap: 10px; }
  .header-quick-actions a span { display: none; }
  .category-nav nav { gap: 17px; }
  .category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; }
  .promo-stack { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .service-strip { grid-template-columns: repeat(2, 1fr); }
  .service-item:nth-child(2) { border-right: 0; }
  .service-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .filter-group { display: inline-block; width: 31%; margin-right: 2%; vertical-align: top; border-top: 0; }
  .filter-group:first-of-type { padding-top: 16px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
}
@media (max-width: 720px) {
  :root { --container: 100%; }
  body { padding-bottom: 70px; font-size: 14px; }
  .store-container { width: calc(100% - 24px); }
  .service-bar { display: none; }
  .main-header-inner { grid-template-columns: 44px 1fr auto; gap: 8px; min-height: 64px; }
  .mobile-menu-toggle { display: inline-grid !important; }
  .brand-logo { font-size: 22px; }
  .brand-logo small { font-size: 7px; }
  .header-search { position: absolute; top: 65px; right: 12px; left: 12px; height: 44px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
  .header-search button { min-width: 47px; }
  .header-search button span { display: none; }
  .header-quick-actions { gap: 3px; }
  .header-quick-actions a { min-width: 34px; justify-content: center; }
  .header-quick-actions a .icon { width: 19px; height: 19px; }
  .header-quick-actions a:nth-child(1) { display: none; }
  .category-nav { margin-top: 53px; }
  .category-nav-inner { min-height: 42px; }
  .category-nav nav { display: none; }
  .category-nav.mobile-open .category-nav-inner { align-items: stretch; flex-direction: column; padding: 8px 0 12px; }
  .category-nav.mobile-open nav { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .category-nav.mobile-open nav a { min-height: 40px; padding: 0 10px; border-top: 1px solid var(--border); }
  .all-categories { width: 100%; justify-content: center; padding: 0; border-right: 0; }
  main.store-main { padding-top: 18px; padding-bottom: 34px; }
  .hero-banner { min-height: 300px; padding: 28px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy p { font-size: 13px; }
  .promo-stack { gap: 9px; }
  .promo-banner { min-height: 125px; padding: 19px; }
  .promo-banner h2 { font-size: 19px; }
  .service-strip { grid-template-columns: repeat(2, 1fr); }
  .service-item { min-height: 70px; padding: 12px; gap: 8px; }
  .service-item .icon { width: 20px; height: 20px; }
  .service-item strong { font-size: 11px; }
  .service-item span { font-size: 10px; }
  .section-heading { margin-top: 30px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading a { flex: 0 0 auto; font-size: 11px; }
  .hero-copy h1, .hero-copy p { overflow-wrap: anywhere; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .category-card, .category-card img { min-height: 126px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-card-image, .product-image { height: 150px; }
  .product-card-body { min-height: 170px; padding: 10px; }
  .product-card-title { min-height: 40px; font-size: 12px; }
  .product-price { font-size: 18px; }
  .product-card .button { min-height: 38px; padding: 0 8px; font-size: 11px; }
  .card-footer .icon-button { display: none; }
  .wishlist-button { width: 32px; height: 32px; top: 10px; right: 10px; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .catalog-toolbar-controls { width: 100%; }
  .catalog-toolbar-controls label, .catalog-toolbar-controls select { width: 100%; }
  .filter-group { display: block; width: 100%; margin: 0; padding: 13px 0 !important; border-top: 1px solid var(--border); }
  .product-detail { grid-template-columns: 1fr; gap: 22px; padding: 14px; }
  .detail-main-image { height: 290px; min-height: 260px; }
  .gallery-arrow { width: 34px; height: 42px; }
  .gallery-arrow.is-prev { left: 7px; }
  .gallery-arrow.is-next { right: 7px; }
  .gallery-scroll { display: none; }
  .gallery-thumbnail-row { margin-right: -14px; margin-left: -14px; padding: 0 14px; overflow: hidden; }
  .gallery-thumbnails { overflow-x: auto; }
  .gallery-thumbnail { width: 58px; height: 58px; flex-basis: 58px; }
  .specification-list div { grid-template-columns: minmax(105px, 38%) 1fr; gap: 14px; }
  .review-heading { flex-direction: column; gap: 5px; }
  .verified-review { display: block; width: fit-content; margin: 5px 0 0; }

  .detail-content h1 { font-size: 25px; }
  .detail-price { margin-top: 14px; font-size: 30px; }
  .add-cart-form { align-items: stretch; flex-direction: column; }
  .add-cart-form input { width: 100%; }
  .add-cart-form .button { width: 100%; }
  .product-tabs { margin-top: 18px; }
  .tab-list button { padding: 0 14px; font-size: 12px; }
  .tab-panel { padding: 17px; }
  .cart-row { grid-template-columns: 58px minmax(0,1fr) auto; gap: 10px; padding: 13px 12px; }
  .cart-row-image { width: 58px; height: 58px; }
  .cart-row > span, .cart-row > strong { grid-column: 2; }
  .cart-row > label { grid-column: 3; grid-row: 2; }
  .cart-row > .link-button { grid-column: 3; grid-row: 1; }
  .checkout-steps { grid-template-columns: repeat(2, 1fr); }
  .checkout-steps span:nth-child(2) { border-right: 0; }
  .checkout-steps span:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .form-grid { grid-template-columns: 1fr; }
  .account-shell { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .account-layout, .order-detail-grid { grid-template-columns: 1fr; }
  .account-summary { align-items: flex-start; flex-direction: column; }
  .order-list-item { grid-template-columns: 1fr auto; gap: 8px; }
  .order-list-item > strong { grid-column: 2; grid-row: 1; }
  .order-list-item > div:nth-child(2) { grid-column: 1 / -1; }
  .brand-story { align-items: flex-start; flex-direction: column; padding: 22px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; padding: 34px 0; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom .store-container { align-items: flex-start; flex-direction: column; }
  .mobile-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); height: 64px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--border); background: rgba(255,255,255,.98); box-shadow: 0 -5px 16px rgba(0,0,0,.08); }
  .mobile-bottom-nav a, .mobile-bottom-nav button { display: grid; min-width: 0; place-items: center; align-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 9px; font-weight: 700; }
  .mobile-bottom-nav a.active, .mobile-bottom-nav button:hover { color: var(--brand); }
  .mobile-bottom-nav .icon { width: 19px; height: 19px; }
  .toast-region { right: 12px; bottom: 76px; left: 12px; }
  .toast { min-width: 0; }
}
@media (max-width: 420px) {
  .hero-banner { min-height: 280px; padding: 24px; }
  .hero-copy h1 { font-size: 30px; }
  .promo-banner { min-height: 112px; padding: 15px; }
  .promo-banner h2 { font-size: 16px; }
  .promo-banner p { font-size: 10px; }
  .service-item span { display: none; }
  .product-card-image, .product-image { height: 136px; }
  .product-card-body { min-height: 163px; }
}

/* Commerce quick actions and drawers */
body.commerce-drawer-open { overflow: hidden; }
.header-quick-actions button, .floating-commerce-actions button, .commerce-drawer button { font: inherit; }
.mobile-wishlist-trigger { position: relative; display: inline-grid; min-width: 44px; min-height: 44px; padding: 0; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; }
.mobile-wishlist-trigger .icon { width: 22px; height: 22px; }
.floating-commerce-actions { position: fixed; top: 50%; right: 20px; z-index: 55; display: grid; gap: 10px; transform: translateY(-50%); }
.floating-commerce-actions button { position: relative; display: grid; width: 52px; height: 52px; padding: 0; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer; transition: transform .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.floating-commerce-actions button:hover, .floating-commerce-actions button:focus-visible { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.floating-commerce-actions .icon { width: 23px; height: 23px; }
.commerce-badge { position: absolute; top: -5px; right: -6px; display: inline-grid; min-width: 19px; height: 19px; padding: 0 5px; place-items: center; border: 2px solid var(--surface); border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; line-height: 1; box-sizing: border-box; }
.commerce-badge[hidden] { display: none; }
.mobile-bottom-nav button, .mobile-wishlist-trigger { position: relative; }
.commerce-overlay { position: fixed; inset: 0; z-index: 69; visibility: hidden; background: rgba(20, 24, 30, .46); opacity: 0; cursor: pointer; transition: opacity .24s ease, visibility .24s ease; }
.commerce-overlay.open { visibility: visible; opacity: 1; }
.commerce-drawer { position: fixed; top: 0; right: 0; z-index: 70; display: flex; width: min(440px, 100vw); height: 100dvh; flex-direction: column; background: var(--surface); box-shadow: -18px 0 48px rgba(20, 24, 30, .18); transform: translateX(102%); visibility: hidden; transition: transform .28s cubic-bezier(.22,.61,.36,1), visibility .28s ease; }
.commerce-drawer.open { visibility: visible; transform: translateX(0); }
.commerce-drawer > header { display: flex; min-height: 82px; padding: 17px 20px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.commerce-drawer > header h2 { margin: 0; font-size: 21px; }
.commerce-drawer > header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.commerce-drawer > header > button { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text); font-size: 27px; line-height: 1; cursor: pointer; }
.commerce-drawer > header > button:hover, .commerce-drawer > header > button:focus-visible { border-color: var(--brand); color: var(--brand); }
.commerce-drawer-body { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow: auto; }
.drawer-product-list { display: grid; padding: 4px 20px 16px; }
.drawer-product { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 13px; padding: 16px 30px 16px 0; align-items: start; border-bottom: 1px solid var(--border); }
.drawer-product-image { display: grid; width: 76px; height: 76px; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-soft); color: var(--muted); }
.drawer-product-image img { width: 100%; height: 100%; object-fit: contain; }
.drawer-product-image .icon { width: 28px; height: 28px; }
.drawer-product-info { display: grid; min-width: 0; gap: 7px; }
.drawer-product-info > a { color: var(--text); line-height: 1.35; }
.drawer-product-info > a strong { display: -webkit-box; overflow: hidden; font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.drawer-product-info > span { color: var(--brand); font-size: 13px; font-weight: 800; }
.drawer-product-info .button { justify-self: start; }
.drawer-line-total { padding-top: 2px; white-space: nowrap; font-size: 13px; }
.drawer-quantity { display: inline-grid; width: max-content; grid-template-columns: 30px 34px 30px; align-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; }
.drawer-quantity button { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; background: var(--surface-soft); color: var(--text); cursor: pointer; }
.drawer-quantity button:hover:not(:disabled) { color: var(--brand); }
.drawer-quantity button:disabled, .drawer-remove:disabled { cursor: wait; opacity: .55; }
.drawer-quantity .icon { width: 14px; height: 14px; }
.drawer-quantity b { text-align: center; font-size: 12px; }
.drawer-remove { position: absolute; top: 15px; right: 0; display: grid; width: 27px; height: 27px; padding: 0; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.drawer-remove:hover, .drawer-remove:focus-visible { color: #c62828; }
.drawer-remove .icon { width: 16px; height: 16px; }
.drawer-wishlist-product { grid-template-columns: 76px minmax(0, 1fr); }
.drawer-checkout { display: grid; gap: 10px; margin-top: auto; padding: 18px 20px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); box-shadow: 0 -10px 24px rgba(20, 24, 30, .06); }
.drawer-checkout > div { display: flex; align-items: center; justify-content: space-between; }
.drawer-checkout > div span { color: var(--muted); font-size: 13px; }
.drawer-checkout > div strong { font-size: 21px; }
.commerce-empty { display: grid; min-height: 100%; padding: 48px 28px; place-content: center; justify-items: center; text-align: center; }
.commerce-empty-icon { display: grid; width: 72px; height: 72px; margin-bottom: 18px; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--brand); }
.commerce-empty-icon .icon { width: 31px; height: 31px; }
.commerce-empty h3 { margin: 0 0 8px; font-size: 18px; }
.commerce-empty p { margin: 0 0 22px; color: var(--muted); }
.commerce-flyer { position: fixed; z-index: 9999; display: grid; place-items: center; overflow: hidden; border: 2px solid #fff; border-radius: 50%; background: var(--surface); color: var(--brand); box-shadow: var(--shadow-hover); pointer-events: none; object-fit: contain; }
.commerce-flyer::before, .commerce-flyer::after { content: none !important; }
.commerce-flyer .icon { width: 58%; height: 58%; }
.commerce-pulse { animation: commerce-pulse .3s ease; }
.commerce-badge.badge-pop { animation: badge-pop .28s ease; }
.button.loading { position: relative; pointer-events: none; opacity: .72; }
.button.loading::after { content: ''; width: 14px; height: 14px; margin-left: 7px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .65s linear infinite; }
[data-wishlist-toggle].loading { pointer-events: none; opacity: .72; }
[data-wishlist-toggle].is-added { color: #fff; background: var(--brand); }
.toast { transition: opacity .22s ease, transform .22s ease; }
.toast-success { background: #166534; }
.toast-error { background: #b42318; }
.toast.leaving { opacity: 0; transform: translateY(8px); }
@keyframes commerce-pulse { 50% { transform: scale(1.14); } }
@keyframes badge-pop { 50% { transform: scale(1.28); } }
@keyframes product-cart-quantity-pop { 50% { transform: scale(1.18); } }

@media (max-width: 720px) {
  .floating-commerce-actions { display: none; }
  .commerce-drawer { width: min(92vw, 420px); }
  .commerce-drawer > header { min-height: 70px; padding: 13px 16px; }
  .drawer-product-list { padding-right: 16px; padding-left: 16px; }
  .drawer-product { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
  .drawer-product-image { width: 64px; height: 64px; }
  .drawer-wishlist-product { grid-template-columns: 64px minmax(0, 1fr); }
  .drawer-checkout { padding-right: 16px; padding-left: 16px; }
  .mobile-bottom-nav .commerce-badge { top: 3px; right: max(9px, calc(50% - 23px)); }
  .mobile-wishlist-trigger .commerce-badge { top: 3px; right: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .commerce-overlay, .commerce-drawer, .floating-commerce-actions button, .toast { transition: none !important; }
  .commerce-pulse, .commerce-badge.badge-pop, .product-cart-quantity.quantity-pop, .button.loading::after { animation: none !important; }
}

.service-bar-actions { display: flex; align-items: center; gap: 8px; }
.service-bar-actions > nav { margin-right: 10px; }
.utility-select { position: relative; display: inline-block !important; width: max-content; min-width: 0; }
.utility-select__trigger { display: flex; width: auto; min-height: 32px; padding: 4px 9px; align-items: center; gap: 6px; border: 1px solid #555; border-radius: 6px; background: #333; color: #fff; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.utility-select__trigger:hover, .utility-select__trigger:focus-visible { border-color: #777; background: #3a3a3a; }
.utility-select__arrow { margin-left: 2px; font-size: 10px; transition: transform .18s ease; }
.utility-select.is-open .utility-select__arrow { transform: rotate(180deg); }
.utility-select__menu { position: absolute; top: calc(100% + 5px); right: 0; z-index: 110; display: none; width: max-content; min-width: 100%; height: auto; min-height: 0; padding: 4px 0; overflow: hidden; flex-direction: column; border: 1px solid #555; border-radius: 6px; background: #333; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.utility-select__menu[hidden] { display: none !important; }
.utility-select.is-open .utility-select__menu:not([hidden]) { display: flex; }
.utility-select__item { display: flex; width: 100%; min-height: 34px; padding: 7px 10px; align-items: center; gap: 8px; border: 0; border-radius: 0; background: transparent; color: #ddd; font: inherit; font-weight: 700; line-height: 1.2; text-align: left; white-space: nowrap; cursor: pointer; }
.utility-select__item:hover, .utility-select__item:focus-visible { background: #454545; color: #fff; text-decoration: none; }
.utility-select__item.active::after, .utility-select__item[aria-pressed="true"]::after { margin-left: auto; color: var(--brand); content: '✓'; }
.utility-select__item:disabled { cursor: not-allowed; opacity: .45; }
.utility-select .language-dropdown { gap: 0; row-gap: 0; height: auto; min-height: 0; max-height: none; padding: 0; justify-content: flex-start; align-content: stretch; }
.utility-select .language-option { height: auto; min-height: 36px; margin: 0; padding: 8px 12px; line-height: 1.2; }
.utility-select .language-option + .language-option { border-top: 1px solid rgba(127,127,127,.22); }
.utility-select .language-option.active::after { height: auto; padding: 0; margin-top: 0; margin-bottom: 0; line-height: 1; }
.mobile-language-switch { display: none !important; }

.header-search { isolation: isolate; }
.live-search-panel { position: absolute; top: calc(100% + 7px); right: 0; left: 0; z-index: 70; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.16); color: var(--ink); }
.live-search-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 62px; padding: 7px 10px; border-bottom: 1px solid var(--border); }
.live-search-item:hover, .live-search-item.active { background: #fff5f5; }
.live-search-item img, .live-search-image-fallback { width: 48px; height: 48px; border-radius: 5px; background: #f3f3f3; object-fit: contain; }
.live-search-copy { display: grid; min-width: 0; gap: 3px; }
.live-search-copy strong, .live-search-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-search-copy strong { font-size: 13px; }
.live-search-copy mark { background: transparent; color: inherit; font-weight: 900; }
.live-search-copy small { color: var(--muted); font-size: 11px; }
.live-search-price { color: var(--brand); font-size: 12px; white-space: nowrap; }
.live-search-all { display: block; padding: 11px; color: var(--brand); font-size: 12px; font-weight: 800; text-align: center; }
.live-search-empty { margin: 0; padding: 16px; color: var(--muted); font-size: 12px; text-align: center; }
.pagination .pagination-ellipsis { border-color: transparent; background: transparent; }

@media (max-width: 767px) { .service-bar .language-switch { display: none !important; } .mobile-language-switch { display: inline-block !important; position: absolute; top: 14px; right: 112px; z-index: 32; } .mobile-language-switch .language-trigger { border-color: var(--border); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); } .mobile-language-switch .language-dropdown { border-color: var(--border); background: var(--surface); } .mobile-language-switch .language-option { color: var(--muted); } .mobile-language-switch .language-option.active { color: var(--ink); } .mobile-language-switch .language-option:hover, .mobile-language-switch .language-option:focus-visible { color: var(--ink); background: #f5f5f5; } .live-search-item { grid-template-columns: 42px minmax(0, 1fr); } .live-search-item img, .live-search-image-fallback { width: 42px; height: 42px; } .live-search-price { display: none; } }
@media (max-width: 420px) { .pagination a:not([aria-label]), .pagination span:not(.active):not(.pagination-ellipsis) { display: none; } }

/* Order success and customer order detail */
.order-success-page .order-success-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding: 24px; border: 1px solid #dce9df; border-radius: var(--radius); background: #f7fbf8; }
.order-success-page .order-success-hero h1 { margin: 3px 0 7px; }
.order-success-page .order-success-hero p { margin: 3px 0; }
.order-success-page .order-success-icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #e5f5e9; color: #237a46; }
.order-success-page .order-success-icon .icon { width: 25px; height: 25px; }
.order-success-page .order-view-layout, .account-page .order-view-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; gap: 22px; }
.order-success-page .order-side, .account-page .order-side { display: grid; gap: 16px; }
.order-success-page .order-summary-card, .order-success-page .order-address-card, .account-page .order-summary-card, .account-page .order-address-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.order-success-page .order-summary-card h2, .order-success-page .order-address-card h2, .order-success-page .order-detail-card h2, .account-page .order-summary-card h2, .account-page .order-address-card h2, .account-page .order-detail-card h2 { margin-top: 0; }
.order-success-page .order-meta-grid, .account-page .order-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.order-success-page .order-meta-grid div, .account-page .order-meta-grid div { display: grid; gap: 5px; }
.order-success-page .order-meta-grid span, .account-page .order-meta-grid span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.order-success-page .order-products, .account-page .order-products { display: grid; }
.order-success-page .order-product, .account-page .order-product { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.order-success-page .order-product-image, .account-page .order-product-image { display: grid; width: 68px; height: 68px; place-items: center; overflow: hidden; border-radius: 8px; background: #f7f7f7; color: #aaa; }
.order-success-page .order-product-image img, .account-page .order-product-image img { width: 100%; height: 100%; object-fit: contain; }
.order-success-page .order-product-image .icon, .account-page .order-product-image .icon { width: 28px; height: 28px; }
.order-success-page .order-product-info, .account-page .order-product-info { display: grid; gap: 5px; min-width: 0; }
.order-success-page .order-product-info strong, .order-success-page .order-product-info a, .account-page .order-product-info strong, .account-page .order-product-info a { color: var(--ink); overflow-wrap: anywhere; }
.order-success-page .order-product-info small, .order-success-page .order-product-info span, .account-page .order-product-info small, .account-page .order-product-info span { color: var(--muted); font-size: 12px; }
.order-success-page .order-product-total, .account-page .order-product-total { white-space: nowrap; }
.order-success-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.order-success-page .order-status--new, .account-page .order-status--new { background: #eef5ff !important; color: #285f9e !important; }
.order-success-page .order-status--confirmed, .order-success-page .order-status--packing, .account-page .order-status--confirmed, .account-page .order-status--packing { background: #fff5df !important; color: #996515 !important; }
.order-success-page .order-status--shipped, .account-page .order-status--shipped { background: #edf3ff !important; color: #3d5f9f !important; }
.order-success-page .order-status--completed, .account-page .order-status--completed { background: #edf8f1 !important; color: #237a46 !important; }
.order-success-page .order-status--cancelled, .account-page .order-status--cancelled { background: #f8eeee !important; color: #9b3b3b !important; }
@media (max-width: 760px) {
  .order-success-page .order-success-hero { align-items: flex-start; padding: 19px; }
  .order-success-page .order-view-layout, .order-success-page .order-meta-grid, .account-page .order-view-layout, .account-page .order-meta-grid { grid-template-columns: 1fr; }
  .order-success-page .order-product, .account-page .order-product { grid-template-columns: 58px minmax(0, 1fr); }
  .order-success-page .order-product-image, .account-page .order-product-image { width: 58px; height: 58px; }
  .order-success-page .order-product-total, .account-page .order-product-total { grid-column: 2; }
  .order-success-actions .button { width: 100%; }

  .commerce-drawer { max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .commerce-drawer button, .commerce-drawer a, .checkout-page button, .checkout-page input, .checkout-page select, .checkout-page textarea { min-height: 44px; }
  .commerce-drawer .drawer-product { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .checkout-steps { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 420px) {
  .commerce-drawer { width: min(100vw, 390px); }
  .checkout-layout { gap: 14px; }
  .checkout-card, .cart-summary-card { padding: 16px; }
}
