/* login */
/* marketplace */
/* pengunjung */
/* pesan antar */
/* pesan di tempat */
/* pembayaran */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --primary: #65c7f7;

    --primary-dark: #3fa9df;

    --primary-light: #dff5ff;

    --white: #ffffff;

    --text: #1f2937;

    --gray: #6b7280;

    --danger: #dc2626;

    --success: #16a34a;

    --glass: rgba(255,255,255,0.45);

    --border: rgba(255,255,255,0.65);
}


html,
body {
    min-height: 100%;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background:

        radial-gradient(
            circle at 10% 20%,
            rgba(101,199,247,0.45),
            transparent 30%
        ),

        radial-gradient(
            circle at 90% 80%,
            rgba(80,160,255,0.35),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #dff5ff,
            #bde9ff,
            #e9f8ff
        );

    min-height: 100vh;

    overflow-x: hidden;
}


/* ========================= */
/* MARKETPLACE */
/* ========================= */

/* pengunjung */

.market-header {

    position: sticky;

    top: 0;

    z-index: 50;

    width: 100%;

    padding:
        15px
        max(20px, calc((100vw - 1200px) / 2));

    display: flex;

    justify-content: space-between;

    align-items: center;

    background:
        rgba(255,255,255,0.55);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border-bottom:
        1px solid rgba(255,255,255,0.6);
}


/* pengunjung */

.market-logo {

    display: flex;

    align-items: center;

    gap: 10px;
}

.login-top-button {
    border: none;
    background: linear-gradient(135deg, #1f9de7, #0b6ec9);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(11, 110, 201, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-top-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(11, 110, 201, 0.32);
}

.market-logo > span {

    width: 45px;

    height: 45px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 14px;

    background:
        rgba(255,255,255,0.7);

    font-size: 22px;
}


.market-logo strong {

    display: block;

    font-size: 17px;
}


.market-logo small {

    display: block;

    color: var(--gray);

    margin-top: 2px;
}


.header-user {

    display: flex;

    align-items: center;

    gap: 15px;

    font-size: 14px;
}


.logout-button {

    border: none;

    background:
        rgba(255,255,255,0.6);

    color: var(--primary-dark);

    padding: 9px 15px;

    border-radius: 10px;

    cursor: pointer;
}


/* pengunjung */

.market-container {

    width: min(
        1200px,
        calc(100% - 40px)
    );

    margin: 30px auto 150px;
}


/* pengunjung */

.hero {

    min-height: 230px;

    padding: 40px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    overflow: hidden;

    border-radius: 28px;

    background:

        linear-gradient(
            135deg,
            rgba(255,255,255,0.65),
            rgba(101,199,247,0.30)
        );

    border:
        1px solid rgba(255,255,255,0.65);

    backdrop-filter: blur(20px);

    box-shadow:
        0 20px 50px rgba(50,130,170,0.12);
}


.hero-label {

    display: inline-block;

    padding: 7px 12px;

    border-radius: 30px;

    background:
        rgba(255,255,255,0.7);

    color: var(--primary-dark);

    font-size: 13px;

    font-weight: bold;

    margin-bottom: 15px;
}


.hero h1 {

    max-width: 600px;

    font-size:
        clamp(28px, 5vw, 46px);

    margin-bottom: 12px;
}


.hero p {

    color: var(--gray);

    font-size: 16px;
}


.hero-icon {

    font-size:
        clamp(70px, 10vw, 130px);

    transform: rotate(-5deg);
}


/* pengunjung */

.category-list {

    display: flex;

    gap: 10px;

    overflow-x: auto;

    padding: 25px 0 10px;

    scrollbar-width: none;
}


.category {

    flex-shrink: 0;

    border: 1px solid
        rgba(255,255,255,0.7);

    background:
        rgba(255,255,255,0.45);

    padding: 11px 18px;

    border-radius: 30px;

    color: var(--text);

    cursor: pointer;

    transition: 0.2s;
}


.category.active,
.category:hover {

    background:
        linear-gradient(
            135deg,
            #8edcff,
            #58bce9
        );

    color: white;

    border-color: transparent;
}


/* pengunjung */

.section-title {

    display: flex;

    justify-content: space-between;

    align-items: end;

    margin: 25px 0 20px;
}


.section-title h2 {

    font-size: 24px;
}


.section-title p {

    color: var(--gray);

    margin-top: 5px;

    font-size: 14px;
}


.section-title > span {

    color: var(--gray);

    font-size: 14px;
}


/* pengunjung */

.product-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


.product-card {

    overflow: hidden;

    border-radius: 20px;

    background:
        rgba(255,255,255,0.52);

    border:
        1px solid rgba(255,255,255,0.65);

    backdrop-filter: blur(15px);

    box-shadow:
        0 12px 30px
        rgba(50,130,170,0.10);

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}


.product-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 18px 35px
        rgba(50,130,170,0.16);
}


