/* Integration CSS for VNCC Website */

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    min-width: 20px;
}

/* Cart Dropdown */
.header__right__dropdown__wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 300px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.header__cart:hover .header__right__dropdown__wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__right__dropdown__inner {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.single__header__right__dropdown {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.single__header__right__dropdown:last-child {
    border-bottom: none;
}

.header__right__dropdown__img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.header__right__dropdown__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.header__right__dropdown__content {
    flex: 1;
}

.header__right__dropdown__content a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.header__right__dropdown__content p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

.header__right__dropdown__close {
    margin-left: 10px;
}

.header__right__dropdown__close a {
    color: #999;
    font-size: 16px;
}

.dropdown__price {
    text-align: center;
    font-weight: bold;
    color: #ff6b35;
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.header__right__dropdown__button {
    display: flex;
    gap: 10px;
}

.header__right__dropdown__button .theme-btn {
    flex: 1;
    text-align: center;
    padding: 8px 15px;
    font-size: 14px;
}

/* Product Cards Enhancement */
.dishes-card {
    position: relative;
    overflow: hidden;
}

.dishes-card .social-profile {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.dishes-card:hover .social-profile {
    opacity: 1;
    transform: translateX(0);
}

.social-profile .plus-btn {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.social-profile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-profile ul li {
    margin-bottom: 8px;
}

.social-profile ul li a {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #333;
    transition: all 0.3s ease;
}

.social-profile ul li a:hover {
    background: #ff6b35;
    color: white;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.warning {
    background: #ffc107;
    color: #333;
}

/* Search Enhancement */
.search-wrap {
    z-index: 9999;
}

.main-search-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 18px;
    background: transparent;
    color: white;
}

.main-search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .header__right__dropdown__wrapper {
        min-width: 280px;
        right: -50px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Product Image Fallback */
.item-thumb img,
.dishes-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Banner Image Enhancement */
.banner-thumb-area img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Footer Enhancement */
.footer-section .social-icon a {
    transition: all 0.3s ease;
}

.footer-section .social-icon a:hover {
    transform: translateY(-3px);
    color: #ff6b35;
}

/* Form Enhancements */
#newsletter-form .form-control input[type="email"] {
    border-radius: 25px 0 0 25px;
}

#newsletter-form .submit-btn {
    border-radius: 0 25px 25px 0;
    background: #ff6b35;
    border: none;
    color: white;
    padding: 0 20px;
    transition: all 0.3s ease;
}

#newsletter-form .submit-btn:hover {
    background: #e55a2b;
}

/* Quick View Modal Enhancement */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Animation Enhancements */
.wow {
    visibility: hidden;
}

.wow.animated {
    visibility: visible;
}

/* Custom Scrollbar */
.header__right__dropdown__inner::-webkit-scrollbar {
    width: 4px;
}

.header__right__dropdown__inner::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.header__right__dropdown__inner::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 2px;
}

.header__right__dropdown__inner::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}
