/* =========================================================
   PRODUCTS PAGE
   FIDAR AFARIN PISHRO
========================================================= */


/* =========================================================
   GLOBAL PRODUCTS VARIABLES
========================================================= */

:root {

    --products-gold: #D4AF37;
    --products-gold-light: #F5D36C;

    --products-black: #080808;
    --products-black-2: #101010;
    --products-black-3: #151515;

    --products-white: #ffffff;
    --products-text: #dddddd;
    --products-muted: #929292;

    --products-border:
        rgba(212, 175, 55, .18);

    --products-radius: 18px;

}


/* =========================================================
   PAGE BASE
========================================================= */

body {

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(212, 175, 55, .055),
            transparent 38%
        ),
        #080808;

}


/* =========================================================
   COMMON CONTAINER
========================================================= */

.products-page,
.products-hero,
.products-categories,
.products-section,
.products-cta {

    width: 100%;

}

.section-container {

    width: 92%;

    max-width: 1450px;

    margin: 0 auto;

}


/* =========================================================
   PRODUCTS HERO
========================================================= */

.products-hero {

    position: relative;

    min-height: 430px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background:

        radial-gradient(
            circle at center,
            rgba(212, 175, 55, .14),
            transparent 34%
        ),

        linear-gradient(
            135deg,
            #050505,
            #121212 50%,
            #050505
        );

    border-bottom:
        1px solid var(--products-border);

}


/* Industrial background lines */

.products-hero::before {

    content: "";

    position: absolute;

    width: 650px;

    height: 650px;

    border: 1px solid
        rgba(212,175,55,.08);

    border-radius: 50%;

    animation:
        productsHeroRotate 25s linear infinite;

}

.products-hero::after {

    content: "";

    position: absolute;

    width: 450px;

    height: 450px;

    border:
        1px solid
        rgba(255,255,255,.035);

    border-radius: 50%;

}


/* Hero overlay */

.products-hero-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            rgba(0,0,0,.65),
            transparent,
            rgba(0,0,0,.65)
        );

}


/* Hero content */

.products-hero-content {

    position: relative;

    z-index: 2;

    text-align: center;

    max-width: 850px;

    padding:
        130px 20px
        60px;

}

.products-hero-badge {

    display: inline-block;

    margin-bottom: 18px;

    color: var(--products-gold-light);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

}

.products-hero-content h1 {

    margin: 0 0 18px;

    color: var(--products-white);

    font-size: clamp(
        42px,
        5vw,
        70px
    );

    font-weight: 800;

    line-height: 1.15;

}

.products-hero-content p {

    margin: 0 auto;

    max-width: 720px;

    color: #bcbcbc;

    font-size: 17px;

    line-height: 2;

}


/* =========================================================
   CATEGORY SECTION
========================================================= */

.products-categories {

    padding:
        85px 0 45px;

    background:

        linear-gradient(
            180deg,
            #080808,
            #0b0b0b
        );

}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {

    text-align: center;

    margin-bottom: 45px;

}

.section-heading > span {

    display: block;

    margin-bottom: 10px;

    color: var(--products-gold);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

}

.section-heading h2 {

    margin: 0 0 14px;

    color: var(--products-white);

    font-size: 34px;

    font-weight: 800;

}

.section-heading p {

    margin: auto;

    max-width: 650px;

    color: var(--products-muted);

    font-size: 15px;

    line-height: 1.9;

}


/* =========================================================
   CATEGORY TABS
========================================================= */

.category-tabs {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

}

.category-tab {

    position: relative;

    border:
        1px solid
        rgba(255,255,255,.08);

    background:
        rgba(255,255,255,.025);

    color: #cfcfcf;

    padding:
        13px 24px;

    border-radius: 40px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        .3s ease;

}

.category-tab:hover {

    color: var(--products-gold-light);

    border-color:
        rgba(212,175,55,.45);

    background:
        rgba(212,175,55,.07);

    transform:
        translateY(-2px);

}

.category-tab.active {

    color: #111;

    background:

        linear-gradient(
            135deg,
            var(--products-gold),
            var(--products-gold-light)
        );

    border-color:
        transparent;

    box-shadow:

        0 8px 25px
        rgba(212,175,55,.18);

}


/* =========================================================
   PRODUCTS SECTION
========================================================= */

.products-section {

    padding:
        45px 0 100px;

    background: #0b0b0b;

}


