/* =========================================================
   CAMU COMMERCE
   CSS INDÉPENDANT
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --commerce-blue: #063b73;
    --commerce-blue-dark: #04294f;

    --commerce-green: #20a86b;
    --commerce-green-dark: #168653;

    --commerce-white: #ffffff;

    --commerce-light: #f5f7fa;
    --commerce-border: #e2e7ee;

    --commerce-text: #1d2939;
    --commerce-muted: #667085;

    --commerce-danger: #d92d20;

    --commerce-shadow:
        0 8px 25px rgba(0, 0, 0, .08);

    --commerce-radius: 14px;

}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: var(--commerce-light);
    color: var(--commerce-text);
    font-family: Arial, Helvetica, sans-serif;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
select {
    font: inherit;
}


/* =========================================================
   SIDEBAR
========================================================= */

.commerce-sidebar {

    position: fixed;

    top: 0;
    left: 0;

    width: 250px;
    height: 100vh;

    background:
        linear-gradient(
            180deg,
            var(--commerce-blue),
            var(--commerce-blue-dark)
        );

    color: #fff;

    z-index: 1000;

    display: flex;
    flex-direction: column;

    box-shadow:
        4px 0 20px rgba(0, 0, 0, .12);

}


/* =========================================================
   SIDEBAR HEADER
========================================================= */

.commerce-sidebar-header {

    min-height: 105px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 18px;

    border-bottom:
        1px solid rgba(255, 255, 255, .10);

}


.commerce-sidebar-title {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 11px;

    font-size: 16px;

    font-weight: 800;

    letter-spacing: .02em;

}


.commerce-sidebar-title i {

    color: var(--commerce-green);

    font-size: 22px;

}


/* =========================================================
   SIDEBAR NAVIGATION
========================================================= */

.commerce-sidebar-nav {

    padding: 18px 12px;

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.commerce-nav-link {

    min-height: 46px;

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 10px 13px;

    border-radius: 9px;

    color:
        rgba(255, 255, 255, .88);

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;

}


.commerce-nav-link i {

    width: 21px;

    text-align: center;

    font-size: 16px;

}


.commerce-nav-link span {

    font-size: 14px;

}


.commerce-nav-link:hover {

    background:
        rgba(255, 255, 255, .11);

    color: #fff;

}


.commerce-nav-link.active {

    background:
        var(--commerce-green);

    color: #fff;

}


/* =========================================================
   MAIN
========================================================= */

.commerce-main {

    min-height: 100vh;

    margin-left: 250px;

}


/* =========================================================
   TOPBAR
========================================================= */

.commerce-topbar {

    position: sticky;

    top: 0;

    height: 82px;

    background: #fff;

    border-bottom:
        1px solid var(--commerce-border);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 25px;

    z-index: 900;

}


/* =========================================================
   LOGO
========================================================= */

.commerce-logo {

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width: 200px;
    height: 72px;

    display: flex;

    align-items: center;
    justify-content: center;

}


.commerce-logo img {

    width: 180px;

    max-width: 100%;

    height: auto;

    display: block;

}


/* =========================================================
   TOPBAR RIGHT
========================================================= */

.commerce-topbar-right {

    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 20px;

}


.commerce-topbar-link,
.commerce-account-link {

    display: flex;

    align-items: center;

    gap: 8px;

    color:
        var(--commerce-blue);

    font-size: 14px;

    font-weight: 600;

    transition:
        color .2s ease;

}


.commerce-topbar-link:hover,
.commerce-account-link:hover {

    color:
        var(--commerce-green);

}


.commerce-topbar-link i {

    font-size: 18px;

}


.commerce-account-link i {

    font-size: 16px;

}


/* =========================================================
   MENU MOBILE
========================================================= */

.commerce-menu-button {

    display: none;

    border: 0;

    background: transparent;

    color:
        var(--commerce-blue);

    font-size: 22px;

    cursor: pointer;

    padding: 6px;

}


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

.commerce-hero {

    position: relative;

    overflow: hidden;

    background:

        linear-gradient(
            110deg,
            rgba(4, 41, 79, .97),
            rgba(6, 59, 115, .92)
        );

    color: #fff;

    padding:
        75px 7% 85px;

}


.commerce-hero::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -160px;
    top: -180px;

    border-radius: 50%;

    background:
        rgba(32, 168, 107, .10);

}


