.shipping-blurb{
      color: #1dbe98 !important;
}

/* Search Suggestions - Brand Product Grid Styling */

.brand-product-suggestion {
    width: 100% !important;
    margin: 2px 0 !important;
}

/* Container for multiple brand products in a grid */
.brand-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 5px 0;
}

.brand-product-grid {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    gap: 10px;
    min-height: 70px;
}

.brand-product-grid:hover {
    background: #f8f9fa;
    border-color: #a37e2c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

.brand-product-grid .product-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dee2e6;
}

.brand-product-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-product-grid .product-info {
    flex: 1;
    min-width: 0;
}

.brand-product-grid .product-name {
    font-weight: 600;
    font-size: 13px;
    color: #212529;
    margin-bottom: 3px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.brand-product-grid .product-model {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.brand-product-grid .product-price {
    font-weight: 700;
    font-size: 13px;
    color: #28a745;
    text-align: left;
}

/* Featured Products Section Header */
.search-suggestion-wrapper .brand-products-section {
    position: relative;
    margin: 8px 0;
}

.brand-products-section::before {
    content: "Featured Products";
    display: block;
    font-weight: 600;
    font-size: 11px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    background: transparent;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
    text-align: left;
}

/* Smooth transitions for search dropdown */
.search-suggestion-wrapper {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Overlay behind search dropdown - below header menu - override header.php */
.search-form-wrapper .overlay,
#page-header .search-form-wrapper .overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: 100 !important;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.search-form-wrapper .overlay.active,
#page-header .search-form-wrapper .overlay.active {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    top: 200px !important;
}

/* Ensure dropdown is above overlay - override header.php inline styles */
.search-suggestion-wrapper,
#page-header .search-suggestion-wrapper,
#page-header .search-form-wrapper .search-suggestion-wrapper {
    z-index: 999 !important;
}

/* Simple dropdown appearance - no shadows or rounded corners */
#page-header .search-form-wrapper .search-suggestion-wrapper {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
}

/* Mobile: Full width dropdown */
@media screen and (max-width: 639px) {
    #page-header .search-form-wrapper .search-suggestion-wrapper {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        margin-left: calc(-50vw + 50%) !important;
    }
}

/* Remove background styling and shadows from search suggestion items */
.search-suggestion-wrapper .a-search-suggestion {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 8px 12px !important;
    margin: 0 !important;
}

.search-suggestion-wrapper .a-search-suggestion:hover {
    background: #f5f5f5 !important;
}

.search-suggestion-wrapper .a-search-suggestion a {
    color: #000 !important;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Visited link styling - keep black */
.search-suggestion-wrapper .a-search-suggestion a:visited {
    color: #000 !important;
}

.search-suggestion-wrapper .a-search-suggestion .slabel {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    color: #000;
    font-size: 0.85rem;
}

/* Product name styling - bolder and smaller */
.search-suggestion-wrapper .product-name {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: #000 !important;
    line-height: 1.3;
}

/* Model number styling */
.search-suggestion-wrapper .product-model {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.8rem !important;
    color: #000 !important;
    font-weight: 400;
    margin-top: 2px;
}

/* Regular price styling */
.search-suggestion-wrapper .product-price {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.85rem !important;
    color: #000 !important;
    font-weight: 500;
}

/* Sale price styling - red */
.search-suggestion-wrapper .product-price.sale-price,
.search-suggestion-wrapper .product-price .sale-price {
    color: #B12704 !important;
    font-weight: 600;
}

/* Close button for mobile search only */
.suggestions-close-button {
    display: none !important; /* Hide by default on desktop */
    background: white !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #e0e0e0 !important;
    justify-content: flex-end !important;
}

/* Show close button only on mobile */
@media (max-width: 640px) {
    .suggestions-close-button {
        display: flex !important;
    }
}

.suggestions-close-button .close-button {
    background: #f5f5f5 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.suggestions-close-button .close-button:hover {
    background: #e0e0e0 !important;
}

.suggestions-close-button .close-button i {
    font-size: 1.25rem !important;
    color: #333 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-products-container {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 6px;
    }

    .brand-product-grid {
        padding: 8px;
        gap: 8px;
        min-height: 60px;
    }

    .brand-product-grid .product-image {
        width: 45px;
        height: 45px;
    }

    .brand-product-grid .product-name {
        font-size: 12px;
        /* Allow wrapping on mobile to show full product names */
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.4;
        /* Limit to 3 lines max */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .brand-product-grid .product-model {
        font-size: 10px;
    }

    .brand-product-grid .product-price {
        font-size: 12px;
    }
}

/* Ensure proper spacing in search dropdown */
.search-suggestion-wrapper .brand-products-container {
    margin: 0;
    border-radius: 0 0 6px 6px;
}

/* Mobile: Better layout for popular brands */
@media screen and (max-width: 639px) {
    .shop-by-brand-wrapper .shop-by-brand {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }
    
    .shop-by-brand-wrapper .shop-by-brand a.brand {
        width: 100% !important;
        flex: none !important;
        padding: 1rem 0.5rem !important;
    }
    
    .shop-by-brand-wrapper .shop-by-brand a.brand img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .shop-by-brand-wrapper .section-title {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Header Flexbox Layout */
#page-header {
    width: 100%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

#page-header.scrolled {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#page-header .main-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.5rem 2rem;
    width: 100%;
}

/* Desktop Header Layout */
@media screen and (min-width: 640px) {
    #page-header .header-hamburger {
        display: none;
    }
    
    #page-header .logo-wrapper {
        flex: 0 0 auto;
        margin-right: 1rem;
    }
    
    #page-header .logo-mobile {
        display: none;
    }
    
    #page-header .logo-full {
        display: block;
    }
    
    .mobile-menu-close {
        display: none !important;
    }
    
    .main-menu-link-wrapper {
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    #page-header .search-form-wrapper {
        flex: 1 1 auto;
        max-width: 800px;
        margin: 0 auto;
    }
    
    #page-header .header-phone {
        margin-left: auto;
    }
    
    #page-header .search {
        display: flex;
        align-items: center;
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        width: 100%;
    }
    
    #page-header .search-input {
        flex: 1;
        width: 100%;
        padding: 0.5rem 3rem 0.5rem 1rem;
    }
    
    #page-header .search-button {
        position: absolute;
        right: 0;
        padding: 0.5rem 1rem;
    }
    
    #page-header .header-phone,
    #page-header .header-contractor {
        flex: 0 0 auto;
        margin: 0 0.5rem;
    }
    
    #page-header .header-cart {
        flex: 0 0 auto;
        margin-left: 0.5rem;
    }
    
    #page-header .cart-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem;
        text-decoration: none;
    }
    
    #page-header .cart-link i {
        font-size: 1.7rem;
        color: #242422;
    }
}

