/* Meishida reference rebuild v0.3 — styles based on the supplied screenshots. */
:root {
  --ink: #171717;
  --muted: #6d6d6d;
  --paper: #f5f5f5;
  --white: #fff;
  --line: #dedede;
  --accent: #0a929b;
  --accent-dark: #08757b;
  --danger: #e3272d;
  --ref-radius: 11px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
img { max-width: 100%; display: block; }
.container { width: calc(100% - 26px); max-width: 1900px; margin-left: auto; margin-right: auto; }
.hidden, [hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* The very slim info line sits above the sticky store header in the reference. */
.reference-topline { min-height: 38px; padding: 0 13px; background: #f7f7f7; border-bottom: 1px solid #eee; color: #111; }
.reference-topline-inner { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: 12px; }
.reference-topline-inner > strong { font-size: 12px; font-weight: 700; letter-spacing: -.015em; }
.reference-top-meta { display: flex; align-items: center; gap: 24px; color: #414141; }
.reference-top-meta > span, .reference-top-meta > a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.reference-top-meta svg, .reference-city svg, .reference-phone svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: 0 0 auto; }
.site-header.reference-site-header { position: sticky; top: 0; z-index: 60; background: #f7f7f7; border-bottom: 1px solid #ddd; backdrop-filter: none; }
.reference-header-main { min-height: 66px; display: grid; grid-template-columns: 52px 106px minmax(180px,1fr) auto; align-items: center; gap: 18px; padding: 8px 0; }
.reference-brand { width: 44px; height: 44px; display: block; overflow: hidden; border-radius: 50%; background: #0c3137; border: 1px solid #0c929c; }
.reference-brand img { width: 100%; height: 100%; object-fit: cover; }
.reference-catalog-button { height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 13px; color: #fff; background: #393939; font-size: 14px; white-space: nowrap; transition: background .15s ease; }
.reference-catalog-button:hover { background: #202020; }
.reference-catalog-button svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.searchbar.reference-searchbar { min-width: 0; height: 40px; display: flex; align-items: center; gap: 0; border: 1px solid #d9d9d9; border-radius: 13px; background: #f7f7f7; overflow: hidden; }
.reference-searchbar:focus-within { border-color: #969696; background: #fff; }
.reference-searchbar .search-submit, .reference-searchbar .search-clear { flex: 0 0 40px; width: 40px; height: 38px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: #292929; }
.reference-searchbar .search-submit svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.reference-searchbar input { min-width: 0; flex: 1; height: 38px; border: 0; outline: 0; background: transparent; padding: 0 6px; font-size: 14px; color: #222; appearance: none; }
.reference-searchbar input::placeholder { color: #999; }
.reference-searchbar input::-webkit-search-cancel-button { display: none; }
.reference-searchbar .search-clear { font-size: 24px; font-weight: 300; line-height: 1; }
.reference-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 19px; white-space: nowrap; }
.reference-header-actions .header-action { position: relative; min-width: 43px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #111; font-size: 11px; line-height: 1.1; }
.reference-header-actions .header-action svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reference-header-actions .header-action:hover { color: var(--accent-dark); }
.reference-header-actions .cart-count { position: absolute; right: -5px; top: -5px; min-width: 16px; height: 16px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 100px; color: #fff; background: #393939; font-size: 9px; line-height: 1; }
.reference-nav-row { border-top: 1px solid #ededed; background: #f7f7f7; }
.reference-nav-inner { min-height: 43px; display: flex; align-items: center; gap: 20px; }
.reference-city, .reference-phone { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; font-size: 11px; white-space: nowrap; }
.reference-nav-links { min-height: 43px; flex: 1; display: flex; align-items: center; gap: clamp(13px, 1.45vw, 25px); overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 11px; text-transform: none; letter-spacing: 0; }
.reference-nav-links::-webkit-scrollbar { display: none; }
.reference-nav-links a { color: #111; }
.reference-nav-links a:hover { color: var(--accent-dark); }
.reference-phone { color: #616161; }
.reference-header-backdrop { position: fixed; inset: 104px 0 0; background: rgba(0,0,0,.50); z-index: 5; }
.reference-site-header.is-stuck .reference-header-backdrop { top: 66px; }
.reference-catalog-drawer { position: absolute; left: 0; top: 66px; width: min(340px, 92vw); max-height: calc(100vh - 75px); overflow-y: auto; padding: 20px 22px 25px; background: #fff; z-index: 8; box-shadow: 12px 16px 28px rgba(0,0,0,.15); border-radius: 0 0 12px 0; }
.drawer-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #e5e5e5; font-size: 17px; }
.drawer-heading button { border: 0; background: transparent; font-size: 26px; line-height: 1; color: #333; }
.drawer-group { padding: 15px 0 12px; border-bottom: 1px solid #eee; display: flex; flex-direction: column; align-items: stretch; gap: 11px; }
.drawer-group a { color: #484848; font-size: 13px; line-height: 1.3; }
.drawer-group a:hover { color: var(--accent-dark); }
.drawer-group a.drawer-main-link { color: #111; font-weight: 700; font-size: 14px; }
html.catalog-lock-scroll, body.catalog-drawer-open { overflow: hidden !important; overscroll-behavior: none; }

/* Homepage hero and category tiles. Images are from the uploaded reference bundle. */
.reference-home { padding: 0; }
.reference-hero { margin: 12px 13px 0; overflow: hidden; border-radius: 18px; background: #e9e9e9; }
.reference-hero a { display: block; }
.reference-hero img { width: 100%; aspect-ratio: 2.5 / 1; object-fit: cover; object-position: center; }
.reference-categories { padding: 47px 13px 24px; background: #f5f5f5; }
.reference-heading { margin: 0 0 24px; text-align: center; color: #161616; font-size: 16px; font-weight: 700; line-height: 1.25; }
.reference-category-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.reference-category-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: #eaeaea; border-radius: 10px; text-align: center; transition: transform .15s ease, background .15s ease; }
.reference-category-card:hover { background: #e2e2e2; transform: translateY(-2px); }
.reference-category-card img { width: 100%; aspect-ratio: 1.18 / 1; object-fit: cover; background: #e4e4e4; }
.reference-category-card span { min-height: 72px; display: flex; align-items: center; justify-content: center; padding: 10px 7px; font-size: 11px; line-height: 1.25; font-weight: 500; color: #151515; }
.reference-popular { padding: 25px 13px 16px; background: #fff; }
.reference-popular > .reference-heading { margin-bottom: 28px; }
.reference-home .reference-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.reference-browse-all { text-align: center; margin: 18px 0 0; font-size: 12px; }
.reference-browse-all a { display: inline-flex; align-items: center; gap: 9px; border-bottom: 1px solid #888; padding-bottom: 3px; }
.reference-promo-section { background: #fff; padding: 0 13px 20px; }
.reference-promo-grid { display: grid; gap: 13px; }
.reference-promo-grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.reference-promo-grid--two { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 13px; }
.reference-promo-grid--one { grid-template-columns: minmax(0,1fr); margin-top: 13px; }
.reference-promo-card { display: block; min-width: 0; overflow: hidden; border-radius: 10px; background: #e8e8e8; }
.reference-promo-card img { width: 100%; height: auto; aspect-ratio: 1.33 / 1; object-fit: cover; transition: transform .25s ease; }
.reference-promo-grid--two .reference-promo-card img { aspect-ratio: 2 / 1; }
.reference-promo-grid--one .reference-promo-card img { aspect-ratio: 2 / 1; }
.reference-promo-card:hover img { transform: scale(1.015); }
.reference-newsletter { padding: 44px 20px 41px; background: #f6f6f6; text-align: center; }
.reference-newsletter h2 { margin: 0 0 9px; font-size: 16px; font-weight: 700; }
.reference-newsletter p { margin: 0 auto 17px; max-width: 650px; color: #666; font-size: 12px; }
.reference-newsletter-form { display: flex; gap: 7px; width: min(540px,100%); margin: 0 auto; }
.reference-newsletter-form input { min-width: 0; flex: 1; height: 42px; border: 1px solid #d6d6d6; border-radius: 10px; background: #fff; padding: 0 15px; font-size: 12px; }
.reference-newsletter-form button { flex: 0 0 auto; min-width: 130px; height: 42px; border: 0; border-radius: 10px; background: #383838; color: #fff; padding: 0 16px; font-size: 12px; }
.reference-newsletter-form button:hover { background: #1c1c1c; }
.reference-newsletter .reference-newsletter-note { margin: 10px auto 0; font-size: 10px; color: #888; }
.reference-newsletter .reference-newsletter-message { margin: 8px auto 0; color: #333; font-size: 11px; }
.reference-chat { position: fixed; right: 0; bottom: 0; z-index: 45; min-height: 33px; display: inline-flex; align-items: center; gap: 14px; padding: 0 15px; background: #242c47; color: #fff; border-radius: 8px 0 0 0; box-shadow: 0 2px 12px rgba(0,0,0,.2); font-size: 11px; }
.reference-chat b { color: #49d66b; font-size: 12px; font-weight: 700; }

/* Catalogue layout and product cards. */
.reference-inner-page { padding-bottom: 45px; }
.reference-page-heading { padding: 24px 0 17px; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; color: #777; font-size: 11px; }
.breadcrumbs a:hover { color: var(--accent-dark); }
.reference-page-heading h1, .page-heading h1 { margin: 0 0 9px; color: #161616; font-size: 19px; line-height: 1.3; font-weight: 700; }
.reference-page-heading p, .page-heading p { margin: 0; max-width: 850px; color: #555; font-size: 12px; }
.reference-catalog-layout { display: grid; grid-template-columns: 256px minmax(0,1fr); gap: 25px; align-items: start; padding-bottom: 32px; }
.filter-panel.reference-filter-panel { display: block; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.reference-filter-panel > h2 { margin: 0 0 14px; font-size: 13px; font-weight: 700; }
.reference-filter-group { padding: 0 0 14px; margin: 0; }
.reference-filter-group h3 { margin: 0 0 9px; font-size: 12px; font-weight: 700; }
.reference-filter-panel .filter-link { display: block; margin: 0; padding: 9px 11px; border: 0; border-radius: 10px; background: transparent; color: #222; font-size: 11px; line-height: 1.25; }
.reference-filter-panel .filter-link:hover, .reference-filter-panel .filter-link.active { background: #eaeaea; color: #111; }
.reference-more-link { padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #626262; font-size: 11px; }
.reference-extra-categories { padding-left: 12px; }
.reference-extra-categories a { display: block; padding: 7px 0; font-size: 11px; color: #454545; }
.reference-price-inputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.reference-price-inputs input { width: 100%; min-width: 0; height: 35px; border: 1px solid #dfdfdf; border-radius: 10px; background: #fff; padding: 0 10px; color: #333; font-size: 11px; }
.reference-price-inputs input::placeholder { color: #9a9a9a; }
.reference-stock-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; color: #222; font-size: 11px; cursor: pointer; }
.reference-stock-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.reference-stock-toggle i { position: relative; flex: 0 0 33px; width: 33px; height: 19px; border-radius: 30px; border: 1px solid #ddd; background: #eee; transition: background .15s; }
.reference-stock-toggle i::after { content: ''; position: absolute; left: 1px; top: 1px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .15s; }
.reference-stock-toggle input:checked + i { background: #3b3b3b; }
.reference-stock-toggle input:checked + i::after { transform: translateX(14px); }
.reference-check { display: flex; align-items: center; gap: 7px; margin: 7px 0; color: #444; font-size: 11px; }
.reference-check input { width: 16px; height: 16px; accent-color: #3a3a3a; }
.reference-filter-actions { display: grid; gap: 7px; margin-top: 3px; }
.reference-filter-actions .button { width: 100%; min-height: 39px; }
.catalog-toolbar.reference-catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; border: 0; padding: 0 0 13px; margin: 0; }
.reference-catalog-toolbar .catalog-count { color: #666; font-size: 11px; }
.reference-sort-label { display: flex; align-items: center; gap: 8px; color: #333; font-size: 11px; white-space: nowrap; }
.reference-sort-label select { min-width: 135px; border: 0; background: transparent; color: #222; font-size: 11px; padding: 5px 2px; outline-offset: 2px; }
.product-grid.reference-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; gap: 17px 13px; }
.product-card { min-width: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: none; }
.product-card:hover { transform: none; box-shadow: none; }
.product-image-wrap { position: relative; overflow: visible; }
.product-card .product-image { position: relative; display: block; overflow: hidden; aspect-ratio: 1.34 / 1; border-radius: 10px; background: #e8e8e8; }
.product-card .product-image img { width: 100%; height: 100%; object-fit: cover; background: #e8e8e8; }
.product-card .product-tag { position: absolute; left: 0; bottom: 0; max-width: 85%; padding: 3px 6px; border-radius: 0 5px 0 5px; background: #292929; color: #fff; font-size: 9px; line-height: 1.15; font-weight: 700; }
.product-image-dots { position: absolute; bottom: 7px; right: 7px; display: flex; gap: 3px; align-items: center; padding: 3px 5px; border-radius: 10px; background: rgba(255,255,255,.9); }
.product-image-dots i { display: block; width: 4px; height: 4px; border-radius: 50%; background: #666; }
.favorite-toggle { position: absolute; z-index: 2; right: 7px; top: 7px; width: 25px; height: 25px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.84); color: #767676; padding: 3px; }
.favorite-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.favorite-toggle:hover, .favorite-toggle.is-favorite { color: #dc3239; }
.product-card .product-info { padding: 7px 0 0; display: flex; flex-direction: column; align-items: flex-start; }
.product-kicker { font-size: 0; line-height: 0; height: 0; margin: 0; padding: 0; }
.product-card .product-name { display: -webkit-box; min-height: 34px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0 0 5px; color: #171717; font-size: 11px; font-weight: 400; line-height: 1.35; }
.product-card .product-name:hover { text-decoration: underline; }
.product-card .product-description { display: none; }
.product-card .product-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 7px; min-height: 20px; margin: 0 0 4px; }
.product-card .product-price { color: #e22b32; font-size: 14px; font-weight: 700; white-space: nowrap; }
.product-card .empty-price { color: #777; font-size: 11px; }
.product-card .product-old-price { color: #777; font-size: 10px; text-decoration: line-through; white-space: nowrap; }
.product-discount { color: #e22b32; font-size: 10px; white-space: nowrap; }
.product-bonus { color: #525252; min-height: 19px; margin-bottom: 7px; font-size: 10px; }
.product-card .button, .button { min-height: 34px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 8px 15px; border: 1px solid #393939; border-radius: 11px; background: #393939; color: #fff; font-size: 11px; font-weight: 400; line-height: 1.25; box-shadow: none; transition: background .15s ease, border-color .15s ease; }
.product-card .button:hover, .button:hover { background: #222; border-color: #222; }
.product-card .button:disabled { background: #3d3d3d; border-color: #3d3d3d; color: #fff; opacity: 1; }
.button--light { background: #eee !important; color: #171717 !important; border-color: #eee !important; }
.button--light:hover { background: #e0e0e0 !important; }
.button--small { min-height: 33px; padding: 8px 14px; }

/* Shared inner pages, cart, product detail and admin keep their existing behaviour. */
.page-heading { margin: 0; padding: 24px 0 20px; }
.eyebrow { display: inline-block; margin-bottom: 6px; color: #686868; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.section { padding: 30px 0; }
.section--white { background: #fff; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-heading h2 { margin: 0 0 7px; font-size: 20px; font-weight: 700; }
.section-heading p { margin: 0; color: #666; font-size: 12px; }
.text-link { font-size: 11px; border-bottom: 1px solid #888; padding-bottom: 4px; white-space: nowrap; }
.product-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(330px,.9fr); gap: 30px; padding: 0 0 40px; align-items: start; }
.product-detail-visual { overflow: hidden; border-radius: 11px; background: #e9e9e9; }
.product-detail-visual img { width: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; }
.product-detail-copy { padding: 8px 0; }
.product-favorite-button.is-favorite { color: #dc3239 !important; border-color: #dc3239 !important; }
.product-detail-tags { margin-top: 12px; }
.product-detail-copy h1 { font-size: 24px; line-height: 1.25; margin: 5px 0 10px; }
.detail-sku { color: #777; font-size: 11px; }
.detail-price { margin-top: 14px; color: #e22b32; font-size: 25px; font-weight: 700; }
.detail-description { white-space: pre-line; color: #555; font-size: 13px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.specs { border-top: 1px solid #ddd; }
.spec-row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid #e5e5e5; font-size: 11px; }
.spec-row span { color: #666; }
.spec-row strong { text-align: right; font-weight: 600; }
.pill { display: inline-block; margin: 2px 3px 2px 0; padding: 4px 7px; border-radius: 6px; background: #eaeaea; color: #333; font-size: 10px; }
.cart-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.8fr); align-items: start; gap: 23px; padding-bottom: 55px; }
.cart-item { grid-template-columns: 90px 1fr auto; gap: 15px; padding: 16px 0; border-bottom: 1px solid #e0e0e0; }
.cart-item img { background: #e8e8e8; border-radius: 10px; }
.cart-item h3 { font-size: 13px; }
.summary-card, .form-card, .admin-panel, .stat-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 11px; box-shadow: none; }
.summary-card, .form-card, .admin-panel { padding: 20px; }
.summary-row { font-size: 12px; }
.summary-row.total { font-size: 16px; }
.form-card h1, .auth-card h1 { font-size: 25px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; border: 1px solid #d6d6d6; border-radius: 9px; background: #fff; padding: 10px 12px; outline-color: #888; font-size: 12px; }
.field textarea { min-height: 90px; resize: vertical; }
.hint, .field .hint { color: #777; font-size: 11px; }
.alert { padding: 12px 14px; background: #f0f0f0; border: 1px solid #ddd; border-radius: 9px; color: #444; font-size: 12px; }
.alert.error { background: #fff0f0; border-color: #f2cdcd; color: #991f27; }
.empty-state { padding: 32px 18px; background: #fff; border: 1px dashed #d4d4d4; border-radius: 11px; text-align: center; color: #666; }
.empty-state h3, .empty-state h2 { margin: 0 0 8px; color: #171717; }
.reference-empty { margin: 15px 0 35px; }
.admin-shell { padding: 24px 0 55px; }
.admin-top h1 { font-size: 25px; }
.admin-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 18px 0; }
.admin-tab { border: 1px solid #ddd; border-radius: 8px; padding: 9px 13px; background: #fff; color: #555; font-size: 11px; }
.admin-tab.active { background: #393939; border-color: #393939; color: #fff; }
.admin-stats { gap: 12px; }
.stat-card { padding: 17px; }
.stat-card span { color: #777; font-size: 11px; }
.stat-card strong { font-size: 25px; }
.admin-panel h2 { margin: 0 0 16px; font-size: 16px; }
table { font-size: 11px; }
th, td { border-bottom: 1px solid #e9e9e9; }
th { background: #f6f6f6; color: #666; }
.table-button { border: 1px solid #ddd; border-radius: 7px; background: #fff; font-size: 10px; }
.blog-grid { gap: 13px; }
.blog-card { border: 0; border-radius: 11px; background: #fff; box-shadow: none; }
.blog-card div { padding: 16px; }

/* Homepage social links: brand logos replace QR codes; cards remain fully clickable. */
.reference-home-socials { padding: 27px 13px 14px; background: #f5f5f5; }
.reference-home-socials-inner { max-width: 1900px; margin: 0 auto; }
.reference-home-socials-heading { margin: 0 auto 20px; text-align: center; }
.reference-home-socials-heading > span { color: var(--accent-dark); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.reference-home-socials-heading h2 { margin: 6px 0 6px; color: #171717; font-size: 20px; line-height: 1.25; }
.reference-home-socials-heading p { margin: 0; color: #666; font-size: 14px; }
.reference-home-socials-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; }
.reference-home-social-card { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 16px 19px; border: 1px solid #e2dfc9; border-radius: 14px; background: #f5f5dc; color: #222; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.reference-home-social-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.reference-home-social-card:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
.reference-home-social-logo { display: block; flex: 0 0 82px; width: 82px; height: 82px; overflow: hidden; border-radius: 17px; background: #fff; }
.reference-home-social-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.reference-home-social-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: 6px; }
.reference-home-social-copy strong { font-size: 18px; line-height: 1.25; }
.reference-home-social-copy small { color: #666; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.reference-home-social-copy em { margin-top: 5px; color: var(--accent-dark); font-size: 13px; font-style: normal; font-weight: 700; }
.reference-home-social-copy em span { padding-left: 4px; }

/* Footer restored to the simple original two-column layout. */
.site-footer.reference-site-footer { margin-top: 0; padding: 35px 13px 0; background: #e5e5e5; color: #262626; }
.reference-footer-main { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 38px; max-width: 1900px; margin: 0 auto; padding: 0 0 30px; }
.reference-footer-brand { max-width: 510px; }
.reference-footer-brand > a { display: inline-block; width: 52px; height: 52px; overflow: hidden; border-radius: 50%; border: 1px solid #078f9b; background: #0c3137; }
.reference-footer-brand img { width: 100%; height: 100%; object-fit: cover; }
.reference-footer-brand p { max-width: 420px; margin: 13px 0 0; color: #555; font-size: 11px; line-height: 1.6; }
.reference-footer-contact { min-width: 270px; }
.reference-footer-contact h3 { margin: 0 0 13px; font-size: 15px; }
.reference-footer-contact p { margin: 7px 0; color: #555; font-size: 11px; }
 .reference-footer-contact a:hover { color: #08757b; text-decoration: underline; }
.reference-socials a { display: inline-flex; margin-top: 8px; padding: 7px 11px; border: 1px solid #aaa; border-radius: 7px; font-size: 11px; }
.reference-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; max-width: 1900px; margin: 0 auto; padding: 15px 0; border-top: 1px solid #ccc; color: #555; font-size: 10px; }
.reference-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 15px; }
.reference-footer-bottom a:hover { color: #111; text-decoration: underline; }

@media (min-width: 1700px) {
  .reference-category-grid { gap: 14px; }
  .reference-promo-grid { gap: 15px; }
  .reference-promo-grid--two, .reference-promo-grid--one { margin-top: 15px; }
}
@media (max-width: 1250px) {
  .reference-header-main { grid-template-columns: 46px 100px minmax(100px,1fr) auto; gap: 12px; }
  .reference-header-actions { gap: 13px; }
  .reference-nav-inner { gap: 12px; }
  .reference-nav-links { gap: 13px; }
  .reference-phone { display: none; }
  .product-grid.reference-product-grid, .reference-home .reference-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .reference-topline-inner > strong { font-size: 10px; }
  .reference-top-meta { gap: 12px; font-size: 10px; }
  .reference-header-main { grid-template-columns: 44px 100px minmax(120px,1fr) auto; gap: 10px; }
  .reference-header-actions { gap: 9px; }
  .reference-header-actions .header-action { min-width: 32px; font-size: 10px; }
  .reference-header-actions .header-action svg { width: 20px; height: 20px; }
  .reference-nav-inner { width: calc(100% - 26px); }
  .reference-city { display: none; }
  .reference-nav-links { justify-content: flex-start; }
  .reference-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .reference-catalog-layout { grid-template-columns: 215px minmax(0,1fr); gap: 17px; }
  .product-grid.reference-product-grid, .reference-home .reference-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 12px; }
  .reference-promo-grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .reference-footer-main { gap: 25px; grid-template-columns: minmax(0,1fr) auto; }
}
@media (max-width: 650px) {
  .reference-topline { padding: 0 10px; }
  .reference-topline-inner { min-height: 31px; }
  .reference-topline-inner > strong { font-size: 9px; }
  .reference-top-meta { gap: 8px; }
  .reference-top-meta > span:first-child { display: none; }
  .reference-top-meta svg { width: 12px; height: 12px; }
  .reference-header-main { grid-template-columns: 41px 95px minmax(0,1fr); gap: 8px; padding: 8px 0; }
  .reference-brand { width: 39px; height: 39px; }
  .reference-catalog-button { height: 37px; padding: 0 10px; border-radius: 10px; font-size: 12px; }
  .reference-searchbar { grid-column: 1 / 3; grid-row: 2; }
  .reference-header-actions { grid-column: 3; grid-row: 1 / 3; align-self: center; gap: 11px; }
  .reference-header-actions .header-action { min-width: 25px; }
  .reference-header-actions .header-action span { display: none; }
  .reference-header-actions .header-action svg { width: 22px; height: 22px; }
  .reference-header-actions .cart-count { top: -3px; right: -7px; }
  .reference-nav-links { min-height: 38px; gap: 15px; font-size: 10px; }
  .reference-catalog-drawer { top: 107px; max-height: calc(100vh - 110px); width: min(325px,94vw); }
  .reference-header-backdrop { top: 138px; }
  .reference-site-header.is-stuck .reference-header-backdrop { top: 107px; }
  .reference-hero { margin: 9px 8px 0; border-radius: 10px; }
  .reference-hero img { aspect-ratio: 1.45 / 1; object-fit: cover; object-position: 43% center; }
  .reference-home-socials { padding: 20px 8px 10px; }
  .reference-home-socials-grid { grid-template-columns: 1fr; gap: 10px; }
  .reference-home-socials-heading { margin-bottom: 14px; }
  .reference-home-socials-heading h2 { font-size: 18px; }
  .reference-home-socials-heading p { font-size: 13px; }
  .reference-home-social-card { gap: 14px; padding: 12px; }
  .reference-home-social-logo { flex-basis: 68px; width: 68px; height: 68px; border-radius: 14px; }
  .reference-home-social-copy strong { font-size: 16px; }
  .reference-home-social-copy small { font-size: 13px; }
  .reference-home-social-copy em { font-size: 12px; }
  .reference-categories { padding: 28px 8px 15px; }
  .reference-heading { margin-bottom: 16px; font-size: 14px; }
  .reference-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .reference-category-card { border-radius: 8px; }
  .reference-category-card img { aspect-ratio: 1.3 / 1; }
  .reference-category-card span { min-height: 48px; padding: 8px 5px; font-size: 10px; }
  .reference-popular { padding: 23px 8px 14px; }
  .reference-popular > .reference-heading { margin-bottom: 17px; }
  .reference-promo-section { padding: 0 8px 10px; }
  .reference-promo-grid { gap: 8px; }
  .reference-promo-grid--three { grid-template-columns: 1fr; }
  .reference-promo-grid--three .reference-promo-card img { aspect-ratio: 1.65 / 1; }
  .reference-promo-grid--two, .reference-promo-grid--one { grid-template-columns: 1fr; margin-top: 8px; }
  .reference-promo-grid--two .reference-promo-card img, .reference-promo-grid--one .reference-promo-card img { aspect-ratio: 1.65 / 1; }
  .reference-newsletter { padding: 30px 15px; }
  .reference-newsletter-form { flex-direction: column; }
  .reference-newsletter-form button { width: 100%; }
  .reference-inner-page { width: calc(100% - 20px); }
  .reference-page-heading { padding: 18px 0 15px; }
  .reference-page-heading h1, .page-heading h1 { font-size: 18px; }
  .reference-catalog-layout { grid-template-columns: 1fr; }
  .reference-filter-panel { display: block; padding: 14px !important; background: #fff !important; border: 1px solid #e3e3e3 !important; border-radius: 10px !important; }
  .reference-filter-panel > h2 { font-size: 14px; }
  .reference-filter-group { padding-bottom: 12px; }
  .catalog-toolbar.reference-catalog-toolbar { align-items: flex-start; }
  .reference-sort-label { white-space: normal; gap: 4px; }
  .reference-sort-label select { min-width: 90px; max-width: 150px; }
  .product-grid.reference-product-grid, .reference-home .reference-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 10px; }
  .product-card .product-image { border-radius: 8px; }
  .product-card .product-name { min-height: 44px; font-size: 10px; }
  .product-card .product-price { font-size: 13px; }
  .product-card .button { width: 100%; padding: 8px 6px; font-size: 10px; }
  .product-bonus { font-size: 9px; }
  .product-detail { grid-template-columns: 1fr; gap: 16px; }
  .product-detail-copy h1 { font-size: 21px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 65px minmax(0,1fr); }
  .cart-item-price { grid-column: 2; text-align: left; }
  .reference-footer-main { grid-template-columns: 1fr; gap: 25px; }
  .reference-footer-bottom { flex-direction: column; align-items: flex-start; }
  .reference-footer-bottom nav { gap: 10px 14px; }
  .reference-chat { min-height: 30px; padding: 0 10px; font-size: 10px; }
  .reference-chat b { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }


/* v0.3.1 usability fixes: announcement carousel, favorite feedback, and nested catalog filters. */
.reference-announcement {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  overflow: hidden;
  color: #171717;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .025em;
  line-height: 1.2;
}
.reference-announcement span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}
.reference-announcement span.is-changing { opacity: 0; transform: translateY(4px); }
.reference-header-actions .favorite-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border-radius: 100px;
  background: #dc3239;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.reference-subcategory-list {
  margin: 0 0 7px 9px;
  padding-left: 8px;
  border-left: 2px solid #e5e5e5;
}
.reference-filter-panel .reference-subcategory-link {
  padding: 7px 9px;
  font-size: 10.5px;
  color: #555;
  border-radius: 7px;
}
.reference-filter-panel .reference-subcategory-link.active {
  background: #e8f4f4;
  color: #08757b;
  font-weight: 700;
}
.meishida-toast {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 24px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 17px;
  border-radius: 10px;
  background: #242424;
  color: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,.2);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.meishida-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.favorite-toggle { cursor: pointer; }
.favorite-toggle svg { pointer-events: none; }
.reference-catalog-drawer .drawer-group a:hover { color: var(--accent-dark); }
@media (max-width: 650px) {
  .reference-announcement { min-height: 31px; font-size: 9px; }
  .reference-topline-inner { gap: 10px; }
  .reference-announcement { flex-basis: 60%; }
  .reference-top-meta { flex: 0 0 auto; gap: 8px; }
  .reference-top-meta > a span { display: none; }
  .reference-header-actions .favorite-count { top: -4px; right: -6px; }
  .reference-subcategory-list { margin-left: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .reference-announcement span, .meishida-toast { transition: none; }
}


/* v1.2.1: make the consultation promo quieter on the homepage. */
.reference-promo-grid--consult {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.reference-promo-grid--consult .reference-promo-card {
  width: min(100%, 680px);
  margin-inline: auto;
}
.reference-promo-grid--consult .reference-promo-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
@media (max-width: 650px) {
  .reference-promo-grid--consult .reference-promo-card {
    width: 100%;
  }
}

/* v1.2.2: cart remove button, admin product actions and multi-photo product gallery. */
.quantity-controls .cart-remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 78px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid #ded6cb;
  border-radius: 7px;
  background: #fffdfa;
  color: #625b51;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.quantity-controls .cart-remove-button:hover {
  border-color: #b65a52;
  background: #fff7f5;
  color: #9b342c;
}
.admin-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 190px;
}
.admin-product-actions .table-button {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 7px;
  background: #fffdfa;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}
.admin-product-actions .table-button--danger {
  border-color: #eccdca;
  background: #fff8f7;
  color: #a33d35;
}
.admin-product-actions .table-button--danger:hover {
  border-color: #b65a52;
  background: #fff0ee;
  color: #8e2c25;
}
.product-detail-visual { padding: 18px; }
.product-gallery-main {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 3px;
  background: #f5f3ef;
}
.product-gallery-main img {
  display: block;
  width: 100%;
  max-height: 650px;
  aspect-ratio: 1.2 / 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-gallery-thumbs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 12px 1px 3px;
  scrollbar-width: thin;
}
.product-gallery-thumb {
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #ded6cb;
  border-radius: 5px;
  background: #fffdfa;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
  border-color: #202f30;
  box-shadow: 0 0 0 1px #202f30;
}
.product-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.reference-consult-card { position: relative; }
.reference-consult-phone {
  position: absolute;
  left: 4.3%;
  bottom: 14.2%;
  display: inline-flex;
  align-items: center;
  min-width: 40%;
  max-width: 55%;
  padding: .42em .55em;
  background: rgba(238, 238, 238, .98);
  color: #252525;
  font-size: clamp(11px, 2.15vw, 22px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .005em;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 650px) {
  .product-detail-visual { padding: 10px; }
  .product-gallery-thumb { flex-basis: 64px; width: 64px; height: 64px; }
  .reference-consult-phone { min-width: 48%; max-width: 66%; font-size: clamp(10px, 2.8vw, 15px); }
}


/* v1.2.3 — editorial pages, FAQ and legal text */
.blog-page { padding-bottom: 56px; }
.blog-jump { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0 28px; }
.blog-jump a { display:inline-flex; align-items:center; padding:9px 13px; border:1px solid #ded8ce; border-radius:999px; color:#393939; background:#fff; text-decoration:none; font-size:13px; }
.blog-jump a:hover { border-color:#08788b; color:#08788b; }
.blog-feature-grid { margin-bottom:38px; }
.blog-card { overflow:hidden; }
.blog-card-visual { width:100%; height:190px; background:#F5F5DC; }
.blog-card h2 { font-size:20px; line-height:1.3; margin:8px 0; }
.blog-card h2 a { color:inherit; text-decoration:none; }
.blog-card h2 a:hover { color:#08788b; }
.blog-card > div { padding:17px; }
.blog-article-list { max-width:900px; margin:0 auto; }
.blog-article { padding:28px 0; border-top:1px solid #e5e0d8; scroll-margin-top:100px; }
.blog-article h2 { margin:8px 0 14px; }
.blog-article h3 { margin:22px 0 8px; font-size:17px; }
.blog-article li { margin:8px 0; }
.blog-faq-cta { margin:28px auto 10px; padding:26px; max-width:900px; border:1px solid #e5e0d8; background:#fffdfa; }
.blog-faq-cta h2 { margin-top:0; }
.faq-list { max-width:900px; }
.faq-list details { border:1px solid #e5e0d8; border-radius:8px; background:#fff; margin:10px 0; padding:0 18px; }
.faq-list summary { cursor:pointer; padding:17px 28px 17px 0; font-weight:650; color:#292929; position:relative; }
.faq-list summary::marker { color:#08788b; }
.faq-list details p { margin:0 0 17px; }
.info-content { max-width:980px; }
.info-content h2 { margin-top:30px; }
.info-content h2:first-child { margin-top:0; }
.policy-draft-warning { margin:0 0 22px; padding:16px 18px; border:1px solid #d9a441; border-left:4px solid #d9a441; border-radius:6px; background:#fff8e9; color:#654a18; }
.form-legal-note { margin:10px 0 18px; font-size:13px; color:#777; }
.form-legal-note a { color:#08788b; text-decoration:underline; }
.reference-contact-cta .reference-newsletter-form { justify-content:center; gap:12px; }
@media (max-width:700px) { .blog-card-visual { height:165px; } .blog-jump { gap:7px; } .blog-jump a { font-size:12px; } .blog-faq-cta { padding:19px; } }

/* v1.2.8: social QR codes moved from the footer to the homepage below the hero. */


/* v1.2.9: catalog-only animated favorites and clear actions on the favorites page. */
.favorite-toggle {
  color: #8a8a8a;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.favorite-toggle svg {
  fill: none;
  stroke: currentColor;
  transition: fill .2s ease, stroke .2s ease, transform .2s ease;
  transform-origin: 50% 50%;
}
.favorite-toggle.is-favorite {
  color: #e32636;
  background: rgba(255,255,255,.96);
}
.favorite-toggle.is-favorite svg {
  fill: #e32636;
  stroke: #e32636;
}
.favorite-toggle.is-animating svg {
  animation: meishida-heart-pop .44s cubic-bezier(.2,.8,.25,1.25);
}
@keyframes meishida-heart-pop {
  0% { transform: scale(.62); }
  52% { transform: scale(1.42); }
  76% { transform: scale(.9); }
  100% { transform: scale(1); }
}
.product-card-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 3px;
}
.product-card-actions > .button {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}
.product-card-actions--favorites .favorites-remove-button {
  border-color: #dedede !important;
  background: #f0f0f0 !important;
  color: #343434 !important;
}
.product-card-actions--favorites .favorites-remove-button:hover {
  border-color: #c8c8c8 !important;
  background: #e4e4e4 !important;
}
@media (max-width: 650px) {
  .product-card-actions { gap: 6px; }
  .product-card-actions--favorites > .button {
    padding-left: 4px;
    padding-right: 4px;
    font-size: 9px;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .favorite-toggle, .favorite-toggle svg { transition: none !important; }
  .favorite-toggle.is-animating svg { animation: none !important; }
}


/* v1.2.10: replace homepage QR codes with Telegram/VK brand logos and enlarge labels. */


/* v1.2.11: enlarge homepage social cards and show transparent brand marks without white tiles. */
.reference-home-socials { padding: 32px 16px 20px; }
.reference-home-socials-heading { margin-bottom: 24px; }
.reference-home-socials-heading > span { font-size: 12px; }
.reference-home-socials-heading h2 { font-size: 24px; }
.reference-home-socials-heading p { font-size: 16px; }
.reference-home-socials-grid { max-width: 1280px; gap: 20px; }
.reference-home-social-card { gap: 24px; min-height: 158px; padding: 22px 24px; border-radius: 16px; }
.reference-home-social-logo {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}
.reference-home-social-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.reference-home-social-copy { gap: 8px; }
.reference-home-social-copy strong { font-size: 22px; line-height: 1.25; }
.reference-home-social-copy small { font-size: 16px; line-height: 1.4; }
.reference-home-social-copy em { margin-top: 6px; font-size: 15px; }

@media (max-width: 900px) {
  .reference-home-socials-grid { max-width: 760px; gap: 14px; }
  .reference-home-social-card { gap: 18px; min-height: 136px; padding: 18px; }
  .reference-home-social-logo { flex-basis: 96px; width: 96px; height: 96px; }
  .reference-home-social-copy strong { font-size: 20px; }
  .reference-home-social-copy small { font-size: 15px; }
  .reference-home-social-copy em { font-size: 14px; }
}

@media (max-width: 650px) {
  .reference-home-socials { padding: 22px 12px 16px; }
  .reference-home-socials-heading { margin-bottom: 16px; }
  .reference-home-socials-heading > span { font-size: 10px; }
  .reference-home-socials-heading h2 { font-size: 20px; }
  .reference-home-socials-heading p { font-size: 14px; line-height: 1.45; }
  .reference-home-socials-grid { grid-template-columns: 1fr; gap: 12px; max-width: 520px; }
  .reference-home-social-card { gap: 16px; min-height: 112px; padding: 14px 16px; border-radius: 14px; }
  .reference-home-social-logo { flex-basis: 82px; width: 82px; height: 82px; }
  .reference-home-social-copy { gap: 5px; }
  .reference-home-social-copy strong { font-size: 18px; }
  .reference-home-social-copy small { font-size: 14px; }
  .reference-home-social-copy em { margin-top: 3px; font-size: 13px; }
}

/* v1.2.12: keep short pages' footer aligned with the bottom of the viewport. */
html {
  min-height: 100%;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body > #site-header {
  flex: 0 0 auto;
}
body > main {
  flex: 1 0 auto;
}
body > #site-footer {
  flex: 0 0 auto;
  margin-top: auto;
}


/* v1.3.0 — модель с цветовыми исполнениями */
.product-variant-selector { margin: 16px 0 12px; }
.product-variant-label { display: block; margin-bottom: 8px; color: #333; font-size: 13px; font-weight: 600; }
.product-variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.product-variant-option { min-width: 112px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 9px 12px; border: 1px solid #d8d8d8; border-radius: 9px; background: #fff; color: #222; text-align: left; cursor: pointer; }
.product-variant-option small { color: #737373; font-size: 11px; }
.product-variant-option.is-active { border-color: #282828; box-shadow: inset 0 0 0 1px #282828; }
.detail-selected-color { margin: 7px 0 3px; color: #666; font-size: 13px; }
@media (max-width: 600px) { .product-variant-option { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); } }


/* v1.3.2: compact category filter and a small sparkle burst when saving a product. */
.reference-filter-panel .reference-filter-group { padding-bottom: 0; }
.reference-filter-panel .filter-link { margin-bottom: 3px; }
.favorite-toggle { overflow: visible; }
.favorite-toggle .favorite-sparkles { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.favorite-toggle .favorite-sparkles i { position: absolute; display: block; opacity: 0; color: #e6ad35; font-size: 8px; line-height: 1; font-style: normal; text-shadow: 0 0 5px rgba(230,173,53,.22); }
.favorite-toggle .sparkle--1 { left: 1px; top: 1px; --spark-mid-x: -3px; --spark-mid-y: -4px; --spark-x: -7px; --spark-y: -9px; }
.favorite-toggle .sparkle--2 { right: 1px; top: 2px; --spark-mid-x: 3px; --spark-mid-y: -4px; --spark-x: 7px; --spark-y: -8px; }
.favorite-toggle .sparkle--3 { left: 2px; bottom: 1px; --spark-mid-x: -4px; --spark-mid-y: 3px; --spark-x: -8px; --spark-y: 7px; }
.favorite-toggle .sparkle--4 { right: 1px; bottom: 1px; --spark-mid-x: 4px; --spark-mid-y: 3px; --spark-x: 8px; --spark-y: 7px; }
.favorite-toggle.is-animating .sparkle--1 { animation: meishida-sparkle-burst .62s ease-out .00s both; }
.favorite-toggle.is-animating .sparkle--2 { animation: meishida-sparkle-burst .62s ease-out .05s both; }
.favorite-toggle.is-animating .sparkle--3 { animation: meishida-sparkle-burst .62s ease-out .10s both; }
.favorite-toggle.is-animating .sparkle--4 { animation: meishida-sparkle-burst .62s ease-out .15s both; }
@keyframes meishida-sparkle-burst {
  0% { opacity: 0; transform: translate(0,0) scale(.15) rotate(0deg); }
  28% { opacity: 1; transform: translate(var(--spark-mid-x),var(--spark-mid-y)) scale(1.1) rotate(35deg); }
  100% { opacity: 0; transform: translate(var(--spark-x),var(--spark-y)) scale(.12) rotate(105deg); }
}
@media (prefers-reduced-motion: reduce) {
  .favorite-toggle.is-animating .favorite-sparkles i { animation: none !important; }
}


/* Meishida logo refresh v1.4.2 */
.reference-brand, .reference-footer-brand > a { background: #f5f5f5; border-color: #d8d8d8; }
.reference-brand img, .reference-footer-brand img { object-fit: contain; }


/* v1.4.3: restore the styled two-column price filter used by catalog.php. */
.reference-filter-panel .reference-price-filter .reference-price-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  width: 100%;
}
.reference-filter-panel .reference-price-filter .reference-price-fields label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: #666;
  font-size: 11px;
  line-height: 1.2;
}
.reference-filter-panel .reference-price-filter .reference-price-fields input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #dfdfdf;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #333;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  box-shadow: none;
}
.reference-filter-panel .reference-price-filter .reference-price-fields input:focus {
  border-color: #999;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .06);
}
.reference-filter-panel .reference-price-filter .reference-price-fields input::placeholder {
  color: #9a9a9a;
  opacity: 1;
}
@media (max-width: 650px) {
  .reference-filter-panel .reference-price-filter .reference-price-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v1.4.5: center the two homepage category cards as a compact group. */
.reference-category-grid {
  width: min(100%, 610px);
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
