/**
 * MadeBySaleem Featured Products
 *
 * @package MadeBySaleem
 */

.mbs-featured-products {
    --mbs-featured-navy: #071525;
    --mbs-featured-text: #1a2532;
    --mbs-featured-muted: #837b73;
    --mbs-featured-accent: #00a982;
    --mbs-featured-accent-dark: #007d63;
    --mbs-featured-background: #faf8f4;
    --mbs-featured-card: #ffffff;
    --mbs-featured-border: rgba(7, 21, 37, 0.12);
    --mbs-featured-shadow: 0 20px 60px rgba(7, 21, 37, 0.1);

    position: relative;
    width: 100%;
    padding: clamp(82px, 8vw, 130px) 0 clamp(74px, 7vw, 112px);
    background: var(--mbs-featured-background);
    overflow: hidden;
}

.mbs-featured-products *,
.mbs-featured-products *::before,
.mbs-featured-products *::after {
    box-sizing: border-box;
}

.mbs-featured-products__container {
    width: min(100% - 48px, 1780px);
    margin-inline: auto;
}

.mbs-featured-products__header {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.mbs-featured-products__eyebrow {
    margin: 0 0 26px;
    color: var(--mbs-featured-accent);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.mbs-featured-products__title {
    margin: 0;
    color: var(--mbs-featured-navy);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 5vw, 80px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -1.5px;
}

.mbs-featured-products__filters {
    display: flex;
    justify-content: center;
    margin-top: clamp(46px, 5vw, 72px);
    margin-bottom: clamp(42px, 4vw, 58px);
}

.mbs-featured-products__tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 3.4vw, 58px);
    max-width: 100%;
}

.mbs-featured-products__tab {
    position: relative;
    appearance: none;
    padding: 0 0 15px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #897f77;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 2vw, 2px);
    font-weight: 400;
    line-height: 1.15;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color 220ms ease,
        opacity 220ms ease;
}

.mbs-featured-products__tab::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    margin: auto;
    background: var(--mbs-featured-accent);
    content: "";
    transition: width 260ms ease;
}

.mbs-featured-products__tab:hover,
.mbs-featured-products__tab:focus-visible,
.mbs-featured-products__tab.is-active {
    color: var(--mbs-featured-navy);
}

.mbs-featured-products__tab.is-active::after {
    width: 100%;
}

.mbs-featured-products__tab:focus-visible {
    outline: 2px solid var(--mbs-featured-accent);
    outline-offset: 6px;
}

.mbs-featured-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 1.8vw, 34px);
    width: 100%;
}

.mbs-product-card {
    position: relative;
    min-width: 0;
    background: transparent;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 320ms ease,
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mbs-product-card.is-filtering-out {
    pointer-events: none;
    opacity: 0;
    transform: translateY(14px);
}

.mbs-product-card[hidden] {
    display: none !important;
}

.mbs-product-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5.25;
    background: #eeeae5;
    overflow: hidden;
    isolation: isolate;
}

