/* NASAD product cards – shared shop grid styling */

.product-card {
    border: 1px solid #ececf3 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(16, 24, 40, 0.05);
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    overflow: hidden;
    padding: 0 !important;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.product-card:hover {
    border-color: rgba(68, 50, 151, 0.18) !important;
    box-shadow: 0 14px 34px rgba(68, 50, 151, 0.12);
    transform: translateY(-4px);
}

.product-card__media {
    background: linear-gradient(180deg, #faf9fd 0%, #ffffff 100%);
    margin: 0 !important;
    min-height: 250px;
    padding: 0.85rem 0.85rem 0 !important;
    position: relative;
}

.product-card__image-frame {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 14px;
    min-height: 220px;
    overflow: hidden;
    position: relative;
}

.product-card__badges {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    left: 0.65rem;
    max-width: calc(100% - 4.5rem);
    position: absolute;
    top: 0.65rem;
    z-index: 3;
}

.product-card__badge {
    align-items: center;
    backdrop-filter: blur(6px);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 700;
    gap: 0.35rem;
    letter-spacing: 0.03em;
    line-height: 1;
    padding: 0.38rem 0.62rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-card__badge i {
    font-size: 0.62rem;
    opacity: 0.95;
}

.product-card__badge--sale {
    background: linear-gradient(135deg, #f97066 0%, #d92d20 100%);
    color: #fff;
}

.product-card__badge--featured {
    background: linear-gradient(135deg, #443297 0%, #6a52c9 100%);
    color: #fff;
}

.product-card__badge--options {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #b2ddff;
    color: #175cd3;
}

.product-card__actions {
    opacity: 0 !important;
    position: absolute;
    right: 0.55rem !important;
    top: 0.55rem !important;
    transform: translateY(-6px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    visibility: hidden;
    z-index: 4;
}

.product-card__actions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-card:hover .product-card__actions,
.product-card:focus-within .product-card__actions {
    opacity: 1 !important;
    transform: translateY(0);
    visibility: visible;
}

.product-card__action-btn {
    align-items: center;
    background: #fff;
    border: 1px solid #e4e6ef;
    border-radius: 50%;
    color: #443297;
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-bottom: 0.45rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    width: 38px;
}

.product-card__action-btn:hover {
    background: #443297;
    border-color: #443297;
    color: #fff;
    transform: scale(1.05);
}

.product-card__action-btn .flaticon-heart:before,
.product-card__action-btn .flaticon-show:before {
    font-size: 0.95rem;
}

.product-card__action-btn--wishlist.is-active,
.product-card__action-btn--wishlist.is-active:hover {
    background: #443297;
    border-color: #443297;
    color: #fff;
}

.product-card__image-link {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 210px;
    padding: 2.1rem 0.75rem 1rem;
}

.product-card__image {
    height: 190px !important;
    max-width: 100%;
    object-fit: contain !important;
    transition: transform 0.28s ease;
    width: auto !important;
}

.product-card:hover .product-card__image {
    transform: scale(1.04);
}

.featured-products-slider .product-card__image-frame {
    min-height: 230px;
}

.featured-products-slider .product-card__image-link {
    min-height: 220px;
    padding-top: 2.35rem;
}

.featured-products-slider .product-card__image {
    height: 180px !important;
}

.featured-products-slider .product-card__badges {
    left: 0.75rem;
    top: 0.75rem;
}

/* Featured category carousel – full-width image frame + top-left badges */
.featured-category-section .featured-category-slider {
    width: 100%;
}

.featured-category-section .featured-category-slider.slider_dib_sm.owl-carousel .owl-stage-outer,
.featured-category-section .featured-category-slider.owl-carousel .owl-stage-outer {
    display: block !important;
    width: 100% !important;
}

.featured-category-section .featured-category-slider .owl-item > .item,
.featured-category-section .featured-category-slider .product-card {
    max-width: 100%;
    width: 100%;
}

/* Equal-height cards (with or without discount badge / old price) */
.featured-category-section .featured-category-slider.owl-carousel .owl-stage {
    align-items: stretch;
    display: flex;
}

.featured-category-section .featured-category-slider .owl-item {
    display: flex;
    float: none;
    height: auto;
}

.featured-category-section .featured-category-slider .owl-item > .item {
    display: flex;
    flex: 1 1 auto;
    height: 100%;
}

.featured-category-section .featured-category-slider .product-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
}

.product-card--featured-category .thumb.product-card__media {
    align-items: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    text-align: initial !important;
    width: 100% !important;
}

.product-card--featured-category .product-card__image-frame {
    box-sizing: border-box;
    display: block !important;
    flex: 0 0 auto;
    min-height: 240px;
    position: relative;
    width: 100% !important;
}

.product-card--featured-category .product-card__image-link {
    align-items: center;
    box-sizing: border-box;
    display: flex !important;
    justify-content: center;
    min-height: 230px;
    padding: 2.5rem 0.75rem 1rem;
    width: 100% !important;
}

.product-card--featured-category .product-card__image,
.product-card--featured-category .thumb img {
    display: block;
    height: 190px !important;
    margin: 0 auto;
    max-width: calc(100% - 0.5rem);
    object-fit: contain !important;
    width: auto !important;
}

.product-card--featured-category .product-card__badges {
    align-items: flex-start;
    left: 0.65rem !important;
    position: absolute !important;
    right: auto !important;
    top: 0.65rem !important;
    z-index: 6;
}

.product-card--featured-category .product-card__actions {
    position: absolute !important;
    right: 0.55rem !important;
    top: 0.55rem !important;
    z-index: 7;
}

.product-card--featured-category .product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0.85rem 1rem 1.1rem;
}

.product-card--featured-category .product-card__footer {
    margin-top: auto;
}

.product-card--featured-category .product-card__price {
    align-content: flex-start;
    min-height: 2.85rem;
}

.product-card--featured-category .product-card__price-old {
    min-height: 1.15rem;
}

.product-card--featured-category .product-card__title-link {
    font-size: 0.95rem;
    line-height: 1.45;
}

.product-card--shop-listing {
    min-height: 100%;
}

.product-card--shop-listing .product-card__media {
    min-height: 230px;
    padding: 0.75rem 0.75rem 0 !important;
}

.product-card--shop-listing .product-card__image-frame {
    min-height: 200px;
}

.product-card--shop-listing .product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0.9rem 1rem 1.15rem;
}

.product-card--shop-listing .product-card__footer {
    margin-top: auto;
}

.product-card--shop-listing .product-card__title-link {
    font-size: 0.94rem;
    line-height: 1.45;
}

.product-card--shop-listing .product-card__price {
    min-height: 2.75rem;
}

.featured-category-section .featured-category-block .main-title h2 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 700;
}

.featured-category-section .featured-category-block .title_more_btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.55rem 1.15rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.featured-category-section .featured-category-block .title_more_btn:hover {
    transform: translateY(-1px);
}

.product-card__cart {
    bottom: 0 !important;
    left: 0 !important;
    opacity: 0;
    padding: 0 0.85rem 0.85rem !important;
    position: absolute !important;
    right: 0 !important;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
    visibility: hidden;
    z-index: 5;
}

.product-card:hover .product-card__cart,
.product-card:focus-within .product-card__cart {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.product-card__cart .add-to-cart-actions {
    width: 100%;
}

.add-to-cart-icon {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1rem;
    justify-content: center;
    line-height: 1;
    width: 1.125rem;
}

.add-to-cart-icon--muted {
    opacity: 0.72;
}

.add-to-cart-actions .btn {
    line-height: 1.2 !important;
}

.product-card__cart .btn {
    border-radius: 999px !important;
    box-shadow: 0 8px 22px rgba(68, 50, 151, 0.18) !important;
    font-size: 0.88rem !important;
    font-weight: 600;
    height: auto !important;
    line-height: 1.2 !important;
    min-height: 44px;
    padding: 0.65rem 1rem !important;
    width: 100%;
}

.product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1rem 1rem 1.1rem !important;
}

.product-card__brand {
    color: #667085 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem !important;
}

.product-card__title {
    margin: 0 0 0.65rem !important;
    min-height: 3.25rem;
}

.product-card__title-link {
    color: #1d2939 !important;
    display: -webkit-box;
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
    max-width: 100% !important;
    min-height: 2.9rem;
    overflow: hidden;
    transition: color 0.2s ease;
}

.product-card__title-link:hover {
    color: #443297 !important;
}

.product-card__rating {
    margin-bottom: 0.85rem !important;
}

.product-card__stars {
    line-height: 1;
}

.product-card__star {
    color: #e4e7ec;
    font-size: 0.78rem;
}

.product-card__star.is-filled {
    color: #f5a623;
}

.product-card__reviews a {
    color: #98a2b3 !important;
    font-size: 0.82rem;
    text-decoration: none;
}

.product-card__reviews a:hover {
    color: #443297 !important;
}

.product-card__footer {
    margin-top: auto;
}

.product-card__price {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.45rem;
    line-height: 1.2 !important;
}

.product-card__price-from {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 500;
}

.product-card__price-current {
    color: #443297;
    font-size: 1.12rem;
    font-weight: 700;
}

.product-card__price-currency {
    color: #443297;
    font-size: 0.88rem;
    font-weight: 600;
}

.product-card__price-old {
    color: #98a2b3;
    display: block;
    flex-basis: 100%;
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

/* Slider / grid spacing */

.best_item_slider_shop_lising_page .owl-stage-outer,
.related_product_slider .owl-stage-outer,
.dod_slider .owl-stage-outer,
.featured-category-slider.owl-carousel .owl-stage-outer,
.featured-products-slider.owl-carousel .owl-stage-outer,
.nasad-section .shop_item_4grid_slider.owl-carousel .owl-stage-outer,
.nasad-section .shop_item_5grid_slider.owl-carousel .owl-stage-outer,
.nasad-section .shop_item_6grid_slider.owl-carousel .owl-stage-outer {
    border-left: none !important;
    display: block !important;
    overflow: hidden !important;
    padding-bottom: 0.5rem;
    width: 100% !important;
}

.featured-category-section .featured-category-block {
    padding-bottom: 0.25rem;
}

.nasad-section .shop_item_4grid_slider .owl-item,
.nasad-section .shop_item_5grid_slider .owl-item,
.nasad-section .shop_item_6grid_slider .owl-item {
    float: left;
}

.product-grid__col,
.search-results-grid > [class*="col-"],
.row.product-grid > [class*="col-"] {
    margin-bottom: 1rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.search-results-grid {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.featured-category-section .best_item_slider_shop_lising_page,
.featured-product .best_item_slider_shop_lising_page,
.nasad-section .best_item_slider_shop_lising_page {
    padding: 0.25rem 0 0.75rem;
}

.nasad-section .shop_item_4grid_slider .owl-stage-outer,
.nasad-section .shop_item_5grid_slider .owl-stage-outer,
.nasad-section .shop_item_6grid_slider .owl-stage-outer,
.nasad-section .shop_item_7grid_slider .owl-stage-outer {
    padding-bottom: 0.75rem;
}

.nasad-section .shop_item_4grid_slider .owl-item,
.nasad-section .shop_item_5grid_slider .owl-item,
.nasad-section .shop_item_6grid_slider .owl-item {
    padding-top: 0;
    padding-bottom: 0;
}

/* Slider / legacy grid compatibility */
.shop_item_4grid_slider .product-card,
.shop_item_5grid_slider .product-card,
.shop_item_6grid_slider .product-card,
.shop_item_7grid_slider .product-card,
.shop_item_8grid_slider .product-card {
    height: 100%;
}

.shop_item_4grid_slider .product-card,
.shop_item_6grid_slider .product-card,
.search-results-grid .product-card {
    height: 100%;
}

.search-results-grid .shop_item,
.product-grid__col .shop_item,
.col-6 .shop_item,
.col-md-4 .shop_item,
.col-xl-3 .shop_item {
    height: 100%;
}

@media (max-width: 991.98px) {
    .shop_item.product-card .thumb.product-card__media {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        text-align: initial;
    }

    .product-card:hover {
        transform: none;
    }

    .product-card__media {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 0.55rem !important;
        position: relative;
    }

    .product-card__image-frame {
        aspect-ratio: 1;
        min-height: 0;
        width: 100%;
    }

    .product-card__image-link {
        align-items: center;
        aspect-ratio: 1;
        display: flex;
        justify-content: center;
        min-height: 0;
        padding: 1.15rem 0.5rem 2.35rem;
        width: 100%;
    }

    .product-card__image {
        height: auto !important;
        max-height: 70%;
        max-width: 86%;
        width: auto !important;
    }

    .product-card__badges {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.28rem;
        left: 0.45rem;
        max-width: calc(100% - 2.75rem);
        top: 0.45rem;
    }

    .product-card__badge {
        font-size: 0.58rem;
        letter-spacing: 0.02em;
        padding: 0.28rem 0.48rem;
    }

    .product-card__badge i {
        font-size: 0.55rem;
    }

    .product-card__actions {
        align-items: center;
        display: flex !important;
        flex-direction: row;
        gap: 0.3rem;
        opacity: 1 !important;
        right: 0.42rem !important;
        top: 0.42rem !important;
        transform: none;
        visibility: visible;
    }

    .product-card__actions > .product-card__action-btn:not(.product-card__action-btn--wishlist) {
        display: none;
    }

    .product-card__action-btn {
        backdrop-filter: blur(8px);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
        height: 32px;
        margin-bottom: 0;
        width: 32px;
    }

    .product-card__cart {
        bottom: 0.65rem !important;
        left: 0.65rem !important;
        opacity: 1;
        padding: 0 !important;
        position: absolute !important;
        right: 0.65rem !important;
        top: auto !important;
        transform: none;
        visibility: visible;
        z-index: 6;
    }

    .product-card__cart .btn,
    .product-card__cart .product-card__cta {
        backdrop-filter: blur(10px);
        box-shadow: 0 6px 18px rgba(68, 50, 151, 0.22) !important;
        font-size: 0.78rem !important;
        min-height: 36px;
        padding: 0.45rem 0.7rem !important;
    }

    .product-card__body {
        padding: 0.75rem 0.8rem 0.9rem !important;
    }

    .product-card__title {
        min-height: 2.45rem;
    }

    .product-card__title-link {
        font-size: 0.88rem !important;
        min-height: 2.5rem;
    }

    .product-card__rating {
        margin-bottom: 0.65rem !important;
    }

    .product-card__price-current {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .product-card__media {
        padding: 0.65rem !important;
    }

    .product-card__image-link {
        padding: 1.35rem 0.65rem 2.5rem;
    }

    .product-card__image {
        max-height: 74%;
    }

    .product-card__cart {
        bottom: 0.75rem !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
    }

    .product-card__cart .btn,
    .product-card__cart .product-card__cta {
        font-size: 0.82rem !important;
        min-height: 38px;
    }

    .product-card__body {
        padding: 0.85rem 0.9rem 1rem !important;
    }
}

@media (max-width: 767.98px) {
    .product-card__cart {
        opacity: 1;
        position: absolute !important;
        transform: none;
        visibility: visible;
    }

    .product-card__actions {
        opacity: 1 !important;
        transform: none;
        visibility: visible;
    }

    .product-card__media {
        min-height: auto;
    }
}

@media (hover: none) {
    .product-card__cart,
    .product-card__actions {
        opacity: 1 !important;
        transform: none;
        visibility: visible;
    }
}

.product-card__wishlist-remove {
    position: absolute;
    right: 1rem;
    top: 0.65rem;
    z-index: 6;
}

.product-card__wishlist-remove a {
    align-items: center;
    background: #fff;
    border: 1px solid #e4e6ef;
    border-radius: 50%;
    color: #667085;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    width: 34px;
}

.product-card__wishlist-remove a:hover {
    background: #fee4e2;
    border-color: #fecdca;
    color: #d92d20;
}

.product-card__wishlist-remove .flaticon-close:before {
    font-size: 0.72rem;
}
