/* Global Styles - Matsuri To Go */

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

body {
    font-family: 'Poppins', sans-serif;
    background: #F5F5F5;
    color: #333;
}

.material-symbols-rounded {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

/* Header Styles */
.header {
    background: #228B22;
    color: white;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
}

/* Button Styles */
.back-button, .search-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.back-button:hover, .search-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Primary Button */
.btn-primary {
    background: #228B22;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
}

.btn-primary:hover {
    background: #1e7b1e;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #6B9A6B;
    cursor: not-allowed;
    transform: none;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary:disabled:hover {
    background: #6B9A6B;
    transform: none;
}

.cart-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #228B22;
    color: white;
    border: none;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 50;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-button:hover {
    background: #1e7b1e;
    transform: translateY(-1px);
}

.cart-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.btn-secondary {
    background: #F5F5F5;
    color: #666;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
}

.btn-secondary:hover {
    border-color: #228B22;
    background: #F5FFF5;
    color: #228B22;
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #228B22;
}

.form-input::placeholder {
    color: #999;
}

/* Modal Base */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.active {
    display: block;
}

.modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #E5E5E5;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #228B22;
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 500;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    z-index: 2000;
    display: none;
    max-width: 300px;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.toast.error {
    background: #D32F2F;
}

.toast.success {
    background: #388E3C;
}

.toast.warning {
    background: #F57C00;
}

.toast.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Section Container */
.section {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.section-header {
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.section-content {
    padding: 20px;
}

/* Loading Animation */
.loading-screen {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    background: #228B22;
    color: white;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    gap: 30px;
    z-index: 9999;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message Styles */
.success-message {
    text-align: center;
    margin-bottom: 30px;
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon .material-symbols-rounded {
    font-size: 80px;
    color: white;
    background: #228B22;
    border-radius: 50%;
    padding: 20px;
}

.success-message h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.success-message p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

.thank-you-message {
    color: #444;
    line-height: 1.6;
}

.thank-you-message p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.thank-you-message p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }
    
    .header-content {
        padding: 0;
    }
    
    .btn-primary, .btn-secondary {
        padding: 14px 20px;
        font-size: 14px;
        min-height: 52px;
    }
    
    .cart-button {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .form-input {
        padding: 14px;
        font-size: 14px;
    }
    
    .toast {
        max-width: 280px;
        font-size: 12px;
        padding: 10px 16px;
    }
    
    .loading-screen {
        font-size: 18px;
        gap: 25px;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
    }
    
    .section-content {
        padding: 16px;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
}
