/* style.css - Lengkap dan Ditingkatkan */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a6fd8;
    --primary-light: #f0f3ff;
    --secondary-color: #764ba2;
    --accent-color: #ff6b6b;
    --success-color: #51cf66;
    --warning-color: #ffd43b;
    --danger-color: #ff6b6b;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #a0aec0;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    --gradient-success: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

#app {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.flex-grow {
    flex-grow: 1;
}

/* --- Full Screen Views & Transitions --- */
.full-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.fade-enter-active, .fade-leave-active {
    transition: opacity 0.5s ease;
}

.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

/* --- Welcome Screen --- */
.welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.welcome-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.welcome-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.welcome-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-container {
    position: relative;
}

.input-container input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    background: var(--bg-primary);
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.input-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.input-container input:not(:placeholder-shown) + label, .input-container input:focus + label {
    transform: translateY(-1.7rem) translateX(-0.4rem) scale(0.8);
    color: var(--primary-color);
    background: var(--bg-primary);
    padding: 0 0.5rem;
}

.input-container label {
    position: absolute;
    left: 3.5rem;
    top: 1.1rem;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    transform-origin: left top;
}

.input-container .input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.25rem;
}

.start-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Main Kiosk Layout --- */
.main-layout {
    display: flex;
    height: 100vh;
    background: var(--bg-secondary);
}

.sidebar {
    width: 237px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.sidebar h1 {
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.sidebar-tabs {
    display: flex;
    background: var(--bg-tertiary);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    background: var(--bg-primary);
    border-bottom: 3px solid var(--primary-color);
}

.filter-list {
    list-style: none;
    padding: 0.5rem 0;
    overflow-y: auto;
    flex: 1;
}

.filter-item {
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: block;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-left: 4px solid transparent;
}

.filter-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.filter-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
}

.filter-item.best-seller {
    background: var(--gradient-accent);
    color: white;
    margin: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    border-left: 4px solid transparent;
}

.filter-item.best-seller:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-item.best-seller.active {
    box-shadow: 0 0 0 3px white, 0 0 0 5px var(--accent-color);
}

.filter-list-child {
    list-style: none;
    background: var(--bg-tertiary);
    margin-left: 1.5rem;
    padding-left: 0;
    border-left: 2px solid var(--border-color);
}

.filter-list-child .filter-item {
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.filter-list-grandchild {
    list-style: none;
    padding-left: 0;
    margin-left: 1rem;
    border-left: 2px solid #E2E8F0;
    background: #FDFDFF;
}

.brand-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    background: white;
    padding: 2px;
    border: 1px solid var(--border-color);
    display: none;
}

.chevron {
    transition: transform 0.3s ease;
}

.chevron.is-open {
    transform: rotate(180deg);
}

.slide-down-fade-enter-active, .slide-down-fade-leave-active {
    transition: all 0.3s ease-out;
    max-height: 200px;
}

.slide-down-fade-enter-from, .slide-down-fade-leave-to {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevents whole page scroll */
}

/* FIX: Header (Search + Cart) is now sticky */
.header {
    background: var(--bg-primary);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    flex-shrink: 0;
    /* Prevents header from shrinking */
}

.search-bar {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: var(--bg-primary);
}

.search-bar .material-icons-outlined {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    font-size: 1.25rem;
    pointer-events: none;
}

.cart-button {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-md);
}

.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cart-count {
    background: white;
    color: var(--accent-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    position: absolute;
    top: -8px;
    right: -8px;
    box-shadow: var(--shadow-sm);
    border: 2px solid white;
}

/* FIX: Product grid is now the scrollable area */
.product-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* FIX: Kartu dibuat sedikit lebih tinggi */
    grid-auto-rows: minmax(440px, auto);
    /* Naik dari 420px menjadi 440px */
    gap: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.product-card.out-of-stock {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--bg-tertiary);
}

.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.in-cart-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(81, 207, 102, 0.9);
    backdrop-filter: blur(5px);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 30, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.stock-overlay-text {
    background: var(--danger-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    /* Ensures footer is always at the bottom */
}

.product-brand {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: -0.1rem;
    line-height: 1.4;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.product-card-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    /* Pushes to the bottom */
}

.view-options-btn, .add-to-cart-btn-direct {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    flex: 1;
}

.view-options-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.view-options-btn:hover {
    background: var(--primary-color);
    color: white;
}

.add-to-cart-btn-direct:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-list-enter-active, .product-list-leave-active {
    transition: all 0.5s ease;
}

.product-list-enter-from, .product-list-leave-to {
    opacity: 0;
    transform: scale(0.9);
}

.product-list-move {
    transition: transform 0.5s ease;
}

/* --- Cart View --- */
.cart-view {
    background: var(--bg-tertiary);
    padding: 2rem;
}

.cart-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.cart-view-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.back-btn {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 2px solid var(--primary-light);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-color);
    color: white;
}

