@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --blue: #0b5fae;
    --blue-dark: #0a4f90;
    --green: #059657;
    --green-dark: #047847;
    --accent: #e9f5ee;
    --text: #17324a;
    --muted: #66788a;
    --line: #dde7ef;
    --bg: #f5f7fa;
    --panel: #ffffff;
    --danger: #c53b3b;
    --shadow: 0 4px 14px rgba(16, 46, 78, 0.04);
    --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    overflow-x: hidden;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--green-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1220px, calc(100% - 28px)); margin: 0 auto; }
.section { padding: 28px 0 36px; }
.muted { color: var(--muted); }
.help { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.hidden { display: none !important; }

.desktop-only { display: block; }
.mobile-only { display: none !important; }

.mobile-appbar,
.mobile-toolbar,
.mobile-quick-actions,
.mobile-top-tabs,
.mobile-shortcuts,
.mobile-search {
    width: 100%;
}
.mobile-appbar {
    background: linear-gradient(180deg, #0b5fae 0%, #0a5aa3 100%);
    color: #fff;
    padding: 10px 0 12px;
    border-bottom: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 8px 24px rgba(8, 39, 77, 0.14);
}
.mobile-appbar .container {
    display: grid;
    gap: 10px;
}
.mobile-appbar a { color: #fff; }
.mobile-appbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.mobile-quick-text {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255,255,255,0.94);
}
.mobile-quick-text a { font-weight: 700; }
.mobile-toolbar {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 46px;
    gap: 10px;
    align-items: center;
}
.mobile-logo-box,
.mobile-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    min-height: 46px;
    box-shadow: none;
}
.mobile-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.mobile-search {
    position: relative;
}
.mobile-search input {
    height: 46px;
    padding: 0 14px 0 42px;
    border-radius: 14px;
    border: 0;
    background: #fff;
    color: var(--text);
    box-shadow: 0 6px 18px rgba(6, 30, 62, 0.08);
}
.mobile-search input:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.18), 0 6px 18px rgba(6, 30, 62, 0.08);
}
.mobile-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #88a0b6;
    font-size: 18px;
    pointer-events: none;
}
.mobile-cart-link {
    font-size: 20px;
}
.mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.mobile-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    box-shadow: none;
    text-align: center;
}
.mobile-chip.primary {
    background: #fff;
    color: var(--blue);
    border-color: transparent;
}
.mobile-top-tabs {
    display: flex;
    gap: 20px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}
.mobile-top-tabs::-webkit-scrollbar { display: none; }
.mobile-top-tabs a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-weight: 700;
    color: rgba(255,255,255,0.78);
    white-space: nowrap;
}
.mobile-top-tabs a.active {
    color: #fff;
}
.mobile-top-tabs a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    border-radius: 999px;
    background: #2fd185;
}