.commerce-hero-content {

    position: relative;

    z-index: 2;

    max-width: 900px;

    margin: auto;

    text-align: center;

}


.commerce-eyebrow {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        8px 16px;

    border:
        1px solid
        rgba(255, 255, 255, .20);

    background:
        rgba(255, 255, 255, .10);

    border-radius: 50px;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .08em;

}


.commerce-hero h1 {

    margin:
        18px 0 13px;

    font-size:
        clamp(34px, 5vw, 56px);

    line-height: 1.05;

}


.commerce-hero p {

    max-width: 700px;

    margin:
        0 auto 25px;

    color:
        rgba(255, 255, 255, .88);

    font-size: 17px;

    line-height: 1.7;

}


.commerce-hero-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding:
        13px 20px;

    border-radius: 8px;

    background:
        var(--commerce-green);

    color: #fff;

    font-size: 13px;

    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease;

}


.commerce-hero-button:hover {

    background:
        var(--commerce-green-dark);

    transform:
        translateY(-2px);

}


/* =========================================================
   SECTIONS
========================================================= */

.commerce-section {

    max-width: 1200px;

    margin: auto;

    padding:
        65px 6% 15px;

}


.commerce-section-heading {

    text-align: center;

    margin-bottom: 30px;

}


.commerce-section-label {

    display: block;

    color:
        var(--commerce-green);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .08em;

}


.commerce-section-heading h2 {

    margin:
        8px 0 8px;

    color:
        var(--commerce-blue);

    font-size: 30px;

}


.commerce-section-heading p {

    max-width: 700px;

    margin:
        0 auto;

    color:
        var(--commerce-muted);

    font-size: 14px;

    line-height: 1.6;

}


/* =========================================================
   CATÉGORIES COMMERCE
========================================================= */

.commerce-category-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

}


.commerce-category-card {

    display: block;

    background: #fff;

    border:
        1px solid
        var(--commerce-border);

    border-radius:
        var(--commerce-radius);

    padding: 25px 18px;

    text-align: center;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .04);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;

}


.commerce-category-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        var(--commerce-shadow);

    border-color:
        rgba(32, 168, 107, .35);

}


.commerce-category-icon {

    width: 64px;
    height: 64px;

    margin:
        0 auto 15px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(32, 168, 107, .10);

    color:
        var(--commerce-green);

    font-size: 25px;

}


.commerce-category-card h3 {

    margin:
        0 0 8px;

    color:
        var(--commerce-blue);

    font-size: 16px;

}


.commerce-category-card p {

    margin: 0;

    color:
        var(--commerce-muted);

    font-size: 12px;

    line-height: 1.55;

}


.commerce-loading,
.commerce-empty {

    grid-column:
        1 / -1;

    background: #fff;

    border:
        1px solid
        var(--commerce-border);

    border-radius:
        var(--commerce-radius);

    padding: 35px;

    text-align: center;

    color:
        var(--commerce-muted);

}


.commerce-loading i {

    margin-right: 7px;

}


.commerce-empty i {

    display: block;

    margin-bottom: 12px;

    font-size: 32px;

}


/* =========================================================
   RECHERCHE
========================================================= */

.commerce-search-section {

    padding-top: 45px;

}


.commerce-search-box {

    max-width: 1200px;

    margin: auto;

    padding: 20px;

    background: #fff;

    border-radius:
        var(--commerce-radius);

    box-shadow:
        var(--commerce-shadow);

    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr 1.2fr auto;

    gap: 12px;

}


