.mpds-active {
    --mpds-bg: #f4f6f9;
    --mpds-card: #ffffff;
    --mpds-text: #12182b;
    --mpds-muted: #667085;
    --mpds-border: #e7eaf0;
    --mpds-radius: 20px;
    --mpds-shadow: 0 18px 55px rgba(20, 28, 55, .10);
    background: var(--mpds-bg);
}

.mpds-active .site-content,
.mpds-active #content,
.mpds-active .content-area,
.mpds-active .site-main {
    width: 100% !important;
    max-width: none !important;
}

.mpds-active #secondary,
.mpds-active .widget-area,
.mpds-active .sidebar,
.mpds-active .ast-container #secondary {
    display: none !important;
}

.mpds-page-shell {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 72px;
    box-sizing: border-box;
}

.mpds-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--mpds-accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
}

.mpds-shop-hero {
    position: relative;
    overflow: hidden;
    padding: 58px clamp(26px, 6vw, 82px);
    border: 1px solid rgba(109, 61, 245, .14);
    border-radius: 28px;
    background:
        radial-gradient(circle at 10% 15%, rgba(255, 255, 255, .95), transparent 32%),
        linear-gradient(135deg, color-mix(in srgb, var(--mpds-accent) 18%, white), #ffffff 72%);
    box-shadow: var(--mpds-shadow);
}

.mpds-shop-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    left: -150px;
    bottom: -230px;
    background: color-mix(in srgb, var(--mpds-accent) 24%, transparent);
    filter: blur(12px);
}

.mpds-shop-hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.mpds-shop-hero h1,
.mpds-tax-header h1,
.mpds-product-header h1 {
    margin: 0;
    color: var(--mpds-text);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.mpds-shop-hero h1 {
    font-size: clamp(34px, 4.2vw, 58px);
}

.mpds-shop-hero p {
    max-width: 740px;
    margin: 18px 0 0;
    color: var(--mpds-muted);
    font-size: 18px;
    line-height: 1.9;
}

.mpds-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.mpds-hero-points span,
.mpds-product-header__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid rgba(109, 61, 245, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    color: #3f4758;
    font-size: 13px;
    font-weight: 800;
}

.mpds-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 34px 0 24px;
}

.mpds-shop-toolbar .woocommerce-result-count,
.mpds-shop-toolbar .woocommerce-ordering {
    float: none !important;
    margin: 0 !important;
}

.mpds-shop-toolbar select {
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--mpds-border);
    border-radius: 12px;
    background: #fff;
    color: var(--mpds-text);
}

.mpds-shop-page ul.products,
.mpds-related ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin: 0 !important;
    padding: 0 !important;
}

.mpds-shop-page ul.products {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

.mpds-shop-page ul.products li.product:only-child {
    max-width: 430px;
    width: 100% !important;
    justify-self: end;
}

.mpds-product-details,
.mpds-related {
    position: relative;
    clear: both !important;
    float: none !important;
    width: 100% !important;
}

.mpds-shop-page ul.products::before,
.mpds-shop-page ul.products::after,
.mpds-related ul.products::before,
.mpds-related ul.products::after {
    display: none !important;
}

.mpds-shop-page ul.products li.product,
.mpds-related ul.products li.product {
    position: relative;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 12px 12px 18px !important;
    overflow: hidden;
    border: 1px solid var(--mpds-border);
    border-radius: var(--mpds-radius);
    background: var(--mpds-card);
    box-shadow: 0 10px 34px rgba(23, 31, 60, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    direction: rtl;
    text-align: right;
}

.mpds-shop-page ul.products li.product:hover,
.mpds-related ul.products li.product:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--mpds-accent) 30%, white);
    box-shadow: 0 22px 50px rgba(23, 31, 60, .13);
}

.mpds-shop-page ul.products li.product a.woocommerce-LoopProduct-link,
.mpds-related ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.mpds-shop-page ul.products li.product img,
.mpds-related ul.products li.product img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 18px !important;
    object-fit: cover;
    border-radius: 14px;
    background: #f2f4f7;
}

