/**
 * WooCommerce Shop and Product Archives
 *
 * @package MadeBySaleem
 */

.mbs-shop-page {
    --mbs-shop-navy: #071525;
    --mbs-shop-text: #1d2935;
    --mbs-shop-muted: #7f7871;
    --mbs-shop-accent: #9b753d;
    --mbs-shop-accent-dark: #725326;
    --mbs-shop-background: #faf8f4;
    --mbs-shop-surface: #ffffff;
    --mbs-shop-border: rgba(7, 21, 37, 0.11);

    width: 100%;
    color: var(--mbs-shop-text);
    background: var(--mbs-shop-background);
}

.mbs-shop-page *,
.mbs-shop-page *::before,
.mbs-shop-page *::after {
    box-sizing: border-box;
}

.mbs-shop-container {
    width: min(calc(100% - 48px), 1780px);
    margin-inline: auto;
}

.mbs-shop-hero {
    position: relative;
    padding: clamp(46px, 5vw, 72px) 0 clamp(58px, 7vw, 104px);
    overflow: hidden;
    background:
        radial-gradient(
            circle at 92% 12%,
            rgba(155, 117, 61, 0.11),
            transparent 31%
        ),
        linear-gradient(180deg, #f7f3ec 0%, #faf8f4 100%);
}

.mbs-shop-hero::after {
    position: absolute;
    right: -100px;
    bottom: -230px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(155, 117, 61, 0.13);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.mbs-shop-breadcrumbs {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(46px, 5vw, 74px);
    color: #8a827a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.mbs-shop-breadcrumbs a {
    color: var(--mbs-shop-navy);
    text-decoration: none;
    transition: color 200ms ease;
}

.mbs-shop-breadcrumbs a:hover,
.mbs-shop-breadcrumbs a:focus-visible {
    color: var(--mbs-shop-accent-dark);
}

.mbs-shop-hero__content {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.mbs-shop-eyebrow {
    margin: 0 0 18px;
    color: var(--mbs-shop-accent);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 3.4px;
    text-transform: uppercase;
}

.mbs-shop-title {
    margin: 0;
    color: var(--mbs-shop-navy);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(56px, 8vw, 108px);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -2.2px;
}

.mbs-shop-description {
    max-width: 680px;
    margin-top: 27px;
    color: #706a64;
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.8;
}

.mbs-shop-description p {
    margin: 0;
}

.mbs-shop-categories {
    border-top: 1px solid var(--mbs-shop-border);
    border-bottom: 1px solid var(--mbs-shop-border);
    background: rgba(255, 255, 255, 0.72);
}

.mbs-shop-category-list {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.mbs-shop-category-list::-webkit-scrollbar {
    display: none;
}

.mbs-shop-category-link {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 68px;
    padding: 0 clamp(18px, 2vw, 34px);
    border-right: 1px solid var(--mbs-shop-border);
    color: #79726b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.35px;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color 220ms ease,
        background-color 220ms ease;
}

.mbs-shop-category-link:first-child {
    border-left: 1px solid var(--mbs-shop-border);
}

.mbs-shop-category-link small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    padding: 3px 6px;
    border-radius: 50%;
    color: #8a837d;
    background: rgba(7, 21, 37, 0.06);
    font-size: 8px;
    letter-spacing: 0;
}

.mbs-shop-category-link::after {
    position: absolute;
    right: 24px;
    bottom: 0;
    left: 24px;
    height: 2px;
    background: var(--mbs-shop-accent);
    content: "";
    transform: scaleX(0);
    transition: transform 250ms ease;
}

.mbs-shop-category-link:hover,
.mbs-shop-category-link:focus-visible,
.mbs-shop-category-link.is-active {
    color: var(--mbs-shop-navy);
    background: rgba(155, 117, 61, 0.04);
}

.mbs-shop-category-link:hover::after,
.mbs-shop-category-link:focus-visible::after,
.mbs-shop-category-link.is-active::after {
    transform: scaleX(1);
}

.mbs-shop-catalog {
    padding: clamp(58px, 7vw, 108px) 0 clamp(78px, 8vw, 126px);
}

.mbs-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: clamp(34px, 4vw, 54px);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mbs-shop-border);
}

.mbs-shop-result-count .woocommerce-result-count {
    float: none;
    margin: 0;
    color: #817a73;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.mbs-shop-ordering {
    display: flex;
    align-items: center;
    gap: 13px;
}

.mbs-shop-ordering__label {
    color: #8a827a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.mbs-shop-ordering .woocommerce-ordering {
    float: none;
    margin: 0;
}

.mbs-shop-ordering select {
    min-width: 198px;
    height: 46px;
    padding: 0 42px 0 16px;
    border: 1px solid var(--mbs-shop-border);
    border-radius: 0;
    color: var(--mbs-shop-navy);
    background-color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 500;
    outline: 0;
    cursor: pointer;
    transition:
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.mbs-shop-ordering select:hover,
.mbs-shop-ordering select:focus {
    border-color: var(--mbs-shop-accent);
    box-shadow: 0 0 0 3px rgba(155, 117, 61, 0.09);
}

.mbs-shop-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: clamp(36px, 4.4vw, 72px) clamp(15px, 1.8vw, 30px) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.mbs-shop-page ul.products::before,
.mbs-shop-page ul.products::after {
    display: none !important;
    content: none !important;
}

.mbs-shop-page ul.products li.product.mbs-shop-card {
    float: none !important;
    clear: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    background: transparent;
    list-style: none;
}

.mbs-shop-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mbs-shop-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5.25;
    background: #eeeae4;
    overflow: hidden;
    isolation: isolate;
}

.mbs-shop-card__image-link {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.mbs-shop-card__image,
.mbs-shop-page ul.products li.product img.mbs-shop-card__image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 0;
    transform: scale(1.001);
    transition: transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mbs-shop-card:hover .mbs-shop-card__image {
    transform: scale(1.055);
}

.mbs-shop-card__media::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(7, 21, 37, 0.04) 0%,
        transparent 31%,
        transparent 68%,
        rgba(7, 21, 37, 0.14) 100%
    );
    content: "";
}