.product-image {

    height: 170px;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.65),
            rgba(101,199,247,0.18)
        );
}

.product-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


.product-info {

    padding: 16px;
}


.product-category {

    color: var(--primary-dark);

    font-size: 11px;

    font-weight: bold;

    text-transform: uppercase;
}


.product-name {

    font-size: 17px;

    font-weight: bold;

    margin: 7px 0;
}


.product-price {

    color: var(--primary-dark);

    font-size: 17px;

    font-weight: bold;
}


.add-product {

    width: 100%;

    margin-top: 13px;

    border: none;

    background:
        linear-gradient(
            135deg,
            #8edcff,
            #58bce9
        );

    color: white;

    padding: 11px;

    border-radius: 11px;

    font-weight: bold;

    cursor: pointer;
}


/* ========================= */
/* ORDER PANEL */
/* ========================= */

/* pengunjung */

.order-panel {

    position: fixed;

    left: 50%;

    bottom: 20px;

    z-index: 100;

    width:
        min(600px, calc(100% - 30px));

    max-height: 75vh;

    overflow-y: auto;

    transform:
        translate(-50%, calc(100% + 40px));

    opacity: 0;

    pointer-events: none;

    padding: 20px;

    border-radius: 25px;

    background:
        rgba(255,255,255,0.80);

    backdrop-filter: blur(25px);

    -webkit-backdrop-filter: blur(25px);

    border:
        1px solid rgba(255,255,255,0.8);

    box-shadow:
        0 20px 60px
        rgba(20,80,120,0.25);

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}


.order-panel.show {

    transform:
        translate(-50%, 0);

    opacity: 1;

    pointer-events: auto;
}


.order-panel-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-bottom: 15px;

    border-bottom:
        1px solid rgba(0,0,0,0.06);
}


.order-panel-header strong {

    display: block;

    font-size: 18px;
}


.order-panel-header span {

    color: var(--gray);

    font-size: 12px;
}


.close-panel,
.modal-close {

    width: 35px;

    height: 35px;

    border: none;

    border-radius: 50%;

    background:
        rgba(0,0,0,0.06);

    font-size: 22px;

    cursor: pointer;
}


/* pengunjung */

.cart-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    padding: 15px 0;

    border-bottom:
        1px solid rgba(0,0,0,0.05);
}


.cart-item-info {

    flex: 1;
}


.cart-item-name {

    font-weight: bold;
}


.cart-item-price {

    color: var(--primary-dark);

    font-size: 13px;

    margin-top: 4px;
}


.quantity-control {

    display: flex;

    align-items: center;

    gap: 8px;
}


.quantity-control button {

    width: 28px;

    height: 28px;

    border: none;

    border-radius: 8px;

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    font-weight: bold;

    cursor: pointer;
}


/* pengunjung */

.request-box {

    margin-top: 15px;
}


.request-box label {

    display: block;

    font-size: 13px;

    font-weight: bold;

    margin-bottom: 7px;
}


textarea,
input {

    width: 100%;

    border:
        1px solid rgba(255,255,255,0.8);

    background:
        rgba(255,255,255,0.6);

    border-radius: 12px;

    padding: 12px;

    outline: none;

    font-family: inherit;

    color: var(--text);
}


