/*
 * PricePro template — IDL Center / Institut Laser
 * ----------------------------------------------------------------------------
 * Faithful clone of Stylish Price List "Style 2" as deployed on idlcenter.fr.
 *
 * Reference values (extracted live from idlcenter.fr/tarifs-epilation-laser/):
 *   - accent (title, category, price) ........ #e9b200
 *   - item name color ......................... #020202
 *   - description color ....................... #bcb3ab
 *   - separator ............................... #ebebeb (1px)
 *   - title font-size 35px / weight 400 / letter-spacing .15em
 *   - category font-size 25px / weight 600 / letter-spacing .15em
 *   - item name 18px / weight 400
 *   - item price 20px / weight 400
 *   - description 14px / weight 400
 *   - grid: 50% 50% / gap 0 1rem
 *
 * Background is set by the parent theme on idlcenter.fr; we fall back to a
 * warm beige (#f5f0eb) so the template stands on its own when dropped in
 * a neutral page. Override via design_tokens.bg from the builder.
 *
 * Poppins is *not* enqueued by the plugin (RGPD): it is referenced as a
 * preferred face with system-ui as fallback. Authors may enqueue Poppins
 * via their theme or Elementor.
 */

.pricepro-list--idlcenter {
    --pp-bg: #f5f0eb;
    --pp-accent: #e9b200;
    --pp-text: #020202;
    --pp-category-color: #e9b200;
    --pp-muted: #bcb3ab;
    --pp-border: #ebebeb;
    --pp-font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

    background: var(--pp-bg);
    color: var(--pp-text);
    font-family: var(--pp-font-family);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 2rem 3rem;
    border-radius: 0;
    line-height: 1.5;
}

/* Title — uppercase comes from authoring, we keep CSS uppercase as a
   safety net so any casing renders consistently. */
.pricepro-list--idlcenter .pricepro-list__title {
    text-align: center;
    color: var(--pp-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
    font-size: clamp(1.5rem, 1.4rem + 0.5vw, 2.1875rem);
    margin: 0 0 2.5rem;
    line-height: 1.3;
}

/* Tabs (rendered when settings.show_tabs is on) */
.pricepro-list--idlcenter .pricepro-list__tabs {
    justify-content: center;
    gap: 1.5rem;
    margin: 0 0 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(233, 178, 0, 0.18);
    flex-wrap: wrap;
}

.pricepro-list--idlcenter .pricepro-list__tab {
    background: transparent;
    border: 0;
    color: var(--pp-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.pricepro-list--idlcenter .pricepro-list__tab[aria-selected="true"],
.pricepro-list--idlcenter .pricepro-list__tab--active {
    background: transparent;
    color: var(--pp-accent);
    border-bottom-color: var(--pp-accent);
}

.pricepro-list--idlcenter .pricepro-list__tab:hover {
    color: var(--pp-accent);
    border-bottom-color: var(--pp-accent);
}

/* Search — discreet, soft beige background */
.pricepro-list--idlcenter .pricepro-list__search-input {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(233, 178, 0, 0.3);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--pp-text);
}

/* Category — the visual signature: gold uppercase, big letter-spacing */
.pricepro-list--idlcenter .pricepro-list__category {
    padding: 1.5rem 0 0.75rem;
}

.pricepro-list--idlcenter .pricepro-list__category + .pricepro-list__category {
    border-top: 0;
    margin-top: 1.5rem;
}

.pricepro-list--idlcenter .pricepro-list__category-title {
    color: var(--pp-category-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.5625rem);
    text-align: center;
    margin: 0.75rem 0 1.25rem;
}

.pricepro-list--idlcenter .pricepro-list__category-description {
    color: var(--pp-muted);
    font-size: 0.875rem;
    font-weight: 400;
    text-align: center;
    margin: -0.5rem 0 1.25rem;
}

/* Items grid — the SPL Style 2 hallmark: 50% / 50% with horizontal gap */
.pricepro-list--idlcenter .pricepro-list__items {
    display: grid;
    gap: 0 1rem;
}

.pricepro-list--idlcenter .pricepro-list__items--two-cols {
    grid-template-columns: 50% 50%;
}

.pricepro-list--idlcenter .pricepro-list__items--one-col {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

/* Item row: name on the left, price on the right, narrow vertical rhythm */
.pricepro-list--idlcenter .pricepro-list__item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "body price"
        "desc desc"
        "button button";
    align-items: baseline;
    column-gap: 1rem;
    padding: 0.625rem 30px 0.625rem 0;
    border-bottom: 1px solid var(--pp-border);
}

.pricepro-list--idlcenter .pricepro-list__item:last-child {
    border-bottom: 0;
}

.pricepro-list--idlcenter .pricepro-list__item-image {
    display: none;
}

.pricepro-list--idlcenter .pricepro-list__item-body {
    grid-area: body;
    min-width: 0;
}

.pricepro-list--idlcenter .pricepro-list__item-name {
    color: var(--pp-text);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.45;
    margin: 0;
}

.pricepro-list--idlcenter .pricepro-list__item-name-text {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.pricepro-list--idlcenter .pricepro-list__item-tooltip {
    color: var(--pp-muted);
    border-color: var(--pp-muted);
}

.pricepro-list--idlcenter .pricepro-list__item-description {
    grid-area: desc;
    color: var(--pp-muted);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    margin: 0.25rem 7px 0 0;
}

.pricepro-list--idlcenter .pricepro-list__item-price {
    grid-area: price;
    color: var(--pp-accent);
    font-weight: 400;
    font-size: 1.25rem;
    text-align: right;
    white-space: nowrap;
}

.pricepro-list--idlcenter .pricepro-list__item-compare-price {
    color: var(--pp-muted);
    text-decoration: line-through;
    font-size: 0.95em;
    margin-right: 0.4em;
    opacity: 0.7;
}

.pricepro-list--idlcenter .pricepro-list__item-current-price {
    color: var(--pp-accent);
}

/* Optional CTA per item — gold outline, fits the brand */
.pricepro-list--idlcenter .pricepro-list__item-button {
    grid-area: button;
    justify-self: end;
    margin-top: 0.5rem;
    background: transparent;
    color: var(--pp-accent);
    border: 1px solid var(--pp-accent);
    border-radius: 5px;
    padding: 0.3rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pricepro-list--idlcenter .pricepro-list__item-button:hover {
    background: var(--pp-accent);
    color: #fff;
}

/* Mobile: collapse to one column, tighten spacing */
@media (max-width: 640px) {
    .pricepro-list--idlcenter {
        padding: 1.75rem 1.25rem 2.25rem;
    }

    .pricepro-list--idlcenter .pricepro-list__items--two-cols {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pricepro-list--idlcenter .pricepro-list__item {
        padding-right: 0;
    }

    .pricepro-list--idlcenter .pricepro-list__item-name {
        font-size: 1rem;
    }

    .pricepro-list--idlcenter .pricepro-list__item-price {
        font-size: 1.125rem;
    }
}

/*
 * No dark-mode override: the IDL Center identity is the warm beige + gold
 * palette. Dark mode would defeat the purpose of the template.
 */
