/* 
 * Modern Product Card UI for WooCommerce
 */

/* General Card Resets to remove theme clutters if possible */
body.mbd-active .products .product {
    position: relative;
    border-radius: var(--mbd-radius, 8px);
    background: #fff;
    box-shadow: var(--mbd-shadow, none);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

body.mbd-active .products .product:hover {
    box-shadow: var(--mbd-shadow, 0 8px 24px rgba(0,0,0,0.1));
    transform: translateY(-2px);
}

body.mbd-active .products .product a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

body.mbd-active .products .product img {
    border-radius: var(--mbd-radius, 8px) var(--mbd-radius, 8px) 0 0;
    margin-bottom: 0;
    width: 100%;
}

/* Product card: hover gallery slider (scoped to wrapper — works with any grid markup, not only ul.products) */
body.mbd-gallery-hover-enabled .mbd-product-gallery-hover {
    display: block;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--mbd-radius, 8px) var(--mbd-radius, 8px) 0 0;
    flex-shrink: 0;
}

body.mbd-gallery-hover-enabled .mbd-gallery-viewport {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    line-height: 0;
}

body.mbd-gallery-hover-enabled .mbd-gallery-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: calc(var(--mbd-slide-count, 1) * 100%);
    max-width: none;
    transform: translate3d(0, 0, 0);
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    box-sizing: border-box;
}

body.mbd-gallery-hover-enabled .mbd-gallery-slide-img {
    flex: 0 0 calc(100% / var(--mbd-slide-count, 1));
    width: calc(100% / var(--mbd-slide-count, 1)) !important;
    max-width: calc(100% / var(--mbd-slide-count, 1)) !important;
    min-width: 0;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
    body.mbd-gallery-hover-enabled .mbd-gallery-track {
        transition: none;
    }
}

body.mbd-active .products .product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--mbd-price-color, #111);
    margin: 15px 15px 8px;
    padding: 0;
    line-height: 1.4;
}

body.mbd-active .products .product .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--mbd-sale-color, #e74c3c);
    margin: 0 15px 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

body.mbd-active .products .product .price del {
    color: var(--mbd-muted-color, #888);
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
}

body.mbd-active .products .product .price ins {
    background: transparent;
    text-decoration: none;
    font-weight: 700;
}

/* Action Wrapper */
.mbd-action-wrapper {
    padding: 0 15px 15px;
    margin-top: auto; /* Push to bottom */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Buttons Container */
.mbd-buttons-container {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
}

.mbd-buttons-container.mbd-full-width {
    flex-direction: column;
}

/*
 * Simple product + quantity: matches admin preview — row 1: qty | Add to cart, row 2: Buy now full width.
 */
.mbd-action-primary-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: stretch;
    width: 100%;
}

.mbd-action-wrapper .mbd-action-primary-row .mbd-qty-control {
    flex: 0 1 42%;
    min-width: 110px;
    max-width: 48%;
    width: auto;
}

.mbd-action-wrapper .mbd-action-primary-row a.button.mbd-atc-button {
    flex: 1 1 0;
    min-width: 0;
    flex-grow: 1;
}

.mbd-action-secondary-row {
    display: flex;
    width: 100%;
}

.mbd-action-secondary-row .mbd-buy-now-btn {
    flex: 1 1 100%;
    width: 100%;
}

/* Icons */
.mbd-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    display: inline-block;
    vertical-align: middle;
}

/* Base Button Styles */
.mbd-action-wrapper a.button.mbd-atc-button,
.mbd-action-wrapper a.mbd-buy-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--mbd-radius, 8px);
    transition: all 0.2s ease;
    text-decoration: none;
    flex-grow: 1;
    border: none;
    line-height: 1;
    cursor: pointer;
    margin: 0;
}

