* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: Inter, Arial, sans-serif;
    background: #f3f7f2;
    color: #14251c
}

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

button {
    border: 0;
    cursor: pointer;
    font-family: inherit
}

.container {
    width: min(1980px, 98%);
    margin: auto
}

.topbar {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06)
}

.nav {
    height: 62px;
    display: flex;
    align-items: center;
    gap: 16px
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: #0a8b52
}

.logo span {
    color: #f05a24
}

.menu {
    display: flex;
    gap: 16px;
    margin-left: auto
}

.menu a {
    font-weight: 700;
    color: #315143
}

.menu a.active,
.menu a:hover {
    color: #f05a24
}

.cart {
    background: #0a8b52;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px
}

.search {
    display: flex;
    flex: 1;
    max-width: 420px;
    height: 42px;
    background: #f7f7f7;
    border: 1px solid #e6e6e6
}

.search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0 14px;
    outline: 0
}

.search button {
    width: 48px;
    background: #f05a24;
    color: #fff
}

.grid {
    display: grid;
    gap: 18px
}

.main {
    padding: 24px 0 90px
}

.breadcrumb {
    font-size: 14px;
    color: #6a7c72;
    margin-bottom: 16px
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    padding: 18px
}

.btn {
    background: #0a8b52;
    color: #fff;
    border-radius: 6px;
    padding: 12px 18px;
    font-weight: 800
}

.btn.orange {
    background: #f05a24
}

.btn.light {
    background: #e9fff2;
    color: #0a8b52
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 14px
}

.section-title h2 {
    font-size: 26px
}

.products {
    grid-template-columns: repeat(4, 1fr)
}

.product {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
    transition: .25s
}

.product:hover {
    transform: translateY(-4px)
}

.product img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee
}

.product h3 {
    font-size: 15px;
    margin: 10px 0 6px
}

.price {
    font-weight: 900;
    color: #111
}

.old {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-left: 6px
}

.filters {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px
}

.filter li {
    list-style: none;
    padding: 11px;
    border-bottom: 1px solid #edf1ee;
    color: #456153
}

.category-grid {
    grid-template-columns: repeat(4, 1fr)
}

.cat {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800
}

.cat span {
    font-size: 42px
}

.detail {
    grid-template-columns: 1fr 1fr
}

.gallery img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px
}

.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px
}

.thumbs img {
    width: 80px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px
}

.qty {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 18px 0
}

.qty button {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #e9fff2;
    color: #0a8b52;
    font-size: 20px
}

.qty span {
    font-weight: 900
}

.tabs {
    margin-top: 24px
}

.tabs button {
    padding: 12px 18px;
    border-radius: 8px 8px 0 0;
    background: #eef5f1;
    font-weight: 800
}

.tabs button.active {
    background: #0a8b52;
    color: #fff
}

.tabbody {
    background: #fff;
    padding: 20px;
    border-radius: 0 10px 10px 10px
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden
}

.cart-table th,
.cart-table td {
    padding: 16px;
    border-bottom: 1px solid #edf1ee;
    text-align: left
}

.cart-table img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px
}

.cart-layout {
    grid-template-columns: 1.6fr .7fr
}

.summary p {
    display: flex;
    justify-content: space-between;
    margin: 12px 0
}

.summary h3 {
    margin-bottom: 14px
}

.form-grid {
    grid-template-columns: 1fr 1fr
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px
}

.field input,
.field select,
.field textarea {
    height: 44px;
    border: 1px solid #dfe8e3;
    border-radius: 6px;
    padding: 0 12px;
    outline: 0
}

.field textarea {
    height: 100px;
    padding: 12px
}

.auth {
    max-width: 520px;
    margin: 30px auto
}

.auth .switch {
    display: flex;
    background: #eaf4ef;
    border-radius: 8px;
    margin-bottom: 18px
}

.auth .switch a {
    flex: 1;
    text-align: center;
    padding: 13px;
    font-weight: 900
}

.auth .switch .active {
    background: #0a8b52;
    color: #fff;
    border-radius: 8px
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #087448;
    color: #fff;
    z-index: 40
}

.footer {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    font-weight: 700
}

@media(max-width:900px) {
    .nav {
        height: auto;
        padding: 12px 0;
        flex-wrap: wrap
    }

    .search {
        order: 3;
        max-width: none;
        flex-basis: 100%
    }

    .menu {
        order: 2
    }

    .filters,
    .detail,
    .cart-layout,
    .form-grid {
        grid-template-columns: 1fr
    }

    .products,
    .category-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:560px) {
    .menu {
        width: 100%;
        overflow: auto
    }

    .products,
    .category-grid {
        grid-template-columns: 1fr 1fr
    }

    .gallery img {
        height: 280px
    }

    .cart-table {
        font-size: 13px
    }

    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) {
        display: none
    }
}