/* ================================
   THE COLLECTION PAGE
================================ */

.collection-page {
    margin-left: 250px;
    width: calc(100% - 250px);
}

.collection-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* HERO */

.collection-hero {
    text-align: center;
    padding: 60px 20px 30px;
}

.collection-hero h1 {
    font-family: 'CinzelCustom', serif;
    color: #B09E80;
}

.collection-intro {
    max-width: 720px;
    margin: 10px auto;
}

/* ================================
   CARDS
================================ */

.collection-card {
    position: relative;
    overflow: hidden;

    background: #f4f4f4;
    border-radius: 12px;
    padding: 26px;
    margin-bottom: 30px;

    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    display: flex;
    flex-direction: column;
    min-height: 230px;

    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.collection-card h3,
.collection-description,
.collection-note,
.collection-price {
    max-width: 55%;
}

.collection-card h3 {
    font-family: 'CinzelCustom', serif;
    color: #B09E80;
}

/* ================================
   DESCRIPTION
================================ */

.collection-description {
    margin: 10px 0 15px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
    position: relative;
}

.collection-description::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 30px;

    background: linear-gradient(
        to bottom,
        rgba(244,244,244,0),
        rgba(244,244,244,1)
    );
}

/* EXPANDED */

.collection-card.expanded .collection-description {
    display: block;
}

.collection-card.expanded .collection-description::after {
    display: none;
}

/* NOTE */

.collection-note {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    margin: 0 0 14px;
}

/* PRICE */

.collection-price {
    margin-top: auto;
    font-size: 0.9rem;
    color: #716551;
    font-weight: 500;
}

/* IMAGE LAYER */

.collection-card-image {
    position: absolute;
    top: 0;
    right: 0;

    width: 42%;
    height: 100%;

    pointer-events: none;
    opacity: 0.9;
}

.collection-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-card-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to left,
        rgba(244,244,244,0) 0%,
        rgba(244,244,244,0.65) 45%,
        rgba(244,244,244,1) 75%
    );
}

/* CONTENT ABOVE IMAGE */

.collection-card > *:not(.collection-card-image) {
    position: relative;
    z-index: 2;
}

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

@media (max-width: 768px) {

    .collection-page {
        margin-left: 0;
        width: 100%;
    }

    .collection-card {
        min-height: auto;
    }

    .collection-card-image {
        display: none;
    }

    .collection-card h3,
    .collection-description,
    .collection-note,
    .collection-price {
        max-width: 100%;
    }

}