/* Custom styles for the new header design */

/* General header styles */
#mainHeaderRow {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Logo styles */
#headerLogo {
    max-height: 60px;
}

/* Navigation menu styles */
.mainHeaderLink a {
    color: #333;
    font-size: 18px;
    padding: 8px 0;
    transition: color 0.3s;
}

/* Button styles */
.btn-secondary {
    background-color: #f2f2f2;
    color: #333;
    border: 1px solid #ddd;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Dropdown menu styles */
.dropdown-menu {
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #fff;
}

/* Standard dropdown menu styles (for Access Free Services and More) */
.dropdown-menu:not(.products-mega-menu) {
    padding: 15px;
}

.dropdown-menu:not(.products-mega-menu) .dropdown-item {
    padding: 10px 15px;
}

.dropdown-menu:not(.products-mega-menu) .dropdown-divider {
    margin: 0;
}

/* Products mega menu styles */
.products-mega-menu {
    width: 800px;
    padding: 15px;
    padding-right: 35px;
}

/* Force flex layout */
.mega-menu-container {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.row.no-gutters.d-flex {
    display: flex !important;
    flex-direction: row !important;
}

.product-categories {
    padding: 15px;
}

.product-item {
    padding: 15px 0;
}

.product-icon {
    margin-right: 15px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-all-link {
    padding: 15px 0;
    margin-left: 55px;
}

.special-offers {
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #000;
    border-radius: 5px;
    margin: 15px;
    margin-right: 25px;
}

.special-offer-item {
    margin-bottom: 15px;
    padding: 5px 0;
}

.view-all-bundles {
    margin-top: 15px;
}

/* Search icon styles */
.search-icon {
    cursor: pointer;
}

/* Cart wiggle animation */
@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

.cart-wiggle {
    animation: wiggle 0.5s ease-in-out;
}

/* Custom breakpoint for Login/Cart button text visibility */
@media (max-width: 1400px) {
    #loginDropdownButton .d-none.d-lg-inline,
    #cartButton .d-none.d-lg-inline {
        display: none !important;
    }
}

@media (min-width: 1401px) {
    #loginDropdownButton .d-none.d-lg-inline,
    #cartButton .d-none.d-lg-inline {
        display: inline !important;
    }
}

/* Reduce logo section whitespace at medium widths */
@media (max-width: 1250px) {
    #headerLogo {
        min-width: 300px !important; /* Reduce from 390px */
    }
    
    #headerSmallLogo {
        min-width: 150px !important; /* Reduce from 175px */
        max-width: 180px !important; /* Reduce from 200px */
    }
    
    /* Reduce padding/margin around logo container */
    .stretched-link-container {
        margin-right: 10px !important;
    }
}

/* Responsive adjustments */
@media (max-width: 1400px) and (min-width: 993px) {
    .mainHeaderLink a {
        font-size: 14px; /* Slightly smaller for this range */
        padding: 8px 5px; /* Reduced horizontal padding */
    }
    #headerLogo {
        max-height: 45px; /* 25% reduction from 60px */
        margin-right: 10px; /* Reduced margin */
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    .mainHeaderLink a {
        font-size: 13px; /* Even smaller for this range */
        padding: 8px 3px; /* Further reduced horizontal padding */
    }
    #headerLogo {
        max-height: 40px; /* Further reduction */
        margin-right: 5px; /* Further reduced margin */
    }
}

@media (max-width: 992px) {
    .mainHeaderLink a {
        font-size: 12px;
        padding: 8px 2px; /* Even smaller horizontal padding */
    }
    
    #headerLogo {
        max-height: 37.5px; /* 25% reduction from 50px */
        margin-right: 0px; /* Remove margin */
    }
}
