/* XNParts Storefront Stylesheet (inspired by https://xnparts.pt/) */
:root {
    --blue1: #6782BB;
    --blue2: #536B9D;
    --black2: #27241F;
    --grey1: #868587;
    --grey2: #5B5C5B;
    --grey3: #222421;
    --grey4: #464441;
    --bg: #DCDDDE;
    --red1: #C01D19;
    --red2: #CC565E;
    --gold: #ddbb6b;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    color: var(--grey4);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.22) 0px,
        rgba(255, 255, 255, 0.22) 6px,
        rgba(0, 0, 0, 0.03) 6px,
        rgba(0, 0, 0, 0.03) 12px
    );
    overflow-x: hidden;
}

.xn-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
}

.font-bebas {
    font-family: 'Bebas Neue', 'Roboto', sans-serif;
    letter-spacing: 0.6px;
}

a { color: var(--blue1); transition: all 0.2s ease; }
a:hover { color: var(--blue2); text-decoration: none; }

/* Header */
.xn-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    height: 84px;
    display: flex;
    align-items: center;
    padding: 12px 48px;
    background-color: var(--black2);
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.05) 6px,
        transparent 6px,
        transparent 12px
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.25s ease;
}

.xn-header.is-home {
    background-color: rgba(0, 0, 0, 0.78);
    background-image: none;
    border-bottom: none;
}

.xn-header.is-home:hover,
.xn-header.is-home.scrolled {
    background-color: #000000;
}

.xn-header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xn-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.xn-brand-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.xn-menu-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s ease, border-color 0.2s ease, color 0.2s ease;
}

.xn-menu-btn:hover {
    transform: rotate(180deg);
    border-color: var(--blue1);
    color: var(--blue1);
}

.xn-header-right {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #ffffff;
}

.xn-login-trigger {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    color: #ffffff;
    font-style: italic;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.xn-login-trigger:hover { color: var(--blue1); }

.xn-cart-link {
    position: relative;
    color: #ffffff;
    font-size: 25px;
    display: inline-flex;
    align-items: center;
}

.xn-cart-link:hover { color: var(--blue1); }

.xn-cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 50%;
    background: var(--red1);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.xn-social-circles {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xn-social-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.xn-social-circle:hover {
    background: var(--blue2);
    color: #ffffff;
}

.xn-header-phones {
    text-align: right;
    line-height: 1.25;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 17px;
    letter-spacing: 0.6px;
    font-style: italic;
}

.xn-header-phones a {
    color: #ffffff;
    display: block;
}

.xn-header-phones a:hover { color: var(--blue1); }

/* Slide-Out Menu Drawer */
.xn-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.xn-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.xn-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 310px;
    max-width: 86vw;
    background: #1f1d1a;
    color: #ffffff;
    z-index: 1060;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
}

.xn-drawer.open { transform: translateX(0); }

.xn-drawer-head {
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xn-drawer-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.xn-drawer-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.xn-drawer-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px;
    color: #e4e6eb;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.xn-drawer-list li a span.num {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--blue1);
    font-size: 18px;
    min-width: 24px;
}

.xn-drawer-list li a:hover {
    background: rgba(103, 130, 187, 0.16);
    color: #ffffff;
    padding-left: 28px;
}

.xn-drawer-foot {
    margin-top: auto;
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.xn-drawer-foot a { color: #d5d8de; display: block; margin-bottom: 8px; }
.xn-drawer-foot a:hover { color: var(--blue1); }

/* Main Offset */
.xn-main {
    padding-top: 84px;
}
.xn-main.is-home {
    padding-top: 0;
}

/* Hero Carousel */
.xn-hero {
    position: relative;
    height: clamp(320px, 52vw, 740px);
    background: #121417;
    overflow: hidden;
    color: #ffffff;
}

.xn-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: block;
    pointer-events: none;
}

.xn-hero-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.xn-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.xn-hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding-top: 40px;
}

.xn-hero-tag {
    display: inline-block;
    background: rgba(103, 130, 187, 0.25);
    border: 1px solid var(--blue1);
    color: #d6e2ff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.xn-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 62px;
    line-height: 0.98;
    margin: 0 0 14px;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.xn-hero p {
    font-size: 18px;
    color: #d3d7df;
    margin: 0 0 26px;
}

.xn-btn-hero {
    display: inline-block;
    background: var(--blue1);
    color: #ffffff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    padding: 10px 28px;
    border: none;
}

.xn-btn-hero:hover {
    background: var(--blue2);
    color: #ffffff;
}

.xn-hero-gear-bg {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: 390px;
    height: 390px;
    opacity: 0.12;
    pointer-events: none;
}

.xn-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}
.xn-hero-arrow.prev { left: 20px; }
.xn-hero-arrow.next { right: 20px; }
.xn-hero-arrow:hover { background: var(--blue1); border-color: var(--blue1); }

.xn-hero-dots {
    position: absolute;
    bottom: 62px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.38);
    padding: 6px 12px;
    border-radius: 20px;
}
.xn-hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    border: none;
}
.xn-hero-dot.active { background: var(--blue1); }

