/* ── Cart Button Group ─────────────────────────────────────────────────────── */
.shop-block-two .inner-box .lower-content .cart-btn-group {
    position: absolute;
    left: 0;
    bottom: -49px;
    opacity: 0;
    width: 100%;
    visibility: hidden;
    transition: all 500ms ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-block-two .inner-box:hover .lower-content .cart-btn-group {
    opacity: 1;
    bottom: -69px;
    visibility: visible;
}

/* ── Qty Stepper ───────────────────────────────────────────────────────────── */
.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #e5e5e5;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    height: 46px;
    transition: border-color 0.2s;
}

.qty-stepper:focus-within {
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.qty-btn {
    background: #fff;
    border: none;
    width: 30px;
    height: 100%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #101010;
    transition:
        background 0.15s,
        color 0.15s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

.qty-btn:hover {
    background: #f0f0f0;
    color: #111;
}

.qty-btn:active {
    background: #e5e5e5;
}

.qty-input {
    /* Wide enough for 4-digit wholesale quantities */
    width: 40px;
    height: 100%;
    border: none;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #101010;
    background: #fff;
    padding: 0 4px;
    cursor: text;
    /* Hide browser number spinners */
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
    background: #fafafa;
}

/* Add-to-cart button stretches to fill */
.cart-btn-group .add-to-cart-btn {
    flex: 1;
    color: #fff;
    min-height: 46px;
    font-size: 14px;
    font-weight: 600;
    padding: 0 10px;
    white-space: nowrap;
    border-radius: 30px;
}

/* ── Mobile: always visible, full layout ──────────────────────────────────── */
@media (max-width: 767px) {
    .shop-block-two .inner-box .lower-content .cart-btn-group {
        position: static;
        opacity: 1;
        visibility: visible;
        bottom: auto;
        margin-top: 10px;
        width: 100%;
    }

    .shop-block-two .inner-box .lower-content .cart-btn {
        position: static;
        opacity: 1;
        visibility: visible;
        bottom: auto;
        margin-top: 10px;
    }

    .qty-input {
        width: 60px;
        font-size: 15px;
    }

    .qty-btn {
        width: 34px;
        font-size: 20px;
    }
}

/* ── Wishlist toggle button ────────────────────────────────────────────────── */
.wishlist-toggle-btn {
    transition: color 0.2s ease;
}

.wishlist-toggle-btn i.fa-heart {
    color: #000;
    font-size: 16px;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.wishlist-toggle-btn.wishlisted i.fa-heart,
.wishlist-toggle-btn:hover i.fa-heart {
    color: #fff;
}

.wishlist-toggle-btn.wishlisted {
    background: var(--theme-color) !important;
}

.wishlist-toggle-btn.wishlisted i.fa-heart {
    transform: scale(1.15);
}

/* ── Keyframe for stock-out modal ─────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ── Search Suggestions Dropdown ─────────────────────────────────────────── */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
}

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

.search-suggestions-dropdown .ss-item:last-of-type {
    border-bottom: none;
}

.search-suggestions-dropdown .ss-item:hover {
    background: #f7f7f7;
}

.search-suggestions-dropdown .ss-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
    background: #fafafa;
}

.search-suggestions-dropdown .ss-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.search-suggestions-dropdown .ss-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.search-suggestions-dropdown .ss-brand {
    font-size: 11px;
    color: #888;
    display: block;
    margin-bottom: 3px;
    display: none !important;
}

.search-suggestions-dropdown .ss-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-color, #f57224);
}

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

.search-suggestions-dropdown .ss-view-all {
    display: block;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--theme-color, #f57224);
    text-align: center;
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
    transition: background 0.15s;
}

.search-suggestions-dropdown .ss-view-all:hover {
    background: #f0f0f0;
}

.search-suggestions-dropdown::-webkit-scrollbar {
    width: 5px;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}