.storefront-mobile-intro {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}
.mobile-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: #edf5fb;
    color: var(--text);
    font-weight: 800;
    font-size: 13px;
}
.mobile-shortcuts {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.mobile-shortcuts::-webkit-scrollbar { display: none; }
.shortcut-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
}
.shortcut-pill.is-active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.shortcut-pill.muted-pill { color: var(--blue-dark); }
.storefront-card {
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(13, 38, 60, 0.055);
}
.storefront-card .thumb {
    background: linear-gradient(180deg, #f8fbfe 0%, #eff5fb 100%);
}
.storefront-card .content {
    display: grid;
    gap: 8px;
}
.compact-meta-line { margin-bottom: 2px; }
.compact-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.compact-availability {
    font-size: 13px;
    font-weight: 700;
    color: var(--green-dark);
}
.compact-availability.danger { color: var(--danger); }
.compact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 2px;
}
.compact-actions form { margin: 0; }
.compact-actions .btn,
.compact-actions button {
    width: 100%;
    justify-content: center;
}
.product-title {
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.product-price {
    margin-bottom: 16px;
}
.product-lead {
    margin-top: 0;
    margin-bottom: 16px;
}
.product-detail-badges {
    margin-bottom: 10px;
}
.product-spec-grid {
    margin-bottom: 16px;
}
.spec-block {
    margin-bottom: 14px;
}
.product-detail-info {
    display: grid;
    gap: 0;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-top {
    border-bottom: 1px solid var(--line);
    background: #f8fbfd;
}
.header-top .inner,
.header-main .inner,
.site-footer .inner,
.admin-shell .admin-top,
.login-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.header-top .inner {
    min-height: 44px;
    font-size: 13px;
    color: var(--muted);
}
.header-quick,
.main-menu,
.header-actions,
.admin-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.header-top a,
.header-actions a,
.main-menu a,
.admin-nav a { font-weight: 600; }
.header-main .inner {
    min-height: 84px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0b5fae 0 49%, #059657 49% 100%);
    position: relative;
    overflow: hidden;
    flex: 0 0 54px;
}
.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.brand-mark::before,
.brand-mark::after {
    content: '';
    position: absolute;
    bottom: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
}
.brand-mark::before { left: 8px; }
.brand-mark::after { right: 8px; }
.brand-mark.has-image {
    background: #fff;
    border: 1px solid var(--line);
}
.brand-mark.has-image::before,
.brand-mark.has-image::after { display: none; }
.brand-title { display: block; font-size: 15px; font-weight: 800; }
.brand-sub { display: block; color: var(--muted); font-size: 13px; }
.main-menu a {
    padding: 10px 0;
    color: var(--text);
    position: relative;
}
.main-menu a.active,
.main-menu a:hover { color: var(--blue); }
.main-menu a.active::after,
.main-menu a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: var(--green);
}
.header-actions .btn-link,
.header-top .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
}
.header-actions .btn-link.primary,
.header-top .btn-link.primary,
.btn,
button,
input[type=submit] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid transparent;
    background: var(--blue);
    color: #fff;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px var(--blue);
    overflow: hidden;
}
.btn:hover,
button:hover,
input[type=submit]:hover,
.header-actions .btn-link.primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline,
.header-actions .btn-link,
.header-top .btn-link {
    background: #fff;
    color: var(--blue);
    border: 1px solid rgba(11, 95, 174, 0.22);
    box-shadow: none;
}
.btn-outline:hover,
.header-actions .btn-link:hover,
.header-top .btn-link:hover {
    background: #f4f9fd;
    color: var(--blue-dark);
}
.btn-danger { background: #fff0f0; color: var(--danger); border-color: #f3c7c7; }
.btn-danger:hover { background: #ffe4e4; color: #9f2424; }

button,
.btn,
.btn-link,
.mobile-chip,
.mobile-cart-link,
.gallery-thumb,
.gallery-nav {
    line-height: 1.2;
}

.product-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.product-detail-badges .badge,
.product-detail-badges .meta-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding-top: 0;
    padding-bottom: 0;
}
.product-actions .btn,
.product-actions button,
.form-actions .btn,
.form-actions button {
    min-height: 48px;
}
.product-detail,
.product-detail > *,
.product-detail-media,
.product-detail-info,
.gallery-track,
.table-wrap,
.card,
.panel {
    min-width: 0;
}

.cart-mobile-list {
    display: none;
}
.cart-mobile-item {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdff;
}
.cart-mobile-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}
.cart-mobile-head strong {
    display: block;
    line-height: 1.4;
}
.cart-mobile-meta {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}
.cart-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.cart-mobile-field {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}
.cart-mobile-field span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

.notice-strip {
    background: #0b5fae;
    color: #fff;
    padding: 9px 0;
    font-size: 14px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
}
.section-title h1, .section-title h2 { margin: 0; }
.section-title p { margin: 6px 0 0; color: var(--muted); }

.page-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}
.page-heading h1,
.page-heading h2,
.card h2,
.card h3 { margin: 0; }
.page-heading p { margin: 6px 0 0; color: var(--muted); }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #eef6ff;
    color: var(--blue);
}
.badge.success { background: #eaf7ef; color: var(--green-dark); }
.badge.danger { background: #fff1f1; color: var(--danger); }
.badge.dark { background: #ecf0f5; color: var(--text); }
.flash-stack { padding-top: 16px; display: grid; gap: 10px; }
.flash {
    padding: 13px 16px;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}
.flash.success { background: #ebf8f0; color: var(--green-dark); border-color: #cce8d6; }
.flash.error { background: #fff2f2; color: var(--danger); border-color: #f1cccc; }
.flash.info { background: #eef7ff; color: var(--blue); border-color: #d9ebff; }

.catalog-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.catalog-meta {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--muted);
}
.filter-card,
.panel,
.empty-state {
    padding: 18px;
}
.filter-header {
    display: none;
    margin-bottom: 14px;
}
.filters {
    display: grid;
    gap: 14px;
}
label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; color: var(--text); }
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=file],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #cfdbe5;
    background: #fff;
    outline: none;
    color: var(--text);
}
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(11, 95, 174, 0.45);
    box-shadow: 0 0 0 4px rgba(11, 95, 174, 0.08);
}
textarea { min-height: 140px; resize: vertical; }
.form-grid,
.form-grid-2,
.form-grid-3 {
    display: grid;
    gap: 14px;
}
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }

