/* Main Container */
.ordering-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.ordering-container h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Payment Methods Section */
.payment-methods {
    margin-bottom: 4rem;
}

.payment-methods h2 {
    color: #444;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.payment-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.payment-card h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.payment-card p {
    color: #666;
}

.payment-details {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.payment-details p {
    margin: 8px 0;
    font-size: 16px;
    color: #333;
}

.payment-details span {
    font-weight: 600;
    color: #0070ba;
}

.paypal-note {
    margin-bottom: 15px;
    color: #666;
    font-style: italic;
}

.paypal-button-container {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.paypal-button-container .paypal-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    min-height: 55px;
}

.payment-card:hover .paypal-button-container {
    border-color: #0070ba;
    box-shadow: 0 4px 8px rgba(0, 112, 186, 0.2);
}

/* Ordering Process Section */
.ordering-process {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 4rem;
}

.ordering-process h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.step p {
    color: #666;
}

/* FAQ Section */
.faq {
    margin-bottom: 4rem;
}

.faq h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ordering-container {
        padding: 1rem;
    }

    .payment-grid,
    .process-steps,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .ordering-process {
        padding: 2rem 1rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }
}

/* Animation for step numbers */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.step-number:hover {
    animation: pulse 1s infinite;
    cursor: pointer;
}

.credit-card-form {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.pay-button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pay-button:hover {
    background-color: #0056b3;
}

/* Card number formatting */
#card-number {
    letter-spacing: 1px;
}

/* Expiry date formatting */
#expiry-date {
    text-align: center;
}

/* CVV formatting */
#cvv {
    text-align: center;
}

/* Responsive adjustments for PayPal button */
@media (max-width: 768px) {
    .paypal-button-container {
        padding: 10px;
    }
    
    .paypal-button-container .paypal-button {
        max-width: 100%;
    }
}

/* Cart Icon Styles */
.cart-container {
    position: relative;
    margin-left: 20px;
    z-index: 1000;
    transform: scale(0.6);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 1px 4px;
    font-size: 10px;
    font-weight: bold;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Dropdown Styles */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    margin-top: 10px;
}

.cart-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.cart-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close-cart {
    cursor: pointer;
    font-size: 24px;
    color: #666;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: #ff4444;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.remove-item {
    color: #ff4444;
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: #cc0000;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.cart-item-quantity button {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cart-item-quantity button:hover {
    background: #f0f0f0;
    border-color: #007bff;
}

.cart-item-quantity span {
    min-width: 20px;
    text-align: center;
}

.cart-summary {
    padding: 15px;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    background: white;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.checkout-btn:hover {
    background-color: #0056b3;
}

/* Empty cart message */
.empty-cart {
    text-align: center;
    padding: 30px;
    color: #666;
}

.empty-cart::before {
    content: "🛒";
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

/* Animation for adding items */
@keyframes addToCart {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-count {
    animation: addToCart 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-dropdown {
        width: 100%;
        right: -20px;
    }
    
    .cart-item {
        padding: 10px;
    }
    
    .cart-item img {
        width: 50px;
        height: 50px;
    }
} 