﻿/* ==========================================================
   MILX PREMIUM
   cards.css
==========================================================*/

/* ===============================
   PRODUCT CARD
================================ */

.xs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--c-surface);
    border: 1px solid rgba(212,175,55,.12);
    border-radius: var(--radius);
    transition: all .35s ease;
}

    .xs-card:hover {
        transform: translateY(-8px);
        border-color: var(--gold);
        box-shadow: var(--shadow-gold);
    }

/* ===============================
   IMAGE
================================ */

/*.xs-card-img-wrap {
    position: relative;
    overflow: hidden;
    background: #000;
}

.xs-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform .55s ease;
}

.xs-card:hover img {
    transform: scale(1.08);
}*/

/* ===============================
   IMAGE OVERLAY
================================ */

/*.xs-card-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0,0,0,.45), transparent );
    opacity: 0;
    transition: .35s;
}

.xs-card:hover .xs-card-img-wrap::after {
    opacity: 1;
}*/
/* ===============================
   PRODUCT IMAGE
================================ */

.xs-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #0f0f0f;
}

    .xs-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .45s ease;
    }

.xs-card:hover .xs-card-image img {
    transform: scale(1.08);
}

.xs-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0,0,0,.45), transparent 55% );
    opacity: 0;
    transition: .35s;
}

.xs-card:hover .xs-card-image::after {
    opacity: 1;
}
/* ===============================
   FEATURED BADGE
================================ */

.badge-featured {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: var(--gold-gradient);
    color: #111;
    font-size: .72rem;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
}

/* RTL */

html[dir="rtl"] .badge-featured {
    left: auto;
    right: 14px;
}

/* ===============================
   BODY
================================ */

/* ===============================
   PRODUCT BODY
================================ */

.xs-card .body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px;
    gap: 10px;
}

.xs-card small {
    color: var(--gold);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ===============================
   CATEGORY
================================ */

.xs-card-category {
    color: var(--gold-light);
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .45rem;
}

/* ===============================
   TITLE
================================ */

/*.xs-card h5 {
    color: #fff;
    margin-bottom: .75rem;
    line-height: 1.35;
    transition: .3s;
}

.xs-card:hover h5 {
    color: var(--gold-bright);
}
*/
/* ===============================
   PRODUCT TITLE
================================ */

.product-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    min-height: 52px;
    margin: 0;
    transition: color .3s;
}

.xs-card:hover .product-title {
    color: var(--gold);
}
/* ===============================
   DESCRIPTION
================================ */

.xs-card p {
    color: var(--c-text-muted);
    font-size: .92rem;
    margin-bottom: 1rem;
}
.xs-cat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #141414;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: .35s;
}

    .xs-cat-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-gold);
    }

.xs-cat-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

    .xs-cat-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .4s;
        display: block;
    }

.xs-cat-card:hover img {
    transform: scale(1.08);
}

.xs-cat-body {
    padding: 20px;
    text-align: center;
}

    .xs-cat-body h5 {
        margin: 0;
        color: white;
        font-size: 1rem;
    }
.xs-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

    .xs-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.product-title {
    font-size: 1rem;
    font-weight: 600;
    min-height: 48px;
}

/* ===============================
   PRODUCT FOOTER
================================ */

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ===============================
   PRICE
================================ */

.price-tag {
    color: var(--gold);
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ===============================
   FOOTER
================================ */

.xs-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

/* ===============================
   ICON BUTTON
================================ */

.xs-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold);
    transition: .3s;
}

    .xs-card-icon:hover {
        background: var(--gold);
        color: #111;
    }

/* ===============================
   CATEGORY TILE
================================ */

/* ===============================
   CATEGORY CARD
================================ */

.xs-cat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    background: var(--c-surface);
    border: 1px solid rgba(212,175,55,.12);
    border-radius: var(--radius);
    transition: all .35s ease;
}

    .xs-cat-card:hover {
        transform: translateY(-8px);
        border-color: var(--gold);
        box-shadow: var(--shadow-gold);
    }

.xs-cat-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #111;
}

    .xs-cat-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .45s ease;
    }

.xs-cat-card:hover .xs-cat-image img {
    transform: scale(1.08);
}

.xs-cat-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .xs-cat-body h5 {
        margin: 0;
        color: #fff;
        font-size: 1rem;
        font-weight: 600;
        transition: color .3s;
    }

.xs-cat-card:hover h5 {
    color: var(--gold);
}
/* ===============================
   SERVICE CARD
================================ */

.xs-service {
    height: 100%;
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius);
    background: var(--c-surface);
    border: 1px solid rgba(212,175,55,.12);
    transition: .35s;
}

    .xs-service:hover {
        transform: translateY(-6px);
        border-color: var(--gold);
        box-shadow: var(--shadow-gold);
    }

    .xs-service i {
        font-size: 2.5rem;
        color: var(--gold);
        margin-bottom: 1rem;
    }

    .xs-service h5 {
        color: #fff;
        margin-bottom: .75rem;
    }

    .xs-service p {
        color: var(--c-text-muted);
    }

/* ===============================
   PRODUCT THUMBNAILS
================================ */

.product-thumb {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: .25s;
}

    .product-thumb:hover {
        transform: scale(1.08);
    }

    .product-thumb.active {
        border-color: var(--gold);
    }

/* ===============================
   MAIN IMAGE
================================ */

#mainImage {
    border-radius: var(--radius);
    cursor: zoom-in;
    transition: .35s;
}

    #mainImage:hover {
        transform: scale(1.02);
    }

/* ===============================
   RESPONSIVE
================================ */

@media(max-width:768px) {

    .xs-card img {
        aspect-ratio: 1/1;
    }

    .xs-card .body {
        padding: 1rem;
    }

    .price-tag {
        font-size: 1.1rem;
    }
}
