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

:root {
    --v82-blue: #0a66b7;
    --v82-green: #0aa255;
    --v82-blue-dark: #084d89;
    --v82-text-light: rgba(255,255,255,0.92);
    --v82-radius: 6px;
}

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,
.mobile-logo-box,
.mobile-cart-link,
.mobile-search input,
.desktop-header-search,
.back-to-top,
.brand-mark,
.hero-slide-media,
.storefront-card .thumb,
.product-card .thumb,
.gallery-track figure,
.dialog-thumbs .gallery-thumb,
.product-spec-grid,
.spec-block,
.product-detail {
    border-radius: var(--v82-radius) !important;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #d6e1e9;
}
.header-top {
    background: var(--v82-blue);
    border-bottom: 0;
}
.header-top-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.header-top-left,
.header-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 42px;
    font-size: 13px;
    color: #fff;
}
.header-top-left a,
.header-top-right a,
.header-top-left span,
.header-top-right span {
    color: #fff;
}
.header-divider { opacity: 0.85; }
.header-main {
    background: var(--v82-green);
    color: #fff;
}
.header-main-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: 48px 310px minmax(320px, 1fr) auto;
    gap: 16px;
    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-sub { color: var(--v82-text-light); }
.header-utility-link,
.main-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    font-weight: 700;
    color: #fff;
}
.header-utility-link::after,
.main-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7px;
    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-sidebar-trigger {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}
.header-sidebar-trigger:hover { background: rgba(255,255,255,0.18); }
.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.96);
    border: 1px solid rgba(255,255,255,0.18);
    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: 4px !important;
    background: var(--v82-blue);
    color: #fff;
}
.main-menu {
    justify-content: flex-end;
    gap: 18px;
}

.hero-fullbleed-section {
    margin: 0 0 24px;
}
.hero-fullbleed-section .container {
    width: min(1220px, calc(100% - 28px));
}
.hero-banner-full {
    width: 100%;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
    min-height: clamp(230px, 27vw, 340px);
    overflow: hidden;
}
.hero-slide-banneronly,
.hero-banner-full .hero-slide {
    min-height: clamp(230px, 27vw, 340px);
}
.hero-slide-banneronly::before,
.hero-banner-full::before {
    display: none;
}
.hero-slide-fullmedia,
.hero-slide-fullmedia img {
    width: 100%;
    height: 100%;
}
.hero-slide-fullmedia img {
    object-fit: cover;
    object-position: center center;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    max-width: 42%;
    padding: 28px 34px 52px;
    gap: 10px;
    background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.42) 36%, rgba(0,0,0,0.02) 70%, rgba(0,0,0,0) 100%);
}
.hero-slide-overlay h2 {
    font-size: clamp(26px, 4vw, 60px);
    line-height: 0.96;
    max-width: 680px;
}
.hero-slide-overlay p {
    max-width: 440px;
    font-size: 14px;
}
.hero-slider-control {
    border-radius: 999px !important;
    border-color: rgba(255,255,255,0.32);
}
.hero-slider-dots { bottom: 18px; }
.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(--v82-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: block; }
.catalog-main { min-width: 0; }
.sidebar-right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 92vw);
    z-index: 110;
    transform: translateX(102%);
    transition: transform 0.26s ease;
    overflow-y: auto;
    background: #fff;
    padding: 20px;
    border-left: 1px solid var(--line);
    box-shadow: -14px 0 30px rgba(16, 46, 78, 0.12);
    border-radius: 0 !important;
}
.sidebar-right.is-open,
#catalog-filters.is-open { transform: translateX(0); }
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.filter-close-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 0;
}
.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(--v82-blue);
    color: var(--v82-blue);
    background: #f7fbff;
}
.filter-card {
    border-radius: 0 !important;
    box-shadow: none;
}
.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: 6px !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: 6px 6px 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: 6px !important;
    font-size: 13px;
    font-weight: 700;
}
.compact-actions-square .btn-outline {
    background: #fff;
    border: 1px solid #c8d6e2;
    color: var(--v82-blue);
}
.compact-actions-square form { margin: 0; }

.btn,
button,
input[type=submit],
.btn-outline {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 6px !important;
    font-weight: 700;
    box-shadow: none;
}
.btn-outline {
    background: #fff;
    border: 1px solid #cdd8e2;
    color: var(--v82-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;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    padding: 0;
    z-index: 90;
    border: 0;
    background: var(--v82-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: 44px 280px minmax(240px, 1fr) auto;
        gap: 12px;
    }
    .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: 220px;
        margin-bottom: 0;
    }
    .hero-slide-banneronly,
    .hero-banner-full .hero-slide {
        min-height: 220px;
    }
    .hero-slide-overlay {
        max-width: 100%;
        padding: 18px 18px 42px;
        justify-content: flex-end;
    }
    .hero-slide-overlay h2 {
        font-size: 28px;
        -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));
    }
    .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;
    }
}