.product-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 14px;
}
.product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-card .thumb {
    aspect-ratio: 1 / 1;
    background: #f7fafc;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.product-card .thumb img {
    transition: transform 0.28s ease;
}
.product-card:hover .thumb img {
    transform: scale(1.03);
}
.product-card .thumb img,
.product-detail-media .primary img,
.gallery-track img,
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-card .content { padding: 14px; display: grid; gap: 8px; }
.product-card h3 { font-size: 16px; line-height: 1.45; min-height: 46px; }
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--blue); }
.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}
.meta-chip {
    border-radius: 999px;
    background: #f6f8fa;
    padding: 5px 9px;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
}
.price {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue-dark);
}
.product-card .price { font-size: 21px; }
.product-card .product-actions .btn,
.product-card .product-actions button { padding: 10px 13px; font-size: 14px; }
.empty-state { text-align: center; color: var(--muted); }

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    padding: 24px;
}
.product-detail-media .primary {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: #f7fafc;
    border: 1px solid var(--line);
}
.gallery-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-top: 14px;
    padding-bottom: 6px;
}
.gallery-track figure {
    width: 96px;
    min-width: 96px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f7fafc;
    margin: 0;
}
.gallery-track figure.is-active { border-color: rgba(11, 95, 174, 0.55); box-shadow: 0 0 0 2px rgba(11, 95, 174, 0.08); }
.gallery-thumb { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.product-hero { position: relative; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; padding: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; background: rgba(255,255,255,0.92); color: var(--blue); border: 1px solid rgba(11, 95, 174, 0.16); box-shadow: 0 3px 10px rgba(14, 44, 73, 0.08); }
.gallery-nav:hover { background: #fff; color: var(--blue-dark); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(12, 22, 35, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 90;
}
.gallery-modal.is-visible { display: flex; }
.gallery-modal .dialog {
    width: min(1100px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 22px;
    padding: 22px;
}
.gallery-modal .dialog-stage {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #f7fafc;
}
.gallery-modal .dialog-stage img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: #f7fafc;
}
.dialog-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-top: 14px;
}
.dialog-thumbs .gallery-thumb {
    min-width: 90px;
    width: 90px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}
.dialog-thumbs .gallery-thumb.is-active {
    border-color: rgba(11, 95, 174, 0.55);
    box-shadow: 0 0 0 2px rgba(11, 95, 174, 0.08);
}
.dialog-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-modal .close-wrap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.detail-list .spec {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: #f9fbfd;
}
.detail-list strong { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; }
.spec-text {
    padding: 18px;
    border-radius: 16px;
    background: #f8fbfe;
    border: 1px solid var(--line);
}
.product-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }

