/* --- BRAND DESIGN SYSTEM --- */
:root {
    --bg-dark: #202020;
    --brand-red: #af0015;
    --brand-red-hover: #d6001a;
    --text-white: #ffffff;
    --text-offwhite: #e0e0e0;
    --card-bg: #262626;
    --card-inner-bg: #181818;
    --border-color: #383838;
    --font-display: 'Norwester', 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* DARK CUSTOM SCROLLBARS FOR MAIN PAGE */
::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #141414;
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 4px;
    border: 2px solid #141414;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-offwhite);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-offwhite);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    scrollbar-color: #444444 #141414;
    scrollbar-width: thin;
}

h1, h2, h3, h4, .btn, .nav-link, .logo-text, .filter-btn, .cat-card-title {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #181818;
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 4%;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-placeholder {
    width: 36px;
    height: 36px;
    background: #181818;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-placeholder svg {
    width: 20px;
    height: 22px;
    fill: var(--brand-red);
}

.logo-text {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    font-weight: 900;
    color: var(--text-white);
    white-space: nowrap;
}

.logo-text span { color: var(--text-white); }

nav {
    display: flex;
    align-items: center;
}

.desktop-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-offwhite);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active { color: var(--brand-red); }

/* DROPDOWN SUBPAGE SYSTEM */
.dropdown-parent {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #181818;
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--brand-red);
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    z-index: 1002;
    flex-direction: column;
}

.dropdown-parent:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li a {
    display: block;
    padding: 0.7rem 1.2rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: var(--text-offwhite);
    border-bottom: 1px solid #242424;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background: var(--text-offwhite);
    color: #181818 !important;
}

.cart-trigger {
    background: var(--brand-red);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 0.9rem;
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.85rem;
    white-space: nowrap;
    min-height: 40px;
}

.cart-trigger:hover {
    background: var(--brand-red-hover);
}

/* MOBILE DROPDOWN MENU FROM LOGO ICON */
.mobile-menu-dropdown {
    display: none;
    position: fixed;
    top: 60px;
    left: 4%;
    background: #181818;
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--brand-red);
    padding: 1rem 0;
    width: 230px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    z-index: 1001;
}

.mobile-menu-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.mobile-menu-dropdown ul {
    display: flex;
    flex-direction: column;
}

.mobile-menu-dropdown li a {
    display: block;
    padding: 0.7rem 1.2rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-white);
    border-bottom: 1px solid #242424;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu-dropdown li a:hover {
    background: var(--text-offwhite);
    color: #181818 !important;
}

.mobile-sub-group {
    padding-left: 1rem;
    background: #141414;
}

/* --- PAGE ROUTING --- */
.page {
    display: none;
    padding-top: 90px;
    min-height: calc(100vh - 120px);
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}

