
:root{
    --green:#087b45;
    --dark:#064e3b;
    --light:#edf5f0;
    --border:#dce6df;
    --text:#172b23;
}

*{box-sizing:border-box}

body{
    margin:0;
    font-family:system-ui,-apple-system,sans-serif;
    background:#f6f8f6;
    color:var(--text);
}

button,input,select{font:inherit}

button{cursor:pointer}

button:disabled{
    opacity:.5;
    cursor:not-allowed;
}

.preview{
    background:#fff3d6;
    color:#854d0e;
    text-align:center;
    padding:8px;
    font-size:12px;
    font-weight:700;
}

header{
    background:var(--dark);
    color:white;
}

.header-inner,.nav-inner{
    max-width:1400px;
    margin:auto;
    padding:20px 28px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    color:white;
    text-decoration:none;
}

.logo{
    display:grid;
    place-items:center;
    width:50px;
    height:50px;
    border-radius:12px;
    background:white;
    color:var(--dark);
    font-size:24px;
    font-weight:900;
}

.brand small{
    display:block;
    color:#b8ddc8;
    margin-top:4px;
}

.header-actions{
    display:flex;
    gap:10px;
}

.header-actions button{
    background:#ffffff12;
    color:white;
    border:1px solid #ffffff44;
    padding:10px 14px;
    border-radius:9px;
}

#cartCount{
    background:#e7f8e9;
    color:var(--dark);
    padding:3px 7px;
    border-radius:20px;
    font-weight:800;
}

nav{
    background:white;
    border-bottom:1px solid var(--border);
}

.nav-inner{
    justify-content:flex-start;
    overflow:auto;
    padding-top:12px;
    padding-bottom:12px;
}

nav button{
    border:0;
    background:transparent;
    color:var(--dark);
    font-weight:650;
    white-space:nowrap;
    padding:8px 12px;
}

main{
    max-width:1400px;
    margin:auto;
    padding:26px;
}

.hero{
    min-height:330px;
    background:linear-gradient(120deg,#064e3b,#16834c);
    border-radius:24px;
    color:white;
    padding:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.hero h1{
    font-size:clamp(30px,4vw,54px);
    line-height:1.15;
    margin:15px 0;
}

.hero p{
    max-width:550px;
    line-height:1.7;
    color:#d5f0de;
}

.hero small{
    letter-spacing:2px;
    font-weight:700;
    color:#c8f4d6;
}

.hero-symbol{
    font-size:clamp(80px,15vw,200px);
}

.primary{
    background:var(--green);
    color:white;
    border:0;
    border-radius:10px;
    padding:13px 20px;
    font-weight:750;
}

.hero .primary{
    background:white;
    color:var(--dark);
    margin-top:12px;
}

.secondary{
    background:white;
    color:var(--dark);
    border:1px solid var(--border);
    padding:12px 18px;
    border-radius:9px;
    font-weight:650;
}

.benefits{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin:22px 0 40px;
}

.benefits div{
    background:white;
    border:1px solid var(--border);
    border-radius:12px;
    padding:18px;
    text-align:center;
}

.benefits small{
    display:block;
    color:#718078;
    margin-top:6px;
}

.section-heading{
    margin:30px 0 16px;
}

.section-heading small{
    color:var(--green);
    font-weight:700;
    letter-spacing:1px;
}

.section-heading h2{
    margin:8px 0;
    font-size:24px;
}

.categories{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(115px,1fr));
    gap:12px;
}

.category{
    background:white;
    border:1px solid var(--border);
    color:var(--dark);
    border-radius:13px;
    padding:20px 10px;
    font-weight:650;
}

.category span{
    display:block;
    font-size:30px;
    margin-bottom:10px;
}

.category.active{
    border:2px solid var(--green);
    background:var(--light);
}

.filters{
    display:flex;
    gap:12px;
}

input,select{
    min-width:0;
    padding:13px;
    border:1px solid var(--border);
    border-radius:9px;
    background:white;
}

#search{flex:1}

.muted{
    color:#718078;
    font-size:13px;
}

.products{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
    gap:16px;
}

.product{
    display:flex;
    flex-direction:column;
    background:white;
    border:1px solid var(--border);
    border-radius:15px;
    overflow:hidden;
}

.product-visual{
    height:145px;
    background:#edf5f0;
    display:grid;
    place-items:center;
    font-size:64px;
}

.product-info{
    padding:16px;
    flex:1;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.product-info h3{
    margin:0;
    font-size:16px;
}

.price{
    color:var(--green);
    font-size:21px;
    font-weight:850;
}

.product-actions{
    display:flex;
    gap:7px;
    margin-top:auto;
}

.product-actions button{
    flex:1;
    padding:10px;
}

.member-banner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    background:#e4f3e8;
    border-radius:18px;
    padding:30px;
    margin-top:40px;
}

footer{
    text-align:center;
    padding:40px 20px;
    background:var(--dark);
    color:white;
}

footer p,footer small{
    color:#b8ddc8;
}

dialog{
    width:min(580px,94vw);
    max-height:90vh;
    overflow:auto;
    border:1px solid var(--border);
    border-radius:18px;
    padding:25px;
}

dialog::backdrop{background:#0008}

.dialog-actions{
    display:flex;
    gap:10px;
    margin-top:20px;
}

.dialog-actions button{flex:1}

.cart-line{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-bottom:1px solid var(--border);
    padding:15px 0;
}

.qty{
    display:flex;
    align-items:center;
    gap:8px;
}

.qty button{
    background:var(--light);
    border:1px solid var(--border);
    border-radius:7px;
    padding:7px 12px;
}

.total{
    background:var(--light);
    border-radius:10px;
    padding:16px;
    margin-top:18px;
    font-weight:800;
    font-size:22px;
    color:var(--green);
}

.notice{
    background:#fff7e5;
    color:#854d0e;
    border-radius:10px;
    padding:14px;
    line-height:1.6;
    margin:12px 0;
}

dialog label{
    display:block;
    margin:14px 0;
    font-weight:650;
}

dialog select{width:100%;margin-top:8px}

@media(max-width:700px){

    main{padding:14px}

    .header-inner{
        padding:14px;
        flex-wrap:wrap;
    }

    .hero{
        padding:26px;
        min-height:260px;
    }

    .hero-symbol{display:none}

    .benefits{
        grid-template-columns:repeat(2,1fr);
    }

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

    .product-visual{
        height:110px;
        font-size:48px;
    }

    .product-info{padding:12px}

    .price{font-size:17px}

    .product-actions{flex-direction:column}

    .member-banner{
        flex-direction:column;
        align-items:flex-start;
    }

    .filters{flex-direction:column}
}
