
:root {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1f2937;
    background: #f5f7f5;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.site-header {
    background: #14532d;
    color: white;
    padding: 20px 5%;
}

.header-inner,
.brand,
.catalog-heading,
.stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    justify-content: flex-start;
}

.brand-icon {
    font-size: 34px;
}

.brand h1 {
    font-size: 20px;
    margin: 0 0 5px;
}

.brand p {
    margin: 0;
    color: #dcfce7;
    font-size: 13px;
}

.delivery-label {
    font-size: 12px;
    background: #ffffff20;
    border-radius: 20px;
    padding: 9px 13px;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.hero {
    margin: 28px 0;
    padding: 34px;
    border-radius: 18px;
    background: linear-gradient(125deg, #dcfce7, #f0fdf4);
}

.eyebrow {
    color: #15803d;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
}

.hero h2 {
    color: #14532d;
    font-size: clamp(25px, 4vw, 38px);
    max-width: 650px;
    margin: 12px 0;
}

.hero p:last-child {
    line-height: 1.7;
}

.catalog {
    padding: 25px 0;
}

.catalog-heading h2 {
    margin: 0 0 7px;
    color: #183b28;
}

.catalog-heading p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.product-count {
    background: #dcfce7;
    color: #166534;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
}

.search-form {
    display: flex;
    gap: 10px;
    margin: 24px 0;
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    background: white;
}

.search-form input:focus {
    outline: 2px solid #86efac;
    border-color: #15803d;
}

.search-form button {
    padding: 12px 22px;
    border: 0;
    border-radius: 10px;
    background: #15803d;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    box-shadow: 0 3px 12px #00000008;
}

.product-symbol {
    display: grid;
    place-items: center;
    min-height: 115px;
    background: #f0fdf4;
    font-size: 42px;
}

.product-info {
    padding: 17px;
}

.category {
    margin: 0 0 7px;
    color: #64748b;
    font-size: 12px;
}

.product-info h3 {
    margin: 0;
    font-size: 17px;
    text-transform: capitalize;
    overflow-wrap: anywhere;
}

.product-code {
    font-size: 12px;
    color: #64748b;
    margin: 8px 0 14px;
}

.price {
    font-size: 21px;
    font-weight: 800;
    color: #166534;
    margin: 0 0 15px;
}

.stock-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    font-size: 12px;
    color: #64748b;
}

.stock {
    padding: 5px 8px;
    border-radius: 6px;
}

.available {
    background: #dcfce7;
    color: #166534;
}

.unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.notice {
    padding: 20px;
    background: white;
    border-radius: 12px;
    color: #475569;
}

.error {
    border: 1px solid #fecaca;
    color: #991b1b;
}

.shipping-info {
    background: white;
    border-radius: 14px;
    padding: 22px;
    margin: 25px 0 35px;
    border: 1px solid #e5e7eb;
}

.shipping-info h2 {
    color: #14532d;
    font-size: 19px;
}

.shipping-info p {
    color: #64748b;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 22px;
    background: #ecfdf5;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 760px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .delivery-label {
        margin-left: 49px;
    }

    .hero {
        padding: 25px 20px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-info {
        padding: 13px;
    }

    .product-info h3 {
        font-size: 15px;
    }

    .price {
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .product-symbol {
        min-height: 100%;
        font-size: 32px;
    }

    .catalog-heading {
        align-items: flex-start;
    }

    .search-form button {
        padding: 12px 15px;
    }
}


.cart-link {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 9px;
    background: white;
    color: #14532d;
    text-decoration: none;
    font-weight: 700;
}

.add-form,
.cart-actions,
.cart-actions form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 9px;
}

.add-form {
    flex-direction: column;
    align-items: stretch;
    margin-top: 15px;
}

.add-form label,
.cart-actions label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #475569;
    font-size: 13px;
}