.mbs-product-card__image-link {
    position: absolute;
    inset: 0;
    display: block;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

.mbs-product-card__image,
.mbs-product-card__image-link img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 0;
    transform: scale(1.001);
    transition:
        opacity 650ms ease,
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mbs-product-card__image--primary {
    z-index: 1;
    opacity: 1;
}

.mbs-product-card__image--secondary {
    z-index: 2;
    opacity: 0;
}

.mbs-product-card:hover .mbs-product-card__image--primary {
    transform: scale(1.055);
}

.mbs-product-card:hover .mbs-product-card__image--secondary {
    opacity: 1;
    transform: scale(1.055);
}

.mbs-product-card__badge {
    position: absolute;
    top: 21px;
    left: 21px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 17px;
    background: var(--mbs-featured-navy);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.mbs-product-card__badge.is-sale {
    background: #071525;
}

.mbs-product-card__badge.is-new {
    background: var(--mbs-featured-accent-dark);
}

.mbs-product-card__badge.is-featured {
    background: #99723b;
}

.mbs-product-card__actions {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 7;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(14px);
    transition:
        opacity 260ms ease,
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mbs-product-card:hover .mbs-product-card__actions,
.mbs-product-card:focus-within .mbs-product-card__actions {
    opacity: 1;
    transform: translateX(0);
}

.mbs-product-card__icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(7, 21, 37, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--mbs-featured-navy);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(7, 21, 37, 0.12);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition:
        color 220ms ease,
        background-color 220ms ease,
        border-color 220ms ease,
        transform 220ms ease;
}

.mbs-product-card__icon-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mbs-product-card__icon-button:hover,
.mbs-product-card__icon-button:focus-visible {
    border-color: var(--mbs-featured-navy);
    background: var(--mbs-featured-navy);
    color: #ffffff;
    transform: translateY(-2px);
}

.mbs-product-card__icon-button:focus-visible {
    outline: 2px solid var(--mbs-featured-accent);
    outline-offset: 3px;
}

.mbs-product-card__purchase {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 6;
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 280ms ease,
        transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mbs-product-card:hover .mbs-product-card__purchase,
.mbs-product-card:focus-within .mbs-product-card__purchase {
    opacity: 1;
    transform: translateY(0);
}

.mbs-product-card__add-to-cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 13px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--mbs-featured-navy) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 1.7px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    box-shadow: 0 14px 35px rgba(7, 21, 37, 0.14);
    backdrop-filter: blur(12px);
    transition:
        background-color 240ms ease,
        color 240ms ease,
        border-color 240ms ease !important;
}

.mbs-product-card__add-to-cart svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mbs-product-card__add-to-cart:hover,
.mbs-product-card__add-to-cart:focus-visible,
.mbs-product-card__add-to-cart.loading {
    border-color: var(--mbs-featured-navy) !important;
    background: var(--mbs-featured-navy) !important;
    color: #ffffff !important;
}

.mbs-product-card__add-to-cart.added {
    border-color: var(--mbs-featured-accent-dark) !important;
    background: var(--mbs-featured-accent-dark) !important;
    color: #ffffff !important;
}

.mbs-product-card__add-to-cart.loading {
    opacity: 0.84;
    pointer-events: none;
}

.mbs-product-card__content {
    padding: 23px 8px 2px;
    text-align: center;
}

.mbs-product-card__category {
    margin: 0 0 9px;
    color: var(--mbs-featured-accent-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.mbs-product-card__title {
    margin: 0;
    color: var(--mbs-featured-navy);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 1.45vw, 25px);
    font-weight: 500;
    line-height: 1.2;
}

.mbs-product-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 220ms ease;
}

.mbs-product-card__title a:hover,
.mbs-product-card__title a:focus-visible {
    color: var(--mbs-featured-accent-dark);
}

.mbs-product-card__price {
    min-height: 25px;
    margin-top: 10px;
    color: #343b42;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.mbs-product-card__price .amount {
    color: inherit;
    font-weight: inherit;
}

.mbs-product-card__price del {
    margin-right: 7px;
    color: #9b9690;
    opacity: 1;
    font-size: 0.92em;
}

.mbs-product-card__price del .amount {
    color: inherit;
}

.mbs-product-card__price ins {
    color: var(--mbs-featured-navy);
    text-decoration: none;
}

.mbs-featured-products__empty {
    padding: 70px 20px;
    text-align: center;
}

.mbs-featured-products__empty p {
    margin: 0;
    color: var(--mbs-featured-muted);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 26px;
}

.mbs-featured-products__footer {
    display: flex;
    justify-content: center;
    margin-top: clamp(50px, 5vw, 75px);
}

.mbs-featured-products__view-all {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    min-height: 54px;
    padding: 0 6px 12px;
    color: var(--mbs-featured-navy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.8px;
    text-decoration: none;
    text-transform: uppercase;
}

.mbs-featured-products__view-all::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--mbs-featured-navy);
    content: "";
    transform: scaleX(1);
    transform-origin: right center;
    transition: transform 300ms ease;
}

.mbs-featured-products__view-all:hover::after {
    transform: scaleX(0.35);
}

.mbs-featured-products__view-all svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 220ms ease;
}

.mbs-featured-products__view-all:hover svg {
    transform: translateX(5px);
}

