/* ========================================
   BRASS & STEEL - PREMIUM COLOR SYSTEM
======================================== */

:root {
    --obsidian: #0F0F10;
    --gunmetal: #2B2F33;
    --orange: #F47C20;
    --titanium: #D6D6D6;
    --off-white: #F5F5F2;
}


/* =========================
   SECTION 1: FIREARMS HERO
========================= */

.firearms-hero {
    position: relative;
    width: 100%;
    height: 480px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--obsidian);
}


/* BACKGROUND VIDEO */

.firearms-hero-video {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    transform: translate(-50%, -50%);

    object-fit: cover;

    z-index: 0;
}


/* DARK PREMIUM OVERLAY */

.firearms-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(15, 15, 16, 0.95),
            rgba(15, 15, 16, 0.72),
            rgba(15, 15, 16, 0.55)
        );

    z-index: 1;
}


/* HERO CONTENT */

.firearms-hero-content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 1200px;

    padding: 20px 40px;

    color: var(--off-white);
}

.hero-small-text {
    display: inline-block;

    color: var(--orange);

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 3px;
}

.firearms-hero h1 {
    margin: 8px 0 15px;

    color: var(--off-white);

    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: -2px;
}

.firearms-hero p {
    margin-bottom: 30px;

    color: var(--titanium);

    font-size: 15px;
}


/* =========================
   HERO BUTTONS
========================= */

.hero-buttons {
    display: flex;
    gap: 12px;
}

.hero-btn {
    min-width: 145px;

    padding: 13px 26px;

    border-radius: 4px;

    text-align: center;
    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.8px;

    transition: all 0.3s ease;
}


/* PRIMARY CTA */

.primary-btn {
    background: var(--orange);
    color: var(--obsidian);

    border: 1px solid var(--orange);
}

.primary-btn:hover {
    background: var(--off-white);

    border-color: var(--off-white);

    transform: translateY(-2px);
}


/* SECONDARY CTA */

.secondary-btn {
    background: transparent;

    color: var(--off-white);

    border: 1px solid var(--titanium);
}

.secondary-btn:hover {
    background: var(--titanium);

    color: var(--obsidian);
}


/* =========================
   SECTION 2
========================= */

.firearms-section {
    background: var(--obsidian);

    padding: 70px 40px 90px;

    color: var(--off-white);

    min-height: 600px;
}


/* =========================
   SEARCH
========================= */

.firearms-search {
    max-width: 800px;

    margin: 0 auto 75px;

    text-align: center;
}

.firearms-search h2 {
    margin: 0 0 20px;

    color: var(--off-white);

    font-size: 28px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.firearms-search-box {
    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;

    background: var(--gunmetal);

    border: 1px solid rgba(214, 214, 214, 0.25);

    border-radius: 6px;

    padding: 0 8px 0 18px;

    box-sizing: border-box;

    transition: 0.3s ease;
}

.firearms-search-box:focus-within {
    border-color: var(--orange);

    box-shadow: 0 0 0 3px rgba(244, 124, 32, 0.12);
}

.firearms-search-box i {
    color: var(--titanium);

    font-size: 17px;
}

.firearms-search-box input {
    flex: 1;

    border: none;
    outline: none;

    background: transparent;

    color: var(--off-white);

    padding: 0 15px;

    font-family: inherit;
    font-size: 13px;
}

.firearms-search-box input::placeholder {
    color: rgba(214, 214, 214, 0.55);
}

.firearms-search-box button {
    border: none;

    background: var(--orange);

    color: var(--obsidian);

    height: 38px;

    padding: 0 22px;

    border-radius: 4px;

    cursor: pointer;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.8px;

    transition: 0.3s ease;
}

.firearms-search-box button:hover {
    background: var(--off-white);
}


/* =========================
   CONTENT
========================= */

.firearms-content {
    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 45px;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}


/* =========================
   SIDEBAR
========================= */

.firearms-sidebar {
    padding-top: 5px;
}

.firearms-sidebar h3 {
    margin: 0;

    color: var(--off-white);

    font-size: 13px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

.sidebar-line {
    width: 100%;
    height: 1px;

    background: var(--titanium);

    opacity: 0.4;

    margin: 15px 0;
}

.category-link {
    display: block;

    color: var(--titanium);

    font-size: 13px;

    text-decoration: none;

    padding: 9px 0;

    transition: 0.25s ease;
}

.category-link:hover {
    color: var(--orange);

    padding-left: 6px;
}


/* =========================
   PRODUCTS HEADER
========================= */

.firearms-products {
    min-width: 0;
}

.products-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 30px;

    padding-bottom: 20px;

    border-bottom: 1px solid rgba(214, 214, 214, 0.2);
}

.products-header h2 {
    margin: 0 0 8px;

    color: var(--off-white);

    font-size: 32px;
    font-weight: 600;

    text-transform: uppercase;
}

.product-count {
    font-size: 12px;

    color: var(--titanium);

    opacity: 0.7;
}


/* =========================
   SORT
========================= */

.sort-box {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--titanium);

    font-size: 12px;
}

