﻿/* ========================================================= */
/* JOLIE CAPRICIEUSE PARIS                                  */
/* FILE : frontend/css/charms.css                           */
/* VERSION : CHARMS V2 / DESKTOP CONSERVE + MOBILE 2 COLS   */
/* ========================================================= */

.charms-page,
.charms-page * {
    box-sizing: border-box;
}

.charms-page {
    background: #F5EDE7;
    color: #111111;
}

/* ========================================================= */
/* HERO CHARMS                                               */
/* ========================================================= */

.charms-hero {
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    padding: 220px 0 96px;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.36) 48%,
            rgba(0, 0, 0, 0.08) 100%
        ),
        var(--charms-hero-image, linear-gradient(135deg, #111111, #F5EDE7));
    background-size: cover;
    background-position: center center;
}

.charms-hero-inner {
    width: min(1460px, calc(100% - 120px));
    margin-inline: auto;
    color: #FFFFFF;
}

.charms-kicker,
.charm-feature-kicker {
    display: block;
    margin-bottom: 18px;
    color: #C6A062;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.charms-hero h1 {
    max-width: 820px;
    margin: 0;
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: clamp(68px, 7vw, 126px);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.charms-hero p {
    max-width: 560px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.75;
}

/* ========================================================= */
/* TOOLBAR                                                   */
/* ========================================================= */

.charms-toolbar {
    width: min(1680px, calc(100% - 48px));
    margin: 0 auto 0px;
    padding: 22px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    background: transparent;
}

.charms-filter-button,
.charms-sort-button {
    min-width: 126px;
    height: 46px;
    padding: 0 22px;
    border: 1px solid rgba(17, 17, 17, 0.10);
    border-radius: 999px;
    background: #FFFFFF;
    color: #111111;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.04);
    cursor: pointer;
}

.charms-filter-button {
    justify-self: start;
}

.charms-sort-button {
    justify-self: end;
}

.charms-count {
    justify-self: center;
    color: #111111;
    font-size: 15px;
    font-weight: 700;
}

/* ========================================================= */
/* CHARMS GRID — DESKTOP                                     */
/* ========================================================= */

.charms-grid-section {
    padding: 36px 0 96px;
    background: #FFFFFF;
}

.charms-grid {
    width: min(1680px, calc(100% - 48px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.charm-card,
.charm-feature-card {
    position: relative;
    text-decoration: none;
    color: #111111;
}

.charm-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: #FFFCFA;
    border: 1px solid rgba(198, 160, 98, 0.20);
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.045);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.charm-card:hover {
    transform: translateY(-4px);
    border-color: rgba(198, 160, 98, 0.42);
    box-shadow: 0 22px 54px rgba(17, 17, 17, 0.09);
}

.charm-card-media-link,
.charm-card-title-link {
    color: inherit;
    text-decoration: none;
}

.charm-card-media {
    position: relative;
    height: 480px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(245, 237, 231, 0.88) 52%,
            rgba(239, 226, 216, 0.70) 100%
        );
}

.charm-photo-discount {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;

    padding: 5px 10px;

    background: #FF8DA1;
    color: #FFFFFF;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;

    border-radius: 4px;
}

.charm-card-media::after {
    content: "";
    position: absolute;
    inset: auto 24% 18px;
    height: 12px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.08);
    filter: blur(12px);
    pointer-events: none;
}

.charm-card-media img,
.charm-feature-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-position: var(--image-position, center center);
    transition: transform 0.75s ease;
}

.charm-card-media img {
    position: relative;
    z-index: 1;
    object-fit: cover;
    padding: 0;
    transform: scale(1);
}

.charm-feature-media img {
    object-fit: cover;
    padding: 0;
    background: #F7F7F7;
}

.charm-card:hover .charm-card-media img,
.charm-feature-card:hover .charm-feature-media img {
    transform: scale(1.035);
}

.charm-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
    background: #FFFFFF;
    text-align: left;
}

.charm-card-meta {
    min-height: 20px;
    margin-bottom: 9px;
}

.charm-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    color: #9B773B;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.charm-card-badge--empty {
    visibility: hidden;
}

