/* My Elementor Addons frontend styles. */
.mea-product-card { box-sizing: border-box; padding: 16px; border: 1px solid #e5e5e5; border-radius: 4px; background: #fff; }
.mea-product-image img, .mea-grid-image img { display: block; max-width: 100%; height: auto; margin: 0 auto 12px; }
.mea-product-title { margin: 0 0 8px; }
.mea-product-price { margin: 0 0 12px; }
.mea-product-grid { display: grid; grid-template-columns: repeat(var(--mea-columns, 4), minmax(0, 1fr)); gap: 20px; }
.mea-product-grid .mea-product-title a { color: inherit; text-decoration: none; }
.mea-view-cart { display: inline-block; margin-inline-start: 8px; font-size: .9em; }
.mea-sticky-header { position: sticky; top: 0; z-index: 999; transition: background-color .2s ease, box-shadow .2s ease; }
.mea-sticky-header.mea-is-stuck { background-color: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.12); }

/* Full-bleed site parts: break out of Hello Elementor and other theme containers. */
html, body { overflow-x: clip; }
body .mea-template {
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    left: auto !important;
    right: auto !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    clear: both !important;
}

/* Elementor document root must fill the plugin wrapper. */
body .mea-template > .elementor {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Make the template's top-level layout container and HTML widget fill the row.
   Nested inner containers retain their Elementor-designed widths. */
body .mea-template > .elementor > .e-con,
body .mea-template > .elementor > .elementor-element.e-con,
body .mea-template > .elementor > .elementor-section,
body .mea-template .elementor-widget-html,
body .mea-template .elementor-widget-html > .elementor-widget-container {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

body .mea-template .elementor-section.elementor-section-stretched,
body .mea-template .e-con.e-parent { max-width: none; }

@media (max-width: 767px) {
    body .mea-template { width: 100vw !important; max-width: 100vw !important; }
    body .mea-template > .elementor { width: 100% !important; max-width: none !important; }
    .mea-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .mea-product-grid { grid-template-columns: 1fr; } }

/* WooCommerce category cards and product layout. */
.mea-category-grid { display:grid; grid-template-columns:repeat(var(--mea-columns,4),minmax(0,1fr)); gap:20px; }
.mea-category-card { box-sizing:border-box; text-align:center; padding:14px; border:1px solid #e5e5e5; border-radius:4px; background:#fff; }
.mea-category-card a { color:inherit; text-decoration:none; }
.mea-category-image img { display:block; width:100%; height:auto; margin:0 auto 12px; }
.mea-category-card h3 { margin:0 0 6px; }
.mea-category-count { display:block; font-size:.9em; opacity:.75; }
.mea-sale-badge { display:inline-block; padding:3px 8px; margin-bottom:8px; background:#d63638; color:#fff; border-radius:3px; font-size:12px; }
@media(max-width:767px){.mea-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:480px){.mea-category-grid{grid-template-columns:1fr;}}