/* =========================================================
   TOOLBAR
========================================================= */

.products-toolbar {

    display: grid;

    grid-template-columns:
        minmax(300px, 1fr)
        220px
        220px;

    gap: 18px;

    padding: 24px;

    margin-bottom: 35px;

    border:
        1px solid
        rgba(255,255,255,.06);

    border-radius:
        var(--products-radius);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.018)
        );

    backdrop-filter:
        blur(15px);

}


/* Search */

.products-search label,
.products-filter label {

    display: block;

    margin-bottom: 9px;

    color: #cfcfcf;

    font-size: 13px;

    font-weight: 600;

}

.search-box {

    display: flex;

    gap: 8px;

}

.search-box input,
.products-filter select {

    width: 100%;

    height: 48px;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 10px;

    outline: none;

    background:
        rgba(0,0,0,.45);

    color: white;

    font-family: inherit;

    font-size: 14px;

    transition:
        .3s ease;

}

.search-box input {

    padding:
        0 16px;

}

.search-box input::placeholder {

    color: #686868;

}

.search-box input:focus,
.products-filter select:focus {

    border-color:
        rgba(212,175,55,.6);

    box-shadow:
        0 0 0 3px
        rgba(212,175,55,.07);

}

.products-filter select {

    padding:
        0 14px;

}

.products-filter select option {

    background: #111;

    color: white;

}


/* Search button */

#productSearchButton {

    flex-shrink: 0;

    min-width: 100px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--products-gold),
            var(--products-gold-light)
        );

    color: #111;

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    transition:
        .3s ease;

}

#productSearchButton:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(212,175,55,.22);

}


/* =========================================================
   RESULTS INFO
========================================================= */

.products-results-info {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 22px;

    color: #888;

    font-size: 14px;

}

.products-results-info strong {

    color: var(--products-gold-light);

    font-size: 16px;

}


/* =========================================================
   PRODUCTS GRID
========================================================= */

.products-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {

    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius:
        var(--products-radius);

    background:

        linear-gradient(
            145deg,
            #151515,
            #0d0d0d
        );

    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;

}

.product-card::before {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:

        linear-gradient(
            135deg,
            rgba(212,175,55,.07),
            transparent 35%
        );

    opacity: 0;

    transition:
        .35s ease;

}

.product-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(212,175,55,.35);

    box-shadow:

        0 18px 45px
        rgba(0,0,0,.42),

        0 0 25px
        rgba(212,175,55,.06);

}

.product-card:hover::before {

    opacity: 1;

}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-image {

    position: relative;

    height: 260px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background:

        radial-gradient(
            circle at center,
            rgba(255,255,255,.055),
            transparent 60%
        ),

        #101010;

    border-bottom:
        1px solid
        rgba(255,255,255,.05);

}

.product-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    padding: 25px;

    transition:
        transform .45s ease;

}

.product-card:hover
.product-image img {

    transform:
        scale(1.06);

}


/* =========================================================
   PRODUCT STATUS
========================================================= */

.product-status {

    position: absolute;

    top: 15px;

    right: 15px;

    z-index: 2;

    padding:
        6px 12px;

    border-radius: 30px;

    font-size: 11px;

    font-weight: 700;

    backdrop-filter:
        blur(8px);

}

.product-status.available {

    color: #80e6a5;

    border:
        1px solid
        rgba(70,220,130,.22);

    background:
        rgba(20,120,60,.18);

}

.product-status.unavailable {

    color: #ff8e8e;

    border:
        1px solid
        rgba(255,80,80,.22);

    background:
        rgba(120,20,20,.18);

}


/* =========================================================
   PRODUCT CONTENT
========================================================= */

.product-content {

    position: relative;

    z-index: 2;

    padding: 24px;

}

.product-category {

    display: inline-block;

    margin-bottom: 10px;

    color:
        var(--products-gold);

    font-size: 12px;

    font-weight: 700;

}

.product-content h3 {

    margin: 0 0 12px;

    color: white;

    font-size: 21px;

    font-weight: 750;

}

.product-content > p {

    min-height: 52px;

    margin: 0 0 20px;

    color: #969696;

    font-size: 13px;

    line-height: 1.9;

}


/* =========================================================
   PRODUCT META
========================================================= */

.product-meta {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;

    margin-bottom: 22px;

}

