/* Global styles for Riode theme — applied on all pages */

/* ===== Compare Products Table ===== */
.compare-table {
    width: 100%;
    border-collapse: collapse;
}
.compare-table .compare-label {
    min-width: 140px;
    padding: 1rem 1.2rem;
    font-weight: 600;
    font-size: 1.3rem;
    color: #666;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    white-space: nowrap;
}
.compare-table .compare-cell {
    min-width: 180px;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #eee;
    border-left: 1px solid #f0f0f0;
    vertical-align: middle;
    text-align: center;
    font-size: 1.3rem;
}
.compare-table .compare-row-image .compare-cell {
    padding: 1.5rem 1.2rem;
}
.compare-table .compare-row-price .compare-cell .price {
    font-size: 1.6rem;
    color: #2662cc;
}
.compare-table .compare-row-spec .compare-label {
    background: #fff;
    font-weight: 400;
}
.compare-table .compare-row:hover .compare-cell,
.compare-table .compare-row:hover .compare-label {
    background-color: #fafafa;
}

/* Wishlist badge count in header */
.wishlist-dropdown .wishlist-count {
    display: inline-block;
    position: absolute;
    right: -8px;
    top: 3px;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.7;
    text-align: center;
    border-radius: 50%;
    background-color: #1e90ff;
    color: #fff;
    z-index: 1;
    transition: color 0.4s;
}

/* Products-list container — prevents flex conflict with product-list item class */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===== Search autocomplete ===== */

/* Allow autocomplete to wrap below input+button row */
.header-search.hs-toggle .input-wrapper {
    flex-wrap: wrap;
}

/* Autocomplete results container */
.header-search .live-search-list {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin-top: 0.8rem;
    border-top: 1px solid #eee;
    max-height: 380px;
    overflow-y: auto;
}

/* Section label (Categories, etc.) */
.header-search .live-search-list .search-section-label {
    display: block;
    padding: 0.6rem 0.4rem 0.3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Each result row */
.header-search .live-search-list .search-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0.4rem;
    border-bottom: 1px solid #f4f4f4;
    color: #333;
    text-decoration: none;
    transition: background-color 0.15s;
}
.header-search .live-search-list .search-item a:hover {
    background-color: #f7f7f7;
}

/* Product thumbnail */
.header-search .live-search-list .search-item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 3px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

/* Product name */
.header-search .live-search-list .search-item .search-item-name {
    flex: 1;
    font-size: 1.3rem;
    line-height: 1.4;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product price */
.header-search .live-search-list .search-item .search-item-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2662cc;
    white-space: nowrap;
    flex-shrink: 0;
}

/* "See all results" link */
.header-search .live-search-list .search-all-link {
    display: block;
    padding: 0.9rem 0.4rem;
    font-size: 1.3rem;
    color: #2662cc;
    text-align: center;
    border-top: 1px solid #eee;
    text-decoration: none;
}
.header-search .live-search-list .search-all-link:hover {
    text-decoration: underline;
}