
/* ========================================================
   REPTILEBLADE BOUTIQUE - STYLE ADDITIONNEL
   Compatible avec le haut de page / bas de page existants
   ======================================================== */

.rb-shop-main {
    width: min(1450px, calc(100% - 28px));
    margin: 0 auto;
    padding: 10px 0 40px;
}

.rb-shop-hero {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: clamp(28px, 5vw, 70px) 18px;
    border: 1px solid rgba(0,255,0,.35);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(0,255,0,.08), rgba(255,255,0,.05), rgba(0,0,0,.65)),
        radial-gradient(circle at top, rgba(0,255,0,.18), transparent 45%);
    box-shadow: 0 0 45px rgba(0,255,0,.12);
    margin-bottom: 24px;
}

.rb-shop-kicker {
    color: var(--neon-green);
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: 900;
}

.rb-shop-hero h1 {
    margin: 12px 0;
    color: var(--neon-yellow);
    font-size: clamp(34px, 7vw, 82px);
    line-height: .95;
    text-transform: uppercase;
    text-shadow: 0 0 22px rgba(255,255,0,.35);
}

.rb-shop-hero p {
    max-width: 920px;
    margin: 0 auto 20px;
    color: var(--text-main);
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.45;
}

.rb-shop-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

.rb-neon-btn {
    border-radius: 14px;
    padding: 13px 18px;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
    transition: .25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
}

.rb-neon-primary {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 20px rgba(0,255,0,.22);
}

.rb-neon-secondary {
    border: 1px solid var(--neon-yellow);
    color: var(--neon-yellow);
    background: rgba(0,0,0,.25);
}

.rb-neon-warning {
    border: 1px solid var(--neon-orange);
    color: var(--neon-orange);
    background: rgba(255,172,28,.08);
}

.rb-neon-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.15);
}

.rb-shop-note {
    display: inline-block;
    color: #d7d7d7;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(0,0,0,.35);
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 17px;
}

.rb-shop-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(190px, .8fr) minmax(230px, 1fr);
    gap: 14px;
    margin: 22px 0;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background: rgba(255,255,255,.045);
}

.rb-tool-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rb-tool-field label {
    color: var(--neon-yellow);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rb-tool-field input,
.rb-tool-field select,
.rb-tool-field button,
.rb-cart-zone input,
.rb-cart-zone textarea,
.rb-cart-zone select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0,255,0,.35);
    background: rgba(0,0,0,.75);
    color: #fff;
    border-radius: 13px;
    padding: 12px 13px;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 16px;
    outline: none;
}

.rb-tool-field button {
    cursor: pointer;
    color: #000;
    background: var(--neon-yellow);
    border-color: var(--neon-yellow);
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
}

.rb-tool-field small {
    color: #aaa;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 14px;
}

.rb-shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 18px;
    align-items: start;
}

.rb-section-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin: 10px 0 16px;
}

.rb-section-title span {
    color: #fff;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 900;
    text-transform: uppercase;
}

.rb-section-title strong {
    color: var(--neon-green);
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 17px;
}

.rb-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
    gap: 18px;
}

.rb-card {
    background: rgba(15,15,15,.86);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 23px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 0 24px rgba(0,0,0,.25);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.rb-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,255,0,.7);
    box-shadow: 0 0 35px rgba(0,255,0,.16);
}

.rb-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #0b0b0b;
    display: block;
}

.rb-card-body {
    padding: 16px;
}

.rb-cat {
    margin: 0 0 8px;
    color: var(--neon-green);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rb-card h3 {
    min-height: 48px;
    margin: 0 0 8px;
    color: #fff;
    font-size: 17px;
    line-height: 1.25;
}

.rb-card-desc {
    min-height: 62px;
    margin: 0 0 12px;
    color: #cfcfcf;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.35;
}

.rb-price {
    display: block;
    margin: 10px 0 14px;
    color: var(--neon-yellow);
    font-size: 23px;
    font-weight: 900;
}

.rb-card-options {
    color: #aaa;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 13px;
    min-height: 20px;
    margin-bottom: 12px;
}

.rb-card button,
#rb-pay-sumup,
#rb-mail-order {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 13px 14px;
    font-weight: 900;
    cursor: pointer;
    background: var(--neon-green);
    color: #000;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 12px;
}