.mpds-digital-badge {
    position: absolute;
    z-index: 3;
    top: 26px;
    right: 26px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(18, 24, 43, .88);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.mpds-shop-page .woocommerce-loop-product__title,
.mpds-related .woocommerce-loop-product__title {
    min-height: 56px;
    margin: 0 !important;
    padding: 0 8px !important;
    color: var(--mpds-text);
    font-size: 21px !important;
    line-height: 1.4;
    font-weight: 900;
}

.mpds-loop-excerpt {
    min-height: 52px;
    margin: 9px 8px 14px;
    color: var(--mpds-muted);
    font-size: 14px;
    line-height: 1.75;
}

.mpds-shop-page ul.products li.product .price,
.mpds-related ul.products li.product .price {
    display: block;
    margin: 0 8px 16px !important;
    color: var(--mpds-accent) !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

.mpds-view-product {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: calc(100% - 16px) !important;
    min-height: 52px;
    margin: 0 8px !important;
    padding: 12px 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--mpds-accent) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.mpds-product-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--mpds-border);
}

.mpds-product-header h1 {
    font-size: clamp(34px, 4vw, 54px);
}

.mpds-product-header__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.mpds-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(360px, .88fr);
    align-items: start;
    gap: 38px;
    direction: ltr;
}

.mpds-product-media,
.mpds-purchase-card,
.mpds-product-details,
.mpds-related {
    min-width: 0;
}

.mpds-product-media {
    padding: 18px;
    border: 1px solid var(--mpds-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--mpds-shadow);
}

.mpds-product-media .woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.mpds-product-media .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
}

.mpds-product-media .woocommerce-product-gallery__image,
.mpds-product-media .woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
}

.mpds-product-media .woocommerce-product-gallery__image img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: 760px;
    border-radius: 14px;
    object-fit: contain;
    background: #f8f9fb;
}

.mpds-product-media .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 14px 0 0 !important;
    padding: 0 !important;
}

.mpds-product-media .flex-control-thumbs li {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.mpds-product-media .flex-control-thumbs img {
    border: 1px solid var(--mpds-border);
    border-radius: 9px;
}

.mpds-product-buy-column {
    position: sticky;
    top: 96px;
    direction: rtl;
}

.mpds-purchase-card {
    padding: 28px;
    border: 1px solid var(--mpds-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--mpds-shadow);
}

.mpds-license-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--mpds-border);
}

.mpds-license-label {
    display: block;
    color: var(--mpds-text);
    font-size: 19px;
    font-weight: 900;
}

.mpds-license-row small {
    display: block;
    margin-top: 5px;
    color: var(--mpds-muted);
    font-size: 12px;
}

.mpds-license-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--mpds-accent) 12%, white);
    color: var(--mpds-accent);
    font-weight: 900;
}

.mpds-card-price .price {
    display: block;
    margin: 0 0 20px !important;
    color: var(--mpds-text) !important;
    font-size: clamp(38px, 4vw, 52px) !important;
    line-height: 1.15;
    font-weight: 900 !important;
}

.mpds-card-excerpt {
    margin-bottom: 22px;
    color: var(--mpds-muted);
    font-size: 15px;
    line-height: 1.85;
}

.mpds-card-excerpt p {
    margin: 0;
}

.mpds-card-cart form.cart {
    display: block !important;
    margin: 0 !important;
}

.mpds-card-cart .quantity {
    display: none !important;
}

.mpds-card-cart .single_add_to_cart_button,
.mpds-preview-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 58px;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-sizing: border-box;
}

.mpds-card-cart .single_add_to_cart_button {
    float: none !important;
    border: 0 !important;
    background: var(--mpds-accent) !important;
    color: #fff !important;
}

.mpds-preview-button {
    margin-top: 10px;
    border: 1px solid var(--mpds-border) !important;
    background: #fff;
    color: var(--mpds-text) !important;
}

.mpds-purchase-benefits {
    display: grid;
    gap: 13px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--mpds-border);
}

.mpds-purchase-benefits > div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #475467;
    font-size: 14px;
    line-height: 1.6;
}

.mpds-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--mpds-accent) 12%, white);
    color: var(--mpds-accent);
    font-size: 13px;
    font-weight: 900;
}

.mpds-card-cart table.variations {
    width: 100%;
    margin-bottom: 16px !important;
}

.mpds-card-cart table.variations th,
.mpds-card-cart table.variations td {
    display: block;
    width: 100%;
    padding: 0 0 8px !important;
    text-align: right;
}

.mpds-card-cart table.variations select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--mpds-border);
    border-radius: 10px;
    background: #fff;
}

