.goodies-shop {
    padding: 56px 18px 110px;
    background: #f7f7f7;
}

.goodies-intro {
    max-width: 920px;
    margin: 28px auto 48px;
    text-align: center;
    color: #434343;
    line-height: 1.55;
}

.goodies-intro a {
    color: #2f67bc;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.goodies-intro a:hover,
.goodies-intro a:focus-visible {
    color: #202020;
}

.goodies-shop > h3 {
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.goodies-shop > h3::after {
    content: "";
    display: block;
    width: 72px;
    height: 5px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: var(--company-color);
}

.goodies-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    max-width: 1180px;
    margin: 0 auto;
}

.goodie-product {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(32, 32, 32, 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(32, 32, 32, 0.06);
}

.goodie-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.goodie-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: transparent;
    overflow: hidden;
}

.goodie-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 1px solid rgba(32, 32, 32, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #202020;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.goodie-gallery-nav:hover,
.goodie-gallery-nav:focus-visible {
    border-color: var(--company-color);
    background: #fff8d8;
    color: #202020;
}

.goodie-gallery-prev {
    left: 10px;
}

.goodie-gallery-next {
    right: 10px;
}

.goodie-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    opacity: 1;
    transition: opacity 0.22s ease;
}

.goodie-image.is-changing {
    opacity: 0;
}

.goodie-gallery-thumbs {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    min-height: 60px;
}

.goodie-gallery-thumb {
    width: 60px;
    height: 60px;
    padding: 4px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    opacity: 0.78;
    transition: border-color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.goodie-gallery-thumb:hover,
.goodie-gallery-thumb:focus-visible,
.goodie-gallery-thumb.is-active {
    border-color: #2f67bc;
    background: #eef7fb;
    opacity: 1;
}

.goodie-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.goodie-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
}

.goodie-title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.goodie-title {
    margin: 0;
    color: #202020;
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 800;
    text-align: left !important;
    width: 100%;
}

.goodies-shop .goodie-product h4 {
    text-align: left !important;
    width: 100%;
}

.goodie-description {
    color: #404040;
    font-size: 1rem;
    line-height: 1.65;
    text-align: left;
    margin: 0;
}

.goodie-purchase {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: auto;
}

.goodie-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
}

.goodie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.goodie-meta .prix_normal {
    margin: 0;
    color: #2f67bc;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 800;
}

.goodie-variant-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #303030;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 9px;
}

.goodie-variant-hint {
    color: #777;
    font-size: 0.78rem;
    font-weight: 600;
}

.goodie-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
    margin: 0;
    padding: 0;
}

.goodie-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin-top: 4px;
}

.goodie-variant-option {
    position: relative;
}

.goodie-variant-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.goodie-variant-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid #d8dde1;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    color: #303030;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.15;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.goodie-variant-option input:checked + .goodie-variant-chip {
    border-color: #2f67bc;
    background: #eef7fb;
}

.goodie-variant-option input:focus-visible + .goodie-variant-chip {
    outline: 2px solid #2f67bc;
    outline-offset: 2px;
}

.goodie-variant-option input:disabled + .goodie-variant-chip {
    cursor: not-allowed;
    color: #8a8a8a;
    background: #f1f1f1;
    border-color: #e1e1e1;
    text-decoration: line-through;
}

.goodie-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    background: #f8eeee;
    color: #b4232a;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.btn-ajout-panier.goodie-submit {
    width: auto;
    margin: 0;
    cursor: pointer;
    min-height: 40px;
    min-width: 148px;
    padding: 9px 18px;
    border: 1px solid var(--vert);
    border-radius: 8px;
    background: var(--vert);
    color: #fff !important;
    box-shadow: none;
    transform: none;
}

.btn-ajout-panier.goodie-submit:hover,
.btn-ajout-panier.goodie-submit:focus-visible {
    border-color: var(--vert-hover);
    background: var(--vert-hover);
    color: #fff !important;
    box-shadow: none;
    transform: none;
}

.btn-ajout-panier.goodie-submit:disabled,
.btn-ajout-panier.goodie-disabled {
    background: #e9e9e9;
    color: #777;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 767px) {
    .goodies-shop {
        padding-top: 38px;
    }

    .goodies-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .goodie-product {
        padding: 14px;
    }

    .goodie-image-container {
        min-height: 240px;
    }

    .goodie-gallery-nav {
        width: 32px;
        height: 32px;
    }

    .goodie-action-row {
        align-items: stretch;
    }

    .btn-ajout-panier.goodie-submit {
        flex: 1 1 auto;
        min-width: 0;
    }
}