.add-form input,
.cart-actions input {
    width: 90px;
    max-width: 100%;
    padding: 9px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.add-form button,
.cart-actions button {
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: #15803d;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.cart-list {
    display: grid;
    gap: 14px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
}

.cart-item h3 {
    margin-top: 0;
}

.cart-item-info p {
    color: #64748b;
    overflow-wrap: anywhere;
}

.cart-actions {
    flex-direction: column;
    align-items: stretch;
}

.cart-actions form {
    align-items: end;
}

.cart-actions .remove-button {
    background: #b91c1c;
}

.error-text {
    color: #b91c1c !important;
    font-weight: 600;
}

.muted {
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 600px) {
    .cart-item {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-actions {
        align-items: flex-start;
    }
}


/* =========================================
   MODERN CHECKOUT PAGE
   ========================================= */

.checkout-page {
    margin: 0;
    background: #f3f7fc;
    color: #172b4d;
    font-family: "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
}

.checkout-page * {
    box-sizing: border-box;
}

.checkout-header {
    background: linear-gradient(120deg, #174b86, #2165ad);
    color: #fff;
    box-shadow: 0 4px 18px rgba(20, 59, 104, 0.13);
}

.checkout-header-inner {
    width: min(1200px, calc(100% - 40px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.checkout-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.brand-icon {
    font-size: 34px;
    line-height: 1;
}

.checkout-brand strong {
    display: block;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.checkout-brand small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: #d9e9ff;
}

.back-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.back-to-cart:hover {
    background: rgba(255, 255, 255, 0.13);
}

.checkout-container {
    width: min(1200px, calc(100% - 40px));
    margin: 36px auto 52px;
}

.checkout-heading {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 28px;
}

.checkout-heading-icon {
    display: flex;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background: #2468d8;
    color: #fff;
    border-radius: 13px;
    font-size: 26px;
    box-shadow: 0 5px 12px rgba(36, 104, 216, 0.18);
}

.checkout-heading h1 {
    margin: 0;
    color: #12264b;
    font-size: 30px;
    letter-spacing: -0.7px;
}

.checkout-heading p {
    margin: 6px 0 0;
    color: #72819a;
    font-size: 14px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.95fr);
    align-items: start;
    gap: 20px;
}

.checkout-main-column {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.checkout-card {
    min-width: 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(30, 66, 112, 0.045);
}

.checkout-section-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 26px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #3475ef;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.checkout-section-title h2,
.summary-heading h2 {
    margin: 0;
    color: #15294d;
    font-size: 19px;
    letter-spacing: -0.3px;
}

.checkout-form-fields {
    display: grid;
    gap: 22px;
}

.checkout-field {
    display: grid;
    gap: 9px;
}

.checkout-field label {
    color: #263753;
    font-size: 14px;
    font-weight: 600;
}

.checkout-field label span {
    color: #dc4747;
}

.checkout-field label .optional-label {
    color: #8b98aa;
    font-size: 12px;
    font-weight: 400;
}

.checkout-field input,
.checkout-field textarea {
    width: 100%;
    min-height: 47px;
    padding: 12px 14px;
    border: 1px solid #d7e0ed;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #1b2c48;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-field textarea {
    min-height: 100px;
    resize: vertical;
}

.checkout-field input::placeholder,
.checkout-field textarea::placeholder {
    color: #98a5b8;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
    border-color: #4382ec;
    box-shadow: 0 0 0 3px rgba(67, 130, 236, 0.12);
}

.checkout-field small {
    color: #7f8ca1;
    font-size: 12px;
    line-height: 1.5;
}

.payment-card {
    padding-bottom: 24px;
}

.qris-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid #dceaff;
    border-radius: 12px;
    background: linear-gradient(120deg, #eef6ff, #f7faff);
}

.qris-icon {
    display: flex;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #3475ef;
    color: #fff;
    font-size: 39px;
    font-weight: 700;
}

.qris-method h3 {
    margin: 0 0 5px;
    color: #172b4d;
    font-size: 19px;
}

.qris-method p {
    margin: 0;
    color: #63758f;
    font-size: 13px;
    line-height: 1.6;
}

.qris-status {
    display: inline-block;
    margin-top: 8px;
    color: #3469ba;
    font-size: 12px;
    font-weight: 600;
}

.payment-notice {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #ffe0a0;
    border-radius: 11px;
    background: #fff8e9;
}

.notice-icon {
    display: flex;
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2a313;
    color: #fff;
    font-weight: 800;
}

.payment-notice strong {
    display: block;
    margin-bottom: 5px;
    color: #76521a;
    font-size: 13px;
}

.payment-notice p {
    margin: 0;
    color: #785e35;
    font-size: 12px;
    line-height: 1.65;
}

.checkout-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    margin-top: 22px;
    padding: 14px 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(100deg, #1768d8, #247ce8);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(23, 104, 216, 0.16);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.checkout-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(23, 104, 216, 0.22);
}

.checkout-submit:active {
    transform: translateY(0);
}

.checkout-footnote {
    margin: 13px 0 0;
    color: #8995a7;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.order-summary {
    position: sticky;
    top: 20px;
    padding: 25px;
}

.summary-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e4ebf4;
}

.summary-icon {
    font-size: 28px;
}

.summary-items {
    display: grid;
}

.summary-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #e8eef5;
}

.summary-product-icon {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f2f6fc;
    font-size: 24px;
}

.summary-product-info {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.summary-product-info strong {
    overflow-wrap: anywhere;
    color: #1e3152;
    font-size: 13px;
    font-weight: 650;
}

.summary-product-info span {
    color: #7c8ca5;
    font-size: 12px;
}

.summary-item-price {
    color: #172b4d;
    font-size: 12px;
    font-weight: 650;
    text-align: right;
    white-space: nowrap;
}

.summary-calculation {
    display: grid;
    gap: 15px;
    padding: 20px 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #6c7c95;
    font-size: 14px;
}

.summary-line strong {
    color: #263958;
    font-size: 13px;
    text-align: right;
}

.free-shipping {
    padding: 5px 10px;
    border-radius: 7px;
    background: #e3f7e9;
    color: #23854a;
    font-size: 12px;
    font-weight: 700;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 15px;
    border-radius: 10px;
    background: #edf5ff;
}

.summary-total span {
    color: #20375a;
    font-size: 13px;
    font-weight: 600;
}

.summary-total strong {
    color: #173b75;
    font-size: 21px;
    text-align: right;
    overflow-wrap: anywhere;
}

.summary-payment {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #e6eef9;
    border-radius: 11px;
    background: #f6f9fe;
}

.payment-shield {
    display: flex;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #2769d2;
    color: #fff;
    font-weight: 800;
}

.summary-payment div {
    display: grid;
    gap: 4px;
    flex: 1;
}

.summary-payment small {
    color: #7586a0;
    font-size: 11px;
}

.summary-payment strong {
    color: #1b3155;
    font-size: 14px;
}

.qris-label {
    color: #263958;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -1px;
}

.summary-minimum {
    margin: 18px 0 0;
    color: #318052;
    font-size: 12px;
    line-height: 1.5;
}

.checkout-footer {
    padding: 22px 20px;
    color: #8390a4;
    font-size: 12px;
    text-align: center;
}

/* Tablet dan ponsel */
@media (max-width: 850px) {
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .order-summary {
        position: static;
        grid-row: 1;
    }

    .checkout-main-column {
        grid-row: 2;
    }

    .checkout-container {
        margin-top: 26px;
    }
}

@media (max-width: 520px) {
    .checkout-header-inner {
        width: calc(100% - 28px);
        min-height: 75px;
        gap: 10px;
    }

    .brand-icon {
        font-size: 27px;
    }

    .checkout-brand strong {
        font-size: 18px;
    }

    .checkout-brand small {
        font-size: 11px;
    }

    .back-to-cart {
        max-width: 145px;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 11px;
        text-align: center;
    }

    .checkout-container {
        width: calc(100% - 24px);
        margin: 24px auto 35px;
    }

    .checkout-heading {
        gap: 12px;
        margin-bottom: 20px;
    }

    .checkout-heading-icon {
        width: 42px;
        height: 42px;
    }

    .checkout-heading h1 {
        font-size: 25px;
    }

    .checkout-heading p {
        font-size: 12px;
        line-height: 1.5;
    }

    .checkout-card,
    .order-summary {
        padding: 18px;
        border-radius: 13px;
    }

    .checkout-section-title {
        gap: 10px;
        margin-bottom: 22px;
    }

    .checkout-section-title h2,
    .summary-heading h2 {
        font-size: 16px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .checkout-form-fields {
        gap: 19px;
    }

    .checkout-field input,
    .checkout-field textarea {
        font-size: 16px;
    }

    .qris-method {
        gap: 12px;
        padding: 13px;
    }

    .qris-icon {
        width: 48px;
        height: 48px;
        font-size: 29px;
    }

    .qris-method h3 {
        font-size: 16px;
    }

    .qris-method p {
        font-size: 12px;
    }

    .summary-item {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 9px;
        padding: 13px 0;
    }

    .summary-product-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .summary-product-info strong {
        font-size: 12px;
    }

    .summary-item-price {
        max-width: 100px;
        font-size: 11px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .summary-total {
        padding: 15px 12px;
    }

    .summary-total strong {
        font-size: 18px;
    }
}

/* Foto produk katalog online */
.product-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
    border-radius: 12px;
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #8292a8;
    font-size: 13px;
    background: #f1f5f9;
}

@media (max-width: 520px) {
    .product-image {
        height: 155px;
    }
}

.checkout-action {
    margin: 20px 0 14px;
}

.checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    border: 2px solid #087f5b;
    border-radius: 10px;
    background-color: #087f5b;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease,
                box-shadow 0.2s ease;
}

.checkout-button:hover {
    background-color: #066849;
    box-shadow: 0 4px 10px rgba(8, 127, 91, 0.22);
}

.checkout-button:focus-visible {
    outline: 3px solid #80cdb4;
    outline-offset: 3px;
}

.qris-notice {
    margin-top: 12px;
    font-size: 13px;
    color: #666666;
}


/* QRIS DEMO - tampilan simulasi, bukan pembayaran nyata */
.qris-demo-card {
    width: min(100%, 360px);
    margin: 20px auto;
    padding: 22px 16px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #dce5e1;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
}

.qris-demo-label {
    margin-bottom: 16px;
    color: #087f5b;
    font-size: 18px;
    font-weight: 800;
}

.qris-demo-image {
    display: block;
    width: min(100%, 280px);
    height: auto;
    margin: 0 auto;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    box-sizing: border-box;
}

.qris-demo-warning {
    margin: 16px 0 8px;
    color: #b42318;
    font-size: 13px;
    font-weight: 800;
}

.qris-demo-note {
    margin: 0;
    color: #555555;
    font-size: 13px;
    line-height: 1.6;
}


/* =====================================
   HERO BANNER PROMOSI MINIMARKET
===================================== */

.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 300px;
    padding: 42px 45px;
    margin: 25px 0 35px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 85% 20%,
        rgba(255,255,255,.18), transparent 35%),
        linear-gradient(120deg, #087f5b, #20a879);
    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero .eyebrow {
    display: inline-block;
    background: white;
    color: #087f5b;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
}

.hero h2 {
    color: white;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    margin: 15px 0;
    max-width: 570px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    max-width: 480px;
}

.hero-button {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 24px;
    background: white;
    color: #087f5b;
    text-decoration: none;
    font-weight: 800;
    border-radius: 9px;
    transition: .25s;
}

.hero-button:hover {
    background: #e6fff3;
    transform: translateY(-3px);
}

.hero-offer {
    margin-top: 18px;
    font-size: 13px;
    font-weight: 600;
}

.hero-decoration {
    position: absolute;
    right: 35px;
    bottom: -20px;
    font-size: 145px;
    opacity: .9;
    transform: rotate(-10deg);
    pointer-events: none;
}

@media(max-width: 650px) {
    .hero {
        min-height: 290px;
        padding: 28px 23px;
        margin: 18px 0 25px;
    }

    .hero h2 {
        font-size: 31px;
    }

    .hero-description {
        font-size: 14px;
        max-width: 85%;
    }

    .hero-decoration {
        right: 5px;
        bottom: -8px;
        font-size: 85px;
        opacity: .25;
    }
}


/* BANNER PROMOSI MINIMARKET */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    padding: 40px 45px;
    margin: 20px 0 35px;
    border-radius: 18px;

    background: linear-gradient(
        120deg,
        #087f5b,
        #20a879
    );

    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-label {
    display: inline-block;
    background: white;
    color: #087f5b;
    padding: 9px 16px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 12px;
}

.hero h2 {
    color: white;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
    margin: 16px 0;
}

.hero-description {
    color: white;
    font-size: 16px;
    line-height: 1.7;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 23px;
}

.hero-button,
.facebook-button {
    display: inline-block;
    padding: 14px 20px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    transition: .25s;
}

.hero-button {
    background: white;
    color: #087f5b;
}

.facebook-button {
    background: #1877f2;
    color: white;
}

.hero-button:hover,
.facebook-button:hover {
    transform: translateY(-3px);
    opacity: .9;
}

.hero-offer {
    margin-top: 20px;
    font-size: 13px;
    font-weight: bold;
    color: white;
}

.hero-decoration {
    position: absolute;
    right: 45px;
    bottom: -25px;
    font-size: 150px;
    opacity: .18;
    pointer-events: none;
}

@media(max-width: 650px) {
    .hero {
        padding: 28px 22px;
        min-height: 320px;
    }

    .hero h2 {
        font-size: 30px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-button,
    .facebook-button {
        text-align: center;
    }

    .hero-decoration {
        right: 10px;
        font-size: 90px;
    }
}


/* ==========================================
   UPGRADE HOMEPAGE MINIMARKET DESA LAWeyan
   CSS khusus katalog - tidak mengubah checkout
========================================== */

body.home-page {
    background: #f5f8f5;
    color: #26352c;
    font-family: "Segoe UI", Arial, sans-serif;
}

.home-page .site-header {
    background: #087f5b;
    padding: 17px 4%;
    box-shadow: 0 4px 18px rgba(0, 70, 45, .12);
}

.home-page .header-inner {
    width: min(1200px, 100%);
    margin: auto;
}

.home-page .brand {
    gap: 14px;
}

.home-page .brand-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    border-radius: 15px;
    font-size: 30px;
}

.home-page .brand h1 {
    font-size: clamp(16px, 2vw, 21px);
    font-weight: 800;
    letter-spacing: -.4px;
}

.home-page .brand p {
    margin-top: 5px;
    color: #d9f7e8;
}

.home-page .cart-link {
    padding: 12px 18px;
    border-radius: 12px;
    color: #087f5b;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    transition: .2s ease;
}

.home-page .cart-link:hover {
    transform: translateY(-2px);
    background: #e9fff2;
}

.home-page .container {
    width: min(1200px, 92%);
}

.home-page .hero {
    min-height: 340px;
    margin: 30px 0;
    padding: 48px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 20%, rgba(255,255,255,.18), transparent 32%),
        linear-gradient(120deg, #075e43, #0d9b6b 65%, #38b77d);
    box-shadow: 0 12px 30px rgba(0,100,65,.14);
}

.home-page .hero-content {
    max-width: 680px;
}

.home-page .hero-label {
    padding: 9px 15px;
    border-radius: 30px;
    background: #d8fbe7;
    color: #087f5b;
    font-weight: 800;
    letter-spacing: .7px;
}

.home-page .hero h2 {
    margin: 22px 0 15px;
    color: white;
    font-size: clamp(30px, 4.5vw, 48px);
    line-height: 1.15;
    letter-spacing: -1px;
}

.home-page .hero-description {
    color: #e4fff0;
    font-size: 16px;
    line-height: 1.8;
}

.home-page .hero-actions {
    gap: 12px;
    margin-top: 25px;
}

.home-page .hero-button,
.home-page .facebook-button {
    padding: 14px 20px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
}

.home-page .hero-button {
    background: white;
    color: #087f5b;
}

.home-page .facebook-button {
    background: #1877f2;
    color: white;
}

.home-page .hero-offer {
    margin-top: 22px;
    color: #eafff2;
    font-size: 14px;
}

.home-page .hero-decoration {
    right: 45px;
    bottom: -20px;
    font-size: 150px;
    opacity: .16;
}

.home-page .catalog {
    padding: 25px 0 35px;
}

.home-page .catalog-heading {
    margin-bottom: 20px;
}

.home-page .catalog-heading h2 {
    color: #145c3c;
    font-size: 28px;
    font-weight: 800;
}

.home-page .catalog-heading p {
    margin-top: 7px;
    font-size: 14px;
}

.home-page .product-count {
    padding: 9px 15px;
    background: #d9f8e5;
    color: #087f5b;
    font-weight: 800;
}

.home-page .search-form {
    gap: 12px;
    margin: 22px 0 28px;
}

.home-page .search-form input {
    min-height: 50px;
    padding: 14px 18px;
    border: 1px solid #dce8df;
    border-radius: 13px;
    background: white;
}

.home-page .search-form input:focus {
    outline: none;
    border-color: #159b69;
    box-shadow: 0 0 0 4px rgba(21,155,105,.10);
}

.home-page .search-form button {
    min-width: 95px;
    border-radius: 12px;
    background: #087f5b;
}

.home-page .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-page .product-card {
    border: 1px solid #e6eee8;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(20,60,35,.045);
    transition: transform .22s ease, box-shadow .22s ease;
}

.home-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(20,80,45,.11);
}

.home-page .product-image {
    height: 205px;
    margin: 0;
    border-radius: 0;
    background: #f7faf7;
}

.home-page .product-image img {
    padding: 17px;
    transition: transform .25s ease;
}

.home-page .product-card:hover .product-image img {
    transform: scale(1.05);
}

.home-page .product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.home-page .category {
    color: #728579;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.home-page .product-info h3 {
    min-height: 42px;
    color: #263d2e;
    font-size: 16px;
    line-height: 1.4;
}

.home-page .product-code {
    margin: 7px 0 12px;
    color: #8b9a90;
}

.home-page .price {
    margin-bottom: 12px;
    color: #087f5b;
    font-size: 21px;
}

.home-page .stock {
    display: inline-block;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.home-page .available {
    background: #e2f8e9;
    color: #167345;
}

.home-page .unavailable {
    background: #fee8e7;
    color: #b42318;
}

.home-page .add-form {
    margin-top: auto;
    padding-top: 14px;
}

.home-page .add-form label {
    color: #65776b;
    font-weight: 600;
}

.home-page .add-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dce8df;
    border-radius: 9px;
}

.home-page .add-form button {
    width: 100%;
    min-height: 45px;
    border-radius: 10px;
    background: #087f5b;
    font-size: 13px;
    transition: .2s ease;
}

.home-page .add-form button:hover {
    background: #066747;
    transform: translateY(-1px);
}

.home-page .shipping-info {
    padding: 27px;
    border: 1px solid #e2eee5;
    border-radius: 18px;
    background: white;
}

.home-page .shipping-info h2 {
    color: #087f5b;
    font-size: 21px;
}

.home-page .shipping-info p {
    line-height: 1.8;
}

.home-page footer {
    margin-top: 30px;
    padding: 30px 15px;
    background: #e6f5eb;
    color: #587365;
    line-height: 1.8;
}

/* Tablet */
@media (max-width: 950px) {
    .home-page .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }

    .home-page .hero {
        padding: 35px;
    }
}

/* Smartphone */
@media (max-width: 650px) {
    .home-page .header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-page .brand h1 {
        font-size: 16px;
    }

    .home-page .cart-link {
        margin-left: 0;
    }

    .home-page .hero {
        min-height: 0;
        padding: 30px 22px;
        border-radius: 17px;
    }

    .home-page .hero h2 {
        font-size: 31px;
    }

    .home-page .hero-description {
        max-width: 100%;
        font-size: 14px;
    }

    .home-page .hero-actions {
        flex-direction: column;
    }

    .home-page .hero-button,
    .home-page .facebook-button {
        width: 100%;
        text-align: center;
    }

    .home-page .hero-decoration {
        right: 8px;
        bottom: 0;
        font-size: 75px;
    }

    .home-page .catalog-heading h2 {
        font-size: 23px;
    }

    .home-page .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-page .product-image {
        height: 145px;
    }

    .home-page .product-info {
        padding: 12px;
    }

    .home-page .product-info h3 {
        min-height: 40px;
        font-size: 14px;
    }

    .home-page .price {
        font-size: 17px;
    }
}

@media (max-width: 380px) {
    .home-page .product-grid {
        grid-template-columns: 1fr;
    }

    .home-page .product-image {
        height: 190px;
    }
}