.page.active-page {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HERO & HOME PAGE STYLING --- */
.hero {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

/* HERO SIDE-BY-SIDE LAYOUT */
.hero-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    margin-bottom: 1rem;
}

.hero-text-col {
    flex: 1;
}

.hero-logo-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-right-logo {
    width: clamp(200px, 15vw, 320px);
    height: auto;
    object-fit: contain;
}

.hero-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.hero-brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.hero-brand-text {
    color: var(--brand-red);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.95rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 8vw, 4.8rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: var(--text-white);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.feature-ribbon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin: 3rem 0;
}

.feature-box {
    background: var(--card-inner-bg);
    border: 1px solid var(--border-color);
    padding: 1.4rem;
    border-left: 3px solid var(--brand-red);
}

.feature-box h4 {
    color: var(--text-white);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.feature-box p {
    font-size: 0.85rem;
    color: #aaa;
}

.home-section { margin: 4rem 0; }

/* --- GEAR LINEUP CAROUSEL WITH SUBTLE ARROW HANDLES --- */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.home-showcase-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.2rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.2rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
}

.home-showcase-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.home-showcase-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.home-showcase-card:hover {
    border-color: var(--text-white);
    transform: translateY(-4px);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(24, 24, 24, 0.85);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.carousel-nav:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--text-white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -18px;
}

.carousel-nav.next {
    right: -18px;
}

/* HOMEPAGE ARROW BUILDS BANNER CARD */
.home-builds-hero-card {
    position: relative;
    width: 100%;
    height: 380px;
    background: #141414;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.home-builds-hero-card:hover {
    border-color: var(--text-white);
    transform: translateY(-2px);
}

.home-builds-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2c2c2c 0%, #111111 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.home-builds-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(0deg, rgba(18,18,18,0.95) 0%, rgba(18,18,18,0.6) 70%, rgba(18,18,18,0) 100%);
    padding: 1.5rem;
    border-left: 4px solid var(--brand-red);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ELEGANT REVIEWS CAROUSEL */
.reviews-carousel-wrapper {
    position: relative;
    max-width: 750px;
    margin: 2rem auto 0 auto;
    text-align: center;
    padding: 0 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.review-slide.active {
    display: block;
    opacity: 1;
}

.review-quote-mark {
    font-size: 2.2rem;
    line-height: 1;
    color: var(--brand-red);
    font-family: serif;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.8;
}

.review-slide h4 {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 1.5px;
}

.review-slide p {
    font-size: 0.92rem;
    color: #bbbbbb;
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.review-slide .review-author {
    font-size: 0.8rem;
    font-weight: 700;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-style: normal;
}

.review-dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.8rem;
}

.review-dot {
    width: 8px;
    height: 8px;
    background: #333333;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.review-dot.active {
    background: var(--brand-red);
    transform: scale(1.2);
}

/* --- VISUAL CATEGORY CARDS BANNER --- */
.category-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.cat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.cat-card:hover {
    border-color: var(--text-white);
    transform: translateY(-4px);
}

.cat-card .product-img-box {
    height: 125px;
}

/* --- SHOP FILTER BAR --- */
.shop-filter-bar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.filter-btn {
    background: var(--card-inner-bg);
    border: 1px solid var(--border-color);
    color: var(--text-offwhite);
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 42px;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--brand-red);
    color: var(--text-white);
    border-color: var(--brand-red);
}

/* --- BUTTONS & QUANTITY CONTROLS --- */
.btn {
    background: var(--card-inner-bg);
    color: var(--text-white);
    border: 1px solid var(--brand-red);
    padding: 0.75rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s, background 0.2s, color 0.2s, opacity 0.2s;
    text-align: center;
    min-height: 44px;
}

.btn:hover { 
    background: var(--brand-red); 
    color: var(--text-white);
    transform: translateY(-2px); 
}

.btn-primary-filled {
    background: var(--brand-red);
    color: var(--text-white);
    border: 1px solid var(--brand-red);
}

.btn-primary-filled:hover {
    background: var(--brand-red-hover);
}

.btn-primary-filled:disabled,
.btn-primary-filled[disabled] {
    background: #3a3a3a !important;
    border-color: #4a4a4a !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 0.6;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--text-white);
    background: rgba(255,255,255,0.05);
}

.add-cart-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.8rem;
    width: 100%;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    background: var(--card-inner-bg);
    height: 44px;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    width: 36px;
    height: 100%;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    color: var(--brand-red);
}

.qty-val {
    width: 35px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-white);
}

.price-text {
    color: var(--text-white);
    font-weight: bold;
    font-size: 1.1rem;
}

.section-header {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    color: var(--text-white);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--brand-red);
    padding-left: 1rem;
}

.sub-section-header {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--brand-red);
    padding-left: 0.8rem;
}

.category-block { margin-bottom: 2.5rem; display: none; }

.category-desc-box {
    background: var(--card-inner-bg);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    border-left: 3px solid var(--brand-red);
}

.specs-tag {
    font-size: 0.78rem;
    color: var(--text-white);
    font-weight: bold;
    margin-bottom: 0.4rem;
    display: block;
    letter-spacing: 1px;
    line-height: 1.5;
}

.specs-tag .spec-label {
    color: var(--brand-red);
}

.bulk-link {
    color: var(--brand-red);
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.bulk-link:hover { color: var(--text-white); }

/* --- PRODUCT GRID & CARDS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover { 
    border-color: var(--text-white); 
    transform: translateY(-2px);
}

.product-img-box {
    height: 200px;
    background: var(--card-inner-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    color: #666;
    margin-bottom: 0.6rem;
    border: 1px solid #2e2e2e;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.5rem;
}

/* Force product & category images to scale up and fit the box */
.product-img-box img {
    object-fit: cover !important;
}

/* Keep logo sticker graphics cleanly contained */
.product-img-box img[src*="logo-stickers"] {
    object-fit: contain !important;
}

.product-img-box-sub {
    height: 30px;
    background: var(--card-inner-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    color: #555;
    margin-bottom: 1rem;
    border: 1px dashed #2e2e2e;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 1px;
}

/* --- VISUAL MODAL SELECTORS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-in-out;
}

.modal-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover { color: var(--brand-red); }

.sticker-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0 1.5rem 0;
}

.sticker-modal-item {
    background: var(--card-inner-bg);
    border: 1px solid var(--border-color);
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.sticker-modal-item:hover, .sticker-modal-item.selected {
    border-color: var(--brand-red);
    background: rgba(175, 0, 21, 0.15);
}

.custom-form-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.custom-form-col {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* --- FORMS, CHECKBOX & SELECT DROPDOWNS --- */
.form-group { margin-bottom: 0.8rem; }

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-white);
    letter-spacing: 1px;
}

