﻿/* =========================================================
   AfriWeva Catalog V13.5
   Clean B2B fashion sourcing UI.
   Uses aw-* selectors so old luxury/minimal catalog theme rules do not leak in.
   ========================================================= */

.aw-catalog-v2 {
    --aw-green: #0f5b3d;
    --aw-green-dark: #153d2d;
    --aw-green-soft: #ecf5ef;
    --aw-gold: #d6a546;
    --aw-text: #1d2c24;
    --aw-muted: #6f7f76;
    --aw-line: #dfe7e2;
    --aw-soft: #f5f8f6;
    --aw-white: #fff;
    min-height: 100vh;
    padding: 22px 0 64px;
    background: #f7f9f7;
    color: var(--aw-text);
}

    .aw-catalog-v2 *,
    .aw-catalog-v2 *::before,
    .aw-catalog-v2 *::after {
        box-sizing: border-box;
    }

.aw-cat-container {
    width: min(1450px, calc(100% - 36px));
    margin: 0 auto;
}

/* Hero */
.aw-cat-hero {
    min-height: 260px;
    padding: 34px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
    align-items: center;
    gap: 26px;
    overflow: hidden;
    position: relative;
    border: 1px solid #d8e4dc;
    border-radius: 28px;
    background: radial-gradient(circle at 82% 25%, rgba(151,190,163,.34), transparent 23%), radial-gradient(circle at 93% 78%, rgba(214,165,70,.16), transparent 22%), linear-gradient(135deg, #f3f8f4 0%, #e9f2eb 100%);
}

.aw-cat-eyebrow {
    margin-bottom: 9px;
    color: #b47c1c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.aw-cat-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #133c2c;
    font-size: clamp(34px, 4.6vw, 62px);
    line-height: .99;
    letter-spacing: -.045em;
}

.aw-cat-hero p {
    max-width: 700px;
    margin: 15px 0 0;
    color: #60746a;
    font-size: 15px;
    line-height: 1.75;
}

.aw-cat-hero-search {
    max-width: 720px;
    margin-top: 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cddbd1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(27, 73, 50, .06);
}

    .aw-cat-hero-search > span {
        padding-left: 15px;
        color: #7d8e83;
        font-size: 21px;
    }

    .aw-cat-hero-search input {
        min-width: 0;
        height: 50px;
        border: 0;
        outline: 0;
        padding: 0 12px;
        background: transparent;
        color: #173a2c;
        font: inherit;
    }

    .aw-cat-hero-search button {
        height: 42px;
        margin-right: 5px;
        padding: 0 18px;
        border: 0;
        border-radius: 10px;
        background: var(--aw-green);
        color: #fff;
        font-weight: 850;
        cursor: pointer;
    }

.aw-cat-trust {
    margin-top: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #587064;
    font-size: 12px;
    font-weight: 750;
}

.aw-cat-hero-graphic {
    min-height: 190px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    perspective: 900px;
}

.aw-cat-garment {
    width: 126px;
    height: 172px;
    padding-top: 30px;
    display: flex;
    justify-content: center;
    position: relative;
    border-radius: 24px 24px 34px 34px;
    color: rgba(255,255,255,.9);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    box-shadow: 0 24px 42px rgba(28, 72, 50, .14);
}

    .aw-cat-garment::before,
    .aw-cat-garment::after {
        content: "";
        width: 45px;
        height: 80px;
        position: absolute;
        top: 12px;
        border-radius: 26px 26px 12px 12px;
        background: inherit;
    }

    .aw-cat-garment::before {
        left: -26px;
        transform: rotate(23deg);
    }

    .aw-cat-garment::after {
        right: -26px;
        transform: rotate(-23deg);
    }

.aw-cat-garment--one {
    background: #155f40;
    transform: rotate(-4deg);
}

.aw-cat-garment--two {
    background: #d9c0a5;
    color: #675346;
    transform: translateY(-9px);
}

.aw-cat-garment--three {
    background: #2a6c51;
    transform: rotate(4deg);
}

/* Category navigation */
.aw-cat-category-section {
    margin-top: 15px;
    padding: 16px;
    border: 1px solid var(--aw-line);
    border-radius: 22px;
    background: #fff;
}

.aw-cat-root-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

    .aw-cat-root-tabs::-webkit-scrollbar {
        display: none;
    }

.aw-cat-root-tab {
    min-height: 38px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #dce5df;
    border-radius: 999px;
    color: #395548 !important;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
    background: #fff;
}

    .aw-cat-root-tab.is-active,
    .aw-cat-root-tab:hover {
        border-color: #9dc9ae;
        background: var(--aw-green-soft);
        color: var(--aw-green) !important;
    }

.aw-cat-category-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(118px, 140px);
    gap: 10px;
    overflow-x: auto;
    padding: 1px 1px 5px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.aw-cat-category-card {
    min-width: 0;
    padding: 9px;
    display: block;
    border: 1px solid #e3e9e5;
    border-radius: 16px;
    background: #fafcfb;
    color: #254535 !important;
    text-decoration: none !important;
    scroll-snap-align: start;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .aw-cat-category-card:hover,
    .aw-cat-category-card.is-active {
        transform: translateY(-1px);
        border-color: #9cc5aa;
        box-shadow: 0 8px 20px rgba(20, 78, 48, .07);
    }

.aw-cat-category-media {
    height: 78px;
    margin-bottom: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #edf4ef;
}

    .aw-cat-category-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.aw-cat-category-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #4a8063;
    font-size: 23px;
}

.aw-cat-category-card strong {
    display: block;
    min-height: 33px;
    font-size: 11px;
    line-height: 1.45;
}

/* Main layout */
.aw-cat-mobile-toolbar {
    display: none;
}

.aw-cat-layout {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.aw-cat-sidebar {
    position: sticky;
    top: 88px;
    padding: 18px;
    border: 1px solid var(--aw-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(15, 62, 41, .035);
}

.aw-cat-sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1ee;
}

    .aw-cat-sidebar-head strong,
    .aw-cat-sidebar-head span {
        display: block;
    }

    .aw-cat-sidebar-head strong {
        color: #173a2c;
        font-size: 19px;
    }

    .aw-cat-sidebar-head span {
        margin-top: 3px;
        color: #89958e;
        font-size: 11px;
    }

.aw-cat-sidebar-close {
    display: none;
    border: 0;
    background: transparent;
    color: #52675a;
    font-size: 28px;
    cursor: pointer;
}

.aw-cat-filter-block {
    margin-top: 17px;
}

    .aw-cat-filter-block > label,
    .aw-cat-filter-label-row label {
        display: block;
        margin-bottom: 7px;
        color: #2b4738;
        font-size: 12px;
        font-weight: 850;
    }

    .aw-cat-filter-block input,
    .aw-cat-filter-block select {
        width: 100%;
        height: 43px;
        border: 1px solid #d8e1db;
        border-radius: 11px;
        outline: 0;
        padding: 0 11px;
        background: #f8faf8;
        color: #263a2f;
        font: inherit;
        font-size: 13px;
    }

        .aw-cat-filter-block input:focus,
        .aw-cat-filter-block select:focus {
            border-color: #91bba0;
            box-shadow: 0 0 0 3px rgba(23, 99, 72, .08);
        }

.aw-cat-filter-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    .aw-cat-filter-label-row a {
        color: var(--aw-green) !important;
        text-decoration: none !important;
        font-size: 11px;
        font-weight: 800;
    }

.aw-cat-tree {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aw-cat-tree-group {
    padding: 7px;
    border-radius: 12px;
    background: #fafcfb;
}

    .aw-cat-tree-group.is-current {
        background: #f1f7f3;
    }

.aw-cat-tree-root {
    min-height: 34px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 9px;
    color: #244635 !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 900;
}

    .aw-cat-tree-root.is-active {
        background: #dcefe3;
        color: var(--aw-green) !important;
    }

.aw-cat-tree-children {
    padding: 4px 3px 3px 13px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

    .aw-cat-tree-children a {
        padding: 6px 7px;
        border-radius: 8px;
        color: #63756b !important;
        text-decoration: none !important;
        font-size: 11px;
        line-height: 1.35;
    }

        .aw-cat-tree-children a:hover,
        .aw-cat-tree-children a.is-active {
            background: #fff;
            color: var(--aw-green) !important;
            font-weight: 850;
        }

.aw-cat-filter-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
}

    .aw-cat-filter-actions button,
    .aw-cat-filter-actions a {
        min-height: 42px;
        padding: 0 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        font-size: 12px;
        font-weight: 850;
        text-decoration: none !important;
    }

    .aw-cat-filter-actions button {
        border: 0;
        background: var(--aw-green);
        color: #fff;
        cursor: pointer;
    }

    .aw-cat-filter-actions a {
        border: 1px solid #d9e2dc;
        background: #fff;
        color: #51675a !important;
    }

/* Results */
.aw-cat-main {
    min-width: 0;
}

.aw-cat-results-head {
    min-height: 74px;
    padding: 5px 2px 13px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.aw-cat-breadcrumb {
    margin-bottom: 5px;
    display: flex;
    gap: 7px;
    align-items: center;
    color: #89968e;
    font-size: 11px;
}

    .aw-cat-breadcrumb a {
        color: #89968e !important;
        text-decoration: none !important;
    }

.aw-cat-results-head h2 {
    margin: 0;
    color: #173a2c;
    font-size: 29px;
    letter-spacing: -.03em;
}

.aw-cat-results-head p {
    margin: 4px 0 0;
    color: #89958e;
    font-size: 11px;
}

.aw-cat-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #51645a;
    font-size: 11px;
    font-weight: 800;
}

    .aw-cat-sort-form select {
        height: 42px;
        min-width: 180px;
        padding: 0 35px 0 12px;
        border: 1px solid #d6e0da;
        border-radius: 11px;
        background: #fff;
        color: #263a2f;
        font: inherit;
    }

/* Product cards */
.aw-cat-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.aw-cat-product-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e7e3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 60, 40, .035);
    transition: transform .16s ease, box-shadow .16s ease;
}

    .aw-cat-product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 13px 31px rgba(15, 60, 40, .08);
    }