/* Search / Vehicle Finder Bar */
.xn-search-bar-wrap {
    position: relative;
    z-index: 20;
    margin-top: -46px;
}

.xn-search-tabs {
    display: flex;
}

.xn-search-tab {
    background: var(--grey2);
    color: #ffffff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 0.8px;
    padding: 10px 26px;
    border: none;
    cursor: pointer;
    margin-right: 4px;
}

.xn-search-tab.active {
    background: var(--grey3);
    color: #ffffff;
}

.xn-search-panel {
    background: var(--grey3);
    border-bottom: 6px solid var(--blue1);
    padding: 22px 24px 26px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.xn-search-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 0.8px;
    margin: 0 0 12px;
    color: #ffffff;
}

.xn-finder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 160px;
    gap: 12px;
}

.xn-part-grid {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
}

.xn-finder-grid select,
.xn-part-grid input {
    height: 44px;
    border-radius: 0;
    border: 1px solid #444743;
    background: #ffffff;
    color: var(--grey4);
    padding: 0 12px;
    font-size: 14px;
    width: 100%;
}

.xn-btn-search {
    height: 44px;
    background: var(--blue1);
    color: #ffffff;
    border: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
}

.xn-btn-search:hover { background: var(--blue2); }

/* Section Headers */
.xn-section-header {
    text-align: center;
    padding: 48px 15px 30px;
}

.xn-section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    color: var(--black2);
    margin: 0 0 6px;
    letter-spacing: 1px;
}

.xn-section-header p {
    color: var(--grey2);
    font-size: 15px;
    margin: 0;
}

/* Categories 4x2 Tile Grid */
.xn-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.xn-cat-tile {
    position: relative;
    height: 250px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, #272b31 0%, #16181c 100%);
}

.xn-cat-tile:nth-child(even) {
    background: linear-gradient(145deg, #20242a 0%, #121417 100%);
}

.xn-cat-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(103, 130, 187, 0.14) 0%, rgba(0, 0, 0, 0.55) 100%);
    transition: background 0.28s ease;
}

.xn-cat-tile:hover::before {
    background: rgba(16, 20, 28, 0.82);
}

.xn-cat-tile-inner {
    position: relative;
    z-index: 2;
}

.xn-cat-tile i {
    font-size: 44px;
    color: var(--blue1);
    margin-bottom: 14px;
    transition: transform 0.28s ease;
}

.xn-cat-tile:hover i {
    transform: scale(1.1);
}

.xn-cat-tile h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 27px;
    letter-spacing: 1px;
    margin: 0;
    color: #ffffff;
}

.xn-cat-tile .xn-cat-sub {
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
    font-size: 13px;
    color: #cfd8ec;
    margin-top: 6px;
}

.xn-cat-tile:hover .xn-cat-sub {
    opacity: 1;
    transform: translateY(0);
}

.xn-cat-count {
    font-size: 11px;
    color: #9ba3b4;
    margin-top: 4px;
    letter-spacing: 0.4px;
}

/* Brands 4x2 Grid */
.xn-brands-wrap {
    padding-bottom: 60px;
}

.xn-brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    border-top: 1px solid var(--grey1);
    border-left: 1px solid var(--grey1);
}

.xn-brand-cell {
    height: 136px;
    border-right: 1px solid var(--grey1);
    border-bottom: 1px solid var(--grey1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #555;
    padding: 16px;
    transition: all 0.25s ease;
}

.xn-brand-cell .brand-wordmark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 2px;
    color: #77797d;
    transition: color 0.25s ease, transform 0.25s ease;
}

.xn-brand-cell .brand-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #b5b7bc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #77797d;
    margin-bottom: 6px;
    transition: all 0.25s ease;
}

.xn-brand-cell:hover {
    background: #f5f7fc;
}

.xn-brand-cell:hover .brand-wordmark {
    color: var(--blue2);
    transform: scale(1.06);
}

.xn-brand-cell:hover .brand-ring {
    border-color: var(--blue1);
    color: var(--blue1);
    background: rgba(103, 130, 187, 0.1);
}