.commerce-field {

    min-width: 0;

}


.commerce-field label {

    display: block;

    margin-bottom: 6px;

    color:
        var(--commerce-muted);

    font-size: 12px;

    font-weight: 700;

}


.commerce-field input,
.commerce-field select {

    width: 100%;

    height: 44px;

    padding:
        0 12px;

    border:
        1px solid
        var(--commerce-border);

    border-radius: 8px;

    outline: none;

    background: #fff;

    color:
        var(--commerce-text);

}


.commerce-field input:focus,
.commerce-field select:focus {

    border-color:
        var(--commerce-green);

    box-shadow:
        0 0 0 3px
        rgba(32, 168, 107, .08);

}


.commerce-input-wrapper {

    position: relative;

}


.commerce-input-wrapper i {

    position: absolute;

    left: 13px;

    top: 50%;

    transform:
        translateY(-50%);

    color:
        var(--commerce-muted);

    font-size: 13px;

}


.commerce-input-wrapper input {

    padding-left: 38px;

}


.commerce-search-button {

    align-self: end;

    height: 44px;

    border: 0;

    padding:
        0 18px;

    border-radius: 8px;

    background:
        var(--commerce-green);

    color: #fff;

    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background .2s ease;

}


.commerce-search-button:hover {

    background:
        var(--commerce-green-dark);

}


/* =========================================================
   PRODUITS
========================================================= */

.commerce-heading-row {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    text-align: left;

}


.commerce-heading-row .commerce-section-label {

    margin-bottom: 0;

}


.commerce-result-count {

    color:
        var(--commerce-muted);

    font-size: 13px;

    white-space: nowrap;

}


.commerce-product-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

}


.commerce-product-card {

    background: #fff;

    border:
        1px solid
        var(--commerce-border);

    border-radius:
        var(--commerce-radius);

    overflow: hidden;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .04);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.commerce-product-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        var(--commerce-shadow);

}


.commerce-product-image {

    height: 200px;

    overflow: hidden;

    background: #e9edf2;

}


.commerce-product-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

}


.commerce-product-content {

    padding: 17px;

}


.commerce-product-category {

    color:
        var(--commerce-green);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .05em;

}


.commerce-product-card h3 {

    margin:
        7px 0;

    color:
        var(--commerce-blue);

    font-size: 16px;

}


.commerce-product-location {

    color:
        var(--commerce-muted);

    font-size: 12px;

    margin-bottom: 10px;

}


.commerce-product-location i {

    margin-right: 5px;

}


.commerce-product-price {

    color:
        var(--commerce-blue);

    font-size: 18px;

    font-weight: 800;

}


.commerce-product-link {

    display: inline-flex;

    margin-top: 12px;

    color:
        var(--commerce-green);

    font-size: 12px;

    font-weight: 700;

}


/* =========================================================
   ÉTABLISSEMENTS / VENDEURS
========================================================= */

.commerce-business-section {

    padding-top: 70px;

}


.commerce-business-filters {

    max-width: 700px;

    margin:
        0 auto 25px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;

}


.commerce-business-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

}


.commerce-business-card {

    background: #fff;

    border:
        1px solid
        var(--commerce-border);

    border-radius:
        var(--commerce-radius);

    padding: 22px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .04);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.commerce-business-card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        var(--commerce-shadow);

}


.commerce-business-head {

    display: flex;

    align-items: center;

    gap: 14px;

}


.commerce-business-logo {

    width: 58px;
    height: 58px;

    flex: 0 0 58px;

    overflow: hidden;

    border-radius: 12px;

    background:
        rgba(6, 59, 115, .08);

    color:
        var(--commerce-blue);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 22px;

}


.commerce-business-logo img {

    width: 100%;
    height: 100%;

    object-fit: cover;

}


.commerce-business-card h3 {

    margin:
        0 0 4px;

    color:
        var(--commerce-blue);

    font-size: 16px;

}