.cart-layout,
.checkout-layout,
.admin-grid,
.footer-grid,
.stats-grid,
.news-grid {
    display: grid;
    gap: 20px;
}
.cart-layout,
.checkout-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.order-summary,
.sidebar-card { position: sticky; top: 108px; height: fit-content; }
.sidebar-card { max-height: calc(100vh - 130px); overflow: auto; }
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f6;
}
.summary-row.total { border-bottom: 0; font-size: 18px; font-weight: 800; color: var(--blue-dark); }
.table-wrap { overflow: auto; }
.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
.table-wrap th,
.table-wrap td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #edf2f6;
    vertical-align: top;
}
.table-wrap th { font-size: 13px; color: var(--muted); background: #f8fbfe; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { padding: 18px; }
.stat-card strong { display: block; margin-top: 8px; font-size: 28px; }

.site-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    margin-top: 34px;
}
.footer-grid { grid-template-columns: 1.2fr 1fr 1fr; padding: 28px 0 18px; }
.footer-grid h3,
.footer-grid h4 { margin: 0 0 10px; }
.footer-grid p,
.footer-grid li { color: var(--muted); }
.footer-grid ul { margin: 0; padding-left: 18px; }
.footer-bottom {
    padding: 15px 0 24px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid #edf2f6;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-body { background: #f2f5f8; }
.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}
.admin-sidebar {
    background: #0f2740;
    color: #d7e4f2;
    padding: 24px 18px;
}
.admin-sidebar .brand-title,
.admin-sidebar .brand-sub,
.admin-sidebar a { color: #d7e4f2; }
.admin-sidebar .brand { margin-bottom: 22px; }
.admin-nav { flex-direction: column; align-items: stretch; }
.admin-nav a {
    border-radius: 14px;
    padding: 12px 14px;
    color: #d7e4f2;
}
.admin-nav a:hover,
.admin-nav a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-content { padding: 24px; }
.admin-top {
    margin-bottom: 18px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.image-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.image-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.image-card label { padding: 10px; margin: 0; display: flex; gap: 8px; align-items: center; font-size: 12px; }
.login-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f6f9fc 0%, #eef3f7 100%);
    display: grid;
    place-items: center;
    padding: 24px;
}
.login-shell { width: min(460px, 100%); }
.login-card { width: min(460px, 100%); padding: 28px; }
.login-card h1 { margin: 0 0 8px; font-size: 34px; }
.login-card p { margin: 0 0 18px; color: var(--muted); }

.post-card { overflow: hidden; }
.post-cover { display: block; aspect-ratio: 1.8 / 1; overflow: hidden; background: #f7fafc; }
.post-body { padding: 16px; }
.post-body h3 { font-size: 20px; margin: 0 0 8px; }
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sitemap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-list { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.link-list li { color: var(--text); }
.article-layout { max-width: 920px; margin: 0 auto; }
.article-content { padding: 28px; }
.article-content h1 { margin-top: 0; line-height: 1.3; }
.article-content .article-meta { color: var(--muted); margin-bottom: 18px; }
.article-content .article-body { font-size: 16px; }
.article-content .article-body img { max-width: 100%; height: auto; }

@media (max-width: 1100px) {
    .catalog-layout,
    .product-detail,
    .cart-layout,
    .checkout-layout,
    .admin-shell,
    .footer-grid,
    .stats-grid,
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
    .product-grid,
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-summary,
    .sidebar-card { position: static; max-height: none; overflow: visible; }
    .admin-sidebar { padding-bottom: 12px; }
    .image-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


@media (max-width: 760px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    body { padding-bottom: 0; }
    .container { width: min(100% - 16px, 100%); }
    .site-header {
        position: static;
        background: transparent;
        border-bottom: 0;
    }
    .header-main { display: none !important; }
    .page-heading.desktop-heading {
        display: none;
    }
    .section { padding: 18px 0 28px; }
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .sidebar-card.filter-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 85;
        margin: 0;
        border-radius: 22px 22px 0 0;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
        transform: translateY(calc(100% + 20px));
        transition: transform 0.26s ease;
        max-height: min(82vh, 700px);
        overflow: auto;
        box-shadow: 0 -12px 34px rgba(15, 30, 45, 0.18);
    }
    .sidebar-card.filter-card.is-open { transform: translateY(0); }
    .filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;
        position: sticky;
        top: 0;
        background: #fff;
        padding-bottom: 10px;
        z-index: 2;
    }
    .filter-card form {
        display: grid;
        gap: 14px;
    }
    .filter-card form.is-open { display: grid; }
    .mobile-toolbar-row {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 12px;
    }
    .mobile-filter-button {
        min-width: 150px;
        background: #fff;
        color: var(--blue);
        border-color: rgba(11, 95, 174, 0.22);
    }
    .storefront-section {
        padding-top: 16px;
    }
    .storefront-grid.product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .storefront-card {
        border-radius: 16px;
        box-shadow: 0 5px 14px rgba(13, 38, 60, 0.05);
    }
    .storefront-card .content { padding: 11px; }
    .storefront-card h3 {
        font-size: 15px;
        line-height: 1.4;
        min-height: 42px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .storefront-card .price {
        font-size: 18px;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }
    .meta-chip {
        padding: 4px 8px;
        font-size: 10px;
    }
    .compact-subline,
    .compact-availability {
        font-size: 12px;
        line-height: 1.45;
    }
    .compact-actions .btn,
    .compact-actions button {
        font-size: 13px;
        padding: 9px 10px;
    }
    .product-detail {
        padding: 14px;
        gap: 18px;
        border-radius: 18px;
        overflow: hidden;
    }
    .product-detail-media,
    .product-detail-info,
    .product-detail > *,
    .product-spec-grid,
    .product-actions,
    .gallery-track,
    .detail-list {
        min-width: 0;
        width: 100%;
    }
    .product-detail-media .primary {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
    }
    .gallery-track {
        margin-top: 10px;
        gap: 10px;
        overscroll-behavior-x: contain;
    }
    .gallery-track figure {
        flex: 0 0 72px;
        width: 72px;
        min-width: 72px;
    }
    .gallery-nav {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
    .product-title {
        font-size: 27px;
        line-height: 1.25;
        margin-bottom: 10px;
    }
    .product-price {
        font-size: 26px;
        margin-bottom: 14px;
    }
    .product-lead {
        font-size: 14px;
        margin-bottom: 14px;
    }
    .detail-list { grid-template-columns: 1fr 1fr; }
    .product-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: stretch; }
    .table-wrap { display: none; }
    .cart-mobile-list {
        display: grid;
        gap: 12px;
    }
    .product-actions form,
    .product-actions form button,
    .product-actions a,
    .product-actions button { width: 100%; }
    .news-strip-section .page-heading {
        display: grid;
        gap: 8px;
        align-items: start;
    }
    .notice-strip { display: none; }
}

@media (max-width: 580px) {
    .mobile-appbar { padding: 8px 0 10px; }
    .mobile-toolbar {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 8px;
    }
    .mobile-logo-box,
    .mobile-cart-link,
    .mobile-search input { min-height: 42px; height: 42px; }
    .mobile-logo-box { width: 42px; border-radius: 12px; }
    .mobile-appbar-top { margin-bottom: 2px; }
    .mobile-quick-text { font-size: 11px; opacity: 0.96; }
    .mobile-search input { border-radius: 12px; }
    .mobile-chip { font-size: 13px; min-height: 38px; }
    .mobile-top-tabs { gap: 16px; }
    .storefront-mobile-intro { margin-top: 0; }
    .storefront-grid.product-grid { gap: 10px; }
    .storefront-card .content { padding: 10px; }
    .storefront-card h3 { font-size: 14px; min-height: 40px; }
    .storefront-card .price { font-size: 17px; }
    .compact-actions .btn,
    .compact-actions button { font-size: 12px; padding: 9px 8px; }
    .detail-list { grid-template-columns: 1fr; }
    .product-actions { grid-template-columns: 1fr; }
    .product-detail { padding: 12px; }
    .product-title { font-size: 23px; }
    .product-price { font-size: 23px; }
    .gallery-track figure,
    .dialog-thumbs .gallery-thumb { width: 64px; min-width: 64px; }
    .cart-mobile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .mobile-toolbar {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
    }
    .mobile-search input { padding-left: 38px; font-size: 14px; }
    .mobile-chip { padding: 9px 8px; font-size: 12px; }
    .mobile-quick-actions { gap: 6px; }
    .mobile-top-tabs { gap: 16px; }
    .storefront-grid.product-grid { gap: 8px; }
    .product-title { font-size: 24px; }
}

.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 24, 36, 0.42);
    z-index: 80;
}
.filter-overlay.hidden { display: none; }
body.filter-panel-open { overflow: hidden; }

@media (max-width: 420px) {
    .mobile-toolbar {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
    }
    .mobile-search input { padding-left: 38px; font-size: 14px; }
    .mobile-chip { padding: 10px 8px; font-size: 12px; }
    .mobile-top-tabs { gap: 16px; }
}

.admin-logout-form { margin: 0; }
.admin-nav-button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #d7e4f2;
    border-radius: 14px;
    padding: 12px 14px;
    text-align: left;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.admin-nav-button:hover { background: rgba(255,255,255,0.08); color: #fff; }


/* v10 storefront refinements: montserrat, squarer controls, homepage hero banner */
:root {
    --radius: 10px;
    --radius-soft: 8px;
    --radius-panel: 12px;
}

body,
button,
input,
select,
textarea {
    font-family: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
}

.card,
.panel,
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=file],
select,
textarea,
.brand-mark,
.mobile-logo-box,
.mobile-cart-link,
.mobile-search input,
.mobile-chip,
.shortcut-pill,
.badge,
.meta-chip,
.product-detail-media .primary,
.gallery-track figure,
.detail-list .spec,
.spec-text,
.cart-mobile-item,
.cart-mobile-field,
.gallery-modal .dialog,
.gallery-modal .dialog-stage,
.dialog-thumbs .gallery-thumb,
.flash,
.admin-top,
.admin-nav a {
    border-radius: var(--radius-soft);
}

.btn,
button,
input[type=submit],
.btn-outline,
.header-actions .btn-link,
.header-top .btn-link,
.mobile-chip,
.mobile-cart-link,
.product-card .product-actions .btn,
.product-card .product-actions button,
.product-actions .btn,
.product-actions button,
.form-actions .btn,
.form-actions button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    line-height: 1;
    letter-spacing: 0;
}