.mbs-shop-card__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-width: calc(100% - 32px);
    pointer-events: none;
}

.mbs-shop-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    color: #ffffff;
    background: var(--mbs-shop-navy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.mbs-shop-card__badge.is-sale {
    background: #8f302c;
}

.mbs-shop-card__badge.is-new {
    background: #2f715e;
}

.mbs-shop-card__badge.is-featured {
    background: var(--mbs-shop-accent-dark);
}

.mbs-shop-card__view {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    color: var(--mbs-shop-navy);
    background: rgba(255, 255, 255, 0.95);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.4px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 14px 35px rgba(7, 21, 37, 0.14);
    opacity: 0;
    transform: translateY(15px);
    backdrop-filter: blur(12px);
    transition:
        color 220ms ease,
        background-color 220ms ease,
        border-color 220ms ease,
        opacity 260ms ease,
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mbs-shop-card__view svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    transition: transform 220ms ease;
}

.mbs-shop-card:hover .mbs-shop-card__view,
.mbs-shop-card:focus-within .mbs-shop-card__view {
    opacity: 1;
    transform: translateY(0);
}

.mbs-shop-card__view:hover,
.mbs-shop-card__view:focus-visible {
    border-color: var(--mbs-shop-navy);
    color: #ffffff;
    background: var(--mbs-shop-navy);
}

.mbs-shop-card__view:hover svg,
.mbs-shop-card__view:focus-visible svg {
    transform: translateX(4px);
}

.mbs-shop-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 5px 0;
    text-align: center;
}

.mbs-shop-card__category {
    margin: 0 0 8px;
    color: var(--mbs-shop-accent-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mbs-shop-card__title {
    margin: 0;
    color: var(--mbs-shop-navy);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 1.45vw, 25px);
    font-weight: 500;
    line-height: 1.18;
}

.mbs-shop-card__title a {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 220ms ease;
}

.mbs-shop-card__title a:hover,
.mbs-shop-card__title a:focus-visible {
    color: var(--mbs-shop-accent-dark);
}

.mbs-shop-card__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    margin-top: 10px;
}

