﻿:root {
    --store-primary: #4f46e5;
    --store-dark: #111827;
    --store-gray: #6b7280;
    --store-border: #e5e7eb;
    --store-success: #16a34a;
}


/* =========================================================
   BASE
   ========================================================= */

.cashless-store-body {
    margin: 0;
    min-height: 100vh;
    background: #f4f6f9;
    font-family: Arial, sans-serif;
}


/* =========================================================
   LOGIN
   ========================================================= */

.store-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: #111827;
}


.store-login-container {
    width: 100%;
    max-width: 430px;
}


.store-login-brand {
    color: white;
    text-align: center;
    margin-bottom: 25px;
}


.store-login-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 18px;
    background: var(--store-primary);
    font-size: 28px;
}


.store-login-brand h1 {
    margin: 0;
    font-weight: 700;
}


.store-login-brand span {
    font-size: 11px;
    letter-spacing: 4px;
    opacity: .7;
}


.store-login-card {
    border: 0;
    border-radius: 14px;
}


/* =========================================================
   HEADER
   ========================================================= */

.store-terminal-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 12px 25px;
    color: white;
    background: var(--store-dark);
}


.store-terminal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.store-terminal-logo {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--store-primary);
    font-size: 20px;
}


.store-terminal-brand strong {
    display: block;
    font-size: 18px;
}


.store-terminal-brand span {
    display: block;
    font-size: 11px;
    opacity: .7;
}


.store-event-info {
    flex: 1;
}


.store-terminal-header small {
    display: block;
    font-size: 10px;
    color: #9ca3af;
}


.store-user-info {
    display: flex;
    align-items: center;
}


/* =========================================================
   CONTENT
   ========================================================= */

.store-terminal-content {
    width: 100%;
    max-width: 1700px;
    margin: auto;
    padding: 20px;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.store-products-card,
.store-cart-card {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}


.store-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}


.store-product-item {
    min-height: 155px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--store-border);
    border-radius: 12px;
    padding: 15px;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: .15s;
}


    .store-product-item:hover {
        border-color: var(--store-primary);
        transform: translateY(-1px);
    }


.store-product-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef2ff;
    color: var(--store-primary);
    margin-bottom: 10px;
}


.store-product-name {
    flex: 1;
    font-weight: 600;
    color: #1f2937;
}


.store-product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--store-success);
    margin-top: 8px;
}


.store-product-add {
    margin-top: 7px;
    font-size: 12px;
    color: var(--store-primary);
}


.store-loading,
.store-no-products {
    padding: 35px;
    text-align: center;
    color: var(--store-gray);
}


.store-no-products {
    grid-column: 1 / -1;
}


    .store-no-products i {
        display: block;
        font-size: 30px;
        margin-bottom: 8px;
    }


/* =========================================================
   CART
   ========================================================= */

.store-cart-card {
    position: sticky;
    top: 15px;
}


.store-cart-empty {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}


    .store-cart-empty i {
        font-size: 40px;
        margin-bottom: 12px;
    }


    .store-cart-empty strong {
        color: #6b7280;
    }


    .store-cart-empty span {
        font-size: 13px;
    }


.store-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid #f0f0f0;
}


.store-cart-item-info strong {
    display: block;
}


.store-cart-item-info small {
    color: var(--store-gray);
}


.store-cart-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}


    .store-cart-controls button {
        width: 30px;
        height: 30px;
        border: 1px solid var(--store-border);
        border-radius: 6px;
        background: white;
    }


.store-cart-subtotal {
    grid-column: 1 / -1;
    text-align: right;
    font-weight: 600;
    color: var(--store-success);
}


.store-cart-footer {
    padding: 18px;
    border-top: 1px solid var(--store-border);
}


.store-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}


    .store-cart-total span {
        color: var(--store-gray);
        font-size: 13px;
    }


    .store-cart-total strong {
        font-size: 29px;
        color: var(--store-success);
    }


/* =========================================================
   CHECKOUT
   ========================================================= */

.store-checkout-total {
    padding: 17px;
    text-align: center;
    border-radius: 10px;
    background: #f0fdf4;
}


    .store-checkout-total span {
        display: block;
        color: #15803d;
        font-size: 12px;
        font-weight: 600;
    }


    .store-checkout-total strong {
        display: block;
        color: #15803d;
        font-size: 40px;
    }


.store-card-reader {
    display: flex;
    gap: 8px;
}


    .store-card-reader input {
        flex: 1;
    }


.store-balance-block {
    padding: 17px;
    text-align: center;
    border-radius: 10px;
    background: #f8fafc;
}


    .store-balance-block span {
        display: block;
        color: var(--store-gray);
        font-size: 11px;
        margin-bottom: 4px;
    }


    .store-balance-block strong {
        font-size: 28px;
    }


.store-card-code {
    text-align: center;
    margin-top: 14px;
    color: var(--store-gray);
}


/* =========================================================
   CAMERA
   ========================================================= */

.store-camera-panel {
    margin-top: 15px;
    padding: 12px;
    border: 1px solid var(--store-border);
    border-radius: 10px;
    background: #f8fafc;
}


.store-camera-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}


#storeQrReader {
    width: 100%;
    max-width: 520px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
    background: black;
}


    #storeQrReader video {
        width: 100% !important;
        max-width: 100% !important;
    }


/* =========================================================
   STATUS
   ========================================================= */

.store-status-icon {
    font-size: 65px;
}


/* =========================================================
   SUCCESS
   ========================================================= */

.store-success-body {
    padding: 35px;
}


.store-success-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    color: white;
    background: var(--store-success);
    font-size: 32px;
}


.store-success-body h2 {
    color: var(--store-success);
}


.store-success-value {
    margin: 20px 0;
    font-size: 42px;
    font-weight: 700;
}


/* =========================================================
   SALES
   ========================================================= */

.store-sale-items {
    max-width: 350px;
    white-space: normal;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width: 1199px) {

    .store-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media(max-width: 991px) {

    .store-terminal-header {
        flex-wrap: wrap;
        gap: 12px;
    }


    .store-event-info {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }


    .store-cart-card {
        position: static;
        margin-top: 15px;
    }
}


@media(max-width: 600px) {

    .store-terminal-content {
        padding: 10px;
    }


    .store-terminal-header {
        padding: 10px 12px;
    }


    .store-user-info > div {
        display: none;
    }


    .store-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }


    .store-product-item {
        min-height: 135px;
        padding: 11px;
    }


    .store-product-price {
        font-size: 17px;
    }


    .store-card-reader {
        display: grid;
        grid-template-columns: 1fr auto;
    }


    .store-checkout-total strong {
        font-size: 32px;
    }


    .store-balance-block {
        margin-bottom: 8px;
    }
}


@media(max-width: 380px) {

    .store-products-grid {
        grid-template-columns: 1fr;
    }
}
