.commerce-page {
    width: 100%;
    background-color: #111111;
    color: #F1E9E0;
}

.commerce-page .hero-section {
    position: relative;
    width: 100%;
    height: 57.14vw;
    overflow: hidden;
}

.commerce-page .hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.commerce-page .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.commerce-page .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.55) 0%, #111111 100%);
}

.commerce-page .hero-content {
    position: absolute;
    top: 16.49vw;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    width: 100%;
}

.commerce-page .hero-subtitle {
    font-family: 'Kapakana';
    font-size: 2.86vw;
    color: #F1E9E0;
    font-weight: 400;
    margin: 0 0 3vw;
}

.commerce-page .hero-title {
    font-family: 'CormorantGaramond', serif;
    font-size: 4.17vw;
    font-weight: 400;
    letter-spacing: 0.125vw;
    text-transform: uppercase;
    color: #F1E9E0;
    line-height: 1.56vw;
    margin: 0;
}

.chevaux-section {
    padding: 0 16.51vw 12vw;
    margin-top: -25vw;
    position: relative;
    z-index: 3;
}

.chevaux-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.34vw 2.29vw;
}

.cheval-card {
    background-color: #111111;
    border-radius: 1.04vw;
    box-shadow: 0px 0.52vw 1.56vw #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cheval-image-wrapper {
    position: relative;
    width: 100%;
    height: 11.88vw;
    margin: 2.8vw 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.cheval-image-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16.88vw;
    height: 11.88vw;
    border-radius: 1.04vw;
    background: linear-gradient(180deg, #3f3127 0%, #111111 100%);
    display: none;
}

.cheval-image {
    position: relative;
    z-index: 2;
    max-width: 17.14vw;
    max-height: 16.54vw;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 1vw;
}

.cheval-content {
    padding: 1.04vw 1.3vw 2vw;
    display: flex;
    flex-direction: column;
}

.cheval-name {
    font-family: 'CormorantGaramond', serif;
    font-size: 1.56vw;
    font-weight: 700;
    letter-spacing: 0.078vw;
    text-transform: uppercase;
    color: #A37F66;
    margin: 0;
    text-align: left;
}

.cheval-date {
    font-family: 'CormorantGaramond', serif;
    font-size: 1.3vw;
    font-weight: 300;
    color: #F1E9E0;
    margin: 0.26vw 0 1.04vw;
    text-align: left;
}

.cheval-lineage {
    display: flex;
    justify-content: space-between;
    gap: 1.04vw;
    margin-bottom: 1.04vw;
}

.lineage-item {
    display: flex;
    flex-direction: column;
}

.lineage-label {
    font-family: 'CormorantGaramond', serif;
    font-size: 0.99vw;
    font-weight: 300;
    color: #A37F66;
    white-space: nowrap;
}

.lineage-value {
    font-family: 'CormorantGaramond', serif;
    font-size: 0.99vw;
    font-weight: 500;
    color: #F1E9E0;
}

.cheval-details {
    font-family: 'CormorantGaramond', serif;
    font-size: 0.94vw;
    font-weight: 300;
    line-height: 1.4;
    color: #F1E9E0;
    margin: 0 0 1.3vw;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cheval-details p {
    margin: 0;
}

.cheval-card .btn-animated {
    align-self: flex-start;
}

.chevaux-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3.13vw 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chevaux-loader.loading {
    opacity: 1;
    visibility: visible;
}

.chevaux-loader.finished {
    display: none;
}

.loader-spinner {
    width: 2.08vw;
    height: 2.08vw;
    border: 2px solid rgba(163, 127, 102, 0.3);
    border-top-color: #A37F66;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media only screen and (max-width: 767px) {
    .commerce-page .hero-section {
        height: 120vw;
    }

    .commerce-page .hero-content {
        top: 35%;
    }

    .commerce-page .hero-subtitle {
        font-size: 7vw;
        margin-bottom: 3vw;
    }

    .commerce-page .hero-title {
        font-size: 9vw;
        letter-spacing: 0.3vw;
        line-height: 1.2;
    }

    .chevaux-section {
        padding: 0 7% 15vw;
        margin-top: -35vw;
    }

    .chevaux-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5vw 4vw;
    }

    .cheval-card {
        border-radius: 3vw;
    }

    .cheval-image-wrapper {
        height: 30vw;
        margin-top: 8vw;
    }

    .cheval-image-bg {
        width: 38vw;
        height: 30vw;
        border-radius: 3vw;
    }

    .cheval-image {
        max-width: 40vw;
        max-height: 38vw;
        border-radius: 3vw;

    }

    .cheval-content {
        padding: 3vw 4vw 5vw;
    }

    .cheval-name {
        font-size: 4vw;
        letter-spacing: 0.2vw;
    }

    .cheval-date {
        font-size: 3.5vw;
        margin: 1vw 0 3vw;
    }

    .cheval-lineage {
        flex-direction: column;
        gap: 2vw;
        margin-bottom: 3vw;
    }

    .lineage-item {
        flex-direction: row;
        gap: 1vw;
    }

    .lineage-label {
        font-size: 3vw;
    }

    .lineage-value {
        font-size: 3vw;
    }

    .cheval-details {
        font-size: 3vw;
        line-height: 1.5;
        margin-bottom: 4vw;
    }

    .chevaux-loader {
        padding: 8vw 0;
    }

    .loader-spinner {
        width: 8vw;
        height: 8vw;
    }
}

@media only screen and (max-width: 480px) {
    .chevaux-grid {
        grid-template-columns: 1fr;
        gap: 6vw;
    }

    .cheval-image-wrapper {
        height: 45vw;
        margin-top: 10vw;
    }

    .cheval-image-bg {
        width: 70vw;
        height: 45vw;
    }

    .cheval-image {
        max-width: 75vw;
        max-height: 55vw;
        border-radius: 3vw;
    }
}
