.ajax-search {
    position: relative;
}

.ajax-search .search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid rgba(100, 116, 139, 0.25);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    margin-top: 0.5rem;
    z-index: 40;
    max-height: 360px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.ajax-search .search-suggestions.d-none {
    display: none !important;
}

.search-suggestions .suggestion-group + .suggestion-group {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.suggestion-group .suggestion-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 0 1rem;
    margin-bottom: 0.25rem;
}

.suggestion-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.suggestion-group li {
    display: block;
}

.suggestion-group a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    color: #0f172a;
    transition: background-color 0.2s ease;
}

.suggestion-group a:hover,
.suggestion-group a:focus {
    background-color: rgba(248, 250, 252, 0.95);
}

.suggestion-group img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.suggestion-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.suggestion-meta small {
    color: #64748b;
    font-size: 0.78rem;
}

.suggestion-pill {
    margin-left: auto;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #475569;
}

@media (max-width: 991px) {
    .ajax-search .search-suggestions {
        position: fixed;
        left: 1rem;
        right: 1rem;
        max-height: 70vh;
    }
}

/* ---------------------------------------------
   Product cards (home/category) uniform layout
   --------------------------------------------- */
.basic-product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.basic-product .img-wrapper {
    flex: 0 0 auto;
}

.basic-product .product-detail {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
}

.basic-product .product-detail .addtocart_btn {
    margin-top: auto;
    padding-top: 0.75rem;
}

.cart-attributes li {
    line-height: 1.3;
}

.product-gallery .product-slick {
    min-height: 520px;
}

.product-gallery .product-slick img {
    height: 520px;
    width: 100%;
    object-fit: contain;
}

.product-gallery .slider-nav img {
    height: 110px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.product-gallery .zoomContainer {
    max-height: 520px !important;
    width: 100% !important;
}

@media (max-width: 767px) {
    .product-gallery .product-slick {
        min-height: 360px;
    }
    .product-gallery .product-slick img {
        height: 360px;
    }
    .product-gallery .slider-nav img {
        height: 80px;
    }
}

.selected-variations {
    border: 1px dashed rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    background: #fff;
}

.selected-variation-tags .badge {
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.wishlist-action-form {
    display: inline-flex;
    align-items: center;
}

.wishlist-action-form button {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.wishlist-action-form button:hover,
.wishlist-action-form button:focus {
    color: var(--theme-color27, #ff4c3b);
}

.wishlist-section .table .wishlist-price {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.wishlist-section .table .product-name a,
.wishlist-section .table a.fw-semibold {
    color: var(--theme-color27, #ff4c3b);
}

.address-box {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    height: 100%;
}

.address-box-head .badge {
    font-size: 0.7rem;
}

.address-box-body p {
    line-height: 1.4;
}

.address-box-footer button {
    min-width: 120px;
}

.status-card {
    border-radius: 12px;
    padding: 1.25rem;
}

.wishlist-add-to-cart {
    color: var(--theme-color27, #ff4c3b);
}

.wishlist-add-to-cart.disabled {
    color: #cbd5f5;
    pointer-events: none;
}

.checkout-section-2 .delivery-address-box label {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

.checkout-section-2 .delivery-address-box .address {
    display: block;
    word-break: break-word;
    margin-bottom: 0.15rem;
}