.charm-card-content h3 {
    margin: 0;
    color: #111111;
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.charm-card-description {
    min-height: 34px;
    margin: 10px 0 0;
    color: rgba(17, 17, 17, 0.64);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.charm-card-price {
    display: block;
    margin: 14px 0 16px;
    color: #111111;
    font-size: 18px;
    font-weight: 800;
}

.charm-card-price-block{
    display:flex;
    align-items:center;
    gap:5px;
    flex-wrap:wrap;
    margin:14px 0 16px;
    font-size:16px;
    line-height:1.35;
}

.charm-card-price-before{
    color:#C62828;
    text-decoration:line-through;
    font-weight:800;
}

.charm-card-price-discount{
    color:#111111;
    font-size:12px;
    font-weight:700;
}

.charm-card-price-current{
    color:#111111;
    font-weight:800;
}

/* ========================================================= */
/* CARD VARIANT BADGES                                       */
/* ========================================================= */


.product-card-variant-badge{

    width:20px;
    height:20px;

    flex:0 0 20px;

    overflow:hidden;

    border-radius:50%;

    border:1px solid rgba(17,17,17,.15);

    background:#FFFFFF;

    transition:
        transform .20s ease,
        border-color .20s ease;

}


/* ========================================================= */

.charm-card-button {
    width: 100%;
    min-height: 36px;
    margin-top: auto;
    border: 1px solid #111111;
    background: transparent;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.charm-card-button:hover,
.charm-card-button.is-added {
    background: #111111;
    color: #FFFFFF;
}

.charm-card-button:disabled {
    border-color: rgba(17, 17, 17, 0.20);
    color: rgba(17, 17, 17, 0.42);
    cursor: not-allowed;
}

.charm-card-button:disabled:hover {
    background: transparent;
    color: rgba(17, 17, 17, 0.42);
}

/* ========================================================= */
/* FEATURE CARD                                              */
/* ========================================================= */

.charm-feature-card {
    min-height: 420px;
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 0;
    overflow: hidden;
    background: #F5EDE7;
}

.charm-feature-card.is-right {
    grid-column: 3 / span 2;
}

.charm-feature-content {
    padding: 42px;
    position: relative;
    z-index: 2;
}

.charm-feature-content h3 {
    margin: 0 0 18px;
    font-family: var(--font-title, "Cormorant Garamond", serif);
    font-size: clamp(38px, 3vw, 58px);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.charm-feature-content p {
    max-width: 330px;
    margin: 0 0 24px;
    color: rgba(17, 17, 17, 0.72);
    font-size: 14px;
    line-height: 1.7;
}

.charm-feature-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    background: #050505;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.charm-feature-media {
    height: 100%;
    min-height: 420px;
    overflow: hidden;
    background: #F7F7F7;
}

/* ========================================================= */
/* FAVORITE BUTTON                                           */
/* ========================================================= */

.charm-favorite {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: #111111;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: none;
    transition:
        transform 0.25s ease,
        color 0.25s ease,
        background-color 0.25s ease;
}

.charm-favorite:hover {
    transform: translateY(-1px);
    background: transparent !important;
    color: #FFFFFF;
}

.charm-favorite.is-active {
    color: #E4002B !important;
}

/* ========================================================= */
/* LOAD MORE                                                 */
/* ========================================================= */

.charms-load-actions {
    width: min(1680px, calc(100% - 48px));
    margin: 54px auto 0;
    display: flex;
    justify-content: center;
}

.charms-load-button {
    min-width: 260px;
    min-height: 56px;
    border: 1px solid #050505;
    background: #050505;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

.charms-load-button:hover {
    transform: translateY(-2px);
    background: transparent;
    color: #050505;
}

.charms-load-button.is-hidden {
    display: none;
}

/* ========================================================= */
/* STATUS                                                    */
/* ========================================================= */

.charms-status {
    grid-column: 1 / -1;
    width: min(720px, calc(100% - 48px));
    margin: 80px auto;
    padding: 34px;
    background: #F5EDE7;
    color: rgba(17, 17, 17, 0.72);
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
}

/* ========================================================= */
/* RESPONSIVE TABLET                                         */
/* ========================================================= */

@media screen and (max-width: 1180px) {

    .charms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charm-feature-card,
    .charm-feature-card.is-right {
        grid-column: 1 / -1;
    }

}

/* ========================================================= */
/* RESPONSIVE MOBILE — GRILLE 2 COLONNES TYPE PANDORA         */
/* ========================================================= */

@media screen and (max-width: 640px) {

    .charms-page {
        background: #FFFFFF;
    }

    .charms-hero {
        min-height: 520px;
        padding: 220px 0 58px;
        background-position: center top !important;
    }

    .charms-hero-inner {
        width: calc(100% - 34px);
    }

    .charms-hero h1 {
        font-size: 50px;
        line-height: 0.94;
        letter-spacing: -0.05em;
    }

    .charms-hero p {
        max-width: 310px;
        margin-top: 20px;
        font-size: 14px;
        line-height: 1.55;
    }

    .charms-kicker {
        margin-bottom: 14px;
        font-size: 10px;
        letter-spacing: 0.22em;
    }

    .charms-toolbar {
        width: calc(100% - 34px);
        margin: 0 auto 18px;
        padding: 20px 0 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        overflow-x: auto;
        scrollbar-width: none;
        border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    }

    .charms-toolbar::-webkit-scrollbar {
        display: none;
    }

    .charms-filter-button,
    .charms-sort-button {
        flex: 0 0 auto;
        min-width: auto;
        height: auto;
        min-height: 32px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: rgba(17, 17, 17, 0.72);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .charms-filter-button span,
    .charms-sort-button span {
        margin-left: 6px;
    }

    .charms-count {
        flex: 0 0 auto;
        justify-self: auto;
        color: rgba(17, 17, 17, 0.72);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .charms-grid-section {
        padding: 0 0 58px;
        background: #FFFFFF;
    }

    .charms-grid {
        width: calc(100% - 28px);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 8px;
        align-items: start;
    }

    .charm-card {
        min-width: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    .charm-card:hover {
        transform: none;
        border-color: transparent;
        box-shadow: none;
    }

    .charm-card-media {
        height: auto;
        aspect-ratio: 1 / 1.28;
        background: #F7F7F7;
        overflow: hidden;
    }

    .charm-card-media::after {
        display: none;
    }

    .charm-card-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        padding: 16px 10px 18px;
        transform: none;
        background: #F7F7F7;
    }

    .charm-card:hover .charm-card-media img {
        transform: none;
    }

    .charm-favorite {
        top: 10px;
        right: 10px;
        width: 24px;
        height: 24px;
        border: 0;
        background: transparent;
        color: #111111;
        font-size: 20px;
        box-shadow: none;
        backdrop-filter: none;
    }

    .charm-favorite:hover {
        background: transparent !important;
        color: #111111;
        transform: none;
    }

    .charm-card-content {
        padding: 12px 2px 0;
        background: transparent;
        text-align: left;
    }

    .charm-card-meta {
        min-height: auto;
        margin-bottom: 7px;
    }

    .charm-card-badge {
        min-height: auto;
        color: #111111;
        font-family: var(--font-text, "Inter", sans-serif);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.06em;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .charm-card-badge--empty {
        display: none;
    }

    .charm-card-content h3 {
        margin: 0;
        font-family: var(--font-text, "Inter", sans-serif);
        font-size: 13px;
        font-weight: 700;
        line-height: 1.35;
        letter-spacing: 0;
        text-transform: none;
    }

    .charm-card-description {
        min-height: 0;
        margin: 7px 0 0;
        color: #111111;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    .charm-card-price {
        margin: 9px 0 0;
        color: #111111;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.35;
    }

    .charm-card-button {
        width: auto;
        min-height: 0;
        margin-top: 10px;
        padding: 0 0 2px;
        border: 0;
        border-bottom: 1px solid #111111;
        background: transparent;
        color: #111111;
        display: inline-flex;
        justify-content: flex-start;
        gap: 0;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0;
        line-height: 1.25;
        text-transform: none;
    }

    .charm-card-button span {
        display: none;
    }

    .charm-card-button:hover,
    .charm-card-button.is-added {
        background: transparent;
        color: #111111;
    }

    .charm-feature-card,
    .charm-feature-card.is-right {
        grid-column: 1 / -1;
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr;
        margin: 8px 0 4px;
        background: #F5EDE7;
        box-shadow: none;
    }

    .charm-feature-content {
        padding: 28px 22px 22px;
        text-align: left;
    }

    .charm-feature-kicker {
        margin-bottom: 12px;
        font-size: 10px;
        letter-spacing: 0.20em;
    }

    .charm-feature-content h3 {
        margin-bottom: 14px;
        font-size: 38px;
        line-height: 0.96;
    }

    .charm-feature-content p {
        max-width: 100%;
        margin: 0 0 18px;
        font-size: 13px;
        line-height: 1.65;
    }

    .charm-feature-button {
        min-height: 0;
        padding: 0 0 3px;
        background: transparent;
        color: #111111;
        border-bottom: 1px solid #111111;
        font-size: 12px;
        letter-spacing: 0;
        text-transform: none;
    }

    .charm-feature-media {
        min-height: 260px;
        height: 260px;
        background: #F7F7F7;
    }

    .charm-feature-media img {
        object-fit: cover;
        object-position: center center;
    }

    .charms-load-actions {
        width: calc(100% - 28px);
        margin: 44px auto 0;
    }

    .charms-load-button {
        width: 100%;
        min-height: 50px;
        font-size: 11px;
    }

    .charms-status {
        grid-column: 1 / -1;
        width: calc(100% - 28px);
        margin: 44px auto;
        padding: 24px;
        font-size: 13px;
    }

}

/* ========================================================= */
/* LEGAL PAGES — FORCE HERO + CONTENT SPACING                 */
/* ========================================================= */

main.legal-standard-page .charms-hero.legal-hero {
    min-height: auto !important;
    height: auto !important;
    padding-top: 220px !important;
    padding-bottom: 80px !important;
}

main.legal-standard-page .customer-page-shell.legal-standard-content {
    padding: 48px 0 96px !important;
}