/* Product Search Section Styles */

.product-search-section {
    padding: 60px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.product-search-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.product-search-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #232f3e;
    margin-bottom: 10px;
}

.product-search-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.product-search-input-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Enhancements for the search input in this specific section */
.product-search-input-wrapper .search-input {
    padding: 15px 70px 15px 30px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.product-search-input-wrapper .search-btn {
    width: 50px;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background-color: #84C44C;
    /* Green to stand out */
}

.product-search-input-wrapper .search-btn:hover {
    background-color: #232f3e;
}


/* Ink and Toner Section Styles */
.ink-toner-section {
    padding-bottom: 80px;
    background-color: #f8f9fa;
    /* Light background for contrast with white cards */
}

.ink-toner-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.ink-finder-box,
.ink-keyword-box {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft premium shadow */
    border: none;
    transition: transform 0.3s ease;
}

.ink-finder-box:hover,
.ink-keyword-box:hover {
    transform: translateY(-5px);
}

.ink-finder-box h3,
.ink-keyword-box h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
}

.ink-keyword-box p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Custom Select & Inputs matching Auth Form style */
.custom-select,
.keyword-input {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background-color: #fff;
    padding: 0 15px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    appearance: none;
    /* Remove default arrow for custom styling if needed, but simple is okay for now */
    /* Re-adding default arrow for select since appearance:none kills it */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.keyword-input {
    background-image: none;
    /* No arrow for text input */
}

.custom-select:focus,
.keyword-input:focus {
    outline: none;
    border-color: #00a8e8;
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 232, 0.25);
}

.clear-search-link {
    display: inline-block;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.clear-search-link:hover {
    color: #00a8e8;
    text-decoration: underline;
}

.keyword-search-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

.keyword-search-btn {
    width: 55px;
    height: 50px;
    background: linear-gradient(135deg, #0056b3, #00a8e8);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.keyword-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.2);
    background: linear-gradient(135deg, #004494, #008ecc);
}

.ink-keyword-box hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

.browse-link-wrapper {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f1f1;
}

.browse-link {
    font-size: 15px;
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.browse-link:hover {
    color: #00a8e8;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ink-toner-wrapper {
        flex-direction: column;
    }

    .ink-finder-box,
    .ink-keyword-box {
        width: 100%;
        max-width: none;
    }
}
/* ─── Live Search Autocomplete Dropdown ────────────────────────────── */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e5e5;
    max-height: 460px;
    overflow-y: auto;
    z-index: 100001 !important;
}

.search-suggestions .ss-item,
.search-suggestions .ss-all {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #222;
    transition: background 0.15s ease;
}

.search-suggestions .ss-item:hover,
.search-suggestions .ss-item.active {
    background: #f4f9fd;
}

.search-suggestions .ss-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    padding: 2px;
}

.search-suggestions .ss-info {
    flex: 1;
    min-width: 0;
}

.search-suggestions .ss-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #222;
}

.search-suggestions .ss-meta {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestions .ss-sku {
    font-weight: 600;
    color: #555;
}

.search-suggestions .ss-cat {
    color: #888;
}

.search-suggestions .ss-price {
    font-size: 13px;
    font-weight: 600;
    color: #00afef;
    flex-shrink: 0;
    margin-left: 8px;
    white-space: nowrap;
}

.search-suggestions .ss-all {
    background: #f8f9fa;
    color: #00afef;
    font-weight: 600;
    font-size: 13px;
    border-bottom: none;
    border-radius: 0 0 12px 12px;
    justify-content: center;
}

.search-suggestions .ss-all:hover {
    background: #eef5fb;
}

.search-suggestions .ss-empty {
    padding: 18px 14px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.search-suggestions .ss-loading {
    padding: 18px 14px;
    text-align: center;
    color: #777;
    font-size: 13px;
}

@media (max-width: 768px) {
    .search-suggestions .ss-img { width: 40px; height: 40px; }
    .search-suggestions .ss-title { font-size: 13px; }
    .search-suggestions .ss-price { font-size: 12px; }
}

/* Fix: Ensure the header search suggestions appear over the main-navbar */
.main-header {
    z-index: 10000 !important;
}
/* ── Featured Star Badge — Live Search Dropdown ────────────────────── */
.search-suggestions .ss-img-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.search-suggestions .ss-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    padding: 2px;
    display: block;
}

/* Gold star badge on product thumbnail */
.search-suggestions .ss-star {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 18px;
    height: 18px;
    background: #f5c518;
    color: #fff;
    font-size: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    line-height: 1;
    font-style: normal;
    z-index: 1;
}

/* Subtle left accent for featured rows */
.search-suggestions .ss-item--featured {
    border-left: 3px solid #f5c518;
    background: linear-gradient(to right, #fffdf0, #fff);
}

.search-suggestions .ss-item--featured:hover,
.search-suggestions .ss-item--featured.active {
    background: linear-gradient(to right, #fff8dc, #f4f9fd);
}

@media (max-width: 768px) {
    .search-suggestions .ss-img-wrap { width: 40px; height: 40px; }
    .search-suggestions .ss-img { width: 40px; height: 40px; }
}