/* Cart Dropdown Styles */
.cart-dropdown .dropdown-toggle {
    position: relative;
    color: #333;
    font-size: 1.25rem;
}

.cart-dropdown .cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-dropdown-menu {
    width: 300px;
    padding: 20px;
}

.cart-dropdown-menu .product {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.cart-dropdown-menu .product-image-container {
    width: 60px;
    margin-left: 15px;
}

.cart-dropdown-menu .product-image {
    max-width: 100%;
    height: auto;
}

.cart-dropdown-menu .btn-remove {
    position: absolute;
    top: 0;
    right: 0;
    color: #dc3545;
    background: none;
    border: none;
}

.dropdown-cart-total {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-weight: bold;
}

.dropdown-cart-action .btn {
    width: 100%;
}

.cart-dropdown-menu {
    width: 300px;
    padding: 0;
}

.cart-dropdown-toggle::after {
    display: none;
}

.cart-dropdown {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.cart-dropdown .cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

.cart-dropdown .dropdown-header {
    font-weight: bold;
    padding: 5px 15px;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
}

.cart-item {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: all 0.2s ease;
}

.cart-item:hover {
    background-color: #f9f9f9;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 13px;
    color: #950606;
    font-weight: bold;
}

.cart-item-remove {
    font-size: 12px;
    padding: 2px 8px;
    background-color: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    background-color: #dc3545;
    color: white;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 2px 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.cart-subtotal {
    font-weight: bold;
    color: #950606;
}

.wishlist-count, .cart-count {
    font-size: 10px;
    position: relative;
    top: -8px;
    right: -5px;
}

.cart-empty-message {
    text-align: center;
    padding: 20px 0;
    color: #777;
}

.cart-actions {
    padding: 10px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.cart-actions .btn {
    width: 100%;
    margin-bottom: 5px;
}

/* Animation for cart updates */
@keyframes cartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cart-update-animation {
    animation: cartBounce 0.3s ease;
}

/* Main Theme Styles */
.theme-navbar{
    background-color: #950606;
}

.theme-navbar-light{
    background-color: #fff2f2;
}

.theme-orange-btn{
    background-color: #950606;
}

.theme-orange-btn:hover{
    background-color: #950606;
    opacity: 0.8;
}

.theme-red-btn{
    background-color: #950606;
}

.theme-red-btn:hover{
    background-color: #950606;
    opacity: 0.8;
}

.theme-green-btn{
    background-color: #28A745;
}

.theme-green-btn:hover{
    background-color: #28A745;
    opacity: 0.8;
}

.theme-footer{
    background-color: #950606;
}

.theme-product img:hover{
    transform: scaleX(-1);
}

body {
    font-family: 'Lato', sans-serif;
}

.small-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1;
}

/* Footer Styles */
.theme-footer {
    background-color: #950606;
    padding: 2rem 0;
}

.theme-footer h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.theme-footer ul li {
    margin-bottom: 0.5rem;
}

.theme-footer a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.card-custom {
    background-color: #950606;
    color: white;
}

.theme-product {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 0 15px;
    scrollbar-width: none;
}

.theme-product::-webkit-scrollbar {
    display: none;
}

.theme-product .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
    padding: 0 15px;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#preloader img {
    width: 150px;
    height: auto;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#content {
    display: none;
}

/* Hero Section */
.hero-banner {
    position: relative;
}

.carousel-caption {
    bottom: 30%;
    text-align: left;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Product Cards */
.product-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card img {
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonials .card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Newsletter */
.newsletter {
    border-radius: 10px;
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-caption {
        bottom: 20%;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-caption .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Toast Notification Styles */
.toast {
    transition: opacity 0.3s ease;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Product Card Styles */
.product-actions .btn {
    transition: all 0.2s ease;
}

.product-actions .btn:hover {
    transform: translateY(-2px);
}

/* Wishlist Button */
.add-to-wishlist-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.add-to-wishlist-btn.active {
    color: #dc3545;
}

/* User dropdown styles */
.btn-outline-light {
    color: #950606;
    border-color: #950606;
}

.btn-outline-light:hover {
    color: #950606;
    background-color: #fff;
}

.dropdown-menu {
    min-width: 200px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none;
}

.dropdown-item {
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #950606;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 5px;
}

.dropdown-divider {
    margin: 5px 0;
    border-top: 1px solid #eee;
}

/* Additional user dropdown styles */
.dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: middle;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: #333;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #dc3545;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Kids sunglasses specific styles */
.kids-sunglasses-card {
    border: 2px solid #f8f9fa;
    transition: all 0.3s ease;
}

.kids-sunglasses-card:hover {
    border-color: #ff6b6b;
    transform: scale(1.03);
}

.sunglasses-image-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    text-align: center;
}

.sunglasses-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* Admin CSS Styles */
.nav-treeview {
    padding-left: 20px;
}

.nav-item > .nav-link {
    position: relative;
}

.nav-item > .nav-link > .right {
    position: absolute;
    right: 1rem;
    top: 0.7rem;
}

.badge.right {
    float: right;
    margin-top: 3px;
    margin-right: 10px;
}

.wishlist-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6rem;
}