.aw-cat-product-media {
    aspect-ratio: 1 / .92;
    overflow: hidden;
    position: relative;
    display: block;
    background: #f1f4f2;
    text-decoration: none !important;
}

    .aw-cat-product-media > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .22s ease;
    }

.aw-cat-product-card:hover .aw-cat-product-media > img {
    transform: scale(1.025);
}

.aw-cat-official,
.aw-cat-moq {
    position: absolute;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.aw-cat-official {
    left: 9px;
    bottom: 9px;
    background: rgba(236, 248, 240, .95);
    color: #147049;
}

.aw-cat-moq {
    right: 9px;
    top: 9px;
    background: rgba(18, 54, 39, .9);
    color: #fff;
}

.aw-cat-product-body {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.aw-cat-brand {
    margin-bottom: 6px;
    color: #638071;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .045em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aw-cat-product-name {
    min-height: 42px;
    color: #1f3429 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aw-cat-price {
    margin-top: 9px;
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--aw-green);
}

    .aw-cat-price small {
        color: #7a8d82;
        font-size: 10px;
        font-weight: 700;
    }

    .aw-cat-price strong {
        font-size: 20px;
        line-height: 1;
    }

.aw-cat-product-meta {
    margin-top: 7px;
    color: #8a968f;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aw-cat-product-actions {
    margin-top: auto;
    padding-top: 13px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

    .aw-cat-product-actions form {
        margin: 0;
        min-width: 0;
    }

    .aw-cat-product-actions button,
    .aw-cat-contact,
    .aw-cat-view {
        width: 100%;
        min-height: 39px;
        padding: 0 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        text-decoration: none !important;
        font-size: 11px;
        font-weight: 850;
    }

    .aw-cat-product-actions button,
    .aw-cat-contact {
        border: 1px solid var(--aw-green);
        background: var(--aw-green);
        color: #fff !important;
        cursor: pointer;
    }

.aw-cat-view {
    border: 1px solid #c9dad0;
    background: #fff;
    color: var(--aw-green) !important;
}

.aw-cat-empty {
    grid-column: 1 / -1;
    min-height: 260px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #bfcdc4;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

    .aw-cat-empty strong {
        color: #264535;
        font-size: 20px;
    }

    .aw-cat-empty span {
        margin-top: 5px;
        color: #75867c;
    }

    .aw-cat-empty a {
        margin-top: 14px;
        padding: 10px 15px;
        border-radius: 10px;
        background: var(--aw-green);
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 850;
    }

.aw-cat-seo {
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1px solid var(--aw-line);
    border-radius: 16px;
    background: #fff;
    color: #5f7067;
    line-height: 1.7;
}

.aw-cat-seo--bottom {
    margin-top: 17px;
    margin-bottom: 0;
}

/* Pagination */
.aw-cat-pagination {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

    .aw-cat-pagination a,
    .aw-cat-pagination span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #dbe4de;
        border-radius: 10px;
        background: #fff;
        color: #4a6255 !important;
        text-decoration: none !important;
        font-size: 12px;
        font-weight: 800;
    }

    .aw-cat-pagination .is-current {
        border-color: var(--aw-green);
        background: var(--aw-green);
        color: #fff !important;
    }

    .aw-cat-pagination .is-disabled {
        opacity: .4;
    }

.aw-cat-waterfall,
.aw-cat-mobile-pager {
    display: none;
}

.aw-cat-filter-backdrop {
    display: none;
}

/* Desktop widths */
@media (min-width: 1280px) {
    .aw-cat-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .aw-cat-hero {
        grid-template-columns: 1fr;
    }

    .aw-cat-hero-graphic {
        display: none;
    }

    .aw-cat-layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .aw-cat-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 760px) {
    .aw-catalog-v2 {
        padding: 10px 0 calc(82px + env(safe-area-inset-bottom));
    }

    .aw-cat-container {
        width: min(100% - 22px, 1450px);
    }

    .aw-cat-hero {
        min-height: 0;
        padding: 22px 17px;
        border-radius: 18px;
    }

        .aw-cat-hero h1 {
            font-size: 32px;
        }

        .aw-cat-hero p {
            font-size: 13px;
        }

    .aw-cat-hero-search {
        grid-template-columns: auto minmax(0, 1fr);
    }

        .aw-cat-hero-search button {
            grid-column: 1 / -1;
            width: calc(100% - 10px);
            margin: 0 5px 5px;
        }

    .aw-cat-trust {
        gap: 5px 10px;
        font-size: 10px;
    }

    .aw-cat-category-section {
        margin-top: 10px;
        padding: 11px;
        border-radius: 16px;
    }

    .aw-cat-category-strip {
        grid-auto-columns: 108px;
    }

    .aw-cat-category-media {
        height: 67px;
    }

    .aw-cat-mobile-toolbar {
        margin: 10px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: #718178;
        font-size: 11px;
    }

    .aw-cat-mobile-filter {
        min-height: 40px;
        padding: 0 14px;
        border: 1px solid #d5e0d9;
        border-radius: 10px;
        background: #fff;
        color: #315240;
        font-weight: 850;
    }

    .aw-cat-layout {
        display: block;
        margin-top: 0;
    }

    .aw-cat-sidebar {
        width: min(88vw, 340px);
        height: 100dvh;
        padding: 17px;
        position: fixed;
        z-index: 1002;
        top: 0;
        left: 0;
        overflow-y: auto;
        border: 0;
        border-radius: 0 18px 18px 0;
        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 20px 0 55px rgba(0, 0, 0, .16);
    }

        .aw-cat-sidebar.is-open {
            transform: translateX(0);
        }

    .aw-cat-sidebar-close {
        display: block;
    }

    .aw-cat-filter-backdrop {
        position: fixed;
        z-index: 1001;
        inset: 0;
        background: rgba(17, 32, 24, .38);
    }

        .aw-cat-filter-backdrop.is-open {
            display: block;
        }

    body.aw-cat-filter-lock {
        overflow: hidden;
    }

    .aw-cat-results-head {
        min-height: 0;
        padding: 7px 1px 12px;
        align-items: flex-start;
        flex-direction: column;
    }

        .aw-cat-results-head h2 {
            font-size: 24px;
        }

    .aw-cat-sort-form {
        width: 100%;
        justify-content: space-between;
    }

        .aw-cat-sort-form select {
            min-width: 0;
            width: min(72%, 230px);
        }

    .aw-cat-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

        .aw-cat-product-grid.is-mobile-swipe {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
        }

            .aw-cat-product-grid.is-mobile-swipe::-webkit-scrollbar {
                display: none;
            }

            .aw-cat-product-grid.is-mobile-swipe .aw-cat-product-card {
                min-width: 78%;
                flex: 0 0 78%;
                scroll-snap-align: start;
            }

    .aw-cat-product-card {
        border-radius: 15px;
    }

    .aw-cat-product-media {
        aspect-ratio: 1 / 1.03;
    }

    .aw-cat-official {
        max-width: calc(100% - 16px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .aw-cat-moq {
        top: 7px;
        right: 7px;
    }

    .aw-cat-product-body {
        padding: 11px;
    }

    .aw-cat-product-name {
        min-height: 38px;
        font-size: 12px;
    }

    .aw-cat-price strong {
        font-size: 17px;
    }

    .aw-cat-product-actions {
        grid-template-columns: 1fr;
        gap: 6px;
    }

        .aw-cat-product-actions button,
        .aw-cat-contact,
        .aw-cat-view {
            min-height: 37px;
            font-size: 10px;
        }

    .aw-cat-pagination {
        display: none;
    }

    .aw-cat-waterfall {
        display: block;
        padding: 17px 0 6px;
        text-align: center;
    }

        .aw-cat-waterfall button {
            min-height: 44px;
            min-width: 180px;
            padding: 0 18px;
            border: 1px solid #cbd9d0;
            border-radius: 999px;
            background: #fff;
            color: #315643;
            font-weight: 850;
        }

            .aw-cat-waterfall button:disabled {
                opacity: .5;
            }

    #awCatalogLoadStatus {
        min-height: 19px;
        margin-top: 7px;
        color: #849188;
        font-size: 10px;
    }

    #awCatalogLoadSentinel {
        height: 2px;
    }

    .aw-cat-mobile-pager {
        margin-top: 18px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 8px;
    }

        .aw-cat-mobile-pager a,
        .aw-cat-mobile-pager span {
            min-height: 42px;
            padding: 0 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #d7e0da;
            border-radius: 10px;
            background: #fff;
            color: #496054 !important;
            text-decoration: none !important;
            font-size: 11px;
            font-weight: 800;
        }

        .aw-cat-mobile-pager span {
            opacity: .45;
        }
}