/* Primary ATC */
.mbd-action-wrapper a.button.mbd-atc-button {
    background: var(--mbd-primary-bg, #000);
    color: var(--mbd-primary-text, #fff);
}
.mbd-action-wrapper a.button.mbd-atc-button:hover {
    opacity: 0.9;
    color: var(--mbd-primary-text, #fff);
    background: var(--mbd-primary-bg, #000);
}
.mbd-action-wrapper a.button.mbd-atc-button.loading,
.mbd-action-wrapper a.mbd-buy-now-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}
.mbd-action-wrapper a.button.mbd-atc-button.mbd-added {
    background: #27ae60 !important;
    color: #fff !important;
}

/* Secondary Button (Variable / Select Options) */
.mbd-action-wrapper a.button.mbd-atc-button.mbd-btn-secondary {
    background: transparent;
    color: var(--mbd-primary-bg, #000);
    border: 1px solid var(--mbd-primary-bg, #000);
    width: 100%;
}
.mbd-action-wrapper a.button.mbd-atc-button.mbd-btn-secondary:hover {
    background: var(--mbd-primary-bg, #000);
    color: var(--mbd-primary-text, #fff);
}

/* Full Width Container Fix */
.mbd-buttons-container.mbd-full-width a.button.mbd-atc-button {
    width: 100%;
    flex: none;
}

/* Buy Now */
.mbd-action-wrapper a.mbd-buy-now-btn {
    background: #f1f1f1;
    color: #111;
}
.mbd-action-wrapper a.mbd-buy-now-btn:hover {
    background: #e2e2e2;
}

/* Quantity Control */
.mbd-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: var(--mbd-radius, 8px);
    height: 40px;
    overflow: hidden;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
}

.mbd-qty-btn {
    background: #f9f9f9;
    border: none;
    width: 40px;
    height: 100%;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.mbd-qty-btn:hover {
    background: #ebebeb;
}

.mbd-qty-input {
    flex-grow: 1;
    border: none !important;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: #fff;
    -moz-appearance: textfield;
}

.mbd-qty-input::-webkit-outer-spin-button,
.mbd-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Density Settings */
body.mbd-density-compact .products .product .woocommerce-loop-product__title {
    margin: 10px 10px 5px;
    font-size: 14px;
}
body.mbd-density-compact .products .product .price {
    margin: 0 10px 10px;
    font-size: 14px;
}
body.mbd-density-compact .mbd-action-wrapper {
    padding: 0 10px 10px;
    width: 100%;
}
body.mbd-density-compact .mbd-action-wrapper a.button.mbd-atc-button,
body.mbd-density-compact .mbd-action-wrapper a.mbd-buy-now-btn,
body.mbd-density-compact .mbd-qty-control {
    height: 36px;
    font-size: 13px;
}


/* Inline Feedback */
.mbd-inline-feedback {
    display: none;
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    padding: 8px;
    background: #f8fff9;
    border: 1px solid #c3e6cb;
    border-radius: var(--mbd-radius, 8px);
    color: #155724;
}
.mbd-inline-feedback a.mbd-view-cart-link {
    font-weight: 600;
    color: #155724;
    text-decoration: underline;
    margin-left: 5px;
}

/* Toast Container */
.mbd-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mbd-toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    padding: 12px 20px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    border-left: 4px solid #27ae60;
}

.mbd-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.mbd-toast-icon {
    width: 24px;
    height: 24px;
    background: #27ae60;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.mbd-toast-icon svg {
    width: 14px;
    height: 14px;
}

.mbd-toast-content {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.mbd-toast-content a {
    font-weight: 600;
    color: var(--mbd-primary-bg, #000);
    text-decoration: underline;
    margin-left: 5px;
}


/* === STYLE PRESETS === */

/* Style 1: Minimal Fashion */
body.mbd-style-1 .products .product {
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    text-align: start;
}
body.mbd-style-1 .products .product:hover {
    box-shadow: none;
    transform: none;
}
body.mbd-style-1 .products .product img {
    border-radius: 0;
}
body.mbd-style-1 .mbd-action-wrapper {
    padding: 0;
    margin-top: 15px;
}
body.mbd-style-1 .mbd-action-wrapper a.button.mbd-atc-button,
body.mbd-style-1 .mbd-action-wrapper a.mbd-buy-now-btn,
body.mbd-style-1 .mbd-qty-control {
    border-radius: 0;
    border: 1px solid var(--mbd-primary-bg, #000);
}
body.mbd-style-1 .mbd-action-wrapper a.mbd-buy-now-btn {
    background: transparent;
    color: var(--mbd-primary-bg, #000);
}
body.mbd-style-1 .mbd-buttons-container {
    flex-direction: column;
}
body.mbd-style-1 .mbd-action-primary-row {
    flex-direction: column;
}
body.mbd-style-1 .mbd-action-primary-row .mbd-qty-control,
body.mbd-style-1 .mbd-action-primary-row a.button.mbd-atc-button {
    max-width: none;
    width: 100%;
}

/* Style 2: Compact Premium */
body.mbd-style-2 .products .product {
    text-align: start;
}
body.mbd-style-2 .products .product .woocommerce-loop-product__title {
    font-size: 15px;
}
body.mbd-style-2 .mbd-buttons-container {
    flex-wrap: wrap;
}
body.mbd-style-2 .mbd-action-primary-row {
    flex-wrap: wrap;
}

/* Style 3: Floating Pill */
body.mbd-style-3 .products .product {
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: none;
    text-align: start;
}
body.mbd-style-3 .products .product img {
    border-radius: 24px 24px 0 0;
}
body.mbd-style-3 .mbd-action-wrapper a.button.mbd-atc-button,
body.mbd-style-3 .mbd-action-wrapper a.mbd-buy-now-btn,
body.mbd-style-3 .mbd-qty-control {
    border-radius: 30px;
}

/* Style 4: Bold Brutalist */
body.mbd-style-4 .products .product {
    border: 2px solid #000;
    border-radius: 0;
    box-shadow: 4px 4px 0px #000;
    text-align: start;
}
body.mbd-style-4 .products .product:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}
body.mbd-style-4 .products .product img {
    border-radius: 0;
    border-bottom: 2px solid #000;
}
body.mbd-style-4 .mbd-action-wrapper a.button.mbd-atc-button,
body.mbd-style-4 .mbd-action-wrapper a.mbd-buy-now-btn,
body.mbd-style-4 .mbd-qty-control {
    border: 2px solid #000;
    border-radius: 0;
    font-weight: 800;
    text-transform: uppercase;
}
body.mbd-style-4 .mbd-action-wrapper a.mbd-buy-now-btn {
    background: #fff;
}

/* Style 5: Clean Iconic Compact */
body.mbd-style-5 .products .product {
    /* Centers title, price, category row, and other theme meta from one place */
    text-align: center;
}
body.mbd-style-5 .products .product .woocommerce-loop-product__title,
body.mbd-style-5 .products .product .price {
    text-align: center;
    justify-content: center;
}
/* Category / shop loop meta — themes use many class names; inherit center from .product */
body.mbd-style-5 .products .product .product-categories,
body.mbd-style-5 .products .product .woocommerce-loop-product__categories,
body.mbd-style-5 .products .product .ast-woo-product-category,
body.mbd-style-5 .products .product .ast-loop-product__category,
body.mbd-style-5 .products .product .product-category,
body.mbd-style-5 .products .product .loop-product-categories,
body.mbd-style-5 .products .product .wc-product-category,
body.mbd-style-5 .products .product .elementor-loop-product__category,
body.mbd-style-5 .products .product .woocommerce-loop-category,
body.mbd-style-5 .products .product .owp-product-categories {
    text-align: center;
    justify-content: center;
}
/* Themes that use flex for the category row */
body.mbd-style-5 .products .product .ast-woo-product-category,
body.mbd-style-5 .products .product .ast-loop-product__category,
body.mbd-style-5 .products .product .product-categories.ast-woo-product-category {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}
body.mbd-style-5 .products .product .product-categories a,
body.mbd-style-5 .products .product .ast-woo-product-category a {
    display: inline-block;
}
body.mbd-style-5 .mbd-buttons-container {
    justify-content: center;
}
body.mbd-style-5 .mbd-action-primary-row,
body.mbd-style-5 .mbd-action-secondary-row {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
}


/* Hide default WooCommerce ATC wrapper if it exists outside our wrapper (Theme defenses) */
body.mbd-active .products .product > .button.add_to_cart_button,
body.mbd-active .products .product .added_to_cart.wc-forward,
body.mbd-active .mbd-action-wrapper .added_to_cart.wc-forward {
    display: none !important;
}

/* === QUICK VIEW MODAL === */

/* Make loop images clickable when Quick View is on */
body.mbd-quick-view-enabled .products .product a.woocommerce-LoopProduct-link img[data-mbd-product-id],
body.mbd-quick-view-enabled .products .product .mbd-product-gallery-hover[data-mbd-product-id] {
    cursor: pointer;
}

/* Overlay */
.mbd-qv-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mbd-qv-overlay.mbd-qv-visible {
    opacity: 1;
}

/* Modal */
.mbd-qv-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    opacity: 0;
}
.mbd-qv-visible .mbd-qv-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button */
.mbd-qv-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mbd-qv-close:hover {
    background: #f5f5f5;
}

/* Loader */
.mbd-qv-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.mbd-qv-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #eee;
    border-top-color: var(--mbd-primary-bg, #000);
    border-radius: 50%;
    animation: mbdSpin 0.7s linear infinite;
}
@keyframes mbdSpin {
    to { transform: rotate(360deg); }
}

/* Content layout */
.mbd-qv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

/* Left: images */
.mbd-qv-images {
    position: relative;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mbd-qv-main-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 320px;
}
.mbd-qv-main-img img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 6px;
    transition: opacity 0.25s ease;
}
.mbd-qv-thumbs {
    display: flex;
    gap: 8px;
    padding: 0 24px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.mbd-qv-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
    background: #fff;
}
.mbd-qv-thumb.active {
    border-color: var(--mbd-primary-bg, #000);
}
.mbd-qv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right: details */
.mbd-qv-details {
    padding: 32px 28px;
    overflow-y: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mbd-qv-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--mbd-price-color, #111);
    line-height: 1.3;
    margin: 0;
}
.mbd-qv-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--mbd-sale-color, #e74c3c);
}
.mbd-qv-price del {
    color: var(--mbd-muted-color, #999);
    font-weight: 400;
    font-size: 15px;
}
.mbd-qv-price ins {
    text-decoration: none;
    background: none;
}
.mbd-qv-short-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}
.mbd-qv-short-desc p {
    margin: 0 0 8px;
}
.mbd-qv-sku {
    font-size: 13px;
    color: var(--mbd-muted-color, #999);
}

/* Attributes */
.mbd-qv-attributes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mbd-qv-attr-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mbd-qv-attr-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.mbd-qv-attr-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mbd-qv-attr-chip {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mbd-qv-attr-chip:hover {
    border-color: #999;
}
.mbd-qv-attr-chip.active {
    border-color: var(--mbd-primary-bg, #000);
    background: var(--mbd-primary-bg, #000);
    color: var(--mbd-primary-text, #fff);
}

/* Disabled button state */
.mbd-qv-btn-disabled,
.mbd-qv-btn-disabled:hover {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Variation message */
.mbd-qv-variation-msg {
    display: none;
    font-size: 13px;
    color: #c0392b;
}

/* Actions row */
.mbd-qv-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}
.mbd-qv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--mbd-radius, 8px);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}
.mbd-qv-btn-primary {
    background: var(--mbd-primary-bg, #000);
    color: var(--mbd-primary-text, #fff);
}
.mbd-qv-btn-primary:hover {
    opacity: 0.9;
}
.mbd-qv-btn-secondary {
    background: #f1f1f1;
    color: #111;
}
.mbd-qv-btn-secondary:hover {
    background: #e2e2e2;
}
.mbd-qv-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--mbd-muted-color, #888);
    text-decoration: underline;
}
.mbd-qv-link:hover {
    color: var(--mbd-price-color, #111);
}
.mbd-qv-stock-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.mbd-qv-stock-badge.in-stock {
    background: #ecfdf5;
    color: #059669;
}
.mbd-qv-stock-badge.out-of-stock {
    background: #fef2f2;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 700px) {
    .mbd-qv-content {
        grid-template-columns: 1fr;
    }
    .mbd-qv-main-img {
        min-height: 220px;
        padding: 16px;
    }
    .mbd-qv-main-img img {
        max-height: 260px;
    }
    .mbd-qv-details {
        padding: 20px 16px;
        max-height: 50vh;
    }
    .mbd-qv-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 10px;
    }
    .mbd-qv-thumbs {
        padding: 0 16px 12px;
    }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .mbd-buttons-container {
        flex-direction: column;
    }
    .mbd-buttons-container .mbd-atc-button,
    .mbd-buttons-container .mbd-buy-now-btn {
        width: 100%;
    }
    .mbd-action-primary-row {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .mbd-action-primary-row .mbd-qty-control,
    .mbd-action-wrapper .mbd-action-primary-row a.button.mbd-atc-button {
        height: 44px;
        width: auto;
    }
    .mbd-action-primary-row .mbd-qty-control {
        flex: 0 1 40%;
        min-width: 100px;
        max-width: 50%;
    }
    .mbd-action-wrapper .mbd-action-primary-row a.button.mbd-atc-button {
        flex: 1 1 0;
        min-width: 0;
    }
    .mbd-action-secondary-row .mbd-buy-now-btn {
        width: 100%;
        height: 44px;
    }
    .mbd-action-wrapper a.button.mbd-atc-button,
    .mbd-action-wrapper a.mbd-buy-now-btn {
        min-height: 44px;
    }
    body.mbd-active .products .product .woocommerce-loop-product__title {
        font-size: 14px;
        margin: 10px 10px 5px;
    }
    body.mbd-active .products .product .price {
        font-size: 14px;
        margin: 0 10px 10px;
    }
    .mbd-action-wrapper {
        padding: 0 10px 10px;
    }
}
