@import './common.css';

.collection-box {
    display: flex;
    margin: var(--size40) auto;
    flex-wrap: wrap;
    min-height: calc(100vh - 446px);
}

.collection-title {
    font-family: 'Tajawal';
    font-weight: 400;
    font-size: var(--size40);
    color: var(--base);
    margin: 0;
    padding: 0 0.8rem;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(49.95%, 22.5%));
    grid-row-gap: var(--size30);
    gap: var(--size40);
    width: 100%;
}

.cards-grid .item {
    position: relative;
    opacity: 1;
    padding: var(--size10);
}

.cards-grid .item figure {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.5s;
    margin-bottom: var(--size20);
    max-height: 270px;
    background-color: var(--bgBox);
}

.cards-grid .item figure a {
    display: flex;
}

.cards-grid .item:hover {
    box-shadow: 0px 10px 20px #0000004d;
}

.cards-grid .item:hover .add-to-cart {
    bottom: 0;
}

.cards-grid .item figure img {
    object-fit: cover;
    position: relative;
    width: 100%;
    transition: all 0.3s;
    height: auto;
}

.cards-grid .item figure img.image-hover {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
    opacity: 0;
}

.cards-grid .item:hover figure img.image-hover:hover {
    opacity: 1;
    transform: scale(1.1);
}

.card-content {
    font-size: var(--size14);
    position: relative;
    text-align: left;
    line-height: 1.5;
    padding-bottom: var(--size20);
}

.card-content .title {
    font-family: 'Tajawal-Bold';
    color: var(--base);
    text-decoration: none;
    cursor: pointer;
    white-space: wrap;
}

.card-content .rate {
    font-family: 'Tajawal-Medium';
    font-size: var(--size18);
}

.card-content .discount {
    font-family: 'Tajawal-Medium';
    font-weight: 500;
    font-size: var(--size18);
    padding-right: 0.3rem;
    color: var(--base);
    text-decoration: line-through;
}
