/* --- collection --- */
.collection   {
    width: 100%;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

.collection .heading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 105px;
    background-image: url("/static/assets/background_image.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.collection .heading h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
}

.custom-hero {
    margin: 24px 70px 0;
    border-radius: 22px;
    padding: 24px;
    border: 2px solid black;
    background: #ffffff;
    color: #111;
}

.custom-hero__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.custom-hero__text {
    display: grid;
    gap: 6px;
}

.custom-hero__kicker {
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: black;
}

.custom-hero__content p {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0;
    color: #0f172a;
}

.custom-hero__btn {
    color: black;
    border-color: black;
}

.custom-hero__btn:hover {
    background-color: black;
    color: white;
}

.collection-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    justify-content: center;
    grid-gap: 30px;
    row-gap: 30px;
    padding: 40px 70px 40px;
}

.collection-grid .card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.collection-grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    flex: 1;
    min-height: 0;
    display: block;
    object-fit: cover;
    border-radius: 15px;
}

.collection-grid .price {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 12px;
}

.collection-grid .price .before {
    text-decoration: line-through;
    font-size: 1.3rem;
    color: rgb(51, 51, 51);
}

.collection-grid .price .after {
    font-weight: bold;
    font-size: 1.5rem;
    color: black;
}

.collection-grid .card-btn {
    position: absolute;
    bottom: 77px;
    left: 16px;
    right: 16px;
    transform: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collection-grid .card-btn form {
    flex: 1;
}

.collection-grid .card-btn > .btn,
.collection-grid .card-btn form button {
    width: 100%;
}

.collection-grid .add-to-cart {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    padding: 8px 20px;
    color: white;
    border-color: white;
    text-decoration: none;
}

.collection-grid .add-to-cart:hover {
    background-color: white;
    color: black;
    cursor: pointer;
}   

.collection-grid .add-to-cart.is-added {
    background-color: white;
    color: black;
    border-color: white;
}

/* --- page navigation --- */
.pages-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-bottom: 70px;
}

.pages-nav .btn {
    color: black;
    padding: 8px 12px;
    border-radius: 15px;
    border: 2px solid black;
}

.pages-nav .btn:hover {
    background-color: black;
    color: white;
}

/* --- empty state --- */
.empty-state {
    width: 100%;
    min-height: 100vh;
    background-color: white;
    font-family: 'Poppins', sans-serif;
}

.empty-state .heading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 17vh;
    background-image: url("/static/assets/background_image.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.empty-state .heading h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
}

.empty-state .error-message {
    height: calc(100vh - 17vh);
    display: flex;
    justify-content: center;
    align-items: center;
}

.empty-state .error-message p {
    font-size: 2.2rem;
    opacity: 0.8;
    font-weight: bold;
}

@media (max-width: 768px) {
    .collection .heading h1 { font-size: 2.2rem; }

    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        row-gap: 24px;
        padding: 30px 16px 30px;
    }

    .custom-hero {
        margin: 16px;
        padding: 18px 16px;
    }

    .collection-grid .card {
        flex-direction: column;
    }

    .collection-grid .card-btn {
        left: 18px;
        right: 18px;
        bottom: 75px;
        gap: 5px;
    }

    .pages-nav { 
        padding-bottom: 30px;
        gap: 10px; 
    }
}

@media (max-width: 420px) {
    .collection .heading h1 { font-size: 2rem; }

    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 24px;
        padding: 40px 12px 40px;
        gap: 16px;
    }

    .custom-hero {
        margin: 14px 12px 0;
        padding: 16px 14px;
    }

    .collection-grid .price .before {
        font-size: 1.08rem;
    }

    .collection-grid .price .after {
        font-size: 1.2rem;
    }
}