.header-actions .btn-link,
.header-top .btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-chip {
    min-height: 38px;
    font-size: 12px;
}

.badge,
.meta-chip,
.shortcut-pill,
.mobile-count-pill {
    border-radius: 6px;
}

.product-card .content {
    gap: 10px;
}

.product-card .product-actions,
.compact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.compact-actions form,
.product-actions form,
.compact-actions form button,
.product-actions form button,
.compact-actions a,
.product-actions a,
.compact-actions button,
.product-actions button {
    width: 100%;
}

.product-card .product-actions .btn,
.product-card .product-actions button {
    font-size: 13px;
    font-weight: 700;
}

.product-card .product-actions .btn-outline {
    background: #fff;
    border-color: #c8d6e2;
}

.product-card .product-actions .btn-outline:hover {
    background: #f5f8fb;
}

.desktop-hero-banner {
    margin-bottom: 22px;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    border: 1px solid #111;
    border-radius: 4px;
    background: #000;
    min-height: 360px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.hero-slide {
    min-width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: stretch;
    min-height: 360px;
    background:
        radial-gradient(circle at left top, rgba(255, 160, 0, 0.35), transparent 28%),
        linear-gradient(90deg, #020202 0%, #080808 62%, #111111 100%);
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.0) 45%, rgba(255,190,0,0.12) 100%);
    pointer-events: none;
}