.sort-box select {
    height: 36px;

    padding: 0 12px;

    border: 1px solid rgba(214, 214, 214, 0.35);

    border-radius: 4px;

    background: var(--gunmetal);

    color: var(--off-white);

    font-family: inherit;

    outline: none;

    cursor: pointer;
}

.sort-box select:focus {
    border-color: var(--orange);
}


/* =========================
   PRODUCT GRID
========================= */

.product-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================
   PRODUCT CARD
========================= */

.product-card {
    background: var(--gunmetal);

    border: 1px solid rgba(214, 214, 214, 0.28);

    border-radius: 8px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);

    border-color: var(--orange);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35);
}


/* =========================
   PRODUCT IMAGE
========================= */

.product-image {
    width: 100%;
    height: 270px;

    overflow: hidden;

    background: var(--obsidian);

    display: flex;
    align-items: center;
    justify-content: center;

    border-bottom:
        1px solid rgba(214, 214, 214, 0.18);
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    padding: 15px;

    box-sizing: border-box;

    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}


/* =========================
   PRODUCT INFO
========================= */

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 0 0 10px;

    color: var(--off-white);

    font-size: 15px;
    font-weight: 600;

    line-height: 1.5;

    min-height: 45px;
}

.product-price {
    margin: 0 0 18px;

    color: var(--orange);

    font-size: 17px;
    font-weight: 600;
}

.product-btn {
    display: block;

    width: 100%;

    padding: 11px 15px;

    border: 1px solid var(--titanium);

    border-radius: 4px;

    background: transparent;

    color: var(--off-white);

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    cursor: pointer;

    transition: 0.3s ease;
}

.product-btn:hover {
    background: var(--orange);

    border-color: var(--orange);

    color: var(--obsidian);
}

.no-products {
    color: var(--titanium);
}


/* =========================
   PRODUCT DETAILS MODAL
========================= */

.product-modal {
    position: fixed;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 9999;

    padding: 20px;

    box-sizing: border-box;
}

.product-modal.active {
    display: flex;
}


/* MODAL OVERLAY */

.product-modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(15, 15, 16, 0.88);

    backdrop-filter: blur(8px);
}


/* MODAL CONTENT */

.product-modal-content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 950px;

    max-height: 90vh;

    display: grid;

    grid-template-columns: 1fr 1fr;

    background: var(--gunmetal);

    border:
        1px solid rgba(214, 214, 214, 0.3);

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6);

    animation: modalOpen 0.3s ease;
}


@keyframes modalOpen {

    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* CLOSE BUTTON */

.modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 5;

    width: 38px;
    height: 38px;

    border:
        1px solid rgba(214, 214, 214, 0.3);

    border-radius: 50%;

    background: var(--obsidian);

    color: var(--off-white);

    font-size: 26px;

    line-height: 1;

    cursor: pointer;

    transition: 0.25s ease;
}

.modal-close:hover {
    background: var(--orange);

    color: var(--obsidian);

    border-color: var(--orange);
}


/* MODAL IMAGE */

.modal-product-image {
    width: 100%;
    min-height: 450px;

    background: var(--obsidian);

    display: flex;

    align-items: center;
    justify-content: center;

    border-right:
        1px solid rgba(214, 214, 214, 0.2);
}

.modal-product-image img {
    width: 100%;
    height: 100%;

    max-height: 550px;

    object-fit: contain;

    padding: 30px;

    box-sizing: border-box;

    display: block;
}


