/* =========================================================
   Product Details - Tany Mena (Zinzino-inspired layout)
========================================================= */

.tm-pdp {
    padding-top: 40px;
    padding-bottom: 60px;
}

.tm-pdp__crumb {
    font-size: 13px;
    color: rgba(0,0,0,0.55);
    margin-bottom: 22px;
}

.tm-pdp__crumb a {
    color: rgba(0,0,0,0.65);
    text-decoration: none;
}

.tm-pdp__crumb a:hover {
    color: var(--af-theme-primary);
}

/* Cadre image principal : ratio fixe, toute source (portrait, paysage, carré) s’adapte */
.tm-pdp__media {
    --tm-pdp-media-ratio: 1 / 1;
    aspect-ratio: var(--tm-pdp-media-ratio);
    width: 100%;
    max-width: 100%;
    min-height: 0;
    background: #e9e6df;
    border-radius: 8px;
    overflow: hidden;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tm-pdp__media > img,
.tm-pdp__media figure.containerZoom {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-pdp__media > img,
.tm-pdp__media figure.containerZoom img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Vignettes galerie */
.tm-pdp .single-zoom-thumb ul li {
    border: 1px solid #e3d6c5;
    border-radius: 6px;
    overflow: hidden;
    background: #e9e6df;
}

.tm-pdp .single-zoom-thumb ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    aspect-ratio: 1;
    padding: 6px;
    box-sizing: border-box;
}

.tm-pdp .single-zoom-thumb ul li a img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.tm-pdp__title {
    font-family: var(--af-ff-gotham-extra-bold);
    color: var(--af-theme-primary);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.tm-pdp__lead {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(0,0,0,0.7);
    margin-bottom: 24px;
}

/* ----- Cartes d'offre (radios) ----- */
.tm-offer {
    display: block;
    border: 1.5px solid #e3d6c5;
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease;
    background: #e9e6df;
}

.tm-offer:hover {
    border-color: var(--af-theme-primary);
}

.tm-offer__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tm-offer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tm-offer__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tm-offer__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #8d9580;
    flex-shrink: 0;
    position: relative;
    transition: all 200ms ease;
}

.tm-offer__label {
    font-family: var(--af-ff-gotham-extra-bold);
    color: var(--af-theme-primary);
    font-size: 16px;
    font-weight: 800;
}

.tm-offer__price {
    font-family: var(--af-ff-gotham-extra-bold);
    color: var(--af-theme-primary);
    font-size: 20px;
    font-weight: 800;
}

.tm-offer__price-old {
    color: rgba(0,0,0,0.4);
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 400;
    margin-right: 10px;
}

/* État sélectionné */
.tm-offer input:checked ~ .tm-offer__header .tm-offer__dot,
.tm-offer:has(input:checked) .tm-offer__dot {
    border-color: var(--af-theme-primary);
    background: var(--af-theme-primary);
    box-shadow: inset 0 0 0 4px #e9e6df;
}

.tm-offer:has(input:checked) {
    border-color: var(--af-theme-primary);
    background: #e9e6df;
}

/* Fallback pour navigateurs sans :has() */
.tm-offer--checked {
    border-color: var(--af-theme-primary);
    background: #e9e6df;
}

.tm-offer--checked .tm-offer__dot {
    border-color: var(--af-theme-primary);
    background: var(--af-theme-primary);
    box-shadow: inset 0 0 0 4px #e9e6df;
}

/* Bloc "promo" dans l'offre autoship */
.tm-offer__badge {
    display: inline-block;
    background: #994217;
    color: #e9e6df;
    font-family: var(--af-ff-gotham-extra-bold);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.tm-offer__body {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(0,0,0,0.65);
    margin-top: 10px;
    padding-left: 34px;
}

.tm-offer__hint {
    font-size: 12px;
    color: rgba(0,0,0,0.5);
    margin-top: 6px;
    padding-left: 34px;
}

/* Collapse "Qu'est-ce qui est inclus ?" */
.tm-includes {
    margin-top: 10px;
}

.tm-includes__summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 18px;
    border: 1px solid #e3d6c5;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--af-theme-primary);
    font-family: var(--af-ff-gotham-extra-bold);
    outline: none;
}

.tm-includes__summary::-webkit-details-marker {
    display: none;
}

.tm-includes__arrow {
    transition: transform 200ms ease;
}

.tm-includes[open] .tm-includes__arrow {
    transform: rotate(180deg);
}

.tm-includes__body {
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(0,0,0,0.72);
    border: 1px solid #e3d6c5;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

/* Récap prix et CTA */
.tm-pdp__retail {
    font-size: 13px;
    color: rgba(0,0,0,0.55);
    margin: 28px 0 4px;
}

.tm-pdp__total {
    font-family: var(--af-ff-gotham-extra-bold);
    color: var(--af-theme-primary);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 18px;
}

.tm-pdp__size-select {
    max-width: 280px;
    border: 1.5px solid #e3d6c5;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--af-theme-primary);
    background: #fff;
}

.tm-pdp__size-select:focus {
    border-color: var(--af-theme-primary);
    box-shadow: 0 0 0 0.2rem rgba(97, 46, 3, 0.15);
}

.tm-pdp__qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 16px;
}

.tm-pdp__qty input {
    width: 72px;
    padding: 10px 12px;
    border: 1px solid #e3d6c5;
    border-radius: 4px;
    text-align: center;
    font-size: 15px;
    font-family: var(--af-ff-gotham-extra-bold);
    color: var(--af-theme-primary);
}

.tm-pdp__cta {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: #612e03;
    color: #e9e6df;
    border: none;
    border-radius: 4px;
    font-family: var(--af-ff-gotham-extra-bold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 200ms ease, transform 200ms ease;
}

.tm-pdp__cta:hover:not(:disabled) {
    background: var(--af-theme-primary);
    transform: translateY(-2px);
}

.tm-pdp__cta:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Badges sous CTA (expédition, paiement, etc.) */
.tm-pdp__assur {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e3d6c5;
}

.tm-pdp__assur-item {
    text-align: center;
}

.tm-pdp__assur-item svg {
    width: 26px;
    height: 26px;
    stroke: var(--af-theme-primary);
    margin-bottom: 6px;
}

.tm-pdp__assur-item__title {
    font-family: var(--af-ff-gotham-extra-bold);
    font-size: 12px;
    color: var(--af-theme-primary);
    font-weight: 800;
    margin-bottom: 2px;
}

.tm-pdp__assur-item__sub {
    font-size: 11px;
    color: rgba(0,0,0,0.55);
}

/* ----- Autres produits disponibles (propositions) ----- */
.tm-pdp-propositions .section-products-item {
    background: #e9e6df;
    border: 1px solid #e3d6c5;
    border-radius: 8px;
    overflow: hidden;
    min-width: auto;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 250ms ease, transform 250ms ease;
}

.tm-pdp-propositions .section-products-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(96,45,3,0.10);
}

.tm-pdp-propositions .section-products-item-img-container,
.tm-pdp-propositions .banner_thumb {
    height: 260px !important;
    min-height: 260px;
    max-height: 260px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #e9e6df;
    padding: 16px;
    overflow: hidden;
}

.tm-pdp-propositions .section-products-item-img-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tm-pdp-propositions .section-products-item-img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

.tm-pdp-propositions .splide__slide {
    height: auto;
    display: flex;
}

.tm-pdp-propositions .splide__list {
    align-items: stretch;
}

.tm-pdp-propositions .section-products-item-title {
    font-family: var(--af-ff-gotham-extra-bold);
    color: var(--af-theme-primary) !important;
    font-size: 15px;
    font-weight: 800;
    min-height: 44px;
    line-height: 1.35;
}

.tm-pdp-propositions .section-products-item-price {
    font-family: var(--af-ff-gotham-extra-bold);
    color: #612e03 !important;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

/* ----- Sections descriptives linéaires ----- */
.tm-pdp-sections {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e3d6c5;
}

.tm-pdp-section {
    margin-bottom: 36px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(0,0,0,0.78);
}

.tm-pdp-section__title {
    font-family: var(--af-ff-gotham-extra-bold);
    color: #994217;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
    margin-top: 28px;
}

.tm-pdp-accordion {
    border: 1px solid #e3d6c5;
    border-radius: 8px;
    background: #e9e6df;
    overflow: hidden;
}

.tm-pdp-accordion .tm-pdp-section__title {
    margin: 0;
    padding: 16px 48px 16px 18px;
    cursor: pointer;
    position: relative;
    list-style: none;
}

.tm-pdp-accordion .tm-pdp-section__title::-webkit-details-marker {
    display: none;
}

.tm-pdp-accordion .tm-pdp-section__title::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    line-height: 1;
    color: var(--af-theme-primary);
}

.tm-pdp-accordion[open] .tm-pdp-section__title::after {
    content: "−";
}

.tm-pdp-accordion__content {
    padding: 0 18px 18px;
    border-top: 1px solid #e3d6c5;
}

.tm-pdp-auto-accordion {
    margin-top: 12px;
}

.tm-pdp-intro-content {
    padding: 0 0 16px;
    border-top: 0;
}

.tm-pdp-section p {
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(0,0,0,0.78);
    line-height: 1.7;
}

.tm-pdp-section h4 {
    font-family: var(--af-ff-gotham-extra-bold);
    color: var(--af-theme-primary);
    font-size: 15px;
    font-weight: 800;
    margin: 22px 0 12px;
}

.tm-pdp-section ul {
    padding-left: 0;
    list-style: none;
}

.tm-pdp-section ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(0,0,0,0.78);
}

.tm-pdp-section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: #994217;
    border-radius: 50%;
}

.tm-pdp-section ul li strong {
    color: var(--af-theme-primary);
    font-family: var(--af-ff-gotham-extra-bold);
}

.tm-pdp-section em {
    color: var(--af-theme-primary);
    font-style: italic;
    font-family: var(--af-ff-gotham-extra-bold);
    font-weight: 600;
}

@media (max-width: 768px) {
    .tm-pdp__title {
        font-size: 24px;
    }
    .tm-pdp__total {
        font-size: 26px;
    }
    .tm-pdp__media {
        padding: 12px;
    }

    .tm-pdp .single-zoom-thumb ul li a {
        width: 72px;
        height: 72px;
    }
}