.commerce-business-category {

    color:
        var(--commerce-green);

    font-size: 11px;

    font-weight: 700;

}


.commerce-business-location {

    margin:
        15px 0;

    color:
        var(--commerce-muted);

    font-size: 13px;

}


.commerce-business-location div {

    margin-top: 5px;

}


.commerce-business-location i {

    width: 17px;

    color:
        var(--commerce-blue);

}


.commerce-business-description {

    margin-bottom: 15px;

    color:
        var(--commerce-muted);

    font-size: 13px;

    line-height: 1.55;

}


.commerce-business-actions {

    display: flex;

    gap: 8px;

}


.commerce-business-actions a {

    flex: 1;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    padding: 10px;

    border-radius: 7px;

    text-align: center;

    font-size: 12px;

    font-weight: 700;

}


.commerce-business-whatsapp {

    background:
        #e7f8ef;

    color:
        var(--commerce-green-dark);

}


.commerce-business-contact {

    background:
        #edf3fa;

    color:
        var(--commerce-blue);

}


/* =========================================================
   ESPACE VENDEUR
========================================================= */

.commerce-vendor-section {

    max-width: 1200px;

    margin:
        60px auto 0;

    padding:
        0 6% 45px;

}


.commerce-vendor-content {

    padding: 45px 30px;

    border-radius:
        var(--commerce-radius);

    background:
        linear-gradient(
            110deg,
            var(--commerce-blue),
            var(--commerce-blue-dark)
        );

    color: #fff;

    text-align: center;

    box-shadow:
        var(--commerce-shadow);

}


.commerce-vendor-icon {

    width: 65px;
    height: 65px;

    margin:
        0 auto 16px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(255, 255, 255, .12);

    font-size: 25px;

}


.commerce-vendor-content h2 {

    margin:
        0 0 10px;

    font-size: 26px;

}


.commerce-vendor-content p {

    max-width: 650px;

    margin:
        0 auto 22px;

    color:
        rgba(255, 255, 255, .82);

    line-height: 1.6;

    font-size: 14px;

}


.commerce-vendor-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding:
        13px 20px;

    border-radius: 8px;

    background:
        var(--commerce-green);

    color: #fff;

    font-size: 13px;

    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease;

}


.commerce-vendor-button:hover {

    background:
        var(--commerce-green-dark);

    transform:
        translateY(-2px);

}


/* =========================================================
   FOOTER
========================================================= */

.commerce-footer {

    margin-top: 30px;

    border-top:
        1px solid
        var(--commerce-border);

    background: #fff;

    padding:
        30px 6% 20px;

    color:
        var(--commerce-muted);

}


.commerce-footer-content {

    max-width: 1200px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    gap: 30px;

}


.commerce-footer-content strong {

    color:
        var(--commerce-blue);

    font-size: 15px;

}


.commerce-footer-content p {

    margin:
        8px 0 0;

    font-size: 12px;

    line-height: 1.5;

}


.commerce-footer-links {

    display: flex;

    align-items: center;

    gap: 18px;

}


.commerce-footer-links a {

    color:
        var(--commerce-blue);

    font-size: 12px;

    font-weight: 700;

}


.commerce-footer-links a:hover {

    color:
        var(--commerce-green);

}


.commerce-footer-bottom {

    max-width: 1200px;

    margin:
        25px auto 0;

    padding-top: 18px;

    border-top:
        1px solid
        var(--commerce-border);

    text-align: center;

    font-size: 11px;

}


/* =========================================================
   OVERLAY MOBILE
========================================================= */

.commerce-overlay {

    display: none;

}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 1100px) {

    .commerce-category-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }


    .commerce-product-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }


    .commerce-business-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .commerce-search-box {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .commerce-search-button {

        width: 100%;

    }

}


/* =========================================================
   TABLETTE PETITE
========================================================= */

