/* ========================================================================
   CUSTOM CSS - MARKETBOB THEME MODIFICATIONS
   ======================================================================== */

/* ------------------------------------------------------------------------
   Navigation Bar - Text Color Override
   ------------------------------------------------------------------------ */
/* Main navigation links - dark text color */
.nav-bar .link {
    color: #2d3436 !important;
}

/* Hover state - primary brand color */
.nav-bar .link:hover {
    color: var(--primary_color) !important;
}

/* ------------------------------------------------------------------------
   Cart Button - Style Match with Login Button
   ------------------------------------------------------------------------ */
/* Cart button outline style with primary color border */
.cart-btn .btn-outline-light {
    border-color: var(--primary_color);
    color: var(--primary_color);
    background-color: transparent;
}

/* Cart button hover/focus/active states */
.cart-btn .btn-outline-light:active,
.cart-btn .btn-outline-light:focus,
.cart-btn .btn-outline-light:hover {
    background-color: var(--primary_color);
    border-color: var(--primary_color);
    color: #fff;
}

/* ------------------------------------------------------------------------
   Desktop Mode - Navigation Dropdown (≥992px)
   ------------------------------------------------------------------------ */
@media (min-width: 992px) {
    /* Dropdown button white text on desktop */
    .nav-bar.nav-bar-sm .drop-down .drop-down-btn {
        color: #ffffff !important;
        transition: transform 0.2s ease;
    }

    /* Lift effect on hover */
    .nav-bar.nav-bar-sm .drop-down .drop-down-btn:hover {
        color: #ffffff !important;
        transform: translateY(-2px);
        transition: transform 0.2s ease;
    }
}

/* ------------------------------------------------------------------------
   Mobile/Tablet Mode - Navigation Dropdown (<992px)
   ------------------------------------------------------------------------ */
@media (max-width: 991px) {
    /* Dropdown button muted text on mobile */
    .nav-bar.nav-bar-sm .drop-down .drop-down-btn {
        color: var(--text_muted);
        transition: color 0.2s ease;
    }

    /* Primary color on hover for mobile */
    .nav-bar.nav-bar-sm .drop-down .drop-down-btn:hover {
        color: var(--primary_color);
        transition: color 0.2s ease;
    }
}

/* ------------------------------------------------------------------------
   Search Form Reverse - Placeholder & Icon Color
   ------------------------------------------------------------------------ */
/* Dark placeholder text */
.form-search.form-search-reverse .form-control::placeholder {
    color: #2d3436 !important;
}

/* Dark icon and button color */
.form-search.form-search-reverse button,
.form-search.form-search-reverse .icon {
    color: #2d3436 !important;
}

/* ------------------------------------------------------------------------
   Secondary Navigation Bar - Reduced Height
   ------------------------------------------------------------------------ */
/* Compact nav bar height */
.nav-bar.nav-bar-sm .nav-bar-container {
    height: 48px !important;
}

/* Search input height adjustment */
.form-search.form-search-reverse .form-control {
    height: 39px !important;
    border: 1px solid var(--primary_color) !important;
}

/* Search input focus state with primary color */
.form-search.form-search-reverse .form-control:focus {
    border-color: var(--primary_color) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 116, 190, 0.15) !important;
}

/* ------------------------------------------------------------------------
   Navigation Dropdown - Default Text Color
   ------------------------------------------------------------------------ */
/* Dropdown button dark text */
.nav-bar .drop-down .drop-down-btn {
    color: #2d3436 !important;
}

/* Maintain dark text on hover */
.nav-bar .drop-down .drop-down-btn:hover {
    color: #2d3436 !important;
}

/* ------------------------------------------------------------------------
   Screenshot Swiper Thumbnails - 4:3 Aspect Ratio
   ------------------------------------------------------------------------ */
/* Thumbnail container with fixed dimensions */
.itemSwiper .swiper-slide {
    position: relative;
    width: 104px !important;
    height: 78px !important;
    overflow: hidden;
    border-radius: 8px;
}

/* Absolute positioning for image wrapper */
.itemSwiper .swiper-slide .item-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Cover image with centered crop */
.itemSwiper .swiper-slide .item-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

/* ------------------------------------------------------------------------
   Item Image - Listing Pages (Search, Category, Browse)
   ------------------------------------------------------------------------ */
/* Fixed dimensions for item preview images - 4:3 ratio */
.item-img {
    width: 368px !important;
    height: 276px !important;
    min-width: 368px;
    flex-shrink: 1;
}

/* Cover fit for item images */
.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive: Flexible width on mobile devices */
@media (max-width: 768px) {
    .item-img {
        width: 100% !important;
        min-width: 368px;
        max-width: 100%;
    }
}

/* ------------------------------------------------------------------------
   Navigation Menu Button - Color Adjustments
   ------------------------------------------------------------------------ */
/* Menu button primary color on main nav */
.nav-bar .nav-bar-menu-btn {
    color: var(--primary_color);
}

/* Menu button muted color on secondary nav */
.nav-bar.nav-bar-sm .nav-bar-menu-btn {
    color: var(--text_muted);
}

/* ========================================================================
   END OF CUSTOM CSS
   ======================================================================== */