input, select, textarea {
    width: 100%;
    padding: 0.65rem;
    background: var(--card-inner-bg);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    min-height: 44px;
}

input:focus, select:focus, textarea:focus { 
    outline: none; 
    border-color: var(--border-color); 
}

select option {
    background-color: var(--card-inner-bg);
    color: var(--text-offwhite);
    padding: 0.5rem;
}

select option:checked,
select option:hover,
select option:focus {
    background-color: var(--text-offwhite) !important;
    color: #181818 !important;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-offwhite);
    cursor: pointer;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-red);
    cursor: pointer;
    min-height: auto;
}

.sub-option-box {
    background: #1d1d1d;
    border: 1px dashed var(--border-color);
    padding: 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
}

/* --- COLLAPSIBLE ACCORDION --- */
details.collapsible-card {
    background: #1e1e1e;
    border: 1px dashed var(--border-color);
    grid-column: 1 / -1;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}

details.collapsible-card.featured-accordion {
    background: #2a2a2a;
    border: 2px solid var(--brand-red);
    box-shadow: 0 4px 15px rgba(175, 0, 21, 0.25);
    padding: 1.4rem;
}

details.collapsible-card summary {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-white);
    cursor: pointer;
    letter-spacing: 1.5px;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
}

details.collapsible-card summary::-webkit-details-marker { display: none; }

details.collapsible-card summary::after {
    content: "▼";
    font-size: 0.85rem;
    color: var(--brand-red);
    font-weight: bold;
    transition: transform 0.2s;
}

details.collapsible-card[open] summary::after {
    content: "▲";
}

/* --- ARROW BUILDS GALLERY STYLING & REDUCED BADGE SIZES --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}

.gallery-item {
    position: relative;
    background: #181818;
    border: 1px solid var(--border-color);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    border-color: var(--text-white);
    transform: translateY(-4px);
}

.gallery-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img-container {
    transform: scale(1.04);
}

.gallery-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(0deg, rgba(18,18,18,0.95) 0%, rgba(18,18,18,0.7) 70%, rgba(18,18,18,0) 100%);
    padding: 0.8rem;
    width: 100%;
}

.gallery-title {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

.gallery-sub {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 0.3rem;
}

.gallery-badge {
    display: inline-block;
    background: rgba(175, 0, 21, 0.25);
    border: 1px solid var(--brand-red);
    color: var(--text-white);
    font-size: 0.62rem;
    font-weight: bold;
    padding: 0.15rem 0.4rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.2;
}

.cta-gallery-item {
    background: var(--card-bg);
    border: 2px dashed var(--brand-red);
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.2rem;
}

/* --- CALCULATOR TOOL STYLING --- */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.calc-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.4rem;
}

.calc-readout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin: 1.2rem 0;
}

.calc-stat-card {
    background: var(--card-inner-bg);
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    text-align: center;
}

.calc-stat-label {
    font-size: 0.68rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    display: block;
}

.calc-stat-val {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-white);
    font-family: var(--font-display);
}

.canvas-container {
    background: #141414;
    border: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
}

canvas {
    max-width: 100%;
    height: auto;
    background: #1a1a1a;
}

/* --- CLUBS & TEAMS STYLING --- */
.tier-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 0.5rem 0;
    font-size: 0.85rem;
    position: relative;
}

.tier-table th, .tier-table td {
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.8rem;
    text-align: left;
}

