/* Mega Dropdown Styling */
.mega-dropdown {
    /*min-width: 400px; UNHIDE THIS WHEN THERE ARE 2 COLS */
    padding: 0;
}
.mega-dropdown .dropdown-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    margin: 0;
    font-weight: 600;
    color: #495057;
}

.mega-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

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

.mega-dropdown .dropdown-divider {
    margin: 0.5rem 0;
}

/* Search bar improvements */
.navbar .input-group {
    border-radius: 0.375rem;
    overflow: hidden;
}

.navbar .input-group .form-select {
    border-radius: 0.375rem 0 0 0.375rem;
    border-right: none;
}

.navbar .input-group .form-control {
    border-left: none;
    border-right: none;
}

.navbar .input-group .btn {
    border-radius: 0 0.375rem 0.375rem 0;
}

/* Cart badge */
.navbar .badge {
    font-size: 0.7rem;
    min-width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Account dropdown button styling */
.navbar .btn-outline-light.dropdown-toggle {
    white-space: nowrap;
    /*min-width: 140px;*/
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .btn-outline-light.dropdown-toggle .d-flex {
    line-height: 1.2;
    flex-shrink: 0;
}

.navbar .btn-outline-light.dropdown-toggle small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.navbar .btn-outline-light.dropdown-toggle strong {
    font-size: 0.9rem;
}

.navbar .btn-outline-light.dropdown-toggle::after {
    flex-shrink: 0;
    margin-left: auto;
}

/* Responsive improvements */
@media (max-width: 991.98px) {
    .mega-dropdown {
        min-width: 300px;
    }

    .navbar .input-group {
        margin: 0.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .mega-dropdown {
        min-width: 280px;
    }

    .mega-dropdown .row {
        flex-direction: column;
    }

    .mega-dropdown .col-6 {
        width: 100%;
        max-width: 100%;
    }
}


/* **********************
 * QUILL OVERRIDES 
 * **********************
*/


/* icon stroke and fills */
.my-quill-editor .ql-toolbar .ql-stroke {
    stroke: #ffffff !important;
}

/* lines */
.my-quill-editor .ql-toolbar .ql-fill {
    fill: #ffffff !important;
}

/* solids */
/* dropdown text / caret */
.my-quill-editor .ql-toolbar .ql-picker {
    color: #000000 !important;
}

.my-quill-editor .ql-toolbar .ql-picker-label::before {
    color: #ffffff !important;
}

/* NAVIGATION */
.secondary-nav .nav-link {
    position: relative;
    display: inline-block; /* IMPORTANT: keeps underline inside the link */
    padding-bottom: .35rem; /* space so underline doesn't collide with text */
    text-decoration: none;
}

.secondary-nav .nav-link:not(.dropdown-toggle)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0; /* stretch exactly to the width of the link */
    bottom: .125rem; /* inside the link box */
    height: 3px;
    transform-origin: center; /* change to 'left' for left->right animation */
    transform: scaleX(0);
    transition: transform 220ms ease;
    background-color: currentColor;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1; /* sit above any faint background lines */
}

/* Reveal underline on hover or when active (no width changes, only transform) */
.secondary-nav .nav-link:not(.dropdown-toggle):hover::after,
.secondary-nav .nav-link.active:not(.dropdown-toggle)::after {
    transform: scaleX(1);
}

/* Highlight nav-link text on hover/active */
.secondary-nav .nav-link.active:not(.dropdown-toggle),
.secondary-nav .nav-link:not(.dropdown-toggle):hover {
    color: #0d6efd; /* Bootstrap primary blue */
    font-weight: 600; /* make text bolder */
}
/* Enhanced Header Styling */
.main-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 255, 136, 0.3));
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text-main {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.brand-text-sub {
    color: #00ff88;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .brand-text-main {
        font-size: 1rem;
    }
    .brand-text-sub {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .main-header .container-fluid {
        flex-direction: column;
        gap: 1rem;
    }
    .d-flex.align-items-center {
        width: 100%;
        justify-content: space-around;
    }
}