.rb-card button:hover,
#rb-pay-sumup:hover,
#rb-mail-order:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.rb-cart-zone {
    position: sticky;
    top: 12px;
}

.rb-cart-box {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    padding: 16px;
    color: #fff;
    box-shadow: 0 0 30px rgba(0,0,0,.28);
}

.rb-cart-empty {
    color: #cfcfcf;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 18px;
    padding: 20px 0;
}

.rb-cart-line {
    display: grid;
    grid-template-columns: 1fr 62px 78px 30px;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 10px 0;
    font-family: 'Rajdhani', Arial, sans-serif;
}

.rb-cart-line span {
    font-size: 15px;
    line-height: 1.15;
}

.rb-cart-line input {
    padding: 8px;
}

.rb-cart-line strong {
    color: var(--neon-yellow);
    font-size: 14px;
    text-align: right;
}

.rb-cart-line button {
    border: 0;
    border-radius: 10px;
    padding: 7px;
    cursor: pointer;
    background: rgba(255,255,255,.12);
    color: #fff;
}

.rb-cart-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.rb-cart-form label {
    display: grid;
    gap: 5px;
    color: var(--neon-yellow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.rb-totals {
    margin: 14px 0;
    padding: 12px;
    border: 1px solid rgba(0,255,0,.16);
    border-radius: 16px;
    background: rgba(0,0,0,.22);
    font-family: 'Rajdhani', Arial, sans-serif;
}

.rb-totals p {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0;
    color: #ddd;
    font-size: 17px;
}

.rb-totals p:last-child {
    color: var(--neon-yellow);
    font-size: 22px;
    font-weight: 900;
}

.rb-muted {
    color: #aaa;
    font-size: 14px;
    font-family: 'Rajdhani', Arial, sans-serif;
    line-height: 1.35;
}

.rb-warning {
    color: var(--neon-orange);
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 15px;
}

#rb-mail-order {
    margin-top: 8px;
    background: transparent;
    color: var(--neon-yellow);
    border: 1px solid var(--neon-yellow);
}

.rb-seo-content {
    margin-top: 28px;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 22px;
    color: #d8d8d8;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.5;
}

.rb-seo-content h2 {
    color: var(--neon-yellow);
    font-family: 'Orbitron', Arial, sans-serif;
}

@media (max-width: 1000px) {
    .rb-shop-layout {
        grid-template-columns: 1fr;
    }
    .rb-cart-zone {
        position: static;
    }
}

@media (max-width: 760px) {
    .rb-shop-tools {
        grid-template-columns: 1fr;
    }
    .rb-shop-note {
        border-radius: 18px;
    }
    .rb-cart-line {
        grid-template-columns: 1fr 55px;
    }
    .rb-cart-line strong,
    .rb-cart-line button {
        grid-column: auto;
    }
}


/* ===========================
   PAGES ARTICLES + LIENS PRODUITS
   =========================== */
.rb-card-image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.rb-card h3 a {
    color: inherit;
    text-decoration: none;
}

.rb-card h3 a:hover,
.rb-view-product:hover {
    color: var(--neon-yellow);
}

.rb-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rb-view-product {
    border: 1px solid var(--neon-yellow);
    border-radius: 14px;
    padding: 13px 12px;
    text-decoration: none;
    text-align: center;
    color: var(--neon-yellow);
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    background: rgba(255,255,0,.05);
}

.rb-cart-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rb-product-main {
    width: min(1450px, calc(100% - 28px));
}

.rb-product-breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 6px 0 18px;
    color: #aaa;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 16px;
}

.rb-product-breadcrumb a {
    color: var(--neon-green);
    text-decoration: none;
}