.mbs-shop-card__rating .star-rating {
    float: none;
    width: 5.4em;
    margin: 0;
    color: #b88b43;
    font-size: 12px;
    line-height: 1;
}

.mbs-shop-card__rating .star-rating::before {
    color: #d9d3cb;
    opacity: 1;
}

.mbs-shop-card__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 14px;
}

.mbs-shop-card__price {
    min-height: 24px;
    color: var(--mbs-shop-navy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.mbs-shop-card__price .amount {
    color: inherit;
    font-weight: inherit;
}

.mbs-shop-card__price del {
    margin-right: 7px;
    color: #9d9891;
    font-size: 0.92em;
    font-weight: 400;
    opacity: 1;
}

.mbs-shop-card__price ins {
    color: #8f302c;
    text-decoration: none;
}

.mbs-shop-card__cart,
.mbs-shop-page ul.products li.product .mbs-shop-card__cart.button {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 47px;
    margin: 0 !important;
    padding: 13px 18px !important;
    border: 1px solid var(--mbs-shop-navy) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    background: var(--mbs-shop-navy) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 1.5px !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition:
        color 220ms ease,
        background-color 220ms ease,
        border-color 220ms ease,
        transform 220ms ease !important;
}

.mbs-shop-card__cart:hover,
.mbs-shop-card__cart:focus-visible {
    border-color: var(--mbs-shop-accent-dark) !important;
    color: #ffffff !important;
    background: var(--mbs-shop-accent-dark) !important;
    transform: translateY(-2px);
}

.mbs-shop-card__cart.loading {
    color: transparent !important;
    pointer-events: none;
}

.mbs-shop-card__cart.loading::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #ffffff;
    border-radius: 50%;
    content: "";
    animation: mbs-shop-spin 700ms linear infinite;
}

.mbs-shop-card__cart.added {
    border-color: #527a57 !important;
    background: #527a57 !important;
}

.mbs-shop-page .added_to_cart.wc-forward {
    display: none !important;
}

@keyframes mbs-shop-spin {
    to {
        transform: rotate(360deg);
    }
}

.mbs-shop-pagination {
    margin-top: clamp(58px, 7vw, 96px);
}

.mbs-shop-pagination .woocommerce-pagination {
    display: flex;
    justify-content: center;
}

.mbs-shop-pagination .woocommerce-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.mbs-shop-pagination .woocommerce-pagination ul li {
    float: none;
    margin: 0;
    border: 0;
}

.mbs-shop-pagination .page-numbers a,
.mbs-shop-pagination .page-numbers span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    padding: 8px 12px !important;
    border: 1px solid var(--mbs-shop-border);
    color: var(--mbs-shop-navy);
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 200ms ease,
        background-color 200ms ease,
        border-color 200ms ease;
}

.mbs-shop-pagination .page-numbers a:hover,
.mbs-shop-pagination .page-numbers a:focus-visible,
.mbs-shop-pagination .page-numbers span.current {
    border-color: var(--mbs-shop-navy);
    color: #ffffff;
    background: var(--mbs-shop-navy);
}

.mbs-shop-empty {
    max-width: 680px;
    margin: 20px auto;
    padding: clamp(52px, 8vw, 90px) 30px;
    border: 1px solid var(--mbs-shop-border);
    background: #ffffff;
    text-align: center;
}

.mbs-shop-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 25px;
    border: 1px solid var(--mbs-shop-border);
    border-radius: 50%;
    color: var(--mbs-shop-accent-dark);
}

.mbs-shop-empty__icon svg {
    width: 29px;
    height: 29px;
}