.product-meta > div {

    padding:
        10px 12px;

    border-radius: 10px;

    background:
        rgba(255,255,255,.025);

    border:
        1px solid
        rgba(255,255,255,.045);

}

.product-meta span {

    display: block;

    margin-bottom: 4px;

    color: #666;

    font-size: 10px;

}

.product-meta strong {

    display: block;

    color: #d4d4d4;

    font-size: 12px;

    direction: ltr;

    text-align: right;

}


/* =========================================================
   PRODUCT ACTIONS
========================================================= */

.product-actions {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;

}

.product-actions a {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 45px;

    border-radius: 10px;

    text-decoration: none;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    transition:
        .3s ease;

}


/* Details */

.product-details-btn {

    color: #ddd;

    border:
        1px solid
        rgba(255,255,255,.1);

    background:
        rgba(255,255,255,.025);

}

.product-details-btn:hover {

    color: white;

    border-color:
        rgba(255,255,255,.25);

    background:
        rgba(255,255,255,.07);

}


/* Inquiry */

.product-inquiry-btn {

    color: #111;

    background:

        linear-gradient(
            135deg,
            var(--products-gold),
            var(--products-gold-light)
        );

}

.product-inquiry-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(212,175,55,.2);

}


/* =========================================================
   EMPTY STATE
========================================================= */

.products-empty {

    padding:
        80px 20px;

    text-align: center;

    border:
        1px dashed
        rgba(255,255,255,.1);

    border-radius:
        var(--products-radius);

    background:
        rgba(255,255,255,.015);

}

.empty-icon {

    margin-bottom: 18px;

    font-size: 42px;

    opacity: .7;

}

.products-empty h3 {

    margin: 0 0 10px;

    color: white;

    font-size: 21px;

}

.products-empty p {

    margin: 0;

    color: #777;

    font-size: 14px;

}


/* =========================================================
   PAGINATION
========================================================= */

.products-pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    margin-top: 50px;

}

.pagination-btn {

    width: 42px;

    height: 42px;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 10px;

    background:
        rgba(255,255,255,.025);

    color: #aaa;

    font-family: inherit;

    cursor: pointer;

    transition:
        .3s ease;

}

.pagination-btn:hover {

    color: white;

    border-color:
        rgba(212,175,55,.35);

}

.pagination-btn.active {

    color: #111;

    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            var(--products-gold),
            var(--products-gold-light)
        );

    font-weight: 800;

}


/* =========================================================
   PRODUCTS CTA
========================================================= */

.products-cta {

    position: relative;

    overflow: hidden;

    padding:
        100px 0;

    background:

        radial-gradient(
            circle at center,
            rgba(212,175,55,.12),
            transparent 48%
        ),

        #070707;

    border-top:
        1px solid
        rgba(212,175,55,.1);

}

.products-cta::before {

    content: "";

    position: absolute;

    width: 500px;

    height: 500px;

    border:
        1px solid
        rgba(212,175,55,.07);

    border-radius: 50%;

    top: 50%;

    left: 50%;

    transform:
        translate(-50%,-50%);

}

.products-cta-content {

    position: relative;

    z-index: 2;

    max-width: 800px;

    margin: auto;

    text-align: center;

}

.products-cta-content > span {

    display: block;

    margin-bottom: 12px;

    color: var(--products-gold);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

}

.products-cta-content h2 {

    margin: 0 0 18px;

    color: white;

    font-size: 34px;

    font-weight: 800;

}

.products-cta-content p {

    max-width: 650px;

    margin:
        0 auto 28px;

    color: #929292;

    font-size: 15px;

    line-height: 2;

}

.cta-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 190px;

    min-height: 52px;

    padding:
        0 28px;

    border-radius: 12px;

    color: #111;

    background:

        linear-gradient(
            135deg,
            var(--products-gold),
            var(--products-gold-light)
        );

    text-decoration: none;

    font-size: 14px;

    font-weight: 800;

    box-shadow:
        0 10px 30px
        rgba(212,175,55,.16);

    transition:
        .3s ease;

}

.cta-button:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 15px 35px
        rgba(212,175,55,.28);

}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes productsHeroRotate {

    from {

        transform:
            rotate(0deg);

    }

    to {

        transform:
            rotate(360deg);

    }

}


/* =========================================================
   DESKTOP LARGE SCREENS
========================================================= */

@media (min-width: 1500px) {

    .products-grid {

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

    }

}