.rb-product-page {
    display: grid;
    grid-template-columns: minmax(280px, .92fr) minmax(300px, 1.08fr);
    gap: clamp(18px, 4vw, 46px);
    padding: clamp(18px, 4vw, 42px);
    border: 1px solid rgba(0,255,0,.26);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(0,255,0,.06), rgba(255,255,0,.04), rgba(255,255,255,.025));
    box-shadow: 0 0 42px rgba(0,255,0,.08);
}

.rb-product-gallery {
    display: grid;
    gap: 14px;
    align-content: start;
}

.rb-product-main-img {
    width: 100%;
    max-height: 680px;
    object-fit: contain;
    border-radius: 24px;
    background: rgba(0,0,0,.65);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 0 25px rgba(0,0,0,.25);
}

.rb-product-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 10px;
}

.rb-product-thumbs button {
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    background: rgba(0,0,0,.5);
    padding: 4px;
    cursor: pointer;
}

.rb-product-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
}

.rb-product-info h1 {
    color: var(--neon-yellow);
    font-size: clamp(30px, 5vw, 66px);
    line-height: .98;
    margin: 8px 0 14px;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(255,255,0,.18);
}

.rb-product-ribbon {
    display: inline-flex;
    background: var(--neon-green);
    color: #000;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 10px;
}

.rb-product-short {
    color: #d5d5d5;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.42;
}

.rb-product-price {
    color: var(--neon-green);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    margin: 18px 0;
}

.rb-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.rb-product-badges span {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 8px 12px;
    color: #ddd;
    background: rgba(0,0,0,.28);
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 15px;
}

.rb-product-options {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(0,0,0,.2);
}

.rb-product-options h2 {
    color: var(--neon-yellow);
    margin: 0 0 4px;
    font-size: 17px;
}

.rb-product-options label {
    display: grid;
    gap: 6px;
    color: #e7e7e7;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 16px;
}

.rb-product-options select,
.rb-product-options input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0,255,0,.35);
    background: rgba(0,0,0,.78);
    color: #fff;
    border-radius: 13px;
    padding: 12px 13px;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 16px;
}

.rb-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.rb-add-product {
    border: 0;
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    color: #000;
    background: var(--neon-green);
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
}

.rb-product-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 18px;
    align-items: start;
    margin-top: 24px;
}

.rb-product-description,
.rb-product-extra {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    padding: clamp(18px, 3vw, 30px);
    background: rgba(255,255,255,.045);
    color: #e7e7e7;
}

.rb-product-description h2,
.rb-product-extra h2 {
    color: var(--neon-yellow);
    margin-top: 0;
}

.rb-product-html,
.rb-product-extra {
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 19px;
    line-height: 1.55;
}

.rb-product-html a,
.rb-product-extra a {
    color: var(--neon-green);
}

.rb-product-extra {
    margin-top: 24px;
}

.rb-product-extra details {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 12px 0;
}

.rb-product-extra summary {
    cursor: pointer;
    color: var(--neon-green);
    font-weight: 900;
}

@media (max-width: 1000px) {
    .rb-product-page,
    .rb-product-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .rb-card-actions,
    .rb-product-actions,
    .rb-cart-address-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   IMAGES PAR COULEUR + PANIER VARIANTES
   =========================== */
.rb-color-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
    margin: 8px 0 10px;
    align-items: center;
}

.rb-color-chip {
    width: auto !important;
    min-width: 28px;
    max-width: 95px;
    height: 28px;
    padding: 0 8px !important;
    border: 1px solid rgba(0,255,0,.38) !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,.55) !important;
    color: #fff !important;
    font-size: 10px !important;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rb-color-chip:hover {
    border-color: var(--neon-yellow) !important;
    box-shadow: 0 0 12px rgba(255,255,0,.25);
}

.rb-color-chips small {
    color: #aaa;
    font-family: 'Rajdhani', Arial, sans-serif;
}

.rb-color-select {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.rb-color-select strong {
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 13px;
}

.rb-color-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 9px;
}

.rb-color-select-chip {
    display: grid;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(0,0,0,.5);
    color: #fff;
    padding: 5px;
    cursor: pointer;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 12px;
    transition: .25s;
}

.rb-color-select-chip img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    background: #000;
}