textarea {

    min-height: 90px;

    resize: vertical;
}


textarea:focus,
input:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(101,199,247,0.15);
}


.cart-total {

    display: flex;

    justify-content: space-between;

    margin: 18px 0;

    font-size: 17px;
}


.cart-total strong {

    color:
        var(--primary-dark);
}


/* ========================= */
/* BUTTON */
/* ========================= */

/* pengunjung */

.order-button {

    width: 100%;

    min-height: 52px;

    border: none;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #8edcff,
            #58bce9
        );

    color: white;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(64,173,224,0.25);

    transition: 0.2s;
}


.order-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 30px
        rgba(64,173,224,0.35);
}


/* ========================= */
/* MODAL */
/* ========================= */

/* pengunjung */

.modal {

    position: fixed;

    inset: 0;

    z-index: 200;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

    background:
        rgba(30,80,110,0.25);

    backdrop-filter:
        blur(8px);

    opacity: 0;

    pointer-events: none;

    transition: 0.25s;
}


.modal.show {

    opacity: 1;

    pointer-events: auto;
}


.modal-card {

    position: relative;

    width:
        min(450px, 100%);

    padding: 35px;

    text-align: center;

    border-radius: 25px;

    background:
        rgba(255,255,255,0.85);

    backdrop-filter:
        blur(20px);

    box-shadow:
        0 25px 60px
        rgba(30,80,110,0.25);
}


.modal-close {

    position: absolute;

    top: 15px;

    right: 15px;
}


.modal-icon,
.page-icon {

    font-size: 50px;

    margin-bottom: 15px;
}


.modal-card p,
.form-description {

    color: var(--gray);

    margin: 8px 0 25px;

    line-height: 1.6;
}


.order-type-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}


.order-type {

    padding: 20px 12px;

    border:
        1px solid rgba(255,255,255,0.8);

    border-radius: 18px;

    background:
        rgba(255,255,255,0.6);

    cursor: pointer;

    transition: 0.2s;
}


.order-type:hover {

    background:
        var(--primary-light);

    transform:
        translateY(-3px);
}


.order-type span {

    display: block;

    font-size: 35px;

    margin-bottom: 10px;
}


.order-type strong {

    display: block;

    font-size: 14px;
}


.order-type small {

    display: block;

    margin-top: 5px;

    color: var(--gray);
}


/* ========================= */
/* GENERAL PAGE */
/* ========================= */

/* pembayaran */
/* pesan antar */
/* pesan ditempat */

.simple-header {

    position: sticky;

    top: 0;

    z-index: 20;

    height: 70px;

    padding:
        0 max(20px, calc((100vw - 1000px) / 2));

    display: flex;

    align-items: center;

    gap: 15px;

    background:
        rgba(255,255,255,0.6);

    backdrop-filter:
        blur(20px);

    border-bottom:
        1px solid rgba(255,255,255,0.7);
}


.simple-header h1 {

    font-size: 20px;
}


.back-button {

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 12px;

    background:
        rgba(255,255,255,0.65);

    font-size: 20px;

    cursor: pointer;
}


.page-container {

    width:
        min(1000px, calc(100% - 40px));

    margin: 35px auto;

    padding-bottom: 50px;
}


.form-card,
.scanner-card,
.payment-card {

    background:
        rgba(255,255,255,0.55);

    backdrop-filter:
        blur(20px);

    border:
        1px solid rgba(255,255,255,0.75);

    border-radius: 25px;

    padding: 30px;

    box-shadow:
        0 20px 50px
        rgba(40,120,160,0.12);
}


.form-card {

    max-width: 650px;

    margin: auto;
}


.form-card h2,
.scanner-card h2 {

    font-size: 25px;

    margin-bottom: 8px;
}


.form-group {

    margin-bottom: 18px;
}


.form-group label {

    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    font-weight: bold;
}


.form-row {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;
}


.distance-box {

    padding: 18px;

    margin: 20px 0;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;

    border-radius: 15px;

    background:
        rgba(101,199,247,0.12);
}


