/* RUINES DZ — Boutique : styles isolés à cette page */
.shop-page {
    --shop-bg: #0b1115;
    --shop-panel: #111b21;
    --shop-panel-2: #17232b;
    --shop-border: #2c414b;
    --shop-text: #e7edf2;
    --shop-muted: #9aabb5;
    --shop-blue: #59b4df;
    --shop-green: #a6b875;
    color: var(--shop-text);
}

.shop-page .shop-intro {
    margin: -4px 0 24px;
    color: #a9bac4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: center;
}

.shop-page .shop-login-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
    padding: 15px 18px;
    border: 1px solid #4c6470;
    border-left: 3px solid var(--shop-blue);
    border-radius: 7px;
    background: linear-gradient(110deg, rgba(36, 65, 79, .75), rgba(16, 25, 31, .95));
    color: #dce8ee;
    font-size: 13px;
}

.shop-page .shop-login-notice a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid #5aa9cf;
    border-radius: 5px;
    background: #1c4051;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-decoration: none;
}

.shop-page .shop-login-notice a:hover { background: #28566b; }

.shop-page .shop-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(85, 112, 125, .35);
}

.shop-page .shop-tabs button,
.shop-page .shop-subcategories button {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #344752;
    border-radius: 5px;
    background: linear-gradient(180deg, #1b2931, #121b21);
    color: #b8c7cf;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .07em;
    cursor: pointer;
    transition: border-color .18s, background .18s, color .18s, transform .18s;
}

.shop-page .shop-tabs button:hover,
.shop-page .shop-subcategories button:hover {
    border-color: #5b9fbd;
    color: #fff;
    transform: translateY(-1px);
}

.shop-page .shop-tabs button.active,
.shop-page .shop-subcategories button.active {
    border-color: #59acd2;
    background: linear-gradient(180deg, #234a5b, #172c36);
    box-shadow: inset 0 -2px 0 var(--shop-blue);
    color: #fff;
}

.shop-page .shop-content[hidden],
.shop-page .donation-section[hidden] { display: none !important; }

.shop-page .shop-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 20px;
}

.shop-page .shop-subcategories button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 10px;
    letter-spacing: .05em;
}

.shop-page .shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.shop-page .shop-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #2a3c45;
    border-radius: 9px;
    background: linear-gradient(160deg, rgba(23, 35, 42, .98), rgba(11, 17, 21, .98) 78%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.shop-page .shop-card:hover {
    transform: translateY(-3px);
    border-color: #4c8198;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

.shop-page .shop-card[hidden] { display: none !important; }

.shop-page .shop-card-image {
    position: relative;
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 18px;
    border-bottom: 1px solid #2a3c45;
    background: radial-gradient(ellipse at 50% 42%, rgba(73, 103, 73, .23), transparent 65%), linear-gradient(135deg, #18252b, #0e1519);
}

.shop-page .shop-card-image::after {
    position: absolute;
    right: 12px;
    bottom: 10px;
    left: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(127, 157, 132, .35), transparent);
    content: "";
    pointer-events: none;
}

.shop-page .shop-product-image {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: contain;
    filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .38));
    transition: transform .25s ease;
}

.shop-page .shop-card:hover .shop-product-image { transform: scale(1.045); }

.shop-page .shop-card-image > svg {
    width: min(100%, 150px);
    height: 150px;
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .3));
}

.shop-page .shop-slots-badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    right: 12px;
    padding: 6px 8px;
    border: 1px solid rgba(166, 184, 117, .55);
    border-radius: 4px;
    background: rgba(24, 35, 26, .9);
    color: #d3e1a0;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.shop-page .shop-card-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.shop-page .shop-card-category {
    align-self: flex-start;
    margin-bottom: 8px;
    color: #83b8ce;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
}

.shop-page .shop-card-info h3 {
    margin: 0 0 5px;
    color: #f0f4f6;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.shop-page .shop-card-subtitle {
    color: #8d9fa8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

.shop-page .shop-card-description {
    min-height: 58px;
    margin: 12px 0 16px;
    color: #b0bec5;
    font-size: 12px;
    line-height: 1.55;
}

.shop-page .shop-quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 12px 0;
    border-top: 1px solid rgba(73, 96, 107, .35);
}

.shop-page .shop-quantity-label,
.shop-page .price-label {
    color: #91a4ad;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
}

.shop-page .shop-quantity-control {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #354a54;
    border-radius: 5px;
    background: #0c1317;
}

.shop-page .shop-quantity-control button {
    width: 31px;
    height: 32px;
    border: 0;
    background: #1c2a31;
    color: #dce8ee;
    font-size: 17px;
    cursor: pointer;
}

.shop-page .shop-quantity-control button:hover { background: #294653; }

.shop-page .shop-quantity-control input {
    width: 38px;
    height: 32px;
    padding: 0;
    border: 0;
    border-right: 1px solid #354a54;
    border-left: 1px solid #354a54;
    border-radius: 0;
    outline: 0;
    background: #0c1317;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    box-shadow: none;
    -moz-appearance: textfield;
}

.shop-page .shop-quantity-control input::-webkit-inner-spin-button,
.shop-page .shop-quantity-control input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }

.shop-page .shop-card-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 14px;
    padding: 13px 11px;
    border: 1px solid rgba(61, 83, 94, .65);
    border-radius: 6px;
    background: rgba(5, 10, 13, .42);
}