.hero-slide-copy {
    position: relative;
    z-index: 1;
    padding: 34px 34px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    color: #fff;
}

.hero-slide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #f2c94c;
}

.hero-slide-kicker::after {
    content: '';
    width: 52px;
    height: 2px;
    background: #f2c94c;
}

.hero-slide-copy h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 76px);
    line-height: 0.96;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #f2c200;
    -webkit-text-stroke: 2px rgba(255,255,255,0.88);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.34);
}

.hero-slide-copy p {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    color: rgba(255,255,255,0.9);
    max-width: 560px;
}

.hero-slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-slide-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.hero-slide-price {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    color: #fff;
}

.hero-slide-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-slide-actions .btn,
.hero-slide-actions .btn-outline {
    min-width: 150px;
    border-radius: 6px;
}

.hero-slide-actions .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.hero-slide-actions .btn-outline:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.hero-slide-media {
    position: relative;
    overflow: hidden;
}

.hero-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.06) contrast(1.02);
}

.hero-slide-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.10) 38%, rgba(0,0,0,0) 100%);
}

.hero-slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.24);
    background: rgba(0,0,0,0.28);
    color: #fff;
    z-index: 2;
}
.hero-slider-control:hover {
    background: rgba(255,255,255,0.14);
}
.hero-slider-control.prev { left: 14px; }
.hero-slider-control.next { right: 14px; }

.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.34);
    border: 1px solid rgba(255,255,255,0.28);
}
.hero-slider-dot.is-active { background: #fff; }

@media (max-width: 960px) {
    .desktop-hero-banner { margin-bottom: 16px; }
    .hero-banner { min-height: 260px; }
    .hero-slide {
        min-height: 260px;
        grid-template-columns: 1fr;
    }
    .hero-slide-copy {
        position: absolute;
        inset: 0;
        z-index: 2;
        padding: 22px 20px 48px;
        justify-content: flex-end;
        gap: 10px;
        background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.68) 100%);
    }
    .hero-slide-copy h2 {
        font-size: 32px;
        -webkit-text-stroke: 1px rgba(255,255,255,0.84);
    }
    .hero-slide-copy p { font-size: 13px; }
    .hero-slide-price { font-size: 22px; }
    .hero-slide-meta span { min-height: 28px; padding: 0 10px; font-size: 11px; }
    .hero-slide-actions { display: none; }
    .hero-slide-media::after { background: none; }
    .hero-slider-control { width: 38px; height: 38px; }
}

