
/* ========================================
   1. ROOT VARIABLES & GLOBAL STYLES
======================================== */

:root {
    --green: #007a4c;
    --deep: #053b59;
    --muted: #7890a5;
    --line: #e4edf0;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Inter", Arial, sans-serif;
    color: var(--deep);
    background: #f7fafb;
    margin: 0;
    padding-bottom: 94px;
}

button,
input {
    min-width: 0;
}

.container-app {
    width: 100%;
    max-width: 1150px;
    margin: auto;
    padding: 0 16px;
}

/* ========================================
   2. HEADER
======================================== */

.top-area {
    background: linear-gradient(
        125deg,
        #d5efff,
        #e8faf1 80%,
        #fff
    );
    padding: 15px 0 12px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    font-size: clamp(27px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -2px;
    color: #004c75;
    line-height: 1;
}

.brand .sun {
    color: #f3b600;
}

.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 1.1px;
    font-weight: 700;
    color: #167448;
    margin-top: 6px;
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 27px;
    position: relative;
}

.dot {
    position: absolute;
    right: 2px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: #ed404c;
    border-radius: 50%;
}

.location {
    border: 1px solid #9bd1bc;
    background: #ffffff99;
    border-radius: 30px;
    padding: 10px 15px;
    color: #006b40;
    font-weight: 700;
    white-space: nowrap;
}