/* v8.4 header + hero refinement */
.site-header,
.header-top,
.header-main,
.mobile-appbar,
.mobile-strip {
    width: 100%;
}
.site-header {
    display: block;
    background: transparent;
    border-bottom: 0;
}
.header-top {
    background: var(--v82-blue);
}
.header-main {
    background: var(--v82-green);
}
.header-top-inner {
    min-height: 28px;
    padding: 0;
}
.header-top-left,
.header-top-right {
    min-height: 28px;
    gap: 14px;
    font-size: 12px;
    white-space: nowrap;
}
.header-main-inner {
    min-height: 56px;
    grid-template-columns: 320px minmax(300px, 1fr) auto 44px;
    gap: 14px;
}
.header-main .brand {
    min-width: 0;
}
.header-main .brand-sub {
    opacity: 0.92;
}
.header-main .main-menu {
    gap: 16px;
}
.header-main .main-menu a,
.header-top .header-utility-link {
    min-height: 32px;
    font-size: 14px;
}
.header-main .main-menu a::after,
.header-top .header-utility-link::after {
    bottom: 4px;
}
.header-sidebar-trigger,
.mobile-menu-link {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.10);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    border-radius: 4px !important;
    box-shadow: none;
}
.header-sidebar-trigger:hover,
.mobile-menu-link:hover {
    background: rgba(255,255,255,0.16);
}
.desktop-header-search {
    min-height: 40px;
    height: 40px;
    padding: 0 6px 0 12px;
    border: 0;
    border-radius: 4px !important;
}
.desktop-header-search input {
    height: 38px;
}
.desktop-header-search button {
    min-height: 32px;
    height: 32px;
    padding: 0 14px;
    background: var(--v82-blue-dark);
    border-radius: 4px !important;
}

.hero-fullbleed-section {
    margin: 0 0 20px;
}
.hero-fullbleed-section .container {
    width: min(1280px, calc(100% - 28px));
}
.hero-banner-full {
    position: relative;
    min-height: 300px;
    background: #050505;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
    overflow: hidden;
}
.hero-banner-full .hero-slider-track {
    height: 100%;
}
.hero-banner-full .hero-slide,
.hero-slide-banneronly {
    position: relative;
    min-height: 300px;
    background: linear-gradient(90deg, #120700 0%, #050505 22%, #0a0a0a 100%);
    overflow: hidden;
}
.hero-slide-banneronly::before,
.hero-slide-banneronly::after,
.hero-banner-full::before {
    display: block;
    content: '';
    position: absolute;
    pointer-events: none;
}
.hero-slide-banneronly::before {
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.16) 100%);
    z-index: 0;
}
.hero-slide-banneronly.is-generated::after {
    top: 0;
    right: 0;
    bottom: 0;
    width: 19%;
    background:
        linear-gradient(135deg, rgba(228,178,28,0) 0%, rgba(228,178,28,0.16) 40%, rgba(228,178,28,0) 100%),
        repeating-linear-gradient(135deg, rgba(228,178,28,0.0) 0, rgba(228,178,28,0.0) 15px, rgba(228,178,28,0.25) 16px, rgba(228,178,28,0.25) 18px);
    z-index: 1;
}
.hero-slide-media {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0 36px 0 0;
    background: transparent !important;
    border-radius: 0 !important;
}
.hero-slide-banneronly.is-generated .hero-slide-media img {
    width: min(51%, 620px);
    height: 100%;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.28));
}
.hero-slide-banneronly.is-custom .hero-slide-media {
    padding: 0;
}
.hero-slide-banneronly.is-custom .hero-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 2;
    width: min(50%, 560px);
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    padding: 34px 0 46px 42px;
    background: linear-gradient(90deg, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.46) 62%, rgba(0,0,0,0.04) 100%);
}
.hero-slide-kicker {
    color: #ddb73b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.hero-slide-kicker::after {
    content: '';
    display: inline-block;
    width: 34px;
    height: 1px;
    margin-left: 10px;
    vertical-align: middle;
    background: #ddb73b;
}
.hero-slide-overlay h2 {
    margin: 0;
    max-width: 86%;
    color: #efc21d;
    font-size: clamp(40px, 4.9vw, 74px);
    line-height: 0.94;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 2px 0 rgba(255,255,255,0.72);
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.72);
}
.hero-slide-overlay p {
    margin: 0;
    max-width: 72%;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255,255,255,0.92);
}
.hero-slider-control {
    width: 42px;
    height: 42px;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,0.38);
    background: rgba(0,0,0,0.20);
    color: #fff;
    z-index: 3;
}
.hero-slider-control.prev { left: 18px; }
.hero-slider-control.next { right: 18px; }
.hero-slider-dots {
    bottom: 14px;
    z-index: 3;
}
.hero-slider-dot {
    width: 9px;
    height: 9px;
    border: 1px solid rgba(255,255,255,0.66);
    background: transparent;
}
.hero-slider-dot.is-active {
    background: #fff;
}