@media (max-width: 768px) {
    .mobile-logo-box,
    .mobile-cart-link {
        border-radius: 6px;
    }
    .mobile-search input,
    .mobile-chip,
    .shortcut-pill,
    .badge,
    .meta-chip,
    .mobile-count-pill {
        border-radius: 6px;
    }
    .product-actions {
        grid-template-columns: 1fr;
    }
    .compact-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* v8.2 storefront patch: yonex header, full-bleed hero, right sidebar, squarer controls */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --blue: #0a66b7;
    --blue-dark: #084d89;
    --green: #0aa255;
    --green-dark: #087d42;
    --radius: 8px;
    --radius-lg: 12px;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
body,
button,
input,
select,
textarea {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.card,
.panel,
input,
select,
textarea,
.badge,
.meta-chip,
.shortcut-pill,
.mobile-chip,
.btn,
button,
input[type=submit],
.btn-outline,
.product-card,
.filter-card,
.sidebar-link,
.category-showcase-card,
.hero-slide-meta span,
.mobile-logo-box,
.mobile-cart-link,
.mobile-search input,
.desktop-header-search,
.back-to-top {
    border-radius: 8px !important;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #d6e1e9;
}
.header-top {
    background: transparent;
    border-bottom: 0;
}
.header-top-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}
.header-top-block {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-size: 13px;
    color: #fff;
}
.header-top-left { background: var(--blue); }
.header-top-right {
    background: var(--green);
    justify-content: flex-end;
    gap: 20px;
}
.header-top-left a,
.header-top-right a,
.header-top-left span,
.header-top-right span { color: #fff; }
.header-divider { opacity: 0.85; }
.header-utility-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    font-weight: 700;
}
.header-utility-link::after,
.main-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}
.header-utility-link:hover::after,
.header-utility-link.active::after,
.main-menu a:hover::after,
.main-menu a.active::after { transform: scaleX(1); }
.header-main {
    background: linear-gradient(90deg, var(--blue) 0 50%, var(--green) 50% 100%);
    color: #fff;
}
.header-main-inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: 320px minmax(320px, 1fr) auto;
    gap: 20px;
    align-items: center;
}
.header-main .brand,
.header-main .brand:hover,
.header-main .brand-title,
.header-main .brand-sub,
.header-main .main-menu a {
    color: #fff;
}
.brand-mark {
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.08);
}
.brand-mark.has-image { border-color: rgba(255,255,255,0.24); }
.brand-sub { color: rgba(255,255,255,0.86); }
.desktop-header-search {
    display: grid;
    grid-template-columns: 24px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 8px 0 14px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: none;
}
.desktop-search-icon { color: #7a8896; font-size: 18px; }
.desktop-header-search input {
    border: 0;
    background: transparent;
    min-width: 0;
    padding: 0;
    height: 44px;
}
.desktop-header-search button {
    min-height: 36px;
    padding: 0 16px;
    border-radius: 6px !important;
    background: var(--blue);
    color: #fff;
}
.main-menu {
    justify-content: flex-end;
    gap: 20px;
}
.main-menu a {
    position: relative;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}
.main-menu a::after { bottom: 8px; }

.hero-fullbleed-section {
    margin: 0 0 28px;
}
.hero-banner-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
    min-height: 400px;
}
.hero-slide-banneronly {
    grid-template-columns: 1fr;
    min-height: 400px;
}
.hero-slide-fullmedia,
.hero-slide-fullmedia img {
    width: 100%;
    height: 100%;
}
.hero-slide-fullmedia img { object-fit: cover; }
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    max-width: 52%;
    padding: 42px 6vw 70px;
    gap: 12px;
    background: linear-gradient(90deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.48) 32%, rgba(0,0,0,0.06) 66%, rgba(0,0,0,0) 100%);
}
.hero-slide-overlay h2 {
    font-size: clamp(34px, 5vw, 88px);
    line-height: 0.92;
    max-width: 760px;
}
.hero-slide-overlay p {
    max-width: 560px;
    font-size: 17px;
}
.hero-slider-control {
    border-radius: 999px !important;
    border-color: rgba(255,255,255,0.32);
}
.hero-slider-dots {
    bottom: 22px;
}
.hero-slider-dot {
    width: 10px;
    height: 10px;
}