.rb-color-select-chip:hover,
.rb-color-select-chip.active {
    border-color: var(--neon-green);
    box-shadow: 0 0 16px rgba(0,255,0,.24);
    transform: translateY(-2px);
}

.rb-cart-line {
    grid-template-columns: 48px 1fr 62px 78px 30px;
}

.rb-cart-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.1);
}

.rb-cart-line span small {
    display: block;
    color: #aaa;
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .rb-cart-line {
        grid-template-columns: 44px 1fr 58px;
    }

    .rb-cart-line strong,
    .rb-cart-line button {
        grid-column: 2 / span 2;
        text-align: left;
    }
}


/* ===========================
   GROUPES + FILTRES BOUTIQUE V4
   =========================== */

.rb-shop-tools {
    grid-template-columns: minmax(220px, 1.4fr) minmax(180px, .85fr) minmax(160px, .75fr) minmax(170px, .75fr) minmax(230px, 1fr) minmax(140px, .6fr);
    align-items: end;
}

.rb-price-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.rb-reset-tool button {
    background: transparent !important;
    color: var(--neon-yellow) !important;
    border-color: var(--neon-yellow) !important;
}

.rb-reset-tool button:hover {
    background: var(--neon-yellow) !important;
    color: #000 !important;
}

.rb-groups-zone {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto 24px;
    padding: 18px;
    border: 1px solid rgba(0,255,0,.16);
    border-radius: 26px;
    background: rgba(0,0,0,.35);
    box-shadow: 0 0 25px rgba(0,255,0,.06);
}

.rb-groups-scroll-shell {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.rb-groups-grid {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 13px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-green) rgba(255,255,255,.08);
}

.rb-groups-grid::-webkit-scrollbar {
    height: 8px;
}

.rb-groups-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,.08);
    border-radius: 999px;
}

.rb-groups-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--neon-green), var(--neon-yellow));
    border-radius: 999px;
}

.rb-groups-scroll-btn {
    flex: 0 0 42px;
    border: 1px solid rgba(0,255,0,.45);
    border-radius: 16px;
    background: rgba(0,0,0,.72);
    color: var(--neon-green);
    cursor: pointer;
    font-size: 18px;
    transition: .25s ease;
    box-shadow: 0 0 18px rgba(0,255,0,.08);
}

.rb-groups-scroll-btn:hover {
    color: #000;
    background: var(--neon-green);
    box-shadow: 0 0 24px rgba(0,255,0,.28);
}

.rb-group-card {
    flex: 0 0 clamp(165px, 18vw, 235px);
    scroll-snap-align: start;
    min-height: 126px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(135deg, rgba(0,255,0,.12), rgba(255,255,0,.06), rgba(0,0,0,.7));
    color: #fff;
    text-decoration: none;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.rb-group-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .2;
    filter: saturate(1.2) contrast(1.08);
    transition: opacity .25s ease, transform .25s ease;
}

.rb-group-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.82));
}

.rb-group-card span,
.rb-group-card small {
    position: relative;
    z-index: 1;
}

.rb-group-card span {
    color: var(--neon-yellow);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 13px;
}

.rb-group-card small {
    color: #d9d9d9;
    margin-top: 5px;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 14px;
}

.rb-group-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 0 28px rgba(0,255,0,.18);
}

.rb-group-card:hover img {
    opacity: .34;
    transform: scale(1.05);
}

.rb-cat a {
    color: inherit;
    text-decoration: none;
}

.rb-cat a:hover {
    color: var(--neon-yellow);
}

.rb-group-main .rb-group-hero {
    border-color: rgba(255,255,0,.22);
}

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