.cart-view-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.cart-items-container {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-addons {
    list-style: none;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.cart-note-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    background: var(--bg-secondary);
}

.cart-note-input:focus {
    background: var(--bg-primary);
    border-color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
}

.cart-item-actions button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.cart-item-actions button:hover {
    transform: scale(1.1);
}

.cart-item-actions span {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-price-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    min-width: 120px;
    text-align: right;
}

.remove-item-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--danger-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.remove-item-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}

.cart-summary-container {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 2rem;
}

.cart-summary-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.cart-summary-container p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.cart-summary-container hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0;
}

.cart-total span:last-child {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.checkout-btn, .cancel-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.checkout-btn {
    background: var(--gradient-success);
    color: white;
}

.cancel-btn {
    background: transparent;
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
}

.checkout-btn:hover, .cancel-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
}

.cart-empty .material-icons-outlined {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* --- Success Screen --- */
.success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-success);
    color: white;
    text-align: center;
    padding: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    
    40% {
        transform: translateY(-30px);
    }
    
    60% {
        transform: translateY(-15px);
    }
}

.success-screen .material-icons-outlined {
    font-size: 6rem;
    margin-bottom: 1rem;
    animation: bounce 1.5s ease-in-out;
}

.success-screen h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-screen p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 500px;
}

.qr-code-container {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    margin: 1rem 0 2rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

.qr-code-container p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.trx-id {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    margin: 1rem 0 2rem;
    letter-spacing: 2px;
    border: 1px dashed rgba(255, 255, 255, 0.5);
}

.new-order-btn {
    background: white;
    color: var(--success-color);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.new-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* --- Product Detail Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.product-detail-modal {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    width: 100%;
    max-width: 950px;
    height: 95%;
    max-height: 700px;
    box-shadow: var(--shadow-xl);
    position: relative;
    display: flex;
    overflow: hidden;
}

.detail-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    z-index: 11;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-close-btn:hover {
    background: var(--danger-color);
    transform: rotate(90deg);
}

.detail-image {
    width: 45%;
    flex-shrink: 0;
    object-fit: cover;
}

.detail-info {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-grow: 1;
}

.detail-info .brand {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.detail-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.25rem 0 1rem;
}

.detail-info .description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.options-group {
    margin-bottom: 1.5rem;
}

.options-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.options-group .required {
    font-size: 0.8rem;
    color: var(--danger-color);
    font-weight: 500;
}

.options-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.option-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.option-btn:hover {
    border-color: var(--primary-color);
}

.option-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.option-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-tertiary);
    text-decoration: line-through;
}

.addon-list, .condiment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ENHANCEMENT: Custom Checkbox Styles */
.addon-item, .condiment-item {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    transition: background 0.2s ease;
}

.addon-item:hover, .condiment-item:hover {
    background: var(--bg-tertiary);
}

.addon-item label, .condiment-item label {
    flex-grow: 1;
    margin-left: 0.75rem;
    cursor: pointer;
}

.addon-item .price, .condiment-item .price {
    font-weight: 500;
    color: var(--text-secondary);
}

input[type="checkbox"], input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    flex-shrink: 0;
}

input[type="checkbox"] {
    border-radius: 6px;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked, input[type="radio"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type="radio"]:checked::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.detail-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg-primary);
}

.detail-price-stock {
    text-align: left;
}

.final-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stock-info {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: block;
}

.stock-info.available {
    color: var(--success-color);
}

.stock-info.out-of-stock {
    color: var(--danger-color);
}

.detail-add-to-cart-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.detail-add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-fade-enter-active, .modal-fade-leave-active {
    transition: opacity 0.3s ease;
}

.modal-fade-enter-from, .modal-fade-leave-to {
    opacity: 0;
}

.modal-fade-enter-active .product-detail-modal, .modal-fade-leave-active .product-detail-modal {
    transition: transform 0.3s ease;
}

.modal-fade-enter-from .product-detail-modal, .modal-fade-leave-to .product-detail-modal {
    transform: scale(0.95) translateY(20px);
}