.distance-box span {

    display: block;

    color: var(--gray);

    font-size: 12px;

    margin-bottom: 5px;
}


.distance-box strong {

    color:
        var(--primary-dark);
}


/* ========================= */
/* CAMERA */
/* ========================= */

/* pesan ditempat */

.scanner-card {

    max-width: 600px;

    margin: auto;

    text-align: center;
}


.camera-container {

    position: relative;

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    margin: 20px 0;

    border-radius: 20px;

    background: #111;
}


.camera-container video {

    width: 100%;

    height: 100%;

    object-fit: cover;
}


.scanner-frame {

    position: absolute;

    inset: 15% 15%;

    border: 3px solid
        rgba(255,255,255,0.9);

    border-radius: 20px;
}


.scanner-frame span {

    position: absolute;

    width: 25px;

    height: 25px;

    border-color:
        var(--primary);

    border-style: solid;
}


.scanner-frame span:nth-child(1) {

    top: -3px;
    left: -3px;

    border-width: 4px 0 0 4px;
}


.scanner-frame span:nth-child(2) {

    top: -3px;
    right: -3px;

    border-width: 4px 4px 0 0;
}


.scanner-frame span:nth-child(3) {

    bottom: -3px;
    left: -3px;

    border-width: 0 0 4px 4px;
}


.scanner-frame span:nth-child(4) {

    bottom: -3px;
    right: -3px;

    border-width: 0 4px 4px 0;
}


.scanner-status {

    color:
        var(--gray);

    font-size: 14px;

    margin: 10px 0 18px;
}


.secondary-button {

    width: 100%;

    min-height: 50px;

    border: none;

    border-radius: 13px;

    background:
        rgba(255,255,255,0.7);

    color:
        var(--primary-dark);

    font-weight: bold;

    cursor: pointer;
}


/* ========================= */
/* PAYMENT */
/* ========================= */

/* pembayaran */

.payment-layout {

    display: grid;

    grid-template-columns:
        1.2fr 0.8fr;

    gap: 20px;
}


.payment-items {

    margin-top: 20px;
}


.payment-item {

    display: flex;

    justify-content: space-between;

    padding: 14px 0;

    border-bottom:
        1px solid rgba(0,0,0,0.06);
}


.payment-item small {

    display: block;

    color: var(--gray);

    margin-top: 4px;
}


.summary-row {

    display: flex;

    justify-content: space-between;

    padding: 14px 0;

    border-bottom:
        1px solid rgba(0,0,0,0.05);
}


.summary-row span {

    color: var(--gray);
}


.summary-total {

    display: flex;

    justify-content: space-between;

    padding: 20px 0;

    font-size: 18px;
}


.summary-total strong {

    color:
        var(--primary-dark);
}


.payment-method-title {

    margin:
        20px 0 12px;
}


.payment-method {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 14px;

    margin-bottom: 8px;

    border-radius: 12px;

    background:
        rgba(255,255,255,0.5);

    cursor: pointer;
}


.payment-method input {

    width: auto;
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
    width: 100%;
    margin-top: 50px;
    padding: 30px 20px 18px;

    background:
        linear-gradient(
            135deg,
            rgba(120, 190, 255, 0.25),
            rgba(255, 255, 255, 0.10)
        );

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-top:
        1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
        0 -8px 30px rgba(0, 80, 160, 0.08);

}


/* Container */

.footer-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    text-align: center;
}


/* Menu */

.footer-menu {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}


/* Tombol footer */

.footer-menu button {

    min-width: 150px;

    padding: 13px 20px;

    border: 1px solid
        rgba(255, 255, 255, 0.45);

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(173, 216, 255, 0.85),
            rgba(120, 190, 255, 0.70)
        );

    color: #064b82;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 5px 15px
        rgba(30, 120, 200, 0.12);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


/* Hover */

.footer-menu button:hover {

    transform:
        translateY(-3px);

    background:
        linear-gradient(
            135deg,
            rgba(140, 205, 255, 0.95),
            rgba(90, 175, 245, 0.85)
        );

    box-shadow:
        0 10px 25px
        rgba(30, 120, 200, 0.20);
}