@media (max-width: 680px) {
    .rb-shop-tools {
        grid-template-columns: 1fr;
    }

    .rb-groups-zone {
        padding: 14px 10px;
        border-radius: 22px;
    }

    .rb-groups-scroll-shell {
        gap: 0;
    }

    .rb-groups-scroll-btn {
        display: none;
    }

    .rb-groups-grid {
        padding-inline: 2px;
        gap: 10px;
        scroll-snap-type: x mandatory;
    }

    .rb-group-card {
        flex-basis: 156px;
        min-height: 116px;
        border-radius: 17px;
        padding: 12px;
    }

    .rb-group-card span {
        font-size: 11px;
    }

    .rb-group-card small {
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .rb-shop-main,
    .rb-product-main {
        width: min(100% - 18px, 1450px);
    }

    .rb-group-card {
        flex-basis: 145px;
    }
}


/* ===========================
   RESPONSIVE SAFETY V5
   =========================== */
img, video, canvas, svg {
    max-width: 100%;
}

.rb-shop-main,
.rb-product-main,
.rb-groups-zone,
.rb-shop-tools,
.rb-card,
.rb-cart-box,
.rb-product-page {
    box-sizing: border-box;
}

@media (max-width: 520px) {
    .rb-card-actions {
        grid-template-columns: 1fr;
    }

    .rb-products-grid {
        grid-template-columns: 1fr;
    }

    .rb-section-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ========================================================
   RESPONSIVE COMPLET V6 — MOBILE / TABLETTE / ORDINATEUR
   Objectif : aucune barre horizontale, boutons tactiles, grilles fluides
   ======================================================== */

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 320px;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
    min-width: 0;
}

a, button, select, input, textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
.rb-neon-btn,
.rb-view-product,
.rb-top-cart,
.btn-auth {
    min-height: 44px;
    touch-action: manipulation;
}

.main-container {
    width: 100%;
    padding-inline: clamp(10px, 2.5vw, 20px);
}

.header-top-bar,
.rb-shop-main,
.rb-product-main,
.rb-groups-zone {
    max-width: 1450px;
}

.header-top-bar {
    gap: 14px;
}

.logo-section,
.controls-right {
    min-width: 0;
}

.controls-right {
    flex-wrap: wrap;
    justify-content: flex-end;
}

#langSelect,
#themeSelect,
.rb-top-cart,
.btn-auth {
    max-width: 100%;
}

.rb-shop-main,
.rb-product-main {
    width: min(1450px, calc(100% - clamp(16px, 3vw, 32px)));
}

.rb-shop-hero {
    overflow: hidden;
}

.rb-shop-hero h1,
.rb-product-info h1,
.rb-section-title span,
.rb-card h3,
.rb-group-card span,
.rb-product-breadcrumb,
.rb-cart-line span {
    overflow-wrap: anywhere;
    word-break: normal;
}

.rb-shop-actions,
.rb-product-actions,
.rb-card-actions {
    align-items: stretch;
}

.rb-neon-btn,
.rb-view-product,
.rb-card button,
.rb-add-product,
#rb-pay-sumup,
#rb-mail-order {
    line-height: 1.2;
    text-align: center;
}

/* Desktop large : garde l'effet premium avec une vraie colonne panier */
@media (min-width: 1281px) {
    .rb-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    }
}

