
/* ==========================================
   DARKNET — LOS SANTOS
   Marketplace GTA RP
   ========================================== */

:root {
    --background: #090a0c;
    --surface: rgba(12, 13, 15, 0.91);
    --surface-light: rgba(24, 24, 27, 0.94);
    --border: #292a2e;
    --text: #eeeeef;
    --muted: #898a91;
    --accent: #9c303a;
    --accent-hover: #bd3c48;
    --radius: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: #090a0c;
    background-image:
        linear-gradient(
            180deg,
            rgba(5, 6, 8, 0.38) 0%,
            rgba(5, 6, 8, 0.58) 45%,
            rgba(5, 6, 8, 0.78) 100%
        ),
        url("fond-los-santos.png");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/* BARRE SUPÉRIEURE */

.topbar {
    position: relative;
    z-index: 2;
    min-height: 76px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: rgba(8, 9, 11, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #713039;
    background: #201114;
    color: #d64b57;
    font-size: 22px;
}

.logo > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.logo small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 3px;
}

/* BARRE DE RECHERCHE */

.search-box {
    width: min(420px, 40%);
    height: 40px;
    display: flex;
    align-items: center;
    border: 1px solid #35353a;
    border-radius: 4px;
    background: rgba(5, 6, 8, 0.82);
    transition: border-color 0.2s ease;
}

.search-box:focus-within {
    border-color: #794049;
}

.search-box input {
    width: 100%;
    height: 100%;
    padding: 0 13px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 12px;
}

.search-box input::placeholder {
    color: #777880;
}

.search-box > span {
    padding: 0 13px;
    color: #a3a3a8;
    font-size: 22px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#accountButton {
    padding: 10px 16px;
    border: 1px solid #74303a;
    border-radius: var(--radius);
    background: rgba(25, 17, 20, 0.92);
    color: var(--text);
    font-size: 11px;
    transition: 0.2s ease;
}

#accountButton:hover {
    border-color: var(--accent-hover);
    background: #38181e;
}

.secure-label {
    color: #d14b57;
    font-size: 9px;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

/* BANDEAU D'ACCUEIL — VERSION PLUS COMPACTE */

.banner {
    position: relative;
    overflow: hidden;
    min-height: 165px;
    padding: 28px 8%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-bottom: 1px solid rgba(100, 70, 75, 0.3);
    background: linear-gradient(
        90deg,
        rgba(7, 8, 10, 0.65),
        rgba(7, 8, 10, 0.20)
    );
}

.banner::after {
    content: "DN";
    position: absolute;
    right: 9%;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(190, 48, 64, 0.08);
    font-size: clamp(100px, 16vw, 180px);
    font-weight: 900;
    letter-spacing: -12px;
    pointer-events: none;
}

.banner-label,
.eyebrow {
    color: #d24b57;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.4px;
}

.banner h1 {
    position: relative;
    z-index: 1;
    margin: 8px 0 5px;
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.banner h1 span {
    color: #d34451;
}

.banner > p:last-child {
    color: #c0b8bc;
    font-size: 11px;
    letter-spacing: 0.8px;
}

/* STRUCTURE DE LA BOUTIQUE */

.shop-layout {
    width: min(1320px, 92%);
    margin: 0 auto;
    padding: 28px 0 45px;
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

/* CATÉGORIES */

.categories {
    padding: 20px 14px 14px;
    border: 1px solid rgba(75, 75, 81, 0.65);
    border-radius: var(--radius);
    background: rgba(8, 9, 11, 0.91);
    backdrop-filter: blur(12px);
}

.categories h2 {
    padding: 0 10px 16px;
    color: #b0afb5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.category {
    width: 100%;
    min-height: 43px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: #b0afb5;
    text-align: left;
    font-size: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.category > span:last-child {
    color: #777780;
    font-size: 19px;
}

.category:hover {
    background: rgba(40, 35, 38, 0.88);
    color: #fff;
}

.category.active {
    border-color: #46252b;
    background: linear-gradient(
        90deg,
        rgba(65, 24, 31, 0.95),
        rgba(31, 17, 21, 0.95)
    );
    color: #fff;
}

.category.active > span:last-child {
    color: #e05a66;
}

.sidebar-note {
    margin-top: 23px;
    padding: 15px 9px 3px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-top: 1px solid var(--border);
    color: #929199;
    font-size: 8px;
    letter-spacing: 1px;
}

.status-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #68a77b;
    box-shadow: 0 0 8px rgba(104, 167, 123, 0.35);
}

/* CATALOGUE */

.catalogue {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(75, 75, 81, 0.65);
    border-radius: var(--radius);
    background: rgba(8, 9, 11, 0.91);
    backdrop-filter: blur(12px);
}

.catalogue-heading {
    min-height: 70px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border);
}

.catalogue-heading .eyebrow {
    margin-bottom: 5px;
    font-size: 8px;
}

.catalogue-heading h2 {
    padding-bottom: 13px;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.5px;
}

#itemCount {
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: #aaa9b0;
    font-size: 9px;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* CARTES DES ARTICLES */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #303035;
    border-radius: var(--radius);
    background: rgba(14, 15, 17, 0.96);
    transition: transform 0.22s ease, border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #75404a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.product-card[hidden] {
    display: none !important;
}

.product-image {
    position: relative;
    height: 155px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 13px;
    border-bottom: 1px solid var(--border);
    background-color: #19191c;
    background-image:
        linear-gradient(0deg, rgba(7, 7, 8, 0.94), transparent 80%),
        repeating-linear-gradient(
            135deg,
            #1b1b1e 0,
            #1b1b1e 2px,
            #202023 2px,
            #202023 4px
        );
}

.product-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 25%,
        rgba(146, 48, 59, 0.2),
        transparent 68%
    );
    transition: opacity 0.2s ease;
}