.tier-table th {
    background: var(--card-inner-bg);
    color: var(--text-white);
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.tier-table tbody tr {
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.tier-table tbody tr:hover {
    background: #282828;
}

.policy-alert-box {
    background: #181818;
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.combo-discount-badge {
    background: var(--card-bg);
    border: 1px solid var(--brand-red);
    border-left: 4px solid var(--brand-red);
    padding: 1.2rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-offwhite);
    margin: 2rem 0 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.discount-popup {
    position: fixed;
    pointer-events: none;
    background: var(--brand-red);
    color: var(--text-white);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: none;
    z-index: 3000;
    transform: translate(-50%, -120%);
}

/* --- FAQ STYLING --- */
.faq-block {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}

.faq-block h3 {
    color: var(--text-white);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--brand-red);
    padding-left: 0.6rem;
}

.faq-block p, .faq-block ul {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 0.8rem;
}

.faq-block ul {
    list-style: disc;
    margin-left: 1.2rem;
}

.faq-block strong { color: var(--text-white); }

/* --- CONTACT PAGE STYLING --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-info-item h4 {
    color: var(--brand-red);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.contact-info-item p, .contact-info-item a {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: bold;
}

.contact-info-item a:hover {
    color: var(--brand-red);
    text-decoration: underline;
}

/* --- ABOUT PAGE STYLING --- */
.about-intro-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.supporter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.supporter-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.supporter-card:hover {
    border-color: var(--text-white);
    transform: translateY(-4px);
}

.supporter-card:hover .insta-badge {
    background: var(--brand-red);
    color: var(--text-white);
}

.supporter-img-placeholder {
    height: 180px;
    background: var(--card-inner-bg);
    border: 1px solid #2e2e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-family: var(--font-display);
    font-size: 0.85rem;
}

.insta-badge {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--brand-red);
    border: 1px solid var(--brand-red);
    padding: 0.3rem 0.5rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- EXPANDED SLIDE-OUT CART DRAWER --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -700px;
    width: 100%;
    max-width: 640px;
    height: 100vh;
    background: #181818;
    border-left: 2px solid var(--border-color);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cart-drawer.open { right: 0; }

.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
}

.cart-backdrop.active { display: block; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.order-summary {
    background: var(--card-bg);
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.2rem;
}

.shipping-sub-banner {
    font-size: 0.68rem;
    color: #888;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.hnry-badge {
    background: #2b2b2b;
    border-left: 3px solid var(--brand-red);
    padding: 0.75rem;
    font-size: 0.72rem;
    margin-bottom: 1.2rem;
    color: var(--text-offwhite);
}

.discount-banner {
    background: var(--card-inner-bg);
    border: 1px solid var(--brand-red);
    color: var(--text-white);
    font-size: 0.72rem;
    padding: 0.5rem;
    margin-top: 0.8rem;
    text-align: center;
    font-weight: bold;
}

/* --- FOOTER --- */
footer {
    margin-top: 4rem;
    background: #181818;
    border-top: 1px solid var(--border-color);
    padding: 2.2rem 5%;
    text-align: center;
    font-size: 0.78rem;
    color: #777;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-offwhite);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill 0.2s ease;
}

.social-link:hover {
    color: var(--text-white);
    border-color: var(--brand-red);
    background: var(--brand-red);
    transform: translateY(-2px);
}

/* --- RESPONSIVE NAVIGATION MEDIA QUERY (<900px) --- */
@media (max-width: 900px) {
    .desktop-nav { display: none; }
    header { padding: 0.7rem 4%; }
    .cart-trigger { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
    .page { padding-top: 80px; padding-left: 4%; padding-right: 4%; }
    .hero { min-height: 55vh; padding: 2rem 0; }
    .hero-header-row {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1rem;
    }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; margin-left: 0 !important; }
    .feature-ribbon { grid-template-columns: 1fr; gap: 0.8rem; margin: 2rem 0; }
    
    /* MOBILE CAROUSEL & HANDLES STYLING */
    .home-showcase-card { flex: 0 0 240px; padding: 1.2rem; }
    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
    }
    .carousel-nav.prev { left: -6px; }
    .carousel-nav.next { right: -6px; }

    .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
    .product-card { padding: 0.9rem; }
    .product-img-box { height: 100px; font-size: 0.75rem; }
    .cat-card .product-img-box { height: 110px; }
    .product-img-box-sub { height: 38px; font-size: 0.65rem; }
    .product-card h4 { font-size: 0.85rem !important; }
    .price-text { font-size: 0.95rem; }
    .add-cart-row { flex-direction: column; align-items: stretch; }
    .qty-control { justify-content: center; width: 100% !important; }
    .shop-filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.8rem; -webkit-overflow-scrolling: touch; }
    .filter-btn { flex-shrink: 0; padding: 0.5rem 0.8rem; font-size: 0.75rem; }
    .category-hero-grid { grid-template-columns: 1fr 1fr; }
    .calc-grid { grid-template-columns: 1fr; }
    .cart-drawer { max-width: 100%; padding: 1.2rem; }
    .home-builds-hero-card { height: 280px; padding: 1.5rem; }
    .home-builds-overlay { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .reviews-carousel-wrapper { padding: 1.5rem 1.2rem; min-height: 260px; }
    .tier-table { display: block; overflow-x: auto; }
    .custom-form-flex-container { flex-direction: column; }
    .mobile-menu-dropdown { display: none; }
    .mobile-menu-dropdown.active { display: block !important; }
}