.mbs-shop-empty h2 {
    margin: 0;
    color: var(--mbs-shop-navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(35px, 4vw, 48px);
    font-weight: 500;
    line-height: 1;
}

.mbs-shop-empty p {
    max-width: 460px;
    margin: 18px auto 0;
    color: var(--mbs-shop-muted);
    font-size: 15px;
    line-height: 1.75;
}

.mbs-shop-empty > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 28px;
    padding: 13px 24px;
    color: #ffffff;
    background: var(--mbs-shop-navy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 1280px) {
    .mbs-shop-container {
        width: min(calc(100% - 32px), 1500px);
    }

    .mbs-shop-page ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 45px 16px !important;
    }

    .mbs-shop-card__title {
        font-size: clamp(18px, 1.6vw, 22px);
    }
}

@media (max-width: 979px) {
    .mbs-shop-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 40px 20px !important;
    }

    .mbs-shop-card__view {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 720px) {
    .mbs-shop-container {
        width: min(calc(100% - 28px), 1780px);
    }

    .mbs-shop-hero {
        padding: 34px 0 64px;
    }

    .mbs-shop-breadcrumbs {
        margin-bottom: 42px;
        font-size: 9px;
    }

    .mbs-shop-title {
        font-size: clamp(52px, 18vw, 76px);
        letter-spacing: -1.4px;
    }

    .mbs-shop-description {
        margin-top: 20px;
        font-size: 14px;
        line-height: 1.7;
    }

    .mbs-shop-category-link {
        min-height: 59px;
        padding-inline: 18px;
        font-size: 9px;
    }

    .mbs-shop-catalog {
        padding: 48px 0 76px;
    }

    .mbs-shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        margin-bottom: 32px;
    }

    .mbs-shop-ordering {
        width: 100%;
    }

    .mbs-shop-ordering .woocommerce-ordering {
        flex: 1;
    }

    .mbs-shop-ordering select {
        width: 100%;
        min-width: 0;
    }

    .mbs-shop-page ul.products {
        gap: 31px 11px !important;
    }

    .mbs-shop-card__media {
        aspect-ratio: 4 / 5.45;
    }

    .mbs-shop-card__badges {
        top: 9px;
        left: 9px;
        gap: 5px;
        max-width: calc(100% - 18px);
    }

    .mbs-shop-card__badge {
        min-height: 26px;
        padding: 6px 8px;
        font-size: 7px;
        letter-spacing: 0.8px;
    }

    .mbs-shop-card__view {
        right: 8px;
        bottom: 8px;
        left: 8px;
        min-height: 40px;
        padding: 9px 8px;
        font-size: 8px;
        letter-spacing: 0.9px;
    }

    .mbs-shop-card__view svg {
        display: none;
    }

    .mbs-shop-card__content {
        padding: 14px 2px 0;
    }

    .mbs-shop-card__category {
        margin-bottom: 5px;
        font-size: 7px;
        letter-spacing: 1px;
    }

    .mbs-shop-card__title {
        font-size: 16px;
        line-height: 1.15;
    }

    .mbs-shop-card__rating {
        margin-top: 7px;
    }

    .mbs-shop-card__rating .star-rating {
        font-size: 10px;
    }

    .mbs-shop-card__footer {
        gap: 9px;
        padding-top: 10px;
    }

    .mbs-shop-card__price {
        min-height: 20px;
        font-size: 12px;
    }

    .mbs-shop-card__cart,
    .mbs-shop-page ul.products li.product .mbs-shop-card__cart.button {
        min-height: 40px;
        padding: 9px 7px !important;
        font-size: 8px !important;
        letter-spacing: 0.9px !important;
    }

    .mbs-shop-pagination .page-numbers a,
    .mbs-shop-pagination .page-numbers span {
        min-width: 40px;
        min-height: 40px;
    }
}

@media (max-width: 390px) {
    .mbs-shop-page ul.products {
        column-gap: 8px !important;
    }

    .mbs-shop-card__title {
        font-size: 14px;
    }

    .mbs-shop-card__cart,
    .mbs-shop-page ul.products li.product .mbs-shop-card__cart.button {
        font-size: 7px !important;
    }
}

@media (hover: none) {
    .mbs-shop-card__view {
        opacity: 1;
        transform: none;
    }

    .mbs-shop-card:hover .mbs-shop-card__image {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mbs-shop-page *,
    .mbs-shop-page *::before,
    .mbs-shop-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}