/* Black Footer Theme */
.ps-footer {
    background-color: #000 !important;
    color: #ccc !important;
    border-top: 1px solid #111 !important;
}

/* Footer Headings */
.ps-footer h1, .ps-footer h2, .ps-footer h3,
.ps-footer h4, .ps-footer h5, .ps-footer h6, 
.ps-footer .widget-title {
    color: #fff !important;
}

/* Ensure all text is visible */
.ps-footer p, 
.ps-footer span, 
.ps-footer li, 
.ps-footer div, 
.ps-footer i {
    color: #ccc !important;
}

/* Exception: make sure the phone number (h3) is highly visible */
.ps-footer h3,
.ps-footer h3 a { 
    color: #fff !important; /* Force the bright white color */
}

/* Ensure links are visible */
.ps-footer a {
    color: #ccc !important;
    transition: all 0.3s ease !important;
}

/* Hover effect for links - use primary color and prevent black backgrounds */
.ps-footer a:hover, 
.ps-footer a:hover i,
.ps-footer a:hover span {
    color: var(--color-1st) !important;
    background-color: transparent !important;
}

/* Social icons specifically */
.ps-footer .ps-list--social li a {
    background-color: #222 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ps-footer .ps-list--social li a i {
    color: #fff !important;
}

.ps-footer .ps-list--social li a:hover {
    background-color: var(--color-1st) !important;
    color: #fff !important;
    border-color: var(--color-1st) !important;
}
.ps-footer .ps-list--social li a:hover i {
    color: #fff !important;
}

/* Copyright section border */
.ps-footer .ps-footer__copyright {
    border-top: 1px solid #222 !important;
    padding-top: 20px;
}

/* Back to Top Button Fix */
#back2top { background-color: var(--color-1st) !important; color: #fff !important; border: none !important; width: 40px; height: 40px; border-radius: 50%; display: flex !important; justify-content: center; align-items: center; z-index: 99999; }
#back2top i { color: #fff !important; font-size: 18px !important; }
#back2top:hover { opacity: 0.8; }

/* Header Search Button */
.ps-form--quick-search button {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

/* Header Cart/Wishlist Badges Hover Fix */
.header__extra:hover span i,
.header__extra:hover span {
    color: #000 !important;
}

/* Custom Category Dropdown - Replacing Native Select */
.form-group--icon .product-category-select {
    display: none !important; /* Hide native select completely */
}

.custom-category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px; /* Wider so product categories fit nicely */
    background: #fff;
    border: 1px solid #ddd;
    z-index: 99999;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
}

.custom-category-dropdown.active {
    display: block;
}

.custom-category-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-category-dropdown li {
    padding: 8px 15px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    line-height: 1.5; /* Reset line-height inherited from search bar */
    transition: background-color 0.2s, color 0.2s;
}

/* Make hover pitch black with white text */
.custom-category-dropdown li:hover {
    background-color: #000 !important;
    color: #fff !important;
}

/* Modernize Product Card Titles */
.ps-product .ps-product__title {
    color: #000 !important;
    font-weight: 600 !important;
    transition: color 0.3s ease;
}

.ps-product .ps-product__title:hover {
    color: var(--color-1st) !important; /* Keep a nice hover color, usually orange/primary */
}

/* Mobile & Tablet Product Badge Sizing Fix */
@media (max-width: 991px) {
    .ps-product .ps-product__badges {
        top: auto !important;
        bottom: 2px !important;
        left: auto !important;
        right: 5px !important;
    }
    .ps-product .ps-product__badge {
        padding: 4px 6px !important;
        font-size: 10px !important;
        min-width: auto !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
}