/* Featured Products Banner + Overlapping 4x2 Cards */
.xn-featured-banner {
    background:
        linear-gradient(rgba(16, 18, 22, 0.84), rgba(16, 18, 22, 0.90)),
        radial-gradient(circle at 50% 20%, #2a3444 0%, #101215 80%);
    border-top: 6px solid var(--blue1);
    border-bottom: 6px solid var(--blue1);
    padding: 58px 0 110px;
    text-align: center;
    color: #ffffff;
}

.xn-featured-banner h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    letter-spacing: 1px;
    margin: 0 0 8px;
}

.xn-featured-banner p {
    color: #c5cad4;
    margin: 0;
}

.xn-featured-grid-wrap {
    margin-top: -76px;
    padding-bottom: 50px;
}

.xn-products-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.xn-products-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Product Card */
.xn-card {
    background: #ffffff;
    border: 1px solid var(--grey1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.xn-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.xn-card-img-wrap {
    position: relative;
    height: 235px;
    background: #e9ecf0;
    overflow: hidden;
    display: block;
}

.xn-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.xn-card:hover .xn-card-img-wrap img {
    transform: scale(1.08);
}

.xn-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.xn-card-body {
    padding: 14px 14px 10px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.xn-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--grey4);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 8px;
    display: block;
}

.xn-card-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: var(--blue1);
    margin: 0;
}

.xn-card-btn {
    display: block;
    width: 100%;
    background: var(--blue1);
    color: #ffffff;
    text-align: center;
    padding: 10px 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 17px;
    letter-spacing: 0.8px;
    border: none;
    text-transform: uppercase;
}

.xn-card-btn:hover {
    background: var(--blue2);
    color: #ffffff;
}

/* Magazine / News Section */
.xn-news-section {
    padding: 20px 0 60px;
}

.xn-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.xn-news-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.xn-news-thumb {
    height: 190px;
    background: linear-gradient(135deg, #27241F 0%, #3d4b63 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 46px;
}

.xn-news-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.xn-news-date {
    font-size: 12px;
    color: var(--grey1);
    margin-bottom: 6px;
}

.xn-news-body h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: var(--black2);
    margin: 0 0 8px;
}

.xn-news-body p {
    font-size: 13px;
    color: var(--grey2);
    flex: 1;
}

.xn-btn-outline {
    display: inline-block;
    border: 2px solid var(--blue1);
    color: var(--blue1);
    padding: 9px 26px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 19px;
    letter-spacing: 0.8px;
}

.xn-btn-outline:hover {
    background: var(--blue1);
    color: #ffffff;
}

/* Breadcrumb Bar (Listing & Product Detail) */
.xn-breadcrumb-bar {
    background: var(--blue1);
    color: #ffffff;
    padding: 13px 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 0.8px;
}

.xn-breadcrumb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.xn-crumb-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xn-crumb-sq {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--red1);
}

.xn-crumb-clear {
    color: var(--red1);
    background: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

/* Catalog Layout */
.xn-catalog-wrap {
    padding: 28px 0 56px;
}

.xn-catalog-grid {
    display: grid;
    grid-template-columns: 275px 1fr;
    gap: 24px;
    align-items: start;
}

.xn-sidebar {
    background: #ffffff;
    border: 1px solid #cfcfd2;
    padding: 16px;
}

.xn-sidebar-search {
    display: flex;
    margin-bottom: 16px;
}

.xn-sidebar-search input {
    flex: 1;
    height: 38px;
    border: 1px solid #ccc;
    padding: 0 10px;
    font-size: 13px;
}

.xn-sidebar-search button {
    width: 40px;
    height: 38px;
    background: var(--blue1);
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.xn-price-box {
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    padding: 14px 0;
    margin-bottom: 12px;
}

.xn-price-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    color: var(--black2);
    margin-bottom: 8px;
}

.xn-price-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.xn-price-inputs input {
    width: 100%;
    height: 32px;
    border: 1px solid #ccc;
    padding: 0 8px;
    font-size: 12px;
}

.xn-accordion {
    border-bottom: 1px solid #ececec;
}

.xn-accordion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    color: var(--black2);
    cursor: pointer;
    user-select: none;
}

.xn-accordion-body {
    display: none;
    max-height: 210px;
    overflow-y: auto;
    padding-bottom: 10px;
}

.xn-accordion.open .xn-accordion-body {
    display: block;
}

.xn-check-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--grey4);
    margin-bottom: 5px;
    cursor: pointer;
}

.xn-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
}

.xn-pagination a {
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 6px 16px;
    color: var(--black2);
}

