/* Shopping Cart Styles */
.cart-button {
    position: fixed;
    bottom: 20px;
    right: 90px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 999;
}

.cart-button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

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

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

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.cart-item-info p {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-actions button {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-actions button:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.cart-item-actions .remove-btn {
    margin-left: auto;
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.cart-item-actions .remove-btn:hover {
    background: var(--danger-color);
    color: white;
}

.cart-item-actions span {
    padding: 0 0.5rem;
    font-weight: 600;
}

.cart-offers {
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
    margin: 1rem 0;
}

.cart-offers strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.cart-offer {
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    margin-top: 0.5rem;
    color: var(--success-color);
    font-weight: 600;
}

.cart-summary {
    padding: 1rem 0;
    border-top: 2px solid var(--border-color);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.cart-summary-row.discount {
    color: var(--success-color);
}

.cart-summary-row.total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.cart-total {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-dark);
}

/* Checkout Modal */
.checkout-modal-content {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.checkout-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.checkout-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.checkout-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.checkout-subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

.checkout-form {
    padding: 2rem;
}

.logged-in-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.logged-in-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.logged-in-content {
    flex: 1;
}

.logged-in-info strong {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.logged-in-info small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.checkout-form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.section-icon {
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.label-icon {
    font-size: 1.125rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.order-summary-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--primary-color);
}

.checkout-items {
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.checkout-items h3 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.checkout-item:hover {
    background: var(--bg-light);
    margin: 0 -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    border-radius: 8px;
}

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

.checkout-item span:first-child {
    color: var(--text-dark);
    font-weight: 500;
    flex: 1;
}

.checkout-item span:last-child {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.0625rem;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.total-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.total-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.checkout-security-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.security-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--bg-light);
}

.form-actions .btn {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit-inquiry {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-submit-inquiry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.form-actions .btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.form-actions .btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-modal-content {
        max-width: 100%;
        margin: 10px;
    }

    .checkout-header {
        padding: 2rem 1.5rem;
    }

    .checkout-header h2 {
        font-size: 1.5rem;
    }

    .checkout-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .checkout-form-section {
        padding: 1.25rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* Add to Cart Button */
.add-to-cart-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions .view-details {
    flex: 1;
}

.add-to-cart-btn {
    flex: 1;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Save Cart Section */
.save-cart-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.save-for-later-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-for-later-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-button {
        right: 20px;
        bottom: 90px;
        width: 56px;
        height: 56px;
    }

    .cart-header {
        padding: 1rem;
    }

    .cart-header h2 {
        font-size: 1.125rem;
    }

    .cart-close {
        font-size: 1.75rem;
        width: 28px;
        height: 28px;
    }

    .cart-items {
        padding: 1rem;
    }

    .cart-item {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .cart-item img {
        width: 70px;
        height: 70px;
    }

    .cart-item-info h4 {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .cart-item-info p {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .cart-item-actions {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .cart-item-actions button {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    .cart-item-actions .remove-btn {
        margin-left: 0;
        width: 100%;
        margin-top: 0.5rem;
    }

    .cart-item-actions span {
        padding: 0 0.25rem;
        font-size: 0.875rem;
    }

    .cart-summary {
        padding: 0.75rem 0;
    }

    .cart-summary-row {
        padding: 0.375rem 0;
        font-size: 0.9375rem;
    }

    .cart-summary-row.total {
        font-size: 1rem;
        padding-top: 0.75rem;
    }

    .cart-footer {
        padding: 1rem;
    }

    .cart-total {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .cart-footer .btn {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

    .cart-offers {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }

    .cart-offers strong {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }

    .cart-offer {
        padding: 0.375rem;
        font-size: 0.875rem;
        margin-top: 0.375rem;
    }

    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cart-button {
        right: 15px;
        bottom: 80px;
        width: 50px;
        height: 50px;
    }

    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        top: -3px;
        right: -3px;
    }

    .cart-header {
        padding: 0.875rem;
    }

    .cart-header h2 {
        font-size: 1rem;
    }

    .cart-items {
        padding: 0.875rem;
    }

    .cart-item {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .cart-item img {
        width: 60px;
        height: 60px;
    }

    .cart-item-info h4 {
        font-size: 0.8125rem;
    }

    .cart-item-info p {
        font-size: 0.8125rem;
    }

    .cart-footer {
        padding: 0.875rem;
    }

    .cart-total {
        font-size: 1rem;
    }
}

