/* Shared desktop canvas; retain existing readable article widths. */
@media (min-width: 1101px) {
    .container { width: min(1600px, calc(100% - 80px)); }
    .products-container { width: calc(100% - 80px); max-width: 1600px; padding-inline: 0; }
    .products-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
}
@media (min-width: 1280px) {
    .products-page .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}
.products-sidebar-column { min-width: 0; }
.products-sidebar-column .category-sidebar { position: static; }
.product-discover { display: grid; gap: 20px; margin-top: 24px; }
.product-discover-card { display: block; overflow: hidden; border: 1px solid var(--theme-border, #e1e8f2); border-radius: 16px; background: #fff; color: var(--theme-primary, #123553); text-decoration: none; box-shadow: 0 6px 22px rgb(16 42 67 / 4%); transition: border-color .2s, box-shadow .2s; }
.product-discover-card:hover { border-color: var(--theme-light, #93b5fa); box-shadow: 0 8px 24px rgb(16 42 67 / 9%); }
.product-discover-card:focus-visible { outline: 3px solid var(--theme-accent, #2563eb); outline-offset: 3px; }
.product-discover-card[hidden] { display: none; }
.product-discover-card img { display: block; width: 100%; height: 150px; object-fit: cover; }
.product-discover-placeholder { display: grid; place-items: center; height: 120px; background: var(--theme-soft, #eff6ff); font-size: 36px; color: var(--theme-link, #2563eb); }
.product-discover-copy { padding: 18px; }
.product-discover-copy small { color: var(--theme-muted, #58708b); font-size: 12px; }
.product-discover-copy h3 { font-size: 16px; line-height: 1.55; margin: 8px 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-discover-copy span { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--theme-link, #2563eb); }
@media (max-width: 1100px) { .product-discover { display: none; } }
.brand-marquee { margin-top: 32px; }
.brand-marquee-window { overflow: hidden; padding-block: 16px; mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent); }
.brand-marquee-track { display: flex; width: max-content; animation: brand-marquee-slide var(--brand-duration, 60s) linear infinite; }
.brand-marquee-group { display: flex; align-items: center; justify-content: space-around; gap: 24px; padding-right: 24px; min-width: 1600px; box-sizing: border-box; }
.brand-marquee .brand-card { flex: 0 0 190px; width: 190px; height: 112px; min-height: 112px; padding: 20px; border-color: var(--theme-border, #edf1f6); box-shadow: 0 4px 16px rgb(16 42 67 / 5%); }
.brand-marquee .brand-card img { width: 100%; height: 62px; object-fit: contain; }
.brand-marquee-window:not(.is-draggable):hover .brand-marquee-track { animation-play-state: paused; }
.brand-marquee-window.is-draggable { cursor: grab; touch-action: pan-y; user-select: none; }
.brand-marquee-window.is-dragging { cursor: grabbing; }
.brand-marquee-window.is-draggable img { -webkit-user-drag: none; user-select: none; }
@keyframes brand-marquee-slide { to { transform: translateX(-50%); } }
@media (max-width: 700px) {
    .brand-marquee .brand-card { flex-basis: 150px; width: 150px; height: 96px; min-height: 96px; }
    .brand-marquee-group { gap: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .brand-marquee-track { animation: none; width: 100%; }
    .brand-marquee-group { min-width: 0; width: 100%; flex-wrap: wrap; padding: 0; justify-content: center; }
    .brand-marquee-group[aria-hidden] { display: none; }
    .brand-marquee-window { mask-image: none; }
    .brand-marquee-window.is-draggable { cursor: auto; touch-action: auto; }
}
[data-product-photo] { cursor: zoom-in; touch-action: pan-y pinch-zoom; }
.product-photo-zoom { display: block; margin: 12px 0; padding: 10px 16px; border: 1px solid var(--theme-border, #cbdcf4); border-radius: 10px; background: #fff; color: var(--theme-link-hover, #1d4ed8); font: inherit; cursor: pointer; }
.product-lightbox { position: fixed; inset: 0; width: 96vw; max-width: 1500px; height: 94dvh; max-height: 94dvh; margin: auto; padding: 16px; border: 0; border-radius: 16px; background: var(--theme-dark, #0c1829); color: #fff; }
.product-lightbox::backdrop { background: rgb(0 0 0 / 85%); }
.product-lightbox[open] { display: flex; flex-direction: column; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; }
.product-lightbox button { flex-shrink: 0; width: 48px; height: 48px; border: 1px solid var(--theme-muted, #607089); border-radius: 50%; background: var(--theme-primary, #20334e); color: #fff; font-size: 32px; cursor: pointer; }
.product-lightbox button[hidden] { display: none; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; gap: 16px; flex: 1; min-height: 0; padding: 12px 0; }
.lightbox-stage img { min-width: 0; width: calc(100% - 128px); height: 100%; object-fit: contain; touch-action: pan-y pinch-zoom; user-select: none; }
.product-lightbox p { text-align: center; color: var(--theme-light, #c8d6e9); font-size: 13px; margin: 8px 0 0; }
@media (max-width: 600px) {
    .product-lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; padding: 12px; }
    .lightbox-stage { position: relative; }
    .lightbox-stage img { width: 100%; }
    .lightbox-stage button { position: absolute; z-index: 1; width: 40px; height: 40px; }
    .product-lightbox [data-prev] { left: 0; }
    .product-lightbox [data-next] { right: 0; }
}
.product-information { margin-top: 36px; border: 1px solid var(--theme-border, #e1e8f2); border-radius: 18px; background: #fff; overflow: hidden; }
.product-tab-list { display: flex; gap: 8px; padding: 12px 20px 0; border-bottom: 1px solid var(--theme-border, #e1e8f2); background: var(--theme-soft, #f8faff); }
.product-tab-list[hidden], .product-information [role=tabpanel][hidden] { display: none; }
.product-tab-list button { background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 16px 20px; color: var(--theme-muted, #526480); font: inherit; font-weight: 600; cursor: pointer; }
.product-tab-list button[aria-selected=true] { border-bottom-color: var(--theme-accent, #2563eb); color: var(--theme-link, #2563eb); }
.product-tab-list button span { display: inline-block; padding: 2px 8px; border-radius: 20px; background: var(--theme-soft, #e8efff); font-size: 12px; }
.product-information .page-panel { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.customer-menu-label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--theme-muted, #526480); font-size: 13px; padding: 10px 12px; background: var(--theme-soft, #f1f5fb); border-radius: 20px; }
@media (max-width: 600px) {
    .product-tab-list { padding-inline: 8px; gap: 0; }
    .product-tab-list button { flex: 1; padding: 14px 8px; font-size: 14px; }
}
.product-gallery-frame { position: relative; }
.product-gallery-frame .detail-photo { display: block; }
.product-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--theme-border, #dbe5f0); border-radius: 50%; background: rgb(255 255 255 / 94%); color: var(--theme-primary, #174875); font-size: 32px; cursor: pointer; box-shadow: 0 3px 12px rgb(16 42 67 / 12%); }
.product-gallery-arrow.is-prev { left: 12px; }
.product-gallery-arrow.is-next { right: 12px; }
.product-gallery-arrow:hover { background: var(--theme-soft, #eff6ff); border-color: var(--theme-accent, #2563eb); }
.main-nav .signed-in-menu-label { font-size: 13px; font-weight: 400; text-decoration: none; }
.signed-in-menu-label > span { display: grid; gap: 2px; min-width: 0; }
.signed-in-menu-label strong { max-width: 140px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.signed-in-menu-label small { font-size: 11px; color: var(--theme-muted, #64748b); }
.product-lightbox button { display: grid; place-items: center; padding: 0; line-height: 1; }
.product-gallery-arrow svg, .product-lightbox button svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.mobile-category-toggle { display: none; }
@media(max-width:1100px) {
    body .inner-hero-layout { gap:24px; }
    body :is(.page-copy, .article-body, .detail-summary) { min-width:0;overflow-wrap:anywhere; }
    body :is(.page-copy, .article-body) :is(img, video, iframe) { max-width:100%; }
    body :is(.page-copy, .article-body) table { display:block;max-width:100%;overflow-x:auto; }
}
@media(max-width:700px) {
    body .detail-facts div { grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:10px; }
    body .detail-photo { box-sizing:border-box; }
    body :is(.contact-form, .review-form, .header-search) :is(input,select,textarea) { font-size:16px;min-width:0;max-width:100%; }
}
@media(min-width:701px) and (max-width:1100px) {
    body .products-container { width:100%;box-sizing:border-box;padding:24px 20px 40px; }
    body .products-layout { grid-template-columns:minmax(0,1fr);gap:20px; }
    body .products-content-body { padding:18px; }
    body .products-container .product-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
    body .category-sidebar { position:static; }
    .has-mobile-toggle .sidebar-header { display:flex;align-items:center;gap:12px; }
    .has-mobile-toggle .sidebar-header h2 { flex:1; }
    .mobile-category-toggle { display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--theme-border);border-radius:8px;background:white;color:var(--theme-primary);font:inherit;cursor:pointer; }
    .has-mobile-toggle:not(.mobile-categories-open) .category-content { display:none; }
}
@media(min-width:701px) and (max-width:820px) {
    body .products-container .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
    body .product-information .review-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
    body .review-form > label, body .review-form .review-full { grid-column: 1 / -1; min-width: 0; display: grid; gap: 8px; }
    body .review-form :is(input,select,textarea) { box-sizing: border-box; width: 100%; min-width: 0; font-size: 16px; border-radius: 10px; }
    body .review-form textarea { min-height: 130px; }
    body .review-form > button { grid-column: 1 / -1; min-height: 48px; height: auto; justify-self: stretch; align-self: start; padding: 14px 20px; }
    body .product-information .page-panel { padding: 20px 16px; }
    body .product-reviews h2 { font-size: 22px; line-height: 1.4; }
    body .review-heading { flex-wrap: wrap; gap: 8px; }
    body .hero-content { padding: 32px 8px 56px; }
    body .hero h1 { font-size: clamp(26px,7.5vw,34px); line-height: 1.2; letter-spacing: 0; margin: 12px 0; }
    body .hero-label { font-size: 10px; letter-spacing: 1.2px; }
    body .hero-slogan { font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
    body .hero-actions .btn { min-height: 44px; padding: 12px 24px; width: auto; }
    body .hero-dots { bottom: 16px; }
    .has-mobile-toggle .sidebar-header { padding: 14px; gap: 8px; flex-wrap: wrap; }
    .has-mobile-toggle .sidebar-header h2 { flex: 1; font-size: 16px; }
    .mobile-category-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--theme-border, #dbe5f0); border-radius: 9px; background: var(--theme-soft, #eff6ff); color: var(--theme-link-hover, #1d4ed8); font: inherit; font-size: 12px; cursor: pointer; }
    .has-mobile-toggle:not(.mobile-categories-open) .category-content { display: none; }
    body .category-content .category-icon { width: 38px; height: 38px; min-width: 38px; font-size: 19px; }
    body .category-content .category-row, body .all-products-link { padding-block: 10px; }
}
.mobile-rail-controls { display: none; }
@media (max-width: 700px) {
    body .mobile-card-rail { display: flex; flex-wrap: nowrap; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 20px; scrollbar-width: thin; scrollbar-color: var(--theme-border) transparent; }
    body .mobile-card-rail > * { flex: 0 0 100%; min-width: 0; max-width: 100%; box-sizing: border-box; margin: 0; scroll-snap-align: start; scroll-margin-left: 2px; }
    body .mobile-card-rail > :only-child { flex-basis: 100%; }
    body .mobile-card-rail .product-image { height: 190px; }
    body .mobile-card-rail .news-card > img { height: 180px; object-fit: cover; }
    .mobile-rail-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; color: var(--theme-muted); font-size: 13px; }
    .mobile-rail-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--theme-border); border-radius: 50%; color: var(--theme-link); background: white; cursor: pointer; }
    .mobile-rail-controls svg { width: 20px; height: 20px; }
}
@media (max-width: 700px) {
    body .product-gallery-arrow, .product-lightbox .lightbox-stage > button { display: none; }
}
.page-copy a, .article-body a { color: var(--theme-link); text-decoration: underline; text-underline-offset: 3px; }
.detail-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 480px; }
.detail-thumbs button { width: 100%; min-width: 0; height: auto; aspect-ratio: 1; padding: 4px; box-sizing: border-box; }
.detail-thumbs button img { display: block; width: 100%; height: 100%; object-fit: contain; }