@media (max-width: 900px) {

    .commerce-sidebar {

        width: 225px;

    }


    .commerce-main {

        margin-left: 225px;

    }


    .commerce-category-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .commerce-product-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    /* SIDEBAR */

    .commerce-sidebar {

        width: 280px;

        transform:
            translateX(-100%);

        transition:
            transform .25s ease;

    }


    .commerce-sidebar.open {

        transform:
            translateX(0);

    }


    /* OVERLAY */

    .commerce-overlay.active {

        display: block;

        position: fixed;

        inset: 0;

        background:
            rgba(0, 0, 0, .45);

        z-index: 999;

    }


    /* MAIN */

    .commerce-main {

        margin-left: 0;

    }


    /* TOPBAR */

    .commerce-topbar {

        height: 72px;

        padding:
            0 15px;

    }


    /* MENU */

    .commerce-menu-button {

        display: block;

        position: absolute;

        left: 15px;

    }


    /* LOGO */

    .commerce-logo {

        width: 155px;

        height: 62px;

    }


    .commerce-logo img {

        width: 140px;

    }


    /* ACTIONS */

    .commerce-topbar-right {

        position: absolute;

        right: 15px;

        gap: 14px;

    }


    .commerce-topbar-link {

        font-size: 18px;

    }


    .commerce-account-link span {

        display: none;

    }


    .commerce-account-link {

        font-size: 18px;

    }


    /* HERO */

    .commerce-hero {

        padding:
            50px 20px;

    }


    .commerce-hero h1 {

        font-size: 34px;

    }


    .commerce-hero p {

        font-size: 14px;

    }


    /* SECTIONS */

    .commerce-section {

        padding:
            45px 15px 10px;

    }


    .commerce-section-heading h2 {

        font-size: 25px;

    }


    /* CATEGORIES */

    .commerce-category-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;

    }


    .commerce-category-card {

        padding:
            20px 12px;

    }


    .commerce-category-icon {

        width: 55px;
        height: 55px;

        font-size: 21px;

    }


    /* SEARCH */

    .commerce-search-box {

        grid-template-columns:
            1fr;

        padding: 15px;

    }


    /* PRODUCTS */

    .commerce-product-grid {

        grid-template-columns:
            1fr;

    }


    .commerce-product-image {

        height: 220px;

    }


    /* HEADING */

    .commerce-heading-row {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 7px;

    }


    /* BUSINESS */

    .commerce-business-filters {

        grid-template-columns:
            1fr;

    }


    .commerce-business-grid {

        grid-template-columns:
            1fr;

    }


    /* VENDOR */

    .commerce-vendor-section {

        padding:
            35px 15px;

    }


    .commerce-vendor-content {

        padding:
            30px 20px;

    }


    .commerce-vendor-content h2 {

        font-size: 22px;

    }


    /* FOOTER */

    .commerce-footer {

        padding:
            25px 15px 18px;

    }


    .commerce-footer-content {

        flex-direction:
            column;

        align-items:
            center;

        text-align:
            center;

    }


    .commerce-footer-links {

        flex-wrap:
            wrap;

        justify-content:
            center;

    }

}


/* =========================================================
   PETITS ÉCRANS
========================================================= */

@media (max-width: 420px) {

    .commerce-logo img {

        width: 125px;

    }


    .commerce-hero {

        padding:
            40px 15px;

    }


    .commerce-hero h1 {

        font-size: 29px;

    }


    .commerce-section-heading h2 {

        font-size: 22px;

    }


    .commerce-category-grid {

        grid-template-columns:
            1fr;

    }


    .commerce-category-card {

        padding:
            22px 15px;

    }


    .commerce-product-image {

        height: 200px;

    }


    .commerce-business-card {

        padding:
            18px;

    }


    .commerce-business-actions {

        flex-direction:
            column;

    }


    .commerce-business-actions a {

        width: 100%;

    }

}