.avatar {
    background: linear-gradient(135deg, #008b56, #005735);
    border-radius: 50%;
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 25px;
}

/* ========================================
   3. SEARCH BAR
======================================== */

.search-box {
    background: #fff;
    border: 1px solid #d9e3ea;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    margin-top: 15px;
    box-shadow: 0 2px 4px #0a344b09;
}

.search-box i {
    font-size: 24px;
    color: #66839a;
}

.search-box input {
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 16px;
    color: #183e55;
}

.search-box input::placeholder {
    color: #8b9db1;
}

/* ========================================
   4. HERO BANNER
======================================== */

.hero {
    margin-top: 15px;
    min-height: 220px;

    background:
        linear-gradient(
            90deg,
            #cceeff 0%,
            #d9f4ffb0 52%,
            #ffffff12 100%
        ),
        url("https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&w=1600&q=85")
        center 58% / cover;

    border-radius: 13px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 26px;
}

.hero h1 {
    font-size: clamp(27px, 3.8vw, 42px);
    font-weight: 800;
    line-height: 1.09;
    letter-spacing: -1.5px;
    margin: 0 0 12px;
}

.hero p {
    font-size: 14px;
    font-weight: 600;
    color: #08654d;
    margin-bottom: 18px;
}

.green-btn {
    background: linear-gradient(135deg, #098a5a, #006d45);
    border: 0;
    border-radius: 15px;
    color: #fff;
    font-weight: 700;
    padding: 11px 22px;
    box-shadow: inset 0 -2px 0 #004c3d24;
}

/* ========================================
   5. BENEFITS
======================================== */

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 0 12px;
    border-right: 1px solid #bfd0d2;
}

.benefit:last-child {
    border: 0;
}

.benefit i {
    font-size: 29px;
    color: #078953;
}

.benefit strong {
    display: block;
    font-size: 13px;
}

.benefit small {
    display: block;
    color: #70899c;
    font-size: 11px;
    margin-top: 4px;
}

/* ========================================
   6. SECTION TITLES & CATEGORIES
======================================== */

.section-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.view-all {
    font-size: 14px;
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
}

.categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.category {
    border: 1px solid #e7edf0;
    background: #fff;
    border-radius: 14px;
    min-height: 135px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;

    box-shadow: 0 2px 10px #173e5808;
    cursor: pointer;
}

.category.active {
    border-color: #2da574;
}

.category .bubble {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #e0f5e9;
    display: grid;
    place-items: center;
    color: #007d4d;
    font-size: 38px;
}

.category strong {
    font-size: 14px;
    text-align: center;
}

/* ========================================
   7. FILTERS & CHIPS
======================================== */

.filter-bar {
    margin: 15px 0 10px;
    border: 1px solid #e5ebee;
    border-radius: 15px;
    background: #fff;
    padding: 10px 12px;

    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-button {
    background: #fff;
    border: 1px solid #18a06d;
    border-radius: 15px;
    padding: 10px 16px;
    font-weight: 700;
    color: #16475b;
}

.filter-button i {
    color: #008958;
}

.badge-count {
    background: #009961;
    color: #fff;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 11px;
}

.chip {
    background: #eef3f7;
    border-radius: 25px;
    padding: 9px 13px;
    font-size: 12px;
    color: #31556a;
    white-space: nowrap;
}

.chip button {
    background: transparent;
    border: 0;
    color: #496c7e;
}

.clear {
    background: transparent;
    border: 0;
    color: #008651;
    font-size: 12px;
    margin-left: auto;
}

.results {
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0;
}

/* ========================================
   8. PRODUCT GRID & PRODUCT CARDS
======================================== */

.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.product-card {
    background: #fff;
    border: 1px solid #e1eaed;
    border-radius: 13px;
    padding: 13px;
    box-shadow: 0 2px 9px #1d52620b;
    min-width: 0;
}

.product-main {
    display: flex;
    gap: 13px;
}

.product-image {
    width: 30%;
    height: 130px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f9fbfc;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-info h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 6px;
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    background: #dff8e9;
    color: #15965a;
    font-weight: 800;
    font-size: 12px;
    margin-right: 5px;
}

.tag.yellow {
    background: #fff5cb;
    color: #e7a400;
}

.tag.blue {
    background: #e2efff;
    color: #2284d4;
}

.price {
    font-size: 17px;
    font-weight: 800;
    color: #0b9d60;
    margin: 7px 0;
}

.price small {
    font-size: 11px;
    font-weight: 500;
    color: #7c93aa;
}

.specs {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    color: #42647c;
    font-size: 10px;
}

.specs span {
    display: flex;
    gap: 5px;
    align-items: flex-start;
}

.specs i {
    color: #335a74;
    font-size: 14px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 10px;
    margin-top: 9px;
}

.stock small {
    color: #809bb2;
    font-size: 11px;
}

.stock small i {
    color: #00a05c;
}

.stock strong {
    display: block;
    color: #06995c;
    font-size: 15px;
    margin-top: 4px;
}

.quote-btn {
    background: linear-gradient(110deg, #007c4d, #008b62);
    border: 0;
    color: #fff;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 14px;
    white-space: nowrap;
}

.quote-btn i {
    font-size: 16px;
    margin-right: 5px;
}

/* ========================================
   9. BOTTOM NAVIGATION
======================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    background: #fff;
    border-top: 1px solid #e2ebef;

    display: flex;
    justify-content: space-around;

    z-index: 100;
    box-shadow: 0 -2px 12px #102e4010;
}

.nav-item-app {
    border: 0;
    background: transparent;
    color: #58718a;
    text-align: center;
    padding: 10px 14px 8px;
    min-width: 90px;
    font-size: 13px;
}

.nav-item-app i {
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-item-app.active {
    color: #007c4a;
    border-bottom: 3px solid #008954;
}

.nav-item-app .nav-count {
    background: #ed3846;
    color: #fff;
    border-radius: 100px;
    font-size: 10px;
    padding: 2px 5px;
    vertical-align: top;
}

.offcanvas {
    color: var(--deep);
}

/* ========================================
   10. RESPONSIVE: TABLET & MOBILE
======================================== */

@media (max-width: 700px) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .top-area {
        padding: 12px 0 10px;
    }

    .container-app {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header {
        gap: 7px;
        flex-wrap: nowrap;
    }

    .brand {
        flex: 1;
        min-width: 0;
        font-size: clamp(20px, 5.5vw, 30px);
        letter-spacing: -1.4px;
        white-space: nowrap;
    }

    .brand small {
        font-size: clamp(4px, 1.15vw, 6px);
        letter-spacing: 0;
    }

    .head-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .icon-btn {
        font-size: 19px;
        padding: 2px;
    }

    .dot {
        width: 7px;
        height: 7px;
        right: 0;
    }

    .location {
        font-size: 10px;
        padding: 7px 8px;
        max-width: 110px;
    }

    .avatar {
        width: 31px;
        height: 31px;
        font-size: 18px;
    }

    .search-box {
        margin-top: 13px;
        padding: 10px 13px;
        gap: 9px;
    }

    .search-box i {
        font-size: 19px;
    }

    .search-box input {
        font-size: 12px;
    }

    .hero {
        margin-top: 12px;
        min-height: 165px;
        padding: 16px;
        background-position: 60% center;
    }

    .hero h1 {
        font-size: clamp(19px, 5vw, 26px);
        letter-spacing: -0.7px;
    }

    .hero p {
        font-size: 10px;
        max-width: 230px;
        margin-bottom: 11px;
    }

    .green-btn {
        padding: 9px 14px;
        font-size: 12px;
        border-radius: 11px;
    }

    .benefits {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 13px 0;
    }

    .benefit {
        flex-direction: column;
        gap: 3px;
        text-align: center;
        padding: 0 3px;
    }

    .benefit i {
        font-size: 19px;
    }

    .benefit strong {
        font-size: clamp(8px, 2vw, 10px);
        line-height: 1.2;
    }

    .benefit small {
        font-size: 7px;
        line-height: 1.2;
    }

    .section-title {
        font-size: 18px;
    }

    .view-all {
        font-size: 12px;
    }

    .categories {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
    }

    .category {
        min-width: 0;
        min-height: 94px;
        padding: 7px 2px;
        gap: 6px;
        border-radius: 10px;
    }

    .category .bubble {
        width: clamp(37px, 10vw, 52px);
        height: clamp(37px, 10vw, 52px);
        font-size: clamp(19px, 5.5vw, 27px);
    }

    .category strong {
        font-size: clamp(8px, 2.2vw, 10px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .filter-bar {
        padding: 9px;
        gap: 7px;
        overflow: hidden;
    }

    .filter-button {
        font-size: 11px;
        padding: 8px 10px;
        border-radius: 11px;
    }

    .chip {
        font-size: 10px;
        padding: 6px 8px;
    }

    .clear {
        margin-left: 0;
    }

    .results {
        font-size: 12px;
    }

    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-card {
        padding: 8px;
        border-radius: 11px;
    }

    .product-main {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .product-image {
        width: 100%;
        height: 95px;
        object-fit: contain;
    }

    .product-info h3 {
        font-size: 12px;
        line-height: 1.25;
        margin-bottom: 4px;
    }

    .tag {
        font-size: 9px;
        padding: 2px 5px;
    }

    .price {
        font-size: clamp(11px, 2.9vw, 14px);
        line-height: 1.25;
        white-space: normal;
    }

    .price small {
        font-size: 9px;
    }

    .specs {
        font-size: 9px;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .specs span {
        width: calc(50% - 3px);
        line-height: 1.25;
    }

    .specs i {
        font-size: 10px;
    }

    .product-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        margin-top: 9px;
    }

    .stock {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 3px;
    }

    .stock small {
        font-size: 8px;
    }

    .stock strong {
        font-size: 11px;
        margin: 0;
        white-space: nowrap;
    }

    .quote-btn {
        width: 100%;
        font-size: 11px;
        padding: 9px 5px;
    }

    .quote-btn i {
        font-size: 12px;
    }

    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .nav-item-app {
        flex: 1;
        min-width: 0;
        padding: 9px 2px 7px;
        font-size: 10px;
        white-space: nowrap;
    }

    .nav-item-app i {
        font-size: 21px;
    }
}

/* ========================================
   11. RESPONSIVE: SMALL TABLETS
======================================== */

@media (min-width: 480px) and (max-width: 700px) {
    .product-main {
        flex-direction: row;
    }

    .product-image {
        width: 35%;
        height: 125px;
    }

    .product-info {
        flex: 1;
    }

    .product-bottom {
        flex-direction: row;
        align-items: end;
    }

    .quote-btn {
        width: auto;
    }

    .stock {
        display: block;
    }
}

/* ========================================
   12. RESPONSIVE: SMALL MOBILE
======================================== */

@media (max-width: 360px) {
    .brand {
        font-size: 19px;
    }

    .location {
        max-width: 85px;
        padding: 6px;
    }

    .head-actions {
        gap: 4px;
    }

    .hero {
        background-position: 66% center;
    }

    .hero p {
        max-width: 170px;
    }

    .benefit small {
        display: none;
    }

    .product-image {
        height: 78px;
    }

    .specs span {
        width: 100%;
    }

    .chip {
        font-size: 9px;
    }
}
