:root{--green:#0c7b32;--green2:#169447;--dark:#103b20;--orange:#ff7a00;--muted:#6d7772;--bg:#f7faf6;--line:#e2e8e2;--shadow:0 12px 35px rgba(15,65,30,.08);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;color:#17221a;background:#fff}a{text-decoration:none;color:inherit}button,input,textarea,select{font:inherit}.container{width:min(1180px,calc(100% - 32px));margin:auto}.site-header{position:sticky;top:0;z-index:20;background:#fff;box-shadow:0 4px 20px rgba(0,0,0,.05)}.header-inner{height:88px;display:flex;align-items:center;gap:22px}.brand{display:flex;align-items:center;gap:10px;min-width:270px;color:var(--green)}.brand-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#eff8ef;font-size:29px}.brand b{font-size:25px;letter-spacing:-1px}.brand b span{color:var(--orange)}.brand small{display:block;color:#24733a;font-size:12px;font-weight:700;margin-top:1px}.search{display:flex;flex:1;max-width:620px;background:#f4f7f3;border:1px solid #e7ece6;border-radius:15px;overflow:hidden}.search input{border:0;outline:0;background:transparent;padding:13px 16px;flex:1}.search button{border:0;background:transparent;font-size:27px;padding:0 15px;color:var(--green)}.cart-top{position:relative;font-size:28px;padding:10px}.cart-count{position:absolute;right:0;top:1px;background:#ef3e2f;color:white;font-size:11px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center}.main-nav{border-top:1px solid #f0f2ef}.main-nav .container{display:flex;gap:30px;height:44px;align-items:center;font-size:14px;font-weight:700;color:#425147}.main-nav a:hover{color:var(--green)}.mobile-menu{display:none}.flash{position:fixed;top:105px;right:20px;z-index:50;padding:13px 18px;border-radius:12px;box-shadow:var(--shadow);font-weight:700}.flash.success{background:#eaf8ee;color:#11652e}.flash.error{background:#fff0ef;color:#a72c24}.flash.hide{opacity:0;transform:translateY(-8px);transition:.3s}.hero{background:linear-gradient(110deg,#07150d,#101b13);color:#fff;overflow:hidden}.hero-grid{min-height:440px;position:relative;display:grid;grid-template-columns:45% 55%;align-items:center}.hero-copy{position:relative;z-index:2;padding:45px 0}.eyebrow{font-size:12px;font-weight:900;letter-spacing:2px;color:var(--green2)}.hero .eyebrow{color:#9bdb62}.hero h1{font-size:clamp(42px,5vw,67px);line-height:.98;margin:13px 0 20px;letter-spacing:-2px}.hero h1 em{font-style:normal;color:#d8f18a}.hero p{font-size:17px;line-height:1.6;max-width:490px;color:#e4eae5}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:13px;padding:13px 20px;font-weight:900;cursor:pointer}.btn-orange{background:var(--orange);color:#fff}.btn-green{background:var(--green);color:#fff}.btn-light{background:#eef5ee;color:var(--green)}.hero-art{align-self:stretch;display:flex;align-items:center;justify-content:center}.hero-art img{width:100%;max-width:650px;filter:drop-shadow(0 25px 35px rgba(0,0,0,.28))}.hero-badge{position:absolute;right:3%;top:58px;background:#8acb35;color:#fff;padding:18px 24px;border-radius:14px 30px 14px 30px;transform:rotate(-3deg);font-size:16px;line-height:1.25;text-align:center}.dots{display:flex;gap:12px;justify-content:center;padding:16px}.dots i{width:12px;height:12px;background:#d7dcda;border-radius:50%}.dots i.active{background:var(--green)}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.category-card{border-radius:20px;overflow:hidden;background:#eff7ee;box-shadow:0 4px 18px rgba(0,0,0,.04)}.cat-image{height:170px;display:grid;place-items:center}.cat-image img{width:100%;height:100%;object-fit:cover}.cat-label{height:54px;padding:0 15px;display:flex;align-items:center;gap:9px;color:#fff;font-weight:900}.cat-label b{margin-left:auto;font-size:22px}.cat-buah .cat-label{background:#15933f}.cat-sayur .cat-label{background:#168c39}.cat-frozen-food .cat-label{background:#1e91ce}.cat-lain-lain .cat-label{background:#7940cf}.benefits{margin-top:28px;background:#eff8ed;border-radius:22px;display:grid;grid-template-columns:repeat(4,1fr);padding:20px}.benefits>div{display:grid;place-items:center;align-content:center;border-right:1px solid #a8c8a8;padding:8px}.benefits>div:last-child{border:0}.benefits span{font-size:34px}.benefits b{font-size:16px;margin-top:4px}.benefits small{color:#516056}.products-section{padding:42px 0}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px}.section-head h2{font-size:34px;color:#0e4b24;margin:0}.section-head a{font-weight:800;color:var(--green)}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.product-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;transition:.2s;box-shadow:0 4px 15px rgba(0,0,0,.025)}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.product-image{height:215px;display:block;background:#fafcf9}
.product-image img{width:100%;height:100%;object-fit:contain}
.product-info{padding:12px}.product-name{display:block;font-weight:800;font-size:16px;line-height:1.2}
.product-info small{display:block;color:#707a73;margin-top:4px}
.product-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:12px}
.product-bottom strong{font-size:18px;color:var(--green)}
.add-btn{width:38px;height:38px;border:0;border-radius:50%;background:var(--green);color:#fff;cursor:pointer}.promo-strip{margin:10px auto 45px;background:#0e4d25;color:#fff;border-radius:24px;padding:28px 34px;display:flex;justify-content:space-between;align-items:center}.promo-strip h2{margin:6px 0}.promo-strip p{margin:0;color:#cfe4d3}.page-hero{background:#f0f7ee;padding:55px 0;margin-bottom:30px}.page-hero h1{font-size:42px;color:#0e4b24;margin:8px 0}.page-hero p{color:var(--muted);margin:0}.products-page{padding-bottom:50px}.category-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.category-tabs a{border:1px solid var(--line);padding:9px 15px;border-radius:999px;font-weight:700;color:#536057}.category-tabs a.active{background:var(--green);color:#fff;border-color:var(--green)}.result-note{color:var(--muted)}.pager{display:flex;justify-content:center;margin-top:30px}.pager a,.pager strong{padding:9px 13px;border:1px solid var(--line);margin:2px;border-radius:8px}.pager strong{background:var(--green);color:#fff}.detail{display:grid;grid-template-columns:1fr 1fr;gap:55px;padding:55px 0}.detail-image{height:500px;background:#f8fbf7;border-radius:25px;display:grid;place-items:center}.detail-image img{width:90%;height:90%;object-fit:contain}.detail-copy{padding-top:30px}.detail-copy h1{font-size:48px;line-height:1.05;color:#104b24;margin:10px 0}.price-big{font-size:31px;font-weight:900;color:var(--green);margin:15px 0}.detail-copy p{color:#626e65;line-height:1.7}.stock b{color:var(--green)}.buy-form{display:flex;align-items:end;gap:12px;margin-top:25px}.buy-form label{font-weight:700}.buy-form input{display:block;width:90px;margin-top:6px;padding:12px;border:1px solid var(--line);border-radius:10px}.related{padding-top:0}.cart-page{display:grid;grid-template-columns:1fr 330px;gap:24px;padding-bottom:60px}.cart-list{border:1px solid var(--line);border-radius:18px;overflow:hidden;margin-bottom:14px}.cart-row{display:grid;grid-template-columns:80px 1fr 130px 80px 140px 30px;align-items:center;gap:12px;padding:13px;border-bottom:1px solid var(--line)}.cart-row:last-child{border:0}.cart-row img{width:75px;height:75px;object-fit:contain;background:#fafcf9;border-radius:10px}.cart-name b,.cart-name small{display:block}.cart-name small{color:var(--muted);margin-top:3px}.cart-price,.cart-sub{font-weight:700}.qty{width:65px;padding:8px;border:1px solid var(--line);border-radius:8px}.remove{font-size:25px;color:#a33}.cart-summary,.checkout-summary{border:1px solid var(--line);border-radius:18px;padding:22px;height:max-content;box-shadow:var(--shadow)}.cart-summary h3,.checkout-summary h3{margin-top:0}.cart-summary>div{display:flex;justify-content:space-between;margin:12px 0}.grand{font-size:20px}.full{width:100%;margin-top:14px}.empty{text-align:center;padding:70px 20px;grid-column:1/-1}.empty>div{font-size:65px}.empty h2{color:var(--green)}.checkout{display:grid;grid-template-columns:1fr 360px;gap:25px;padding-bottom:60px}.checkout-form{border:1px solid var(--line);border-radius:18px;padding:25px}.checkout-form h2{margin-top:0;color:#0e4b24}.checkout-form label{display:block;font-weight:800;margin:16px 0}.checkout-form input,.checkout-form textarea,.checkout-form select{display:block;width:100%;margin-top:7px;border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff;outline:none}.mini-item{display:flex;gap:12px;margin:13px 0}.mini-item img{width:58px;height:58px;object-fit:contain;background:#f7faf6;border-radius:10px}.mini-item b,.mini-item small{display:block}.mini-item small{color:var(--muted);margin-top:4px}.success-page{text-align:center;padding:80px 0}.success-icon{width:80px;height:80px;background:#e8f8ed;color:var(--green);border-radius:50%;display:grid;place-items:center;font-size:45px;font-weight:900;margin:0 auto 20px}.success-page h1{color:#0e4b24;font-size:42px}.success-page>p{color:var(--muted)}.success-box{width:min(620px,100%);margin:25px auto;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:16px;padding:20px}.success-box div{display:grid;gap:6px;border-right:1px solid var(--line)}.success-box div:last-child{border:0}.success-box span{color:var(--muted)}.footer{background:#0a2514;color:#dbe7de;padding:45px 0 15px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}.footer h4{margin-top:0;color:#fff}.footer-grid a{display:block;margin:10px 0;color:#c4d1c7}.footer-brand{min-width:0}.copyright{border-top:1px solid #28412f;margin-top:35px;padding-top:15px;text-align:center;color:#91a297;font-size:13px}
@media(max-width:850px){.container{width:min(100% - 22px,680px)}
.header-inner{height:72px;gap:8px}
.mobile-menu{display:flex;width:40px;height:40px;border:0;background:transparent;flex-direction:column;justify-content:center;gap:4px}
.mobile-menu span{width:24px;height:3px;background:var(--green);border-radius:3px}.brand{min-width:0;flex:1}
.brand-mark{width:38px;height:38px;font-size:22px}
.brand b{font-size:20px}.brand small{display:none}.search{order:5;position:absolute;top:77px;left:11px;right:11px;max-width:none;display:none}
.menu-open .search{display:flex}
.main-nav{display:none}.hero-grid{grid-template-columns:1fr;min-height:600px}.hero-copy{padding:55px 0 0}.hero-art{position:absolute;inset:250px 0 0}.hero-art img{opacity:.78}.hero-badge{right:10px;top:35px}.category-grid{grid-template-columns:repeat(2,1fr)}.cat-image{height:140px}.benefits{grid-template-columns:repeat(2,1fr);gap:0}.benefits>div:nth-child(2){border-right:0}.benefits>div{border-bottom:1px solid #a8c8a8}.product-grid{grid-template-columns:repeat(2,1fr)}.product-image{height:170px}.promo-strip{flex-direction:column;align-items:flex-start;gap:18px}.detail{grid-template-columns:1fr;gap:20px;padding:25px 0}.detail-image{height:360px}.detail-copy{padding:0}.detail-copy h1{font-size:38px}.cart-page,.checkout{grid-template-columns:1fr}.cart-row{grid-template-columns:62px 1fr 30px;gap:8px}.cart-row img{width:58px;height:58px}.cart-price,.cart-sub{font-size:13px;grid-column:2}.qty{grid-column:2;width:70px}.remove{grid-column:3;grid-row:1}.success-box{grid-template-columns:1fr;gap:15px}.success-box div{border:0;border-bottom:1px solid var(--line);padding-bottom:10px}.success-box div:last-child{border:0}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child{grid-column:1/-1}}
@media(max-width:480px){

    .hero h1{
        font-size:42px
    }

    .category-grid{
        gap:10px
    }

    .cat-image{
        height:110px
    }

    .product-grid{
        grid-template-columns:repeat(3,1fr);
        gap:7px;
    }

    .product-image{
        height:115px;
    }

    .product-info{
        padding:7px;
    }

    .product-name{
        font-size:12px;
        line-height:1.25;
    }

    .product-info small{
        font-size:10px;
    }

    .product-bottom{
        margin-top:8px;
        gap:3px;
    }

    .product-bottom strong{
        font-size:11px;
    }

    .add-btn{
        width:28px;
        height:28px;
        font-size:11px;
    }

    .section-head h2{
        font-size:28px
    }

    .benefits{
        padding:10px
    }

    .benefits span{
        font-size:27px
    }

    .page-hero h1{
        font-size:34px
    }

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

    .footer-grid>div:first-child{
        grid-column:auto
    }
}
/* ===============================
   CUSTOMER LOGIN HEADER
   =============================== */

.header-link {
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #198754;
}

.header-link:hover {
    color: #157347;
}

.login-link {
    padding: 8px 14px;
    border: 1px solid #198754;
    border-radius: 8px;
}

.login-link:hover {
    background: #198754;
    color: #fff;
}

.customer-link {
    font-weight: 700;
}

.logout-link {
    color: #dc3545;
}

.logout-link:hover {
    color: #b02a37;
}
/* =========================================
   FORCE 3 GRID - MOBILE
========================================= */

@media screen and (max-width: 850px) {

    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

}

@media screen and (max-width: 480px) {

    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .product-card {
        min-width: 0 !important;
    }

    .product-image {
        height: 115px !important;
    }

    .product-info {
        padding: 7px !important;
    }

    .product-name {
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    .product-info small {
        font-size: 10px !important;
    }

    .product-bottom strong {
        font-size: 11px !important;
    }

    .add-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

}
/* ===== MOBILE GRID OVERRIDE (kategori 4 kolom, produk 3 kolom) ===== */
@media screen and (max-width: 600px) {
    .category-grid{grid-template-columns:repeat(4,1fr) !important;gap:8px !important}
    .category-card{border-radius:12px !important}
    .cat-image{height:64px !important}
    .cat-label{height:auto !important;min-height:30px;padding:5px 4px !important;justify-content:center;gap:3px !important;font-size:9.5px !important;line-height:1.1;text-align:center}
    .cat-label b{display:none !important}
    .cat-label span{display:none}

    .product-grid{grid-template-columns:repeat(3,1fr) !important;gap:8px !important}
    .product-card{border-radius:10px !important}
    .product-image{height:95px !important}
    .product-info{padding:7px !important}
    .product-name{font-size:12px !important;line-height:1.2 !important;display:-webkit-box !important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .product-info small{font-size:10px !important;margin-top:2px !important}
    .product-bottom{margin-top:6px !important;gap:4px}
    .product-bottom strong{font-size:11.5px !important}
    .add-btn{width:26px !important;height:26px !important;font-size:12px !important;padding:0 !important;flex-shrink:0}
}