/* Mobile Header Layout */
@media screen and (max-width: 639px) {
    #page-header .main-wrapper {
        padding: 0.5rem 0.25rem;
    }
    
    #page-header .header-hamburger {
        order: 1;
        flex: 0 0 auto;
        padding: 0 0.5rem;
    }
    
    #page-header .logo-wrapper {
        order: 2;
        flex: 1 1 auto;
        padding: 0;
        margin-left: 2rem;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #page-header .logo-full {
        display: none;
    }
    
    #page-header .logo-mobile {
        display: block;
        height: 50px;
        width: auto;
    }
    
    #page-header .mobile-icons-wrapper {
        order: 3;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex: 0 0 auto;
        padding: 0 0.5rem 0 0;
    }
    
    #page-header .mobile-icons-wrapper a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.4rem;
        font-size: 1.4rem;
        color: #242422;
        text-decoration: none;
    }
    
    #page-header .mobile-cart-icon i {
        font-size: 1.6rem;
    }
    
    #page-header .search-form-wrapper {
        order: 4;
        flex: 1 1 100%;
        width: 100%;
        margin-top: 0.5rem;
        padding: 0 !important;
    }
    
    #page-header .search {
        display: flex;
        align-items: center;
        position: relative;
        width: 100%;
        border-radius: 8px;
        overflow: hidden;
    }
    
    #page-header .search-input {
        flex: 1;
        width: 100%;
        padding: 0.5rem 3rem 0.5rem 1rem;
        border-radius: 8px;
    }
    
    #page-header .search-button {
        position: absolute;
        right: 0;
        padding: 0.5rem 1rem;
    }
}

/* Hide duplicate products outside Slick slider in Recently Viewed */
.recently-viewed-carousel.slick-initialized > .simple-snapshot {
    display: none !important;
}

/* Mobile Menu Toggle */
@media screen and (max-width: 639px) {
    .main-menu-link-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .main-menu-link-wrapper.is-open {
        left: 0;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #333;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 10000;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.2s ease;
    }
    
    .mobile-menu-close:hover {
        background: #f0f0f0;
    }
    
    .main-menu-link-wrapper .main-menu {
        display: flex;
        flex-direction: column;
        padding: 1rem;
    }
    
    .main-menu-link-wrapper .main-menu a {
        padding: 1rem;
        border-bottom: 1px solid #eee;
        text-align: left !important;
    }
    
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }
    
    .menu-icon.is-active::after {
        background: #3b7ddd;
    }
}

/* ================================
   Homepage Deals & Promotions Slider
   ================================ */

.promo-product-slider {
    margin: 2rem 0;
}

.promo-product-slider .title {
    font-weight: 500;
    font-size: 1.4rem;
    color: #000;
    margin: 0 0 1.5rem;
}

/* Remove extra slide padding just for this component */
.promo-product-slider .slick-slide {
    padding: 0 !important;
}

/* Neutralize Foundation .cell float inside slick */
.promo-product-slider .slick-slide.cell {
    float: none;
}

/* Card layout and spacing */
.promo-product-slider .product-card.promotion-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;   /* content from the top */
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    margin: 0;
    background: #ffffff;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Image link wrapper: remove inline text line box */
.promo-product-slider .product-card.promotion-card > a {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;                /* removes extra space above/below img */
}

/* Image: top-aligned, consistent width, correct proportions */
.promo-product-slider .product-card .product-image {
    display: block;
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin: 0 0 0.75rem;
    margin-left: auto;
    margin-right: auto;
}

/* Info block */
.promo-product-slider .product-card .product-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Product name */
.promo-product-slider .product-card .product-name {
    margin: 0;
}

.promo-product-slider .product-card .product-name a {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: block;
    color: #000;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.promo-product-slider .product-card .product-name a:hover {
    text-decoration: underline;
}

/* Subheading under name */
.promo-product-slider .product-card .promotion-subheading {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0 0.9rem;
}

/* Shop Now button */
.promo-product-slider .product-card .button.small {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    padding: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    text-align: center;
    background-color: #a37e2c;
    border: 1px solid #8b6a26;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.promo-product-slider .product-card .button.small:hover {
    background-color: #8b6a26;
    border-color: #755820;
    color: #ffffff;
    text-decoration: none;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .promo-product-slider .product-card.promotion-card {
        padding: 0.75rem;
    }

    .promo-product-slider .product-card .product-image {
        max-width: 200px;
    }
}

.home-page .button-links .pill {
    font-weight: 600;
}