.shop-page .shop-card-price > div { min-width: 0; }
.shop-page .shop-card-price > div + div { padding-left: 10px; border-left: 1px solid #2b3c44; }
.shop-page .shop-card-price .price-label { display: block; margin-bottom: 6px; }
.shop-page .shop-card-price strong { display: block; color: #c5d89a; font-size: 12px; font-weight: 900; line-height: 1.4; overflow-wrap: anywhere; }
.shop-page .shop-card-price .total-price { color: #f0d27b; }

.shop-page .shop-buy-button {
    display: flex;
    width: 100%;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid #66814b;
    border-radius: 5px;
    background: linear-gradient(180deg, #526b3b, #34492a);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter .18s, transform .18s;
}

.shop-page .shop-buy-button:hover:not(:disabled) { filter: brightness(1.15); transform: translateY(-1px); }
.shop-page .shop-buy-button:disabled { cursor: wait; opacity: .65; }
.shop-page .shop-login-button { border-color: #477c98; background: linear-gradient(180deg, #28556a, #1a3948); }

.shop-page .shop-card-note {
    min-height: 16px;
    margin: 10px 0 0;
    color: #81939d;
    font-size: 10px;
    line-height: 1.45;
}

.shop-page .shop-card-note.error { color: #ff9b91; }
.shop-page .shop-card-note.success { color: #a9d99c; }
.shop-page .shop-empty,
.shop-page .ranking-empty {
    padding: 28px 18px;
    border: 1px dashed #354a54;
    border-radius: 7px;
    background: rgba(13, 21, 26, .65);
    color: #a9bac4;
    text-align: center;
}

/* DONS */
.shop-page .donation-section { margin-top: 24px; }
.shop-page .donation-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 16px;
}
.shop-page .donation-heading-line { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #4a6977); }
.shop-page .donation-heading-line:last-child { background: linear-gradient(90deg, #4a6977, transparent); }
.shop-page .donation-heading h2 { margin: 0; color: #e7edf2; font-size: clamp(16px, 2vw, 22px); font-weight: 900; letter-spacing: .08em; text-align: center; }
.shop-page .donation-intro { max-width: 760px; margin: 0 auto 24px; color: #aebdc5; font-size: 13px; line-height: 1.7; text-align: center; }
.shop-page .donation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shop-page .donation-card { display: flex; min-width: 0; flex-direction: column; align-items: center; padding: 22px 18px; border: 1px solid #2d414a; border-radius: 8px; background: linear-gradient(155deg, #17242a, #0e1519); text-align: center; }
.shop-page .donation-emblem { display: flex; width: 58px; height: 58px; align-items: center; justify-content: center; margin-bottom: 14px; border: 1px solid #435761; border-radius: 50%; background: #0b1216; }
.shop-page .donation-paypal-logo img { width: 39px; height: 39px; object-fit: contain; }
.shop-page .donation-card h3 { margin: 0 0 8px; color: #e6edf1; font-size: 13px; font-weight: 900; }
.shop-page .donation-description { min-height: 38px; margin: 0 0 15px; color: #9eafb8; font-size: 11px; line-height: 1.55; }
.shop-page .donation-amount { display: flex; align-items: baseline; gap: 7px; margin-bottom: 18px; }
.shop-page .donation-number { color: #c7d99a; font-size: 34px; font-weight: 900; }
.shop-page .donation-currency { color: #9caeb7; font-size: 11px; font-weight: 900; }
.shop-page .donation-button { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: center; border: 1px solid #4d8eb0; border-radius: 5px; background: linear-gradient(180deg, #28566d, #1b3c4b); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.shop-page .donation-button:hover { filter: brightness(1.15); }
.shop-page .donation-note { max-width: 800px; margin: 22px auto 0; color: #81939d; font-size: 10px; line-height: 1.65; text-align: center; }

@media (max-width: 1050px) {
    .shop-page .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-page .donation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .shop-page .shop-intro { font-size: 10px; line-height: 1.6; }
    .shop-page .shop-login-notice { align-items: stretch; flex-direction: column; }
    .shop-page .shop-login-notice a { text-align: center; }
    .shop-page .shop-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-page .shop-tabs button { padding: 0 8px; }
    .shop-page .shop-subcategories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-page .shop-subcategories button { padding: 0 7px; font-size: 9px; }
    .shop-page .shop-grid,
    .shop-page .donation-grid { grid-template-columns: minmax(0, 1fr); }
    .shop-page .shop-card-image { min-height: 175px; }
    .shop-page .shop-product-image { height: 155px; }
    .shop-page .shop-card-description { min-height: 0; }
    .shop-page .donation-card { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .shop-page *, .shop-page *::before, .shop-page *::after { transition: none !important; scroll-behavior: auto !important; }
}


/* =========================================================
   RUINES DZ — Boutique avec navigation latérale
   ========================================================= */
.shop-page .container {
    position: relative;
}
.shop-sidebar {
    width: 248px;
    float: left;
    margin: 12px 28px 30px 0;
    padding: 18px 14px;
    background: linear-gradient(180deg, #101a20, #0b1217);
    border: 1px solid var(--shop-border, #2c414b);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,.25);
}
.shop-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(120,160,175,.18);
}
.shop-sidebar-brand > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(89,180,223,.12);
    border: 1px solid rgba(89,180,223,.35);
    color: #59b4df;
    font-size: 23px;
}
.shop-sidebar-brand strong {
    display: block;
    color: #edf4f7;
    font-size: 14px;
    letter-spacing: .12em;
}
.shop-sidebar-brand small {
    display: block;
    margin-top: 4px;
    color: #8298a4;
    font-size: 9px;
    letter-spacing: .1em;
}
.shop-sidebar-group + .shop-sidebar-group {
    margin-top: 22px;
}
.shop-sidebar-heading {
    display: block;
    padding: 0 9px 9px;
    color: #718894;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
}
.shop-sidebar button.shop-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 4px 0;
    padding: 12px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #b9c8d0;
    text-align: left;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}
.shop-sidebar button.shop-tabs span {
    flex: 1;
}
.shop-sidebar button.shop-tabs:hover {
    background: rgba(89,180,223,.08);
    border-color: rgba(89,180,223,.2);
    color: #eef7fb;
    transform: translateX(2px);
}
.shop-sidebar button.shop-tabs.active {
    color: #eaf8ff;
    background: linear-gradient(100deg, rgba(89,180,223,.2), rgba(89,180,223,.06));
    border-color: rgba(89,180,223,.4);
    box-shadow: inset 3px 0 #59b4df;
}
.shop-page #shop-content,
.shop-page #donation-section {
    overflow: hidden;
    min-width: 0;
}
.shop-page .shop-intro {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.shop-page .shop-tabs {
    display: none !important;
}
.shop-sidebar button.shop-tabs {
    display: flex !important;
}
.shop-sidebar + .shop-content {
    min-width: 0;
}
.shop-page .shop-content .shop-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
@media (max-width: 900px) {
    .shop-sidebar {
        float: none;
        width: 100%;
        margin: 12px 0 22px;
        box-sizing: border-box;
    }
    .shop-sidebar-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }
    .shop-sidebar-heading {
        grid-column: 1 / -1;
    }
    .shop-sidebar-group + .shop-sidebar-group {
        margin-top: 15px;
    }
}
@media (max-width: 520px) {
    .shop-sidebar-group {
        grid-template-columns: 1fr;
    }
    .shop-sidebar button.shop-tabs {
        padding: 11px;
    }
}


/* =========================================================
   CORRECTION DU MARCHÉ : boutons et filtres qui apparaissaient
   en carrés blancs (styles natifs du navigateur)
========================================================= */
.shop-page .marketplace-browse {
    margin: 0 0 22px;
    min-width: 0;
}
.shop-page .marketplace-browse-title {
    margin: 0 0 16px;
}
.shop-page .marketplace-browse-title .marketplace-eyebrow,
.shop-page .marketplace-heading .marketplace-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #a8bd7d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
}
.shop-page .marketplace-browse-title h2,
.shop-page .marketplace-heading h2 {
    margin: 0 0 8px;
    color: #e8eddb;
    font-size: clamp(16px, 2vw, 23px);
    font-weight: 900;
}
.shop-page .marketplace-browse-title p,
.shop-page .marketplace-heading p {
    margin: 0;
    color: #aebbb0;
    font-size: 12px;
    line-height: 1.65;
}
.shop-page .marketplace-category-grid,
.shop-page .marketplace-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 14px 0;
}
.shop-page .marketplace-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shop-page .marketplace-category-card,
.shop-page .marketplace-type-card {
    display: flex;
    min-width: 0;
    min-height: 90px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border: 1px solid #34464a;
    border-radius: 7px;
    background: linear-gradient(145deg, #17231e, #0d1412);
    color: #dce7d7;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .18s, border-color .18s, transform .18s;
}
.shop-page .marketplace-category-card:hover,
.shop-page .marketplace-category-card.active,
.shop-page .marketplace-type-card:hover,
.shop-page .marketplace-type-card.active {
    border-color: #8da96a;
    background: linear-gradient(145deg, #293a27, #111a14);
    color: #f0f5e9;
}
.shop-page .marketplace-category-card > span,
.shop-page .marketplace-type-card > span {
    font-size: 17px;
}
.shop-page .marketplace-category-card strong,
.shop-page .marketplace-type-card strong {
    color: #d8e5c7;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.4;
}
.shop-page .marketplace-category-card small,
.shop-page .marketplace-type-card small {
    color: #9eafa0;
    font-size: 9px;
    line-height: 1.45;
}
.shop-page .marketplace-search-row {
    display: flex;
    gap: 8px;
    margin: 13px 0;
}
.shop-page .marketplace-search-row input,
.shop-page .marketplace-search-row select {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #354a42;
    border-radius: 5px;
    background: #0d1511;
    color: #e2e9df;
    font: inherit;
    font-size: 11px;
    box-sizing: border-box;
}
.shop-page .marketplace-search-row input { flex: 1; }
.shop-page .marketplace-search-row select { width: 165px; }
.shop-page .marketplace-search-row input::placeholder { color: #788b7d; }
.shop-page .marketplace-active-category {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 12px;
    margin: 10px 0 17px;
    padding: 11px 13px;
    border: 1px solid rgba(141,169,106,.22);
    border-radius: 6px;
    background: rgba(91,119,66,.10);
}
.shop-page .marketplace-active-category strong {
    color: #c8dca9;
    font-size: 10px;
    font-weight: 900;
}
.shop-page .marketplace-active-category span {
    color: #9eafa0;
    font-size: 10px;
}
.shop-page .marketplace-category-empty,
.shop-page .marketplace-form-notice {
    margin: 12px 0;
    padding: 15px;
    border: 1px dashed #455744;
    border-radius: 6px;
    background: rgba(15,23,17,.8);
    color: #b6c5b0;
    font-size: 11px;
    line-height: 1.6;
}
.shop-page .marketplace-type-card { min-height: 145px; }
.shop-page .marketplace-footnote {
    color: #819181;
    font-size: 10px;
    line-height: 1.6;
}
@media (max-width: 1100px) {
    .shop-page .marketplace-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-page .marketplace-type-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .shop-page .marketplace-category-grid,
    .shop-page .marketplace-type-grid { grid-template-columns: 1fr; }
    .shop-page .marketplace-search-row { flex-direction: column; }
    .shop-page .marketplace-search-row select { width: 100%; }
}


/* =========================================================
   RUINES DZ — Boutique : largeur et respiration du catalogue
   Sidebar bien ancrée à gauche, catalogue étendu au centre/droite
   ========================================================= */

/* Élargit uniquement le conteneur de la boutique, sans toucher
   aux autres pages du site. */
.shop-page > .container {
    width: min( calc(100% - 36px), 1500px );
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Menu latéral : colonne fixe à gauche et séparation plus nette. */
.shop-page .shop-sidebar {
    width: 250px;
    box-sizing: border-box;
    margin: 12px 36px 32px 0;
}

/* Le contenu occupe tout l'espace restant à droite du menu. */
.shop-page #shop-content,
.shop-page #donation-section {
    width: auto;
    min-width: 0;
    overflow: hidden;
}

/* Plus d'espace entre les cartes et cartes plus lisibles. */
.shop-page .shop-content .shop-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

/* Les filtres restent alignés à gauche du catalogue. */
.shop-page .shop-subcategories {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

/* Sur les écrans plus étroits, le menu passe au-dessus du catalogue. */
@media (max-width: 900px) {
    .shop-page > .container {
        width: min( calc(100% - 28px), 760px );
    }

    .shop-page .shop-sidebar {
        width: 100%;
        margin: 12px 0 24px;
    }

    .shop-page #shop-content,
    .shop-page #donation-section {
        width: 100%;
    }

    .shop-page .shop-content .shop-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 520px) {
    .shop-page > .container {
        width: calc(100% - 20px);
    }
}


/* =========================================================
   CORRECTION FOOTER — le main englobe bien le menu flottant
   ========================================================= */
.shop-page {
    display: flow-root; /* contient le float de la sidebar et garde sa hauteur */
    position: relative;
    isolation: isolate;
}

/* Sécurité si d'autres éléments flottants sont ajoutés dans la boutique. */
.shop-page::after {
    content: "";
    display: block;
    clear: both;
}

/* Le footer reste dans le flux normal, sous toute la boutique. */
.shop-page + footer,
.shop-page + .site-footer,
.shop-page + #footer {
    clear: both;
}

/* =========================================================
   MARCHÉ COMMUNAUTAIRE — ANNONCES DE VENTE
   ========================================================= */
.marketplace-listings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin:24px 0}
.marketplace-listing-card{position:relative;display:flex;flex-direction:column;gap:12px;padding:22px;border:1px solid rgba(151,169,103,.28);border-radius:14px;background:linear-gradient(145deg,rgba(27,37,27,.96),rgba(13,19,15,.98));box-shadow:0 10px 28px rgba(0,0,0,.18);color:#e8eadf;min-width:0}
.marketplace-listing-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.marketplace-listing-seller{font-size:.82rem;color:#b9c79b;overflow-wrap:anywhere}
.marketplace-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:rgba(123,151,73,.16);border:1px solid rgba(153,181,101,.35);color:#c7dba1;font-size:.68rem;font-weight:800;letter-spacing:.06em}
.marketplace-status.closed{background:rgba(130,130,130,.12);border-color:rgba(150,150,150,.25);color:#aaa}
.marketplace-listing-card h3{margin:0;color:#f1f3e8;font-size:1.15rem;overflow-wrap:anywhere}
.marketplace-listing-description{margin:0;color:#bfc5b7;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.marketplace-listing-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:12px;border-top:1px solid rgba(255,255,255,.08);font-size:.88rem;color:#c7cbbb}
.marketplace-listing-price{font-size:1.15rem;color:#d4e6a9;white-space:nowrap}
.marketplace-listing-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.marketplace-listing-actions button,.marketplace-form-buttons button{border:1px solid rgba(159,183,112,.4);border-radius:8px;padding:9px 12px;background:#53683b;color:#fff;font-weight:700;cursor:pointer}
.marketplace-listing-actions button.secondary,.marketplace-form-buttons button.secondary{background:transparent;color:#cbd2c0}
.marketplace-listing-actions button.danger{background:rgba(125,43,38,.35);border-color:rgba(191,88,77,.45);color:#f0b7af}
.marketplace-listing-form{margin:20px 0;padding:24px;border:1px solid rgba(151,169,103,.35);border-radius:14px;background:rgba(17,25,18,.96);color:#e8eadf;display:grid;gap:16px}
.marketplace-listing-form h3{margin:0;color:#d5e6ac}
.marketplace-listing-form label{display:grid;gap:7px;font-size:.88rem;font-weight:700;color:#cbd2c0}
.marketplace-listing-form input,.marketplace-listing-form textarea{width:100%;box-sizing:border-box;border:1px solid rgba(155,174,122,.32);border-radius:8px;background:#0b100c;color:#f0f2e9;padding:12px;font:inherit}
.marketplace-listing-form input:focus,.marketplace-listing-form textarea:focus{outline:2px solid rgba(169,194,120,.45);border-color:#9eb775}
.marketplace-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.marketplace-form-buttons{display:flex;flex-wrap:wrap;gap:10px}
.marketplace-form-help{margin:0;color:#929b8b;font-size:.78rem;line-height:1.5}
@media(max-width:600px){.marketplace-form-row{grid-template-columns:1fr}.marketplace-listing-card{padding:16px}.marketplace-listing-meta{align-items:flex-start;flex-direction:column}}


/* Sélecteur d'état DayZ — marché communautaire */
.market-condition-fieldset{min-width:0;margin:0;padding:16px;border:1px solid rgba(151,169,103,.35);border-radius:12px;background:rgba(9,14,10,.55)}
.market-condition-fieldset legend{padding:0 8px;color:#d5e6ac;font-weight:800;font-size:.95rem}
.market-condition-fieldset legend span{color:#e6a35a}
.market-condition-fieldset>p{margin:2px 0 12px;color:#aeb8a6;font-size:.82rem}
.market-condition-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.market-condition-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:78px;padding:12px 8px;border:1px solid rgba(155,174,122,.28);border-radius:9px;background:#111a13;color:#e8eadf;cursor:pointer;text-align:center;transition:transform .15s ease,border-color .15s ease,background .15s ease}
.market-condition-option strong{font-size:.88rem}
.market-condition-option small{font-size:.68rem;line-height:1.35;color:#aeb8a6}
.market-condition-option:hover{transform:translateY(-2px);border-color:#9eb775;background:#1a271a}
.market-condition-option.is-selected{border-color:#c0d995;background:linear-gradient(145deg,rgba(105,135,65,.35),rgba(34,51,29,.95));box-shadow:0 0 0 2px rgba(169,194,120,.18),inset 0 0 18px rgba(169,194,120,.08)}
.market-condition-option.is-selected strong{color:#e0f0bd}
@media(max-width:700px){.market-condition-options{grid-template-columns:repeat(2,minmax(0,1fr))}.market-condition-option:last-child{grid-column:1/-1}}

/* =========================================================
   RUINES DZ — Formulaire de mise en vente premium
   ========================================================= */
.shop-page .marketplace-listing-form[hidden]{display:none!important}
.shop-page .market-form-premium{position:relative;overflow:hidden;margin:24px 0;padding:clamp(18px,3vw,30px);gap:25px;border:1px solid rgba(153,183,112,.35);border-radius:18px;background:radial-gradient(ellipse at 92% 0%,rgba(103,133,66,.13),transparent 38%),linear-gradient(145deg,#121b16 0%,#0b110e 55%,#10171a 100%);box-shadow:0 22px 55px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.025)}
.shop-page .market-form-premium:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#8ea95e,#c6d89a 45%,transparent)}
.market-form-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:20px;border-bottom:1px solid rgba(180,196,155,.13)}
.market-form-kicker{display:block;margin-bottom:8px;color:#9bb779;font-size:.66rem;font-weight:900;letter-spacing:.16em}
.market-form-header h3{margin:0;color:#f0f3e7;font-size:clamp(1.25rem,2.5vw,1.75rem);letter-spacing:-.025em}
.market-form-header p{margin:7px 0 0;color:#9ba99a;font-size:.86rem;line-height:1.55}
.market-form-step{flex-shrink:0;padding:8px 11px;border:1px solid rgba(158,185,119,.24);border-radius:6px;background:rgba(119,149,75,.08);color:#a8bc8b;font-size:.65rem;font-weight:900;letter-spacing:.08em}
.market-form-step b{color:#526447}
.market-form-section{display:grid;gap:16px}
.market-section-title{display:flex;align-items:center;gap:12px;margin-bottom:1px}
.market-section-title>span{display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;border:1px solid rgba(164,190,125,.35);border-radius:8px;background:rgba(115,147,71,.13);color:#b8d18f;font-size:.75rem;font-weight:900}
.market-section-title strong{display:block;color:#e0e8d4;font-size:.76rem;font-weight:900;letter-spacing:.1em}
.market-section-title small{display:block;margin-top:3px;color:#89988a;font-size:.75rem}
.shop-page .market-field{display:grid;gap:8px;color:#d3dccb;font-size:.83rem;font-weight:800}
.market-field>span{display:flex;align-items:center;justify-content:space-between;gap:10px}
.market-field>span i{color:#83977a;font-size:.61rem;font-style:normal;font-weight:900;letter-spacing:.06em}
.shop-page .market-form-premium input,.shop-page .market-form-premium textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #2b3d31;border-radius:9px;background:linear-gradient(180deg,#0a100c,#0d1510);color:#edf2e6;padding:13px 15px;font:inherit;font-size:.91rem;transition:border-color .18s,box-shadow .18s,background .18s}
.shop-page .market-form-premium input::placeholder,.shop-page .market-form-premium textarea::placeholder{color:#5e6b60}
.shop-page .market-form-premium input:focus,.shop-page .market-form-premium textarea:focus{outline:none;border-color:#8da968;box-shadow:0 0 0 3px rgba(141,169,104,.13);background:#0e1711}
.shop-page .market-form-premium textarea{resize:vertical;min-height:125px;line-height:1.6}
.market-form-grid{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:14px}
.market-input-wrap{position:relative;display:flex;align-items:center}
.market-input-wrap input{padding-left:43px!important}
.market-input-icon{position:absolute;left:14px;z-index:1;color:#8ea77a;font-size:1rem;font-weight:900;pointer-events:none}
.market-price-wrap input{padding-right:90px!important}
.market-input-suffix{position:absolute;right:12px;color:#6f806c;font-size:.6rem;font-weight:900;letter-spacing:.08em;pointer-events:none}
.market-condition-fieldset{min-width:0;margin:0;padding:17px;border:1px solid rgba(151,169,103,.25);border-radius:12px;background:rgba(5,10,7,.38)}
.market-condition-fieldset legend{padding:0 8px;color:#e0e8d4;font-size:.84rem;font-weight:900}
.market-condition-fieldset legend span{color:#d6a16b}
.market-condition-tip{margin:0 0 14px;color:#89988a;font-size:.78rem}
.market-condition-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.market-condition-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-width:0;min-height:112px;padding:13px 12px;border:1px solid #29382c;border-radius:10px;background:linear-gradient(155deg,#121b15,#0c120e);color:#e6ebdf;cursor:pointer;text-align:left;transition:transform .16s,border-color .16s,background .16s,box-shadow .16s}
.market-condition-option .condition-dot{width:8px;height:8px;border-radius:50%;background:#9dbd78;box-shadow:0 0 9px currentColor}
.market-condition-option strong{font-size:.82rem;line-height:1.25}
.market-condition-option small{color:#9aa799;font-size:.68rem}
.market-condition-option em{margin-top:3px;color:#758572;font-size:.64rem;font-style:normal;font-weight:800}
.market-condition-option:hover{transform:translateY(-2px);border-color:#60764d;background:#172319}
.market-condition-option.is-selected{transform:translateY(-2px);border-color:#b3d18b;background:linear-gradient(155deg,rgba(105,139,68,.28),rgba(19,31,20,.98));box-shadow:0 0 0 2px rgba(171,201,126,.12),0 8px 22px rgba(0,0,0,.18),inset 0 0 20px rgba(171,201,126,.06)}
.market-condition-option.is-selected:after{content:"✓";position:absolute;top:8px;right:9px;color:#d6edb3;font-size:.8rem;font-weight:900}
.condition-pristine .condition-dot{background:#83c77b;color:#83c77b}.condition-worn .condition-dot{background:#d1c56d;color:#d1c56d}.condition-damaged .condition-dot{background:#d9a15c;color:#d9a15c}.condition-badly .condition-dot{background:#d66f58;color:#d66f58}.condition-ruined .condition-dot{background:#777f78;color:#777f78}
.condition-pristine.is-selected{border-color:#83c77b}.condition-worn.is-selected{border-color:#d1c56d}.condition-damaged.is-selected{border-color:#d9a15c}.condition-badly.is-selected{border-color:#d66f58}.condition-ruined.is-selected{border-color:#89918b}
.market-condition-selected{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:12px;padding:10px 12px;border:1px dashed rgba(144,168,119,.22);border-radius:7px;color:#879587;font-size:.75rem}
.market-condition-selected b{color:#cfe3ac}.market-condition-selected span{color:#839183}
.market-character-count{display:block;text-align:right;color:#718071;font-size:.68rem}
.market-preview{padding:17px;border:1px solid rgba(130,155,103,.22);border-radius:12px;background:linear-gradient(110deg,rgba(100,128,67,.09),rgba(8,13,10,.3))}
.market-preview-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:#a8b79b;font-size:.65rem;font-weight:900;letter-spacing:.1em}
.market-preview-live{display:flex;align-items:center;gap:6px;color:#8fb27b;font-size:.58rem}
.market-preview-live i{width:6px;height:6px;border-radius:50%;background:#8fb27b;box-shadow:0 0 8px #8fb27b}
.market-preview-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px;border:1px solid rgba(148,170,119,.22);border-radius:10px;background:linear-gradient(120deg,#18231a,#0d1410)}
.market-preview-icon{display:grid;place-items:center;width:58px;height:58px;border:1px solid rgba(151,178,112,.25);border-radius:9px;background:rgba(117,148,72,.12);font-size:1.65rem}
.market-preview-info{min-width:0}.market-preview-tag{color:#8ca67a;font-size:.57rem;font-weight:900;letter-spacing:.08em}
.market-preview-name{margin:5px 0;color:#eef2e6;font-size:1.05rem;overflow-wrap:anywhere}
.market-preview-quantity,.market-preview-condition{margin:3px 0;color:#8e9d8d;font-size:.72rem}.market-preview-quantity b,.market-preview-condition b{color:#c9d7bc}
.market-preview-price{display:grid;gap:5px;text-align:right}.market-preview-price small{color:#778775;font-size:.58rem;font-weight:900;letter-spacing:.06em}.market-preview-price strong{color:#d5e8a9;font-size:1.15rem;white-space:nowrap}
.market-preview-note{margin:10px 0 0;color:#6f7e70;font-size:.68rem}
.market-form-footer{display:grid;gap:14px;padding-top:18px;border-top:1px solid rgba(180,196,155,.13)}
.market-form-notice-inline{display:flex;align-items:center;gap:8px;color:#89998a;font-size:.75rem}
.market-form-notice-inline b{color:#b6ca9a}
.market-form-buttons{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.market-form-buttons .market-submit-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:13px 22px;border:1px solid #819d5b;border-radius:9px;background:linear-gradient(135deg,#637e43,#40582d);color:#f5f8ed;font-size:.78rem;font-weight:900;letter-spacing:.04em;box-shadow:0 7px 18px rgba(0,0,0,.18);transition:transform .15s,filter .15s}
.market-form-buttons .market-submit-button:hover{transform:translateY(-1px);filter:brightness(1.12)}
.market-form-buttons .market-cancel-button{min-height:44px;padding:10px 17px;border:1px solid #344239;border-radius:8px;background:transparent;color:#a3b0a2;font-weight:800;cursor:pointer}
.market-form-buttons .market-cancel-button:hover{border-color:#65785b;color:#e1e9dc}
.market-create-icon{display:grid!important;place-items:center;width:34px;height:34px;border:1px solid rgba(180,205,139,.28);border-radius:9px;background:rgba(126,159,80,.12);color:#c9e3a1;font-size:1.4rem}
.marketplace-type-card#market-create-toggle{display:flex;align-items:flex-start;gap:9px;max-width:100%;padding:18px 20px;border:1px solid rgba(153,183,112,.3);border-radius:12px;background:linear-gradient(110deg,rgba(76,101,49,.17),rgba(14,22,17,.95));text-align:left;cursor:pointer;transition:border-color .18s,transform .18s,background .18s}
.marketplace-type-card#market-create-toggle:hover{transform:translateY(-2px);border-color:#8da968;background:linear-gradient(110deg,rgba(91,122,56,.25),rgba(14,22,17,.98))}
.marketplace-type-card#market-create-toggle strong{color:#e2ebd5;font-size:.85rem;letter-spacing:.04em}
.marketplace-type-card#market-create-toggle small{display:block;color:#89988a;font-size:.75rem;line-height:1.5}
.market-create-cta{display:flex;align-items:center;gap:8px;margin-top:5px;color:#a8c488;font-size:.64rem;font-weight:900;letter-spacing:.08em}
.market-create-cta b{font-size:.9rem}
@media(max-width:900px){.market-condition-options{grid-template-columns:repeat(3,minmax(0,1fr))}.market-preview-card{grid-template-columns:48px minmax(0,1fr)}.market-preview-icon{width:48px;height:48px}.market-preview-price{grid-column:2;text-align:left;display:flex;align-items:center;gap:8px}.market-preview-price strong{font-size:1rem}}
@media(max-width:600px){.market-form-header{flex-direction:column}.market-form-step{align-self:flex-start}.market-form-grid{grid-template-columns:1fr}.market-condition-options{grid-template-columns:repeat(2,minmax(0,1fr))}.market-condition-option:last-child{grid-column:auto}.market-preview-card{grid-template-columns:44px minmax(0,1fr);gap:10px;padding:12px}.market-preview-icon{width:44px;height:44px;font-size:1.3rem}.market-preview-price{grid-column:1/-1;justify-content:space-between;padding-top:10px;border-top:1px solid rgba(255,255,255,.07)}.market-form-buttons{align-items:stretch}.market-form-buttons .market-submit-button{flex:1}.market-form-buttons .market-cancel-button{flex-shrink:0}}


/* =========================================================
   RUINES DZ — Formulaire de vente compact
   Ajustement demandé : moins haut, moins de padding, plus dense.
   ========================================================= */
.shop-page .market-form-premium{
    max-width: 900px;
    margin: 14px auto 18px;
    padding: 18px 20px;
    gap: 16px;
    border-radius: 13px;
    box-shadow: 0 12px 30px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.025);
}
.shop-page .market-form-header{
    gap: 12px;
    padding-bottom: 12px;
}
.shop-page .market-form-kicker{
    margin-bottom: 5px;
    font-size: .58rem;
}
.shop-page .market-form-header h3{
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}
.shop-page .market-form-header p{
    margin-top: 4px;
    font-size: .76rem;
    line-height: 1.4;
}
.shop-page .market-form-step{
    padding: 6px 8px;
    font-size: .58rem;
}
.shop-page .market-form-section{
    gap: 11px;
}
.shop-page .market-section-title{
    gap: 8px;
}
.shop-page .market-section-title h4{
    font-size: .82rem;
}
.shop-page .market-form-grid{
    gap: 10px;
}
.shop-page .market-form-premium input,
.shop-page .market-form-premium select,
.shop-page .market-form-premium textarea{
    min-height: 38px;
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: .82rem;
}
.shop-page .market-condition-fieldset{
    padding: 12px;
    border-radius: 9px;
}
.shop-page .market-condition-tip{
    margin-bottom: 9px;
    font-size: .7rem;
}
.shop-page .market-condition-options{
    gap: 6px;
}
.shop-page .market-condition-option{
    min-height: 62px;
    padding: 8px 5px;
    gap: 4px;
    border-radius: 7px;
}
.shop-page .market-condition-option strong{
    font-size: .76rem;
}
.shop-page .market-condition-option small{
    font-size: .6rem;
    line-height: 1.25;
}
.shop-page .market-form-premium textarea{
    min-height: 82px;
}
.shop-page .market-preview-card{
    grid-template-columns: 44px minmax(0,1fr) auto;
    gap: 10px;
    padding: 11px;
    border-radius: 8px;
}
.shop-page .market-preview-icon{
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
}
.shop-page .market-preview-name{
    margin: 3px 0;
    font-size: .9rem;
}
.shop-page .market-preview-quantity,
.shop-page .market-preview-condition{
    font-size: .66rem;
}
.shop-page .market-preview-price strong{
    font-size: 1rem;
}
.shop-page .market-preview-note{
    font-size: .65rem;
    margin-top: 4px;
}
.shop-page .market-form-footer{
    gap: 10px;
    margin-top: 0;
}
.shop-page .market-form-buttons{
    gap: 8px;
}
.shop-page .market-form-buttons .market-submit-button,
.shop-page .market-form-buttons .market-cancel-button{
    min-height: 39px;
    padding: 10px 15px;
    font-size: .72rem;
}
@media(max-width:700px){
    .shop-page .market-form-premium{
        margin: 12px 0;
        padding: 14px;
        gap: 13px;
    }
    .shop-page .market-form-grid{
        grid-template-columns: 1fr;
    }
    .shop-page .market-preview-card{
        grid-template-columns: 38px minmax(0,1fr);
    }
    .shop-page .market-preview-icon{
        width: 38px;
        height: 38px;
    }
    .shop-page .market-preview-price{
        grid-column: 1/-1;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 7px;
    }
}

/* =========================================================
   RUINES DZ — Cartes des annonces du marché communautaire
   Cible les classes réellement utilisées par boutique.php
   ========================================================= */
.shop-page .market-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 14px;
    align-items: stretch;
    margin: 16px 0 20px;
}

.shop-page .market-list-section-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 2px;
    padding: 0 0 9px;
    border-bottom: 1px solid rgba(150, 174, 111, .22);
    color: #c5d99b;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
}
.shop-page .market-list-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(150,174,111,.28), transparent);
}

.shop-page .market-listing-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 11px;
    overflow: hidden;
    padding: 17px 18px 15px;
    border: 1px solid #354431;
    border-radius: 11px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(132, 158, 83, .10), transparent 45%),
        linear-gradient(145deg, #182119 0%, #101711 62%, #0c120e 100%);
    box-shadow: 0 8px 22px rgba(0,0,0,.20), inset 0 1px rgba(255,255,255,.025);
    color: #e7ecdf;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.shop-page .market-listing-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #a6bd78, rgba(166,189,120,.08));
    opacity: .8;
}
.shop-page .market-listing-card:hover {
    transform: translateY(-2px);
    border-color: #60784b;
    box-shadow: 0 12px 28px rgba(0,0,0,.28), 0 0 0 1px rgba(151,181,104,.06);
}

.shop-page .market-listing-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(175,195,151,.10);
}
.shop-page .market-listing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid rgba(155,181,111,.24);
    border-radius: 5px;
    background: rgba(117,145,76,.10);
    color: #a9c487;
    font-size: .59rem;
    font-weight: 900;
    letter-spacing: .10em;
}
.shop-page .market-listing-price {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid rgba(205,174,94,.32);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(129,103,44,.20), rgba(58,48,25,.18));
    color: #f0d58a;
    font-size: .95rem;
    font-weight: 900;
    white-space: nowrap;
    text-shadow: 0 1px 12px rgba(240,213,138,.08);
}
.shop-page .market-listing-card h3 {
    margin: 0;
    color: #f0f3e8;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .015em;
    overflow-wrap: anywhere;
}
.shop-page .market-listing-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    color: #aab8a6;
    font-size: .75rem;
    line-height: 1.5;
}
.shop-page .market-listing-description {
    position: relative;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid rgba(143,163,125,.13);
    border-radius: 7px;
    background: rgba(5,10,7,.30);
    color: #c3ccbd;
    font-size: .79rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.shop-page .market-listing-expiry {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 2px;
    color: #82917f;
    font-size: .66rem;
    font-weight: 700;
}
.shop-page .market-listing-expiry::before {
    content: "◷";
    color: #a0b77d;
    font-size: .85rem;
}

.shop-page .market-listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 3px;
    padding-top: 12px;
    border-top: 1px solid rgba(175,195,151,.10);
}
.shop-page .market-listing-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 33px;
    padding: 8px 11px;
    border: 1px solid rgba(151,177,112,.30);
    border-radius: 6px;
    background: linear-gradient(180deg, #3e552e, #293b20);
    color: #e8f0dc;
    font-family: inherit;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .025em;
    cursor: pointer;
    transition: background .16s, border-color .16s, transform .16s, filter .16s;
}
.shop-page .market-listing-actions button:hover {
    transform: translateY(-1px);
    filter: brightness(1.12);
    border-color: #9bb878;
}
.shop-page .market-listing-actions button[data-market-edit]::before { content: "✎"; margin-right: 6px; }
.shop-page .market-listing-actions button[data-market-close] {
    border-color: rgba(160,169,143,.25);
    background: rgba(74,83,67,.20);
    color: #c4cbbd;
}
.shop-page .market-listing-actions button[data-market-close]::before { content: "✓"; margin-right: 6px; }
.shop-page .market-listing-actions button[data-market-delete] {
    border-color: rgba(185,91,77,.30);
    background: linear-gradient(180deg, rgba(112,48,42,.55), rgba(69,31,28,.65));
    color: #efb7ae;
}
.shop-page .market-listing-actions button[data-market-delete]::before { content: "×"; margin-right: 6px; font-size: 1rem; }

@media (max-width: 640px) {
    .shop-page .market-listings-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
        margin-top: 12px;
    }
    .shop-page .market-listing-card { padding: 14px; border-radius: 9px; }
    .shop-page .market-listing-price { font-size: .85rem; }
    .shop-page .market-listing-actions button { flex: 1 1 auto; }
}


/* Badge d’état de l’objet — annonces du marché communautaire */
.shop-page .market-listing-condition {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 7px 0 10px;
    padding: 8px 12px;
    border: 1px solid rgba(116, 178, 94, .35);
    border-radius: 8px;
    background: rgba(13, 24, 16, .72);
    color: #d8e8d2;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.35;
}
.shop-page .market-listing-condition i {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #75c96b;
    box-shadow: 0 0 8px currentColor;
}
.shop-page .market-listing-condition.condition-pristine { border-color: rgba(117, 201, 107, .45); color: #a8e69e; }
.shop-page .market-listing-condition.condition-pristine i { background: #75c96b; }
.shop-page .market-listing-condition.condition-worn { border-color: rgba(205, 190, 83, .45); color: #e3d77e; }
.shop-page .market-listing-condition.condition-worn i { background: #d6c64e; }
.shop-page .market-listing-condition.condition-damaged { border-color: rgba(220, 145, 67, .45); color: #efb16e; }
.shop-page .market-listing-condition.condition-damaged i { background: #e69a48; }
.shop-page .market-listing-condition.condition-badly { border-color: rgba(203, 91, 65, .45); color: #ee8b78; }
.shop-page .market-listing-condition.condition-badly i { background: #df6954; }
.shop-page .market-listing-condition.condition-ruined { border-color: rgba(145, 145, 145, .35); color: #b7b7b7; }
.shop-page .market-listing-condition.condition-ruined i { background: #858585; }


/* Les cartes Vendre, Échange et Service utilisent exactement le même style. */
.marketplace-type-card#market-create-toggle,
.shop-page .marketplace-type-card.market-community-create-toggle {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 100%;
    padding: 18px 20px;
    border: 1px solid rgba(153,183,112,.3);
    border-radius: 12px;
    background: linear-gradient(110deg,rgba(76,101,49,.17),rgba(14,22,17,.95));
    text-align: left;
    cursor: pointer;
    transition: border-color .18s,transform .18s,background .18s;
}
.marketplace-type-card#market-create-toggle:hover,
.shop-page .marketplace-type-card.market-community-create-toggle:hover {
    transform: translateY(-2px);
    border-color: #8da968;
    background: linear-gradient(110deg,rgba(91,122,56,.25),rgba(14,22,17,.98));
}
.marketplace-type-card#market-create-toggle strong,
.shop-page .marketplace-type-card.market-community-create-toggle strong {
    color: #e2ebd5;
    font-size: .85rem;
    letter-spacing: .04em;
}
.marketplace-type-card#market-create-toggle small,
.shop-page .marketplace-type-card.market-community-create-toggle small {
    display: block;
    color: #89988a;
    font-size: .75rem;
    line-height: 1.5;
}
.market-create-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    color: #a8c488;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .08em;
}
.market-create-cta b { font-size: .9rem; }

/* Gestion des annonces personnelles Échange / Service */
.marketplace-community-section-title {
    margin: 28px 0 14px;
    font-size: 0.9rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.marketplace-own-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}
.marketplace-own-actions button {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    padding: 9px 14px;
    color: #f3f4f6;
    background: rgba(255,255,255,.07);
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
}
.marketplace-own-actions button[data-community-delete] {
    border-color: rgba(237, 75, 75, .4);
    color: #ff9b9b;
}
.marketplace-own-actions button:hover:not(:disabled) {
    background: rgba(255,255,255,.13);
}
.marketplace-own-actions button:disabled {
    opacity: .55;
    cursor: wait;
}

/* =========================================================
   ÉCHANGES & SERVICES — même présentation que l'onglet ACHETER
   ========================================================= */
.shop-page .community-listing-card { min-height: 250px; }
.shop-page .market-community-kind {
    display:inline-flex;align-items:center;padding:6px 10px;border:1px solid rgba(155,181,111,.24);
    border-radius:6px;background:rgba(117,145,76,.10);color:#a9c487;font-size:.62rem;
    font-weight:900;letter-spacing:.08em;
}
.shop-page .market-community-exchange-details {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:2px 0;
}
.shop-page .market-community-exchange-details>div {
    display:flex;flex-direction:column;gap:7px;min-width:0;padding:11px 12px;
    border:1px solid rgba(155,181,111,.20);border-radius:7px;background:rgba(7,13,9,.48);
}
.shop-page .market-community-exchange-details span {
    color:#a9c487;font-size:.59rem;font-weight:900;letter-spacing:.10em;
}
.shop-page .market-community-exchange-details strong {
    color:#edf1e5;font-size:.88rem;line-height:1.4;overflow-wrap:anywhere;
}
.shop-page .community-listing-actions { margin-top:auto; }
.shop-page .community-listing-actions button[data-community-close] {
    border:1px solid rgba(160,169,143,.25);background:rgba(74,83,67,.20);color:#c4cbbd;
}
.shop-page .community-listing-actions button[data-community-delete] {
    border:1px solid rgba(185,91,77,.30);background:linear-gradient(180deg,rgba(112,48,42,.55),rgba(69,31,28,.65));color:#efb7ae;
}
.shop-page .community-listing-actions button:disabled { opacity:.55;cursor:wait; }
@media(max-width:640px) {
    .shop-page .market-community-exchange-details { grid-template-columns:minmax(0,1fr); }
}