/* Ordinateur portable / petite largeur : filtres plus lisibles */
@media (max-width: 1280px) {
    .rb-shop-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    }

    .rb-shop-tools {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rb-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Tablette paysage et petites fenêtres : panier en dessous pour éviter l’écrasement */
@media (max-width: 1180px) {
    .header-top-bar {
        max-width: 100%;
    }

    .rb-shop-layout,
    .rb-product-details-grid {
        grid-template-columns: 1fr;
    }

    .rb-cart-zone {
        position: static;
        top: auto;
    }

    .rb-cart-box {
        max-width: 100%;
    }

    .rb-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
}

/* Tablette portrait : haut de page mieux rangé et page article en colonne */
@media (max-width: 900px) {
    .header-top-bar {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 18px;
    }

    .logo-section {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .controls-right {
        width: 100%;
        justify-content: center;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .rb-top-cart,
    #themeSelect,
    #langSelect {
        width: 100%;
        justify-content: center;
    }

    .rb-shop-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
    }

    .rb-shop-hero {
        padding: clamp(24px, 6vw, 46px) 14px;
        border-radius: 22px;
    }

    .rb-shop-hero h1 {
        font-size: clamp(30px, 9vw, 58px);
        line-height: 1.02;
    }

    .rb-product-page {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .rb-product-main-img {
        max-height: 560px;
    }

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

/* Mobile : tout passe en une colonne, éléments tactiles, aucun débordement */
@media (max-width: 640px) {
    .main-container {
        padding: 10px;
    }

    .header-top-bar {
        padding-top: 6px;
    }

    .logo-section {
        justify-content: center;
        text-align: center;
    }

    .logo-box img {
        max-width: 68px;
    }

    .auth-controls {
        width: 100%;
        justify-content: center;
    }

    .btn-auth {
        width: 100%;
        max-width: 360px;
        justify-content: center;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
    }

    .controls-right {
        grid-template-columns: 1fr 1fr;
    }

    .rb-top-cart {
        grid-column: 1 / -1;
    }

    #themeSelect,
    #langSelect {
        height: 44px;
        font-size: 11px;
        padding: 8px;
    }

    .rb-shop-main,
    .rb-product-main {
        width: min(100%, calc(100% - 4px));
        padding-bottom: 26px;
    }

    .rb-shop-kicker {
        letter-spacing: 2px;
        font-size: 10px;
    }

    .rb-shop-hero {
        margin-bottom: 16px;
        padding: 24px 12px;
        border-radius: 20px;
    }

    .rb-shop-hero p,
    .rb-shop-note,
    .rb-seo-content,
    .rb-product-html,
    .rb-product-extra {
        font-size: 16px;
    }

    .rb-shop-actions,
    .rb-product-actions,
    .rb-card-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .rb-neon-btn,
    .rb-view-product,
    .rb-card button,
    .rb-add-product,
    #rb-pay-sumup,
    #rb-mail-order {
        width: 100%;
        padding: 14px 12px;
    }

    .rb-groups-zone {
        padding: 12px 8px;
        margin-bottom: 16px;
        border-radius: 20px;
    }

    .rb-groups-grid {
        gap: 10px;
        padding-bottom: 10px;
        margin-inline: -2px;
    }

    .rb-group-card {
        flex: 0 0 148px;
        min-height: 112px;
        padding: 11px;
    }

    .rb-shop-tools {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        border-radius: 18px;
    }

    .rb-tool-field input,
    .rb-tool-field select,
    .rb-tool-field button,
    .rb-cart-zone input,
    .rb-cart-zone textarea,
    .rb-cart-zone select,
    .rb-product-options select,
    .rb-product-options input {
        min-height: 44px;
        font-size: 16px;
        border-radius: 12px;
    }

    .rb-price-filter-grid,
    .rb-cart-address-grid {
        grid-template-columns: 1fr;
    }

    .rb-section-title {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 18px;
    }

    .rb-products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rb-card {
        border-radius: 19px;
    }

    .rb-card img {
        height: clamp(190px, 58vw, 260px);
    }

    .rb-card h3,
    .rb-card-desc {
        min-height: 0;
    }

    .rb-card-body {
        padding: 14px;
    }

    .rb-color-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .rb-color-chip {
        flex: 0 0 auto;
    }

    .rb-cart-box {
        padding: 12px;
        border-radius: 20px;
    }

    .rb-cart-line {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr) 38px;
        grid-template-areas:
            "thumb name remove"
            "thumb qty price";
        gap: 8px 10px;
        align-items: center;
        padding: 12px 0;
    }

    .rb-cart-thumb { grid-area: thumb; width: 50px; height: 50px; }
    .rb-cart-line > span { grid-area: name; font-size: 15px; }
    .rb-cart-line > input { grid-area: qty; width: 72px; max-width: 100%; padding: 8px; }
    .rb-cart-line > strong { grid-area: price; text-align: right; font-size: 15px; }
    .rb-cart-line > button { grid-area: remove; min-height: 34px; width: 34px; padding: 0; justify-self: end; }

    .rb-totals p {
        font-size: 16px;
    }

    .rb-totals p:last-child {
        font-size: 20px;
    }

    .rb-product-breadcrumb {
        flex-wrap: wrap;
        font-size: 14px;
        margin-left: 2px;
    }

    .rb-product-page {
        padding: 12px;
        border-radius: 20px;
        gap: 16px;
    }

    .rb-product-main-img {
        max-height: 420px;
        border-radius: 18px;
    }

    .rb-product-thumbs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .rb-product-thumbs button {
        flex: 0 0 72px;
    }

    .rb-product-info h1 {
        font-size: clamp(27px, 9vw, 42px);
    }

    .rb-product-price {
        font-size: clamp(30px, 10vw, 42px);
    }

    .rb-product-badges span {
        font-size: 14px;
        padding: 7px 10px;
    }

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

    .rb-product-description,
    .rb-product-extra {
        border-radius: 18px;
        padding: 16px;
    }

    .rb-footer-wrap {
        grid-template-columns: 1fr;
        padding-inline: 18px;
        text-align: left;
    }

    .rb-pay,
    .rb-social-icons,
    .rb-links {
        flex-wrap: wrap;
    }
}