.mobile-strip-top {
    background: var(--v82-blue);
}
.mobile-strip-bottom {
    background: var(--v82-green);
}
.mobile-appbar {
    background: transparent !important;
    padding: 0;
    border-bottom: 0;
    box-shadow: none;
}
.mobile-appbar .container {
    display: grid;
    gap: 0;
}
.mobile-appbar-top {
    min-height: 30px;
    display: flex;
    align-items: center;
}
.mobile-quick-text {
    min-height: 30px;
    color: rgba(255,255,255,0.94);
}
.mobile-toolbar {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 40px 40px;
    gap: 8px;
    align-items: center;
    padding: 10px 0 8px;
}
.mobile-logo-box,
.mobile-cart-link {
    min-height: 40px;
    height: 40px;
    border-radius: 4px !important;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.10);
    box-shadow: none;
    color: #fff;
}
.mobile-search input {
    height: 40px;
    padding: 0 12px 0 36px;
    border-radius: 4px !important;
    box-shadow: none;
}
.mobile-search-icon {
    left: 12px;
    font-size: 16px;
}
.mobile-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 8px;
}
.mobile-chip {
    min-height: 36px;
    border-radius: 4px !important;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
    color: #fff;
    box-shadow: none;
}
.mobile-chip.primary {
    background: rgba(255,255,255,0.96);
    color: var(--v82-blue);
    border-color: rgba(255,255,255,0.96);
}
.mobile-top-tabs {
    padding: 0 0 10px;
}
.mobile-top-tabs a {
    color: rgba(255,255,255,0.85);
}
.mobile-top-tabs a.active {
    color: #fff;
}
.mobile-top-tabs a.active::after {
    bottom: -4px;
    height: 2px;
    background: rgba(255,255,255,0.96);
    border-radius: 0;
}

@media (max-width: 1180px) {
    .header-main-inner {
        grid-template-columns: 280px minmax(240px, 1fr) auto 44px;
        gap: 12px;
    }
    .header-main .main-menu {
        gap: 14px;
    }
}

@media (max-width: 1024px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .hero-fullbleed-section .container {
        width: min(100%, calc(100% - 16px));
    }
    .hero-banner-full,
    .hero-slide-banneronly,
    .hero-banner-full .hero-slide {
        min-height: 230px;
    }
    .hero-slide-media {
        padding: 0;
    }
    .hero-slide-banneronly.is-generated .hero-slide-media img,
    .hero-slide-banneronly.is-custom .hero-slide-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        filter: none;
    }
    .hero-slide-overlay {
        width: 100%;
        padding: 18px 14px 34px;
        justify-content: flex-end;
        background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.24) 42%, rgba(0,0,0,0.76) 100%);
    }
    .hero-slide-kicker {
        font-size: 10px;
        letter-spacing: 0.12em;
    }
    .hero-slide-kicker::after {
        display: none;
    }
    .hero-slide-overlay h2 {
        max-width: 74%;
        font-size: 27px;
        line-height: 0.96;
        -webkit-text-stroke: 1px rgba(255,255,255,0.70);
    }
    .hero-slide-overlay p {
        max-width: 72%;
        font-size: 12px;
    }
    .hero-slider-control {
        width: 34px;
        height: 34px;
    }
    .hero-slider-control.prev { left: 8px; }
    .hero-slider-control.next { right: 8px; }
    .hero-slider-dots { bottom: 10px; }
}

@media (max-width: 640px) {
    .mobile-toolbar {
        grid-template-columns: 34px minmax(0, 1fr) 34px 34px;
        gap: 6px;
        padding: 8px 0 8px;
    }
    .mobile-logo-box,
    .mobile-cart-link,
    .mobile-menu-link {
        min-height: 34px;
        height: 34px;
        width: 34px;
    }
    .mobile-search input {
        height: 34px;
        padding-left: 32px;
        font-size: 13px;
    }
    .mobile-search-icon {
        left: 10px;
        font-size: 14px;
    }
    .mobile-chip {
        min-height: 32px;
        font-size: 12px;
        padding: 8px 10px;
    }
    .mobile-top-tabs {
        gap: 18px;
    }
    .hero-banner-full,
    .hero-slide-banneronly,
    .hero-banner-full .hero-slide {
        min-height: 205px;
    }
    .hero-slide-overlay {
        padding: 14px 12px 28px;
    }
    .hero-slide-overlay h2 {
        max-width: 82%;
        font-size: 21px;
    }
    .hero-slide-overlay p {
        max-width: 80%;
        font-size: 11px;
    }
}

/* v8.4.1 desktop header top-bar color fix */
.header-top-left,
.header-top-right {
    background: transparent !important;
}
.header-top {
    background: var(--v82-blue) !important;
}
.header-top .container,
.header-top-inner {
    background: transparent !important;
}