.xn-pagination a:hover {
    background: var(--blue1);
    color: #ffffff;
    border-color: var(--blue1);
}

/* Product Detail Page */
.xn-detail-wrap {
    padding: 28px 0 56px;
}

.xn-detail-top {
    background: #ffffff;
    border: 1px solid #d2d2d4;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 24px;
}

.xn-detail-gallery-main {
    position: relative;
    height: 410px;
    background: #eaedf1;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xn-detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.xn-detail-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.xn-thumb-btn {
    width: 78px;
    height: 62px;
    padding: 2px;
    border: 2px solid #d4d6dc;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.xn-thumb-btn.active,
.xn-thumb-btn:hover {
    border-color: var(--blue1);
}

.xn-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xn-detail-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 34px;
    line-height: 1.08;
    color: var(--black2);
    margin: 0 0 10px;
}

.xn-detail-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.xn-detail-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 38px;
    color: var(--blue1);
}

.xn-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.xn-meta-table td {
    border: 1px solid #e3e3e5;
    padding: 8px 12px;
    font-size: 13px;
}

.xn-meta-table td.lbl {
    width: 40%;
    font-weight: 600;
    background: #f8f9fb;
}

.xn-meta-table td.val {
    color: var(--red1);
    font-weight: 700;
}

.xn-specs-box {
    background: #ffffff;
    border: 1px solid #d2d2d4;
    padding: 24px;
    margin-bottom: 34px;
}

.xn-specs-box h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--black2);
    border-bottom: 2px solid var(--blue1);
    padding-bottom: 6px;
    margin: 0 0 16px;
}

.xn-legal-notice {
    margin-top: 14px;
    color: var(--red1);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
}

/* Footer */
.xn-footer {
    background: var(--blue1);
    color: #1c222d;
    padding-top: 44px;
}

.xn-footer-cols {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr 1fr 1fr 1.1fr;
    gap: 24px;
    padding-bottom: 32px;
}

.xn-footer h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: #1f242c;
    border-bottom: 1px solid rgba(31, 36, 44, 0.35);
    padding-bottom: 6px;
    margin: 0 0 12px;
}

.xn-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xn-footer ul li { margin-bottom: 6px; }
.xn-footer ul li a { color: #19202b; font-size: 13px; }
.xn-footer ul li a:hover { color: #ffffff; text-decoration: underline; }

.xn-newsletter-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xn-newsletter-captcha {
    display: flex;
    gap: 8px;
    align-items: center;
}

.xn-captcha-badge {
    background: #27241F;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 7px 12px;
    user-select: none;
    font-size: 14px;
}

.xn-newsletter-box input {
    height: 36px;
    border: none;
    padding: 0 10px;
    font-size: 13px;
    width: 100%;
    color: #333;
}

.xn-newsletter-submit {
    display: flex;
}

.xn-newsletter-submit button {
    background: var(--black2);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 36px;
    cursor: pointer;
}

.xn-footer-trust {
    border-top: 1px solid rgba(31, 36, 44, 0.25);
    padding: 20px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.xn-trust-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.xn-pay-pill {
    background: #27241F;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 2px;
    letter-spacing: 0.4px;
}

.xn-alvara {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: #1c222d;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.xn-alvara-tag {
    background: #27241F;
    color: #8ee04e;
    padding: 4px 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    border-radius: 2px;
}

.xn-footer-bottom {
    background: var(--black2);
    color: var(--blue1);
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    position: relative;
}

.xn-scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue1);
    color: #ffffff;
    border: 2px solid #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 990;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.xn-scroll-top:hover { background: var(--blue2); }

/* Flash Banner */
.xn-flash-toast {
    position: fixed;
    top: 94px;
    right: 20px;
    z-index: 1070;
    min-width: 280px;
    max-width: 420px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 992px) {
    .xn-header { padding: 10px 18px; }
    .xn-header-phones { display: none; }
    .xn-finder-grid { grid-template-columns: 1fr 1fr; }
    .xn-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .xn-brands-grid { grid-template-columns: repeat(2, 1fr); }
    .xn-products-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .xn-products-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .xn-news-grid { grid-template-columns: 1fr; }
    .xn-catalog-grid { grid-template-columns: 1fr; }
    .xn-detail-top { grid-template-columns: 1fr; }
    .xn-footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .xn-hero h1 { font-size: 40px; }
    .xn-finder-grid, .xn-part-grid { grid-template-columns: 1fr; }
    .xn-products-grid-4, .xn-products-grid-3 { grid-template-columns: 1fr; }
    .xn-footer-cols { grid-template-columns: 1fr; }
    .xn-social-circles { display: none; }
}