/* Très petits mobiles */
@media (max-width: 390px) {
    .controls-right {
        grid-template-columns: 1fr;
    }

    .rb-top-cart {
        grid-column: auto;
    }

    .rb-group-card {
        flex-basis: 136px;
    }

    .rb-card img {
        height: 190px;
    }

    .rb-cart-line {
        grid-template-columns: 46px minmax(0, 1fr) 34px;
        gap: 7px;
    }

    .rb-cart-thumb {
        width: 44px;
        height: 44px;
    }

    .rb-cart-line > input {
        width: 62px;
    }

    .rb-color-select-grid {
        grid-template-columns: 1fr;
    }
}

/* Confort tactile : évite les animations trop fortes sur mobile/tablette */
@media (hover: none) and (pointer: coarse) {
    .rb-card:hover,
    .rb-group-card:hover,
    .rb-neon-btn:hover,
    .rb-color-select-chip:hover {
        transform: none;
    }
}
/* COMPTE CLIENT / CONNEXION / FACTURE */
.rb-auth-page,.rb-account-page{width:100%;max-width:1180px;margin:0 auto 50px;padding:10px 15px}.rb-auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.rb-auth-card,.rb-account-card{background:rgba(10,10,10,.88);border:1px solid rgba(0,255,0,.28);border-radius:22px;padding:24px;box-shadow:0 0 24px rgba(0,255,0,.08)}.rb-auth-card h1,.rb-auth-card h2,.rb-account-card h1,.rb-account-card h2{color:#ffff00;margin-top:0}.rb-auth-card label,.rb-account-card label{display:block;margin:12px 0;color:#ddd;font-size:13px}.rb-auth-card input,.rb-account-card input,.rb-auth-card textarea{width:100%;box-sizing:border-box;margin-top:6px;background:#050505;color:#fff;border:1px solid #333;border-radius:12px;padding:12px}.rb-auth-card button,.rb-account-card button,.rb-account-card a.rb-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;border:1px solid #ffff00;background:#ffff00;color:#000;border-radius:12px;padding:12px 16px;font-weight:900;text-decoration:none;cursor:pointer}.rb-alert{border:1px solid #00ff00;background:rgba(0,255,0,.08);border-radius:14px;padding:12px 14px;margin-bottom:16px}.rb-alert-error{border-color:#ff4d4d;background:rgba(255,0,0,.1)}.rb-order-card{border:1px solid #262626;border-radius:18px;padding:16px;margin:14px 0;background:#080808}.rb-order-head{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.rb-order-lines{font-size:13px;color:#ccc;margin:10px 0 0;padding-left:18px}.rb-badge{display:inline-block;border:1px solid #00ff00;border-radius:999px;padding:4px 10px;color:#00ff00;font-size:12px}.rb-notification{border:1px solid #00d4ff;background:rgba(0,212,255,.08);border-radius:14px;padding:12px;margin:12px 0;color:#eaffff}@media(max-width:820px){.rb-auth-grid{grid-template-columns:1fr}.rb-auth-page,.rb-account-page{padding:8px}.rb-auth-card,.rb-account-card{padding:18px;border-radius:18px}}