/* --- Virtual Keyboard --- */
/* FIX: Center the keyboard overlay */
.keyboard-overlay, .virtual-keyboard-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.keyboard-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.virtual-keyboard-container {
    align-items: flex-end;
    /* For welcome screen, align to bottom */
}

.virtual-keyboard {
    background: #E1E3E8;
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 800px;
    margin-bottom: 1rem;
    /* for welcome screen */
}

.keyboard-overlay .virtual-keyboard {
    margin-bottom: 0;
    /* for kiosk screen */
}

.keyboard-header {
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.keyboard-key {
    flex: 1;
    max-width: 60px;
    height: 50px;
    border: none;
    border-radius: var(--border-radius-sm);
    background: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.keyboard-key:active {
    transform: translateY(2px);
    box-shadow: none;
}

.key-special {
    flex: 1.5;
    background: #ADB5BD;
    color: white;
}

.key-space {
    flex: 6;
}

.slide-up-enter-active, .slide-up-leave-active, .zoom-fade-enter-active, .zoom-fade-leave-active {
    transition: all 0.3s ease;
}

.slide-up-enter-from, .slide-up-leave-to {
    transform: translateY(100%);
    opacity: 0;
}

.zoom-fade-enter-from, .zoom-fade-leave-to {
    opacity: 0;
    transform: scale(0.9);
}

/* --- Fly to Cart Animation --- */
@keyframes fly-to-cart-anim {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    
    100% {
        transform: scale(0.1) translate(var(--translate-x), var(--translate-y));
        opacity: 0.5;
        border-radius: 50%;
    }
}

.flying-product-clone {
    animation: fly-to-cart-anim 0.7s ease-in-out forwards;
    pointer-events: none;
    border-radius: var(--border-radius-lg);
}

/* ... (semua CSS yang ada sebelumnya tetap sama) ... */
/* Gaya Baru untuk Kolom Pencarian */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.search-bar .clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar .clear-btn:hover {
    color: #333;
}

.search-bar .clear-btn .material-icons-outlined {
    font-size: 20px;
}

/* Gaya Baru untuk Keyboard Virtual */
.virtual-keyboard-wrapper {
    display: flex;
    gap: 10px;
    background-color: #CFD8DC;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.keyboard-main {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.keyboard-numpad {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.keyboard-numpad .keyboard-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

/* Memastikan tombol Enter & Backspace di numpad memiliki lebar penuh jika diperlukan */
.keyboard-numpad .keyboard-row:last-of-type {
    grid-template-columns: 1fr 1fr;
}

.keyboard-numpad .key-enter {
    grid-column: span 3;
    height: 80px;
    margin-top: 5px;
}

.keyboard-key {
    background-color: #FFF;
    border: 1px solid #B0BEC5;
    border-radius: 5px;
    padding: 15px 0;
    font-size: 1.2em;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.keyboard-key:active {
    background-color: #ECEFF1;
    transform: translateY(1px);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.keyboard-row {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.keyboard-row .keyboard-key {
    flex: 1;
    color: rgba(0, 0, 0, 0.5);
}

button {
}

.keyboard-key {
}

.keyboard-key.key-space {
    font-size: 14.2px;
}

.key-space span {
}

.key-space {
    flex: 5 !important;
}

/* Gaya Baru untuk Animasi Add To Cart */
@keyframes fly-to-cart {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
        border-radius: 10%;
    }
    
    50% {
        opacity: 0.8;
    }
    
    100% {
        transform: translate(var(--translate-x), var(--translate-y)) scale(0.1);
        opacity: 0;
        border-radius: 50%;
    }
}

.flying-product-clone {
    position: fixed;
    z-index: 9999;
    animation: fly-to-cart 0.8s ease-in-out forwards;
    pointer-events: none;
    /* Mencegah interaksi dengan klon */
}

search-bar {
    position: relative;
    /* Diperlukan untuk positioning absolut child */
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: -0.1rem;
    line-height: 1.4;
}

/* === TAMBAHKAN BLOK CSS DI BAWAH INI === */
.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    /* Poin kunci agar deskripsi mengisi ruang kosong */
}

/* ======================================= */
.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Letakkan kode ini di mana saja di dalam file style.css */
.search-bar {
    /* Pastikan .search-bar memiliki position relative */
    position: relative;
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.clear-search-btn:hover {
    color: var(--text-primary);
}

.clear-search-btn .material-icons-outlined {
    font-size: 1.25rem;
}

/* === TAMBAHKAN BLOK CSS DI BAWAH INI === */
.search-bar {
    /* Pastikan .search-bar memiliki position relative */
    position: relative;
}
/* ======================================= */
