/* Page publique association — inspirée de la page CMS "Association Démo" (id 10) */

.associationshop-page .assoc-hero {
    background-color: #fff8ee;
    padding: 50px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.associationshop-page .assoc-title {
    font-size: 37px;
    font-weight: 700;
    line-height: 1.1em;
    margin: 0 0 14px;
}

.associationshop-page .assoc-desc {
    font-size: 18px;
    line-height: 1.45em;
    margin-bottom: 16px;
}

.associationshop-page .assoc-pickup {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3em;
    margin-bottom: 8px;
}

.associationshop-page .assoc-pickup strong {
    white-space: nowrap;
}

.associationshop-page .assoc-pickup-text {
    font-size: 15px;
}

.associationshop-page .assoc-hero-illus {
    display: block;
    max-width: 70%;
    height: auto;
    margin: 0 auto 18px;
}

.associationshop-page .assoc-cta {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 28px;
    color: #ffffff;
    background-color: #8aa63f;
    border-color: #8aa63f;
    font-weight: 600;
    letter-spacing: .04em;
}

.associationshop-page .assoc-cta:hover,
.associationshop-page .assoc-cta:focus {
    color: #ffffff;
    background-color: #81d742;
    border-color: #81d742;
}

.associationshop-page .assoc-intro {
    margin: 8px 0 24px;
}

.associationshop-page .assoc-intro-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.associationshop-page .assoc-intro-sub {
    font-size: 16px;
    margin: 0 auto;
    max-width: 720px;
}

.associationshop-page .assoc-products {
    margin-bottom: 40px;
}

/* Tablette */
@media (max-width: 991px) {
    .associationshop-page .assoc-hero {
        padding: 32px 18px;
        text-align: center;
    }
    .associationshop-page .assoc-hero-illus {
        max-width: 55%;
    }
    .associationshop-page .assoc-title {
        font-size: 28px;
    }
    .associationshop-page .assoc-intro-title {
        font-size: 26px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .associationshop-page .assoc-hero {
        padding: 24px 14px;
        margin-bottom: 22px;
    }
    .associationshop-page .assoc-title {
        font-size: 25px;
    }
    .associationshop-page .assoc-desc {
        font-size: 16px;
    }
    .associationshop-page .assoc-pickup {
        font-size: 17px;
    }
    .associationshop-page .assoc-cta {
        width: 100%;
        max-width: 320px;
        margin-top: 18px;
    }
    .associationshop-page .assoc-hero-illus {
        max-width: 60%;
    }
    .associationshop-page .assoc-products .product-miniature {
        margin-bottom: 22px;
    }
}

/* ---------- Cartes produit de la feuille de commande ---------- */
.associationshop-page .assoc-products-grid { margin-top: 8px; }
.associationshop-page .assoc-product-col { margin-bottom: 24px; }

.associationshop-page .assoc-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #ececec;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.associationshop-page .assoc-product-media {
    display: block;
    background: #fafafa;
    text-align: center;
}
.associationshop-page .assoc-product-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.associationshop-page .assoc-product-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.associationshop-page .assoc-product-name {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}
.associationshop-page .assoc-product-name a { color: inherit; }
.associationshop-page .assoc-product-price {
    font-size: 19px;
    font-weight: 700;
    color: #8aa63f;
}
.associationshop-page .assoc-product-oos {
    margin: 4px 0 0;
    font-weight: 600;
    color: #b0413e;
}
.associationshop-page .assoc-add-form {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.associationshop-page .assoc-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    overflow: hidden;
    width: 132px;
}
.associationshop-page .assoc-qty-btn {
    border: 0;
    background: #f3f3f3;
    width: 40px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
}
.associationshop-page .assoc-qty-btn:active { background: #e7e7e7; }
.associationshop-page .assoc-qty-input {
    width: 52px;
    border: 0;
    border-left: 1px solid #d5d5d5;
    border-right: 1px solid #d5d5d5;
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
}
.associationshop-page .assoc-qty-input::-webkit-outer-spin-button,
.associationshop-page .assoc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.associationshop-page .assoc-add-btn {
    background-color: #8aa63f;
    border-color: #8aa63f;
    color: #fff;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 12px 16px;
    touch-action: manipulation;
}
.associationshop-page .assoc-add-btn:hover,
.associationshop-page .assoc-add-btn:focus { background-color: #81d742; border-color: #81d742; color: #fff; }
.associationshop-page .assoc-add-btn.is-loading { opacity: .7; pointer-events: none; }

@media (min-width: 768px) {
    .associationshop-page .assoc-add-form { flex-direction: row; align-items: center; }
    .associationshop-page .assoc-add-btn { flex: 1; }
}
