/* PAGE TITLE */

.page-title {
    background-color: var(--color-gray);
    padding: 3rem 0;
    text-align: center;
    overflow: hidden;
}

.page-title h1.animate-on-load {
    animation: slideUp 0.8s forwards;
}


/* BACK BUTTON */

.back-btn-wrap{
    padding-bottom: 1.5rem;
}

.back-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.2rem;
    border: 1px solid #333;
    color: white;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.back-btn:hover{
    border-color: var(--color-blue);
    color: var(--color-blue);
    transform: translateX(-2px);
}


/* PRODUCT SECTION */

.product-listing {
    padding: 4rem 0;
}


/* GRID */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}


/* PRODUCT CARD */

.product-card {
    background: var(--color-gray);
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-blue);
}


/* PRODUCT IMAGE */

.product-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}


/* PRODUCT INFO */

.product-info {
    padding: 1.2rem;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.product-info .price {
    color: var(--color-blue);
    font-weight: bold;
    margin-bottom: 1rem;
}


/* TABLETS */

@media (max-width: 992px) {

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .product-card img {
        height: 280px;
    }
}


/* PHONES */

@media (max-width: 768px) {

    .container{
        width: 95%;
        padding: 0;
    }

    .page-title {
        padding: 2rem 0;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .product-listing {
        padding: 2rem 0;
    }

    .product-grid{
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .product-card{
        width: 100%;
        min-width: 0;
    }

    .product-card img{
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .product-info{
        padding: 0.8rem;
    }

    .product-info h3{
        font-size: 0.8rem;
    }

    .product-info .price{
        font-size: 0.75rem;
    }

    .btn-ps,
    .btn-ac{
        font-size: 0.55rem;
        padding: 8px;
    }

    .sz-opt{
        font-size: 0.6rem;
        padding: 6px 8px;
    }
}


/* SMALL PHONES */

@media (max-width: 480px){

    .product-grid{
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .product-card img{
        height: 180px;
    }

    .product-info{
        padding: 0.7rem;
    }

    .product-info h3{
        font-size: 0.72rem;
    }

    .product-info .price{
        font-size: 0.7rem;
    }

    .btn-ps,
    .btn-ac{
        font-size: 0.5rem;
        letter-spacing: 1px;
    }
}

/* ===== MOBILE FIX ===== */

@media screen and (max-width: 768px){

    .container{
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin: 0 !important;
    }

    .product-listing .container{
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-grid{
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .product-card{
        width: 100% !important;
        overflow: hidden;
    }

    .product-card img{
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
    }

}