/* Klik */

.footer-menu button:active {

    transform:
        translateY(0);

}


/* Garis */

.footer-divider {

    width: 100%;

    max-width: 800px;

    height: 1px;

    margin: 25px auto 18px;

    background:
        rgba(80, 140, 190, 0.20);
}


/* Footer bawah */

.footer-bottom {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-direction: column;

    gap: 5px;
}


.footer-bottom p {

    margin: 0;

    font-size: 14px;

    font-weight: 600;

    color: #27638d;
}


.footer-bottom small {

    font-size: 11px;

    color: #6f8799;

    letter-spacing: 0.3px;
}



/* =====================================================
   RESPONSIVE TABLET
   ===================================================== */

@media (max-width: 768px) {

    .site-footer {

        margin-top: 35px;

        padding:
            25px 15px 16px;

    }


    .footer-menu {

        gap: 10px;

    }


    .footer-menu button {

        min-width: 135px;

        padding:
            11px 15px;

        font-size: 13px;

    }

}



/* =====================================================
   RESPONSIVE HP
   ===================================================== */

@media (max-width: 480px) {

    .site-footer {

        margin-top: 30px;

        padding:
            22px 12px 15px;

    }


    .footer-menu {

        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 8px;

        width: 100%;

    }


    .footer-menu button {

        min-width: 0;

        width: 100%;

        padding:
            11px 5px;

        border-radius: 12px;

        flex-direction: column;

        gap: 4px;

        font-size: 11px;

    }


    .footer-menu button span {

        white-space: nowrap;

    }


    .footer-divider {

        margin:
            20px auto 15px;

    }


    .footer-bottom p {

        font-size: 13px;

    }


    .footer-bottom small {

        font-size: 10px;

    }

}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 1000px) {

    .product-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }

}


@media (max-width: 768px) {

    .product-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .hero {

        padding: 30px;

        min-height: 200px;
    }


    .hero-icon {

        font-size: 75px;
    }


    .payment-layout {

        grid-template-columns: 1fr;
    }

}


@media (max-width: 550px) {

    .market-container {

        width:
            calc(100% - 25px);

        margin-top: 20px;
    }


    .market-header {

        padding:
            12px 15px;
    }


    .header-user > span {

        display: none;
    }


    .hero {

        padding: 25px;

        min-height: 180px;
    }


    .hero h1 {

        font-size: 28px;
    }


    .hero-icon {

        display: none;
    }


    .product-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 10px;
    }


    .product-image {

        height: 130px;

        font-size: 55px;
    }


    .product-info {

        padding: 12px;
    }


    .product-name {

        font-size: 14px;
    }


    .product-price {

        font-size: 14px;
    }


    .add-product {

        padding: 9px;

        font-size: 12px;
    }


    .order-type-grid {

        grid-template-columns: 1fr;
    }


    .form-row {

        grid-template-columns: 1fr;
    }


    .page-container {

        width:
            calc(100% - 25px);

        margin-top: 20px;
    }


    .form-card,
    .scanner-card,
    .payment-card {

        padding: 22px;

        border-radius: 20px;
    }


    .distance-box {

        grid-template-columns: 1fr;
    }

}


@media (min-width: 1600px) {

    .market-container {

        width: 1400px;
    }


    .product-grid {

        grid-template-columns:
            repeat(5, 1fr);
    }

}

.visitor-order-status {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    margin: 24px 0;
    padding: 20px;
    border: 1px solid rgba(114, 188, 232, .35);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 30px rgba(50, 130, 170, .1);
}

.visitor-order-status[hidden],
.visitor-receipt[hidden] {
    display: none;
}

.status-icon {
    font-size: 32px;
}

.status-label {
    color: var(--gray);
    font-size: 12px;
    text-transform: uppercase;
}

.visitor-order-status h2 {
    margin: 4px 0;
    color: var(--primary-dark);
}

.visitor-order-status p {
    margin: 0;
    color: var(--gray);
}

.visitor-receipt {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed #9acde5;
}

.visitor-receipt div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 5px 0;
}