/* =========================================================
   Boutique Tany Mena — redesign cohérent avec la charte
========================================================= */
.tm-shop-hero {
    background: linear-gradient(rgba(96,45,3,0.05), rgba(96,45,3,0.08)),
                url('/assets/img/home/routine-skincare-slow-beauty-tany-mena-madagascar.png') center/cover no-repeat;
    padding: 70px 0;
    text-align: center;
    margin-bottom: 50px;
    border-radius: 0 0 12px 12px;
}

.tm-shop-hero__eyebrow {
    font-family: var(--af-ff-gotham-extra-bold);
    color: #e9e6df;
    letter-spacing: 3px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tm-shop-hero__title {
    font-family: var(--af-ff-gotham-extra-bold);
    color: #e9e6df;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}

.tm-shop-hero__lead {
    font-size: 15px;
    line-height: 1.6;
    color: #e9e6df;
    max-width: 640px;
    margin: 0 auto;
}

/* ----- Sidebar ----- */
.tm-shop-aside {
    background: #e9e6df;
    border: 1px solid #e3d6c5;
    border-radius: 8px;
    padding: 26px 22px;
}

.tm-shop-aside__title {
    font-family: var(--af-ff-gotham-extra-bold);
    color: var(--af-theme-primary);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3d6c5;
}

.tm-shop-aside__search {
    margin-bottom: 24px;
}

.tm-shop-aside__search input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e3d6c5;
    border-radius: 4px;
    font-size: 14px;
    background: #e9e6df;
    outline: none;
    transition: border-color 200ms ease;
}

.tm-shop-aside__search input:focus {
    border-color: var(--af-theme-primary);
}

.tm-shop-aside__btn {
    margin-top: 10px;
    padding: 10px 18px;
    background: var(--af-theme-primary);
    color: #e9e6df;
    border: none;
    font-family: var(--af-ff-gotham-extra-bold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background 200ms ease;
    width: 100%;
}

.tm-shop-aside__btn:hover {
    background: #612e03;
}

.tm-shop-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tm-shop-categories li {
    margin-bottom: 3px;
}

.tm-shop-categories a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: rgba(0,0,0,0.72);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    transition: all 200ms ease;
}

.tm-shop-categories a:hover {
    background: #e9e6df;
    color: var(--af-theme-primary);
    border-color: #e3d6c5;
}

.tm-shop-categories a.active {
    background: var(--af-theme-primary);
    color: #e9e6df;
    font-family: var(--af-ff-gotham-extra-bold);
    font-weight: 700;
}

/* ----- Grille + carte produit ----- */
.tm-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .tm-shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tm-shop-grid {
        grid-template-columns: 1fr;
    }
}

/* Page /boutique/nos-coffrets-fete-des-meres — 2 coffrets côte à côte */
.tm-shop-page--mothers-day .tm-shop-grid--two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 576px) {
    .tm-shop-page--mothers-day .tm-shop-grid--two-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

.tm-shop-card {
    background: #e9e6df;
    border: 1px solid #e3d6c5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.tm-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(96,45,3,0.12);
}

.tm-shop-card__media {
    position: relative;
    height: 280px;
    background: #e9e6df;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tm-shop-card__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 400ms ease;
}

.tm-shop-card:hover .tm-shop-card__media img {
    transform: scale(1.05);
}

.tm-shop-card__actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 250ms ease;
}

.tm-shop-card:hover .tm-shop-card__actions {
    opacity: 1;
    transform: translateX(0);
}

.tm-shop-card__action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9e6df;
    border: 1px solid #e3d6c5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--af-theme-primary);
    cursor: pointer;
    transition: all 200ms ease;
}

.tm-shop-card__action:hover {
    background: var(--af-theme-primary);
    color: #e9e6df;
    border-color: var(--af-theme-primary);
}

.tm-shop-card__action svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.tm-shop-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--af-theme-primary);
    color: #e9e6df;
    font-family: var(--af-ff-gotham-extra-bold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
}

.tm-shop-card__body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tm-shop-card__name {
    font-family: var(--af-ff-gotham-extra-bold);
    color: var(--af-theme-primary);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
    min-height: 41px;
}

.tm-shop-card__name a {
    color: inherit;
    text-decoration: none;
}

.tm-shop-card__name a:hover {
    color: #994217;
}

.tm-shop-card__price {
    font-family: var(--af-ff-gotham-extra-bold);
    color: #612e03 !important;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
}

.tm-shop-card__cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: transparent;
    color: var(--af-theme-primary);
    border: 1.5px solid var(--af-theme-primary);
    border-radius: 4px;
    font-family: var(--af-ff-gotham-extra-bold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 200ms ease;
    width: 100%;
}

.tm-shop-card__cta:hover {
    background: var(--af-theme-primary);
    color: #e9e6df;
}

.tm-shop-card__cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.tm-shop-card__cta--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ----- Pagination ----- */
.tm-shop-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.tm-shop-pagination .pagination {
    gap: 6px;
}

.tm-shop-pagination .page-link {
    color: var(--af-theme-primary);
    border-color: #e3d6c5;
    font-family: var(--af-ff-gotham-extra-bold);
    font-weight: 700;
}

.tm-shop-pagination .page-item.active .page-link {
    background: var(--af-theme-primary);
    border-color: var(--af-theme-primary);
}

/* ----- Empty state ----- */
.tm-shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #e9e6df;
    border-radius: 8px;
    border: 1px solid #e3d6c5;
}

.tm-shop-empty svg {
    width: 64px;
    height: 64px;
    stroke: #8d9580;
    margin-bottom: 18px;
}

.tm-shop-empty p {
    font-size: 15px;
    color: rgba(0,0,0,0.6);
}

/* ----- Grille rubriques ----- */
.tm-shop-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .tm-shop-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tm-shop-category-grid {
        grid-template-columns: 1fr;
    }
}

.tm-shop-category-card {
    display: flex;
    flex-direction: column;
    background: #e9e6df;
    border: 1px solid #e3d6c5;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.tm-shop-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(96, 45, 3, 0.12);
}

.tm-shop-category-card__media {
    height: 200px;
    overflow: hidden;
    background: #d9d4c8;
}

.tm-shop-category-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-shop-category-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tm-shop-category-card__title {
    font-family: var(--af-ff-gotham-extra-bold);
    color: var(--af-theme-primary);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tm-shop-category-card__desc {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.62);
    margin-bottom: 14px;
}

.tm-shop-category-card__cta {
    margin-top: auto;
    font-family: var(--af-ff-gotham-extra-bold);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--af-theme-primary);
}

.tm-shop-hero__back {
    margin-top: 16px;
    font-size: 14px;
}

.tm-shop-hero__back a {
    color: #e9e6df;
    text-decoration: underline;
}

.tm-shop-categories--nested {
    margin: 4px 0 8px 12px;
    padding-left: 8px;
    border-left: 2px solid #e3d6c5;
}

.tm-shop-categories--nested a {
    font-size: 13px;
    padding: 8px 12px;
}

@media (max-width: 768px) {
    .tm-shop-hero {
        padding: 45px 0;
    }
    .tm-shop-hero__title {
        font-size: 28px;
    }
    .tm-shop-card__media {
        height: 220px;
    }
}