/**
 * Quick view modal.
 */
.mbs-quick-view {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        visibility 320ms ease,
        opacity 320ms ease;
}

.mbs-quick-view.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mbs-quick-view__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 13, 22, 0.74);
    backdrop-filter: blur(7px);
}

.mbs-quick-view__dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 980px);
    max-height: calc(100vh - 60px);
    background: #ffffff;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.3);
    overflow: auto;
    opacity: 0;
    transform: translateY(25px) scale(0.98);
    transition:
        opacity 330ms ease,
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mbs-quick-view.is-open .mbs-quick-view__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mbs-quick-view__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: var(--mbs-featured-navy);
    box-shadow: 0 10px 30px rgba(7, 21, 37, 0.13);
    cursor: pointer;
    transition:
        background-color 220ms ease,
        color 220ms ease;
}

.mbs-quick-view__close:hover {
    background: var(--mbs-featured-navy);
    color: #ffffff;
}

.mbs-quick-view__close svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.mbs-quick-view__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    min-height: 570px;
}

.mbs-quick-view__image-wrap {
    min-height: 570px;
    background: #f1eeea;
    overflow: hidden;
}

.mbs-quick-view__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 570px;
    object-fit: cover;
    object-position: center;
}

.mbs-quick-view__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(45px, 6vw, 78px);
}