/* MODAL INFORMATION */

.modal-product-info {
    padding: 50px 45px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    color: var(--off-white);
}

.modal-product-info h2 {
    margin: 0 0 15px;

    color: var(--off-white);

    font-size: 30px;

    font-weight: 700;

    line-height: 1.2;
}

.modal-price {
    font-size: 22px;

    font-weight: 600;

    color: var(--orange);

    margin-bottom: 22px;
}

.modal-divider {
    width: 100%;

    height: 1px;

    background: rgba(214, 214, 214, 0.25);

    margin-bottom: 22px;
}

.modal-product-info h3 {
    margin: 0 0 12px;

    color: var(--titanium);

    font-size: 14px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.modal-product-info p {
    margin: 0;

    color: var(--titanium);

    font-size: 14px;

    line-height: 1.8;

    opacity: 0.85;
}


/* =========================
   INQUIRY BUTTON
========================= */

.modal-inquiry-btn {
    width: 100%;

    margin-top: 30px;

    padding: 13px 20px;

    border: 1px solid var(--orange);

    border-radius: 4px;

    background: var(--orange);

    color: var(--obsidian);

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    cursor: pointer;

    transition: 0.3s ease;
}

.modal-inquiry-btn:hover {
    background: var(--off-white);

    border-color: var(--off-white);
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .firearms-content {
        grid-template-columns: 160px 1fr;
        gap: 30px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    /* HERO */

    .firearms-hero {
        height: 400px;
    }

    .firearms-hero-content {
        padding: 25px;
    }

    .firearms-hero h1 {
        font-size: 45px;
    }

    .hero-buttons {
        flex-direction: column;

        width: 170px;
    }

    .hero-btn {
        text-align: center;
    }


    /* SECTION */

    .firearms-section {
        padding: 50px 15px 70px;
    }


    /* SEARCH */

    .firearms-search {
        margin-bottom: 55px;
    }

    .firearms-search h2 {
        font-size: 24px;
    }

    .firearms-search-box {
        height: 50px;
    }

    .firearms-search-box button {
        padding: 0 15px;
    }


    /* CONTENT */

    .firearms-content {
        grid-template-columns: 1fr;
    }

    .firearms-sidebar {
        display: none;
    }


    /* HEADER */

    .products-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 18px;
    }

    .products-header h2 {
        font-size: 27px;
    }

    .sort-box {
        width: 100%;

        justify-content: space-between;
    }

    .sort-box select {
        flex: 1;
    }


    /* PRODUCTS */

    .product-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 14px;
    }

    .product-image {
        height: 190px;
    }

    .product-info {
        padding: 13px;
    }

    .product-info h3 {
        font-size: 13px;

        min-height: auto;
    }

    .product-price {
        font-size: 15px;
    }

    .product-btn {
        font-size: 10px;

        padding: 10px 8px;
    }


    /* MODAL */

    .product-modal {
        padding: 12px;
    }

    .product-modal-content {
        grid-template-columns: 1fr;

        max-height: 92vh;

        overflow-y: auto;
    }

    .modal-product-image {
        height: 260px;

        min-height: 260px;

        border-right: none;

        border-bottom:
            1px solid rgba(214, 214, 214, 0.2);
    }

    .modal-product-image img {
        max-height: 260px;

        padding: 20px;
    }

    .modal-product-info {
        padding: 30px 22px;
    }

    .modal-product-info h2 {
        font-size: 24px;
    }

    .modal-price {
        font-size: 19px;
    }

    .modal-product-info p {
        font-size: 13px;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 260px;
    }

    .firearms-hero h1 {
        font-size: 40px;
    }
    .view-details-btn{
    width: 90px;
}

}

#modalDescription {
    white-space: pre-line;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.add-cart-form {
    margin: 10px 0;
}

.add-cart-btn {
    width: 100%;
    border: 1px solid #f47b00;
    background: #f47b00;
    color: #171513;
    cursor: pointer;
}

.add-cart-btn:hover {
    background: #d5ad70;
}

.inquiry-only-note {
    margin: 10px 0;
    color: #f47b00;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.cart-count {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f47b00;
    color: #171513;
    font-size: 12px;
    font-weight: 700;
}
 


   