/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #ffc107, #ffd700);
    color: #1a472a;
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.5s ease;
}
.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.announcement-content i {
    animation: pulse 2s infinite;
}
.announcement-link {
    color: #1a472a;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 15px;
    background: rgba(26, 71, 42, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}
.announcement-link:hover {
    background: rgba(26, 71, 42, 0.2);
    transform: translateX(5px);
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Top Banner Styles */
.top-banner {
    background: linear-gradient(135deg, #1a472a, #2d6a4f);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}
.top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffc107, #28a745, #ffc107);
}
.top-banner a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}
.top-banner a:hover {
    color: #ffc107;
    transform: translateY(-2px);
}
.top-banner i {
    color: #ffc107;
}
.expert-support {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.expert-support:hover {
    background: rgba(255,255,255,0.2);
}
.expert-support i {
    color: #ffc107;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Navbar Styles */
.navbar {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a472a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
}
.navbar-logo:hover {
    transform: scale(1.05);
}
.navbar-brand i {
    color: #ffc107;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}
.nav-link {
    color: #1a472a;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover {
    color: #ffc107;
}
.nav-link:hover::after {
    width: 100%;
}
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
}
.dropdown-item {
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.dropdown-item:hover {
    background: #f8f9fa;
    color: #ffc107;
    transform: translateX(5px);
}
.nav-icon {
    color: #1a472a;
    font-size: 1.2rem;
    position: relative;
    transition: all 0.3s ease;
}
.nav-icon:hover {
    color: #ffc107;
    transform: translateY(-2px);
}
.nav-icon .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 5px 8px;
    font-size: 0.7rem;
}

/* Circular Categories */
.circular-categories {
    margin: 40px 0;
    text-align: center;
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 0;
}
.category-circle {
    display: inline-block;
    margin: 0 10px;
    text-align: center;
    width: 100px;
    vertical-align: top;
}
.category-circle img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ffc107;
    padding: 2px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ffc107, #28a745);
    background-clip: padding-box;
}
.category-circle:hover img {
    transform: scale(1.1);
    border-color: #28a745;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.3);
}
.category-circle h5 {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #333;
    white-space: normal;
    line-height: 1.2;
    height: 2.4em;
    overflow: hidden;
}
.category-circle a {
    text-decoration: none;
    color: inherit;
}
.category-circle a:hover {
    color: #28a745;
}
.circular-categories::-webkit-scrollbar {
    height: 5px;
}
.circular-categories::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.circular-categories::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 5px;
}
.circular-categories::-webkit-scrollbar-thumb:hover {
    background: #20c997;
}

/* Search Bar */
.search-form {
    min-width: 250px;
}
.search-form .input-group {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 25px;
    overflow: hidden;
}
.search-form .form-control {
    border: none;
    padding: 8px 15px;
}
.search-form .form-control:focus {
    box-shadow: none;
}
.search-form .btn {
    border: none;
    padding: 8px 20px;
}

/* Cart Preview Dropdown */
.cart-preview {
    min-width: 320px;
    max-width: 400px;
    padding: 0;
    border: none;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    border-radius: 10px;
    margin-top: 15px;
}
.cart-preview-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
}
.cart-preview-header h6 {
    margin: 0;
    font-weight: 600;
}
.cart-preview-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}
.cart-preview-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}
.cart-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}
.cart-item-details {
    flex: 1;
}
.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.cart-item-price {
    color: #28a745;
    font-weight: bold;
}

/* User Dropdown */
.user-dropdown .dropdown-menu {
    min-width: 220px;
    padding: 10px;
    margin-top: 15px;
}
.user-dropdown .dropdown-item {
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.user-dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: #28a745;
    transform: translateX(5px);
}
.user-dropdown .dropdown-item i {
    width: 20px;
    color: #28a745;
}
.user-dropdown .dropdown-item.text-danger:hover {
    background: #ffe6e6;
    color: #dc3545;
}
.user-dropdown .dropdown-item.text-danger i {
    color: #dc3545;
}

/* Mega Menu Styles */
.mega-dropdown {
    position: static;
}
.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 30px 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 0;
    margin-top: 0;
    animation: fadeInDown 0.3s ease;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.mega-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffc107;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-links li {
    margin-bottom: 8px;
}
.mega-links a {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.mega-links a:hover {
    background: #f8f9fa;
    color: #28a745;
    transform: translateX(5px);
    padding-left: 15px;
}
.mega-links a i {
    color: #ffc107;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}
.mega-links a:hover i {
    color: #28a745;
    transform: translateX(3px);
}

/* Mega Menu Promo Box */
.mega-promo {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}
.mega-promo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}
.mega-promo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.promo-badge {
    display: inline-block;
    background: #ffc107;
    color: #1a472a;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}
.mega-promo h5 {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 15px 0 10px;
    position: relative;
    z-index: 1;
}
.mega-promo p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}
.mega-promo .btn {
    background: white;
    color: #28a745;
    font-weight: 600;
    border: none;
    padding: 8px 25px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}
.mega-promo .btn:hover {
    background: #ffc107;
    color: #1a472a;
    transform: scale(1.05);
}

/* Responsive Mega Menu */
@media (max-width: 991px) {
    .mega-menu {
        position: relative;
        width: 100%;
        padding: 15px;
    }
    .mega-menu .col-md-3 {
        margin-bottom: 20px;
    }
    .mega-promo {
        margin-top: 10px;
    }
}