.mbs-quick-view__category {
    margin: 0 0 16px;
    color: var(--mbs-featured-accent-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mbs-quick-view__title {
    margin: 0;
    color: var(--mbs-featured-navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(39px, 4vw, 58px);
    font-weight: 500;
    line-height: 0.98;
}

.mbs-quick-view__price {
    margin-top: 22px;
    color: var(--mbs-featured-navy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
}

.mbs-quick-view__description {
    margin: 27px 0 0;
    color: #6e6b67;
    font-size: 14px;
    line-height: 1.85;
}

.mbs-quick-view__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: fit-content;
    min-height: 52px;
    margin-top: 34px;
    padding: 0 27px;
    background: var(--mbs-featured-navy);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background-color 220ms ease,
        transform 220ms ease;
}

.mbs-quick-view__button:hover {
    background: var(--mbs-featured-accent-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

.mbs-quick-view__button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.mbs-quick-view-open {
    overflow: hidden;
}

/**
 * WooCommerce generated added-to-cart link.
 */
.mbs-featured-products .added_to_cart {
    display: none !important;
}

/**
 * Large desktop and browser zoom support.
 *
 * Browser zoom CSS viewport ko reduce karta hai. Is range mein
 * 4 cards maintain rahenge, lekin spacing aur container adjust hoga.
 */
@media (max-width: 1280px) {
    .mbs-featured-products__container {
        width: min(calc(100% - 32px), 1500px);
    }

    .mbs-featured-products__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(14px, 1.5vw, 24px);
    }

    .mbs-product-card__badge {
        top: 16px;
        left: 16px;
        min-height: 35px;
        padding: 8px 13px;
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .mbs-product-card__actions {
        top: 15px;
        right: 15px;
    }

    .mbs-product-card__icon-button {
        width: 41px;
        height: 41px;
    }

    .mbs-product-card__purchase {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .mbs-product-card__add-to-cart {
        min-height: 48px;
        padding: 11px 14px !important;
        font-size: 10px !important;
        letter-spacing: 1.25px !important;
    }

    .mbs-product-card__content {
        padding: 19px 5px 2px;
    }

    .mbs-product-card__title {
        font-size: clamp(18px, 1.6vw, 22px);
    }
}

/**
 * Small laptop and tablet landscape.
 *
 * 1100px tak 4 cards rahenge. Iske neeche 3 cards honge.
 */
@media (max-width: 1099px) {
    .mbs-featured-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 18px;
    }
}

@media (max-width: 820px) {
    .mbs-featured-products {
        padding-top: 82px;
    }

    .mbs-featured-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 20px;
    }

    .mbs-featured-products__tabs {
        justify-content: flex-start;
        gap: 30px;
        max-width: 100%;
        padding: 5px 5px 8px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .mbs-featured-products__tabs::-webkit-scrollbar {
        display: none;
    }

    .mbs-product-card__actions {
        opacity: 1;
        transform: none;
    }

    .mbs-product-card__purchase {
        opacity: 1;
        transform: none;
    }

    .mbs-quick-view__layout {
        grid-template-columns: 1fr 1fr;
        min-height: 500px;
    }

    .mbs-quick-view__image-wrap,
    .mbs-quick-view__image {
        min-height: 500px;
    }

    .mbs-quick-view__content {
        padding: 48px 38px;
    }
}
@media (max-width: 720px) {
    .mbs-featured-products {
        padding: 68px 0 72px;
    }

    .mbs-featured-products__container {
        width: min(100% - 28px, 1780px);
    }

    .mbs-featured-products__eyebrow {
        margin-bottom: 18px;
        font-size: 10px;
        letter-spacing: 3.2px;
    }

    .mbs-featured-products__title {
        font-size: clamp(39px, 12vw, 53px);
        line-height: 0.98;
        letter-spacing: -0.8px;
    }

    .mbs-featured-products__filters {
        justify-content: flex-start;
        margin-top: 38px;
        margin-bottom: 34px;
    }

    .mbs-featured-products__tabs {
        width: calc(100vw - 28px);
        gap: 27px;
    }

    .mbs-featured-products__tab {
        padding-bottom: 10px;
        font-size: 21px;
    }

    .mbs-featured-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 12px;
    }

    .mbs-product-card__media {
        aspect-ratio: 4 / 5.45;
    }

    .mbs-product-card__badge {
        top: 10px;
        left: 10px;
        min-height: 29px;
        padding: 7px 10px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .mbs-product-card__actions {
        top: 9px;
        right: 9px;
        gap: 7px;
    }

    .mbs-product-card__icon-button {
        width: 35px;
        height: 35px;
    }

    .mbs-product-card__icon-button svg {
        width: 16px;
        height: 16px;
    }

    .mbs-product-card__actions .mbs-product-card__icon-button:last-child {
        display: none;
    }

    .mbs-product-card__purchase {
        right: 8px;
        bottom: 8px;
        left: 8px;
    }

    .mbs-product-card__add-to-cart {
        min-height: 42px;
        padding: 9px 10px !important;
        font-size: 9px !important;
        letter-spacing: 1px !important;
    }

    .mbs-product-card__add-to-cart svg {
        display: none;
    }

    .mbs-product-card__content {
        padding: 15px 3px 0;
    }

    .mbs-product-card__category {
        margin-bottom: 6px;
        font-size: 8px;
        letter-spacing: 1.15px;
    }

    .mbs-product-card__title {
        font-size: 17px;
        line-height: 1.14;
    }

    .mbs-product-card__price {
        margin-top: 7px;
        font-size: 12px;
    }

    .mbs-featured-products__footer {
        margin-top: 48px;
    }

    .mbs-quick-view {
        align-items: flex-end;
        padding: 0;
    }

    .mbs-quick-view__dialog {
        width: 100%;
        max-height: 92svh;
    }

    .mbs-quick-view__layout {
        display: block;
        min-height: 0;
    }

    .mbs-quick-view__image-wrap {
        min-height: 0;
        aspect-ratio: 5 / 4;
    }

    .mbs-quick-view__image {
        min-height: 0;
        aspect-ratio: 5 / 4;
    }

    .mbs-quick-view__content {
        padding: 32px 24px 38px;
    }

    .mbs-quick-view__title {
        font-size: 38px;
    }

    .mbs-quick-view__description {
        display: none;
    }

    .mbs-quick-view__button {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .mbs-featured-products__grid {
        column-gap: 9px;
    }

    .mbs-product-card__title {
        font-size: 15px;
    }

    .mbs-product-card__add-to-cart {
        font-size: 8px !important;
    }
}

@media (hover: none) {
    .mbs-product-card__actions,
    .mbs-product-card__purchase {
        opacity: 1;
        transform: none;
    }

    .mbs-product-card__image--secondary {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mbs-featured-products *,
    .mbs-featured-products *::before,
    .mbs-featured-products *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}