.mpds-product-details {
    margin-top: 42px;
    padding: 30px;
    border: 1px solid var(--mpds-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(23, 31, 60, .06);
}

.mpds-product-details .woocommerce-tabs {
    margin: 0 !important;
}

.mpds-product-details ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

.mpds-product-details ul.tabs::before,
.mpds-product-details ul.tabs li::before,
.mpds-product-details ul.tabs li::after {
    display: none !important;
}

.mpds-product-details ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--mpds-border) !important;
    border-radius: 999px !important;
    background: #fff !important;
}

.mpds-product-details ul.tabs li.active {
    border-color: var(--mpds-accent) !important;
    background: color-mix(in srgb, var(--mpds-accent) 8%, white) !important;
}

.mpds-product-details ul.tabs li a {
    padding: 10px 17px !important;
    color: var(--mpds-text) !important;
    font-weight: 800 !important;
}

.mpds-product-details .woocommerce-Tabs-panel {
    color: #475467;
    line-height: 1.9;
}

.mpds-related {
    margin-top: 38px;
}

.mpds-section-heading {
    margin-bottom: 22px;
}

.mpds-section-heading span {
    color: var(--mpds-accent);
    font-size: 13px;
    font-weight: 900;
}

.mpds-section-heading h2 {
    margin: 5px 0 0;
    color: var(--mpds-text);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 900;
}

.mpds-empty-store {
    margin-top: 34px;
    padding: 68px 24px;
    border: 1px solid var(--mpds-border);
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: var(--mpds-shadow);
}

.mpds-empty-store__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--mpds-accent) 10%, white);
    color: var(--mpds-accent);
    font-size: 30px;
}

.mpds-empty-store h2 {
    margin: 0 0 10px;
    color: var(--mpds-text);
    font-size: 28px;
}

.mpds-empty-store p {
    margin: 0 0 18px;
    color: var(--mpds-muted);
}

.mpds-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 11px;
    background: var(--mpds-accent);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
}

.mpds-tax-header {
    margin-bottom: 30px;
    padding: 32px;
    border: 1px solid var(--mpds-border);
    border-radius: 20px;
    background: #fff;
}

.mpds-tax-header h1 {
    font-size: clamp(32px, 4vw, 48px);
}

.mpds-pagination {
    margin-top: 34px;
}

.mpds-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    border: 0 !important;
}

.mpds-pagination ul.page-numbers li {
    border: 0 !important;
}

.mpds-pagination ul.page-numbers a,
.mpds-pagination ul.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--mpds-border);
    border-radius: 10px;
    background: #fff;
}

.mpds-mobile-buy-bar {
    display: none;
}

@media (max-width: 1050px) {
    .mpds-product-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(330px, .85fr);
        gap: 26px;
    }

    .mpds-shop-page ul.products,
    .mpds-related ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .mpds-product-layout {
        grid-template-columns: 1fr;
        direction: rtl;
    }

    .mpds-product-buy-column {
        position: static;
    }
}

@media (max-width: 767px) {
    .mpds-active {
        padding-bottom: 86px;
    }

    .mpds-page-shell {
        width: min(100% - 24px, 1320px);
        padding: 26px 0 46px;
    }

    .mpds-shop-hero {
        padding: 34px 22px;
        border-radius: 20px;
    }

    .mpds-shop-hero p {
        font-size: 15px;
    }

    .mpds-hero-points {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mpds-shop-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .mpds-shop-toolbar select {
        width: 100%;
    }

    .mpds-shop-page ul.products,
    .mpds-related ul.products {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mpds-product-header {
        display: block;
        margin-bottom: 20px;
    }

    .mpds-product-header h1 {
        font-size: 32px;
    }

    .mpds-product-header__meta {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .mpds-product-media {
        padding: 10px;
        border-radius: 16px;
    }

    .mpds-purchase-card,
    .mpds-product-details {
        padding: 20px;
        border-radius: 16px;
    }

    .mpds-product-details {
        margin-top: 22px;
    }

    .mpds-mobile-buy-bar {
        position: fixed;
        z-index: 99998;
        right: 0;
        left: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 12px 16px;
        border-top: 1px solid var(--mpds-border);
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 -10px 35px rgba(19, 33, 47, .13);
        backdrop-filter: blur(12px);
    }

    .mpds-mobile-buy-bar__price {
        color: var(--mpds-text);
        font-size: 18px;
        font-weight: 900;
        white-space: nowrap;
    }

    .mpds-mobile-buy-button {
        flex: 1;
        min-height: 48px;
        border: 0;
        border-radius: 11px;
        background: var(--mpds-accent);
        color: #fff;
        font-size: 15px;
        font-weight: 900;
    }
}
