:root {
    --primary-color: #1e3a8a;
    --primary-hover: #16307a;
    --bg-gradient: linear-gradient(135deg, #e6e9f0 0%, #f5f7fa 100%);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 6px 25px rgba(0, 0, 0, 0.1);
    --border-color: #e5e7eb;
    --text-main: #333;
    --text-secondary: #6b7280;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gradient);
    padding: 20px;
    color: var(--text-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.card-container {
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-container:hover {
    box-shadow: var(--card-shadow-hover);
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 600;
}

.service-item {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: relative;
    transition: background-color 0.2s ease;
}

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

.service-item:hover {
    background-color: #f9fafb;
}

.category-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.category-content {
    display: none;
}

.category-content.open {
    display: block;
}

.info-icon-btn {
    background-color: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.info-icon-btn:hover {
    background-color: var(--primary-hover);
}

.search-bar input {
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 8px 0 0 8px;
    transition: border-color 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-bar button {
    background-color: var(--primary-color);
    padding: 8px;
    border-radius: 0 8px 8px 0;
    transition: background-color 0.2s ease;
}

.search-bar button:hover {
    background-color: var(--primary-hover);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e5e7eb;
    color: var(--primary-color);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.close-btn:hover {
    background-color: #d1d5db;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

.footer {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 20px;
}

.custom-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.custom-modal.open {
    display: block;
}

.payment-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.payment-modal.open {
    display: block;
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.quantity-input button {
    background-color: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quantity-input button:hover {
    background-color: var(--primary-hover);
}

.quantity-input input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px;
}

.radio-group, .checkbox-group {
    margin-bottom: 16px;
}

.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}
.text-price {
    color: var(--primary-color);
    font-size: 0.9rem;
}
.order-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.order-btn:hover {
    background-color: var(--primary-hover);
}

.alert-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    text-align: center;
    max-width: 400px;
}

.alert-box button {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 8px;
    cursor: pointer;
}

.alert-box button:hover {
    background-color: var(--primary-hover);
}

.cart-item {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details p {
    margin: 0;
    font-size: 0.9rem;
}

.cart-item-remove {
    background-color: #ef4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cart-item-remove:hover {
    background-color: #dc2626;
}

.view-cart-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    display: block;
    margin-top: 16px;
    transition: background-color 0.2s ease;
}

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

.cart-quantity-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-quantity-input button {
    background-color: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cart-quantity-input button:hover {
    background-color: var(--primary-hover);
}

.cart-quantity-input input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px;
    font-size: 0.9rem;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.payment-table th, .payment-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.payment-table th {
    background-color: #f9fafb;
    color: var(--primary-color);
}

.payment-table td.text-right {
    text-align: right;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modal-actions button {
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.modal-actions .confirm-btn {
    background-color: var(--primary-color);
    color: white;
}

.modal-actions .confirm-btn:hover {
    background-color: var(--primary-hover);
}

.modal-actions .cancel-btn {
    background-color: #e5e7eb;
    color: var(--primary-color);
}

.modal-actions .cancel-btn:hover {
    background-color: #d1d5db;
}

@media (max-width: 640px) {
    body {
        padding: 16px;
    }

    .flex-col-mobile {
        flex-direction: column;
    }

    .w-full-mobile {
        width: 100%;
    }

    .card-container {
        padding: 12px;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    .service-item {
        padding: 10px 0;
    }

    .info-icon-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .search-bar input {
        padding: 6px;
        font-size: 0.9rem;
    }

    .search-bar button {
        padding: 6px;
    }

    .close-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .custom-modal, .payment-modal {
        width: 95%;
        max-height: 90vh;
    }
}