.storefront-title-row {
    margin-bottom: 16px;
}
.homepage-category-showcase {
    margin-bottom: 22px;
}
.section-title-line {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.section-title-line h2 {
    margin: 0;
    font-size: 24px;
}
.section-title-line span {
    color: var(--muted);
    font-size: 13px;
}
.category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.category-showcase-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}
.category-showcase-card:hover {
    border-color: var(--blue);
    color: var(--text);
}
.category-showcase-media {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f5f7fa;
    overflow: hidden;
}
.category-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-showcase-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.catalog-layout-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}
.catalog-main {
    min-width: 0;
}
.sidebar-right {
    position: sticky;
    top: 110px;
}
.sidebar-nav-block {
    display: grid;
    gap: 8px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.sidebar-heading {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.sidebar-link-list {
    display: grid;
    gap: 6px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}
.sidebar-link:hover,
.sidebar-link.is-active {
    border-color: var(--blue);
    color: var(--blue);
    background: #f7fbff;
}
.filter-card {
    border-radius: 10px !important;
    box-shadow: 0 8px 18px rgba(16, 46, 78, 0.05);
}
.filters label {
    font-weight: 700;
    font-size: 13px;
}
.filters input,
.filters select,
.filters textarea {
    min-height: 42px;
    border: 1px solid #cfd9e3;
    background: #fff;
}
.filters .form-actions,
.sticky-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.storefront-grid.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.product-card,
.storefront-card {
    border-radius: 10px !important;
    box-shadow: 0 6px 16px rgba(13, 38, 60, 0.05);
}
.storefront-card .thumb,
.product-card .thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px 8px 0 0 !important;
}
.storefront-card .content {
    padding: 14px;
}
.meta-chip {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.compact-actions-square,
.product-actions.compact-actions-square {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: stretch;
}
.compact-actions-square .btn,
.compact-actions-square button {
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px !important;
    font-size: 13px;
    font-weight: 700;
}
.compact-actions-square .btn-outline {
    background: #fff;
    border: 1px solid #c8d6e2;
    color: var(--blue);
}
.compact-actions-square form { margin: 0; }

.btn,
button,
input[type=submit],
.btn-outline {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px !important;
    font-weight: 700;
    box-shadow: none;
}
.btn-outline {
    background: #fff;
    border: 1px solid #cdd8e2;
    color: var(--blue);
}
.product-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}
.product-actions .btn,
.product-actions button,
.product-actions form button {
    width: 100%;
    min-height: 44px;
}
.product-detail,
.product-spec-grid,
.spec-block,
.gallery-track figure,
.dialog-thumbs .gallery-thumb {
    border-radius: 10px !important;
}
.product-detail {
    overflow: hidden;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    padding: 0;
    z-index: 90;
    border: 0;
    background: var(--blue);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .header-main-inner {
        grid-template-columns: 280px minmax(260px, 1fr) auto;
        gap: 14px;
    }
    .storefront-grid.product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .hero-banner-full {
        min-height: 250px;
        margin-bottom: 0;
    }
    .hero-slide-banneronly,
    .hero-banner-full .hero-slide {
        min-height: 250px;
    }
    .hero-slide-overlay {
        max-width: 100%;
        padding: 18px 18px 48px;
        justify-content: flex-end;
    }
    .hero-slide-overlay h2 {
        font-size: 30px;
        -webkit-text-stroke: 1px rgba(255,255,255,0.88);
    }
    .hero-slide-overlay p { font-size: 13px; }
    .section-title-line {
        display: grid;
        gap: 6px;
        align-items: start;
    }
    .category-showcase-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .catalog-layout-right {
        grid-template-columns: 1fr;
    }
    .sidebar-right {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(360px, 92vw);
        z-index: 90;
        transform: translateX(102%);
        transition: transform 0.26s ease;
        overflow-y: auto;
        background: #fff;
        padding: 20px;
        border-radius: 0 !important;
    }
    .sidebar-right.is-open,
    #catalog-filters.is-open { transform: translateX(0); }
    .storefront-grid.product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .product-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .category-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .storefront-grid.product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .compact-actions-square .btn,
    .compact-actions-square button {
        min-height: 38px;
        height: 38px;
        font-size: 12px;
    }
}
