﻿/*==================================================
CATEGORY
==================================================*/

.category-page {
    width: 100%;
}

/*==================================================
HEADER
==================================================*/

.category-header {
    margin-bottom: 18px;
}

    .category-header h1 {
        font-size: 28px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 4px;
    }

    .category-header p {
        color: #BCC7D4;
        font-size: 14px;
    }

/*==================================================
PRODUCT LIST
==================================================*/

.product-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/*==================================================
PRODUCT CARD
==================================================*/

.product-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border-radius: 20px;
    background: linear-gradient( 180deg, #313949, #242C3A );
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.28);
    transition: .30s;
}

    /*==================================================
LIGHT
==================================================*/

    .product-card::before {
        content: "";
        position: absolute;
        left: -60px;
        top: -35px;
        width: 70px;
        height: 220px;
        transform: rotate(28deg);
        background: rgba(255,255,255,.08);
    }

    /*==================================================
BOTTOM GOLD
==================================================*/

    .product-card::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 70px;
        height: 3px;
        border-radius: 30px;
        background: var(--gold);
        box-shadow: 0 0 10px var(--gold);
    }

/*==================================================
IMAGE
==================================================*/

.product-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 16px;
    background: #1D2430;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .35s;
    }

/*==================================================
CONTENT
==================================================*/

.product-content {
    flex: 1;
    min-width: 0;
}

.product-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

    .product-top h3 {
        color: #fff;
        font-size: 17px;
        font-weight: 600;
    }

.price {
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.product-content p {
    color: #C8D2DC;
    font-size: 13px;
    line-height: 19px;
}
/*==================================================
HOVER
==================================================*/

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(217,178,94,.30);
    box-shadow: 0 18px 36px rgba(0,0,0,.40), 0 0 18px rgba(217,178,94,.12);
}

    .product-card:hover img {
        transform: scale(1.08);
    }

    .product-card:hover::before {
        animation: shine .8s linear;
    }

.product-card:active {
    transform: scale(.98);
}

/*==================================================
ENTRY
==================================================*/

.product-card {
    opacity: 0;
    animation: cardIn .45s ease forwards;
}

    .product-card:nth-child(1) {
        animation-delay: .08s;
    }

    .product-card:nth-child(2) {
        animation-delay: .16s;
    }

    .product-card:nth-child(3) {
        animation-delay: .24s;
    }

    .product-card:nth-child(4) {
        animation-delay: .32s;
    }

    .product-card:nth-child(5) {
        animation-delay: .40s;
    }

    .product-card:nth-child(6) {
        animation-delay: .48s;
    }

    .product-card:nth-child(7) {
        animation-delay: .56s;
    }

    .product-card:nth-child(8) {
        animation-delay: .64s;
    }

    .product-card:nth-child(9) {
        animation-delay: .72s;
    }

    .product-card:nth-child(10) {
        animation-delay: .80s;
    }

/*==================================================
KEYFRAMES
==================================================*/

@keyframes cardIn {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {

    from {
        left: -70px;
    }

    to {
        left: 260px;
    }
}

/*==================================================
PHONE
==================================================*/

@media (max-width:360px) {

    .product-card {
        padding: 9px;
        gap: 10px;
    }

    .product-image {
        width: 70px;
        height: 70px;
    }

    .product-top h3 {
        font-size: 15px;
    }

    .price {
        font-size: 16px;
    }

    .product-content p {
        font-size: 12px;
        line-height: 17px;
    }
}

/*==================================================
TABLET
==================================================*/

@media (min-width:768px) {

    .category-page {
        padding: 10px 0;
    }

    .product-list {
        gap: 18px;
    }

    .product-card {
        padding: 14px;
        gap: 16px;
    }

    .product-image {
        width: 100px;
        height: 100px;
        border-radius: 20px;
    }

    .product-top h3 {
        font-size: 20px;
    }

    .price {
        font-size: 20px;
    }

    .product-content p {
        font-size: 14px;
        line-height: 22px;
    }
}

/*==================================================
OPTIMIZATION
==================================================*/

.product-card {
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}

.product-image img {
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.product-card img {
    pointer-events: none;
}