.product-card:hover .product-image::before {
    opacity: 1.8;
}

.product-image > span {
    position: relative;
    z-index: 1;
    color: #d0cbd0;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.image-one { background-color: #1a1719; }
.image-two { background-color: #18191c; }
.image-three { background-color: #1b1719; }
.image-four { background-color: #19191b; }
.image-five { background-color: #171a19; }
.image-six { background-color: #1c171b; }

.product-info {
    padding: 16px;
}

.product-category {
    margin-bottom: 7px;
    color: #d04b57;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.product-info h3 {
    overflow-wrap: anywhere;
    color: #f0edef;
    font-size: 13px;
    font-weight: 600;
}

.product-description {
    min-height: 36px;
    margin-top: 6px;
    color: #a3a1a8;
    font-size: 10px;
    line-height: 1.7;
}

.product-bottom {
    margin-top: 14px;
    padding-top: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #29292d;
}

.product-bottom strong {
    color: #e65a66;
    font-size: 13px;
}

.add-button {
    padding: 7px 10px;
    border: 1px solid #78303b;
    border-radius: 3px;
    background: rgba(39, 21, 25, 0.95);
    color: #f0c4c8;
    font-size: 10px;
    transition: 0.2s ease;
}

.add-button:hover {
    border-color: var(--accent-hover);
    background: var(--accent);
    color: #fff;
}

/* MESSAGE AUCUN RÉSULTAT */

.empty-message {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: rgba(12, 13, 15, 0.96);
    color: #aaa4a7;
    font-size: 12px;
}

.empty-message[hidden] {
    display: none !important;
}

/* PIED DE PAGE */

.footer {
    min-height: 76px;
    padding: 20px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid rgba(70, 70, 75, 0.6);
    background: rgba(7, 8, 10, 0.94);
    color: #9998a0;
    font-size: 9px;
    letter-spacing: 1.2px;
}

.footer .red {
    color: #c33c49;
}

/* ADAPTATION AUX ÉCRANS MOYENS */

@media (max-width: 1100px) {
    .shop-layout {
        grid-template-columns: 195px minmax(0, 1fr);
        gap: 15px;
    }

    .catalogue {
        padding: 14px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar {
        padding: 0 4%;
        gap: 18px;
    }
}

/* ADAPTATION AUX TÉLÉPHONES */

@media (max-width: 700px) {
    body {
        background-attachment: scroll;
        background-position: center top;
    }

    .topbar {
        padding: 16px 5%;
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        font-size: 17px;
    }

    .search-box {
        order: 3;
        width: 100%;
    }

    .header-actions {
        margin-left: auto;
        gap: 9px;
    }

    .secure-label {
        display: none;
    }

    .banner {
        min-height: 140px;
        padding: 24px 6%;
    }

    .banner h1 {
        font-size: clamp(21px, 6vw, 28px);
        letter-spacing: -0.5px;
    }

    .banner::after {
        right: 5%;
        font-size: 100px;
    }

    .shop-layout {
        width: 90%;
        padding: 22px 0 35px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .categories {
        padding: 15px 12px 12px;
    }

    .categories h2 {
        padding-bottom: 10px;
    }

    .category {
        min-height: 38px;
    }

    .sidebar-note {
        margin-top: 12px;
    }

    .catalogue {
        padding: 12px;
    }

    .catalogue-heading h2 {
        font-size: 20px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-image {
        height: 125px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 12px;
    }

    .product-description {
        font-size: 10px;
    }

    .product-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .add-button {
        width: 100%;
    }

    .footer {
        padding: 20px 5%;
        flex-wrap: wrap;
    }
}

/* PETITS TÉLÉPHONES */

@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 155px;
    }

    .product-bottom {
        align-items: center;
        flex-direction: row;
    }

    .add-button {
        width: auto;
    }
}
