/*
Theme Name: Miraecle Astra
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: miraecle-astra
Template: astra
*/

/* ── Miraecle Nav ── */
.miraecle-nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.miraecle-nav-item {
    position: static;
    height: 80px;
    display: flex;
    align-items: center;
}

body.elementor-kit-214 nav.miraecle-nav ul.miraecle-nav-list li.miraecle-nav-item a.miraecle-nav-link,
body nav.miraecle-nav ul.miraecle-nav-list li.miraecle-nav-item a.miraecle-nav-link {
    font-size: 14px !important;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #f4f4f4;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* ── Mega Menu ── */
.miraecle-mega {
    position: fixed;
    top: 91px;
    left: 0;
    right: 0;
    width: 100vw;
    background: #f4f4f4;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 9998;
}

.miraecle-nav-item:hover .miraecle-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.miraecle-mega-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 0;
    padding: 48px 80px;
    max-width: 100%;
}

.miraecle-mega-col {
    padding: 0 40px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.miraecle-mega-col:first-child {
    padding-left: 0;
}

.miraecle-mega-col:last-child {
    padding-right: 0;
    border-right: none;
}

.miraecle-mega-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #222222;
    margin-bottom: 16px;
    margin-top: 16px;
    min-height: 32px;
    display: flex;
    align-items: center;
}

.miraecle-mega-title a {
    color: #222222;
    text-decoration: none;
}

.miraecle-mega-title a:hover {
    color: #9b9f73;
}

.miraecle-mega-img {
    width: 100%;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    flex-shrink: 0;
}

.miraecle-mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.miraecle-mega-links li a {
    font-size: 13px;
    font-weight: 500;
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.miraecle-mega-links li a:hover {
    color: #9b9f73;
}

.miraecle-mega-desc {
    font-size: 12px;
    color: #888888;
    line-height: 1.6;
    margin-top: 8px;
}

/* ── Submenu (Astra native fallback) ── */
#masthead .main-header-menu .sub-menu,
#masthead .ast-builder-menu-1 .main-header-menu .sub-menu {
    background-color: #94887B !important;
}

#masthead .main-header-menu .sub-menu .menu-link {
    color: #f4f4f4 !important;
}

/* ── Product Badge ── */
.miraecle-badge-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    pointer-events: none;
}

.miraecle-badge-img {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
}

/* ============================================================
   MIRAECLE PRODUCT PAGE — ELEMENTOR STRUCTURAL FIXES
   These break the widget out of Elementor's flex container
   so the product layout renders at full width.
   Visual styling is handled by the widget's <style> block.
   ============================================================ */

/* Step 1: Make the outer container a block so it doesn't
   constrain our flex wrap */
.elementor-element-48c1282.e-con {
    display: block !important;
    flex-direction: unset !important;
}

/* Step 2: Full width on the widget and its container */
.elementor-element-918dc71.elementor-widget {
    width: 100% !important;
    max-width: 100% !important;
    flex: unset !important;
    align-self: unset !important;
}

.elementor-element-918dc71 > .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* ============================================================
   PRODUCT PAGE — STYLES NOT IN WIDGET
   The widget <style> block handles all visual styling for
   the product layout. These are supplementary rules only.
   ============================================================ */

/* Short description paragraph spacing */
.mrc-short-desc p {
    margin: 0 0 8px 0 !important;
}

/* Star rating color */
.mrc-ratings .star-rating {
    float: none !important;
    color: #9b9f73 !important;
}

/* Price — WooCommerce amount override */
.mrc-price .woocommerce-Price-amount {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1d1d1d !important;
}

/* ADD TO CART */
.mrc-atc-wrap {
    margin-bottom: 20px !important;
}

.mrc-atc-cloned,
.mrc-atc-cloned .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

.mrc-atc-cloned .elementor-add-to-cart,
.mrc-atc-cloned .cart,
.mrc-atc-cloned form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mrc-atc-cloned .quantity {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    height: 50px !important;
    min-width: 90px !important;
    flex: 0 0 auto !important;
    background: #fff !important;
    overflow: hidden !important;
}

.mrc-atc-cloned .qty {
    width: 50px !important;
    height: 50px !important;
    border: none !important;
    outline: none !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    background: #fff !important;
    -moz-appearance: textfield !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.mrc-atc-cloned .qty::-webkit-inner-spin-button,
.mrc-atc-cloned .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mrc-atc-cloned .single_add_to_cart_button {
    flex: 1 !important;
    height: 50px !important;
    background-color: #9b9f73 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mrc-atc-cloned .single_add_to_cart_button:hover {
    background-color: #757d4f !important;
}

/* LOYALTY CTA */
.mrc-loyalty-cta {
    border: 1.5px solid #dde0c0 !important;
    border-radius: 8px !important;
    padding: 16px 18px !important;
    margin-bottom: 22px !important;
    background: #fafbf4 !important;
}

.mrc-loyalty-inner {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.mrc-loyalty-icon {
    flex: 0 0 auto !important;
}

.mrc-loyalty-text {
    flex: 1 !important;
    min-width: 0 !important;
}

.mrc-loyalty-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #1d1d1d !important;
    margin: 0 0 4px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

.mrc-loyalty-desc {
    font-size: 12px !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.55 !important;
}

.mrc-loyalty-btn {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important;
    padding: 0 14px !important;
    background: transparent !important;
    border: 1.5px solid #9b9f73 !important;
    border-radius: 50px !important;
    color: #9b9f73 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.mrc-loyalty-btn:hover {
    background: #9b9f73 !important;
    color: #fff !important;
}

/* DETAILS TAB — Supplementary styles (visuals handled by widget) */
.mrc-tab-btn:hover {
    color: #444 !important;
    background: none !important;
}

.mrc-tab-content p {
    margin: 0 0 12px 0 !important;
}

.mrc-tab-content ul,
.mrc-tab-content ol {
    padding-left: 18px !important;
    margin: 0 0 12px 0 !important;
}

.mrc-tab-content li {
    margin-bottom: 6px !important;
}

.mrc-tab-content strong,
.mrc-tab-content b {
    font-weight: 700 !important;
    color: #333 !important;
}

.mrc-loading-text {
    color: #bbb !important;
    font-style: italic !important;
}

/* HIDE ORIGINAL SECTIONS */
.elementor-element-4843169,
.elementor-element-6e30699 {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Sticky Scroll Support (not in widget) ── */
.mrc-info-sticky {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: none transparent;
}

.mrc-info-sticky::-webkit-scrollbar {
    display: none !important;
}

/* Ensure the widget container doesn't clip sticky */
.elementor-element-918dc71,
.elementor-element-918dc71 > .elementor-widget-container {
    overflow: visible !important;
}

/* Ensure the info column stretches full height of the flex row */
.mrc-product-wrap {
    align-items: stretch !important;
}

/* ── Hidden Element (visually hidden but in DOM) ── */
.elementor-element-9c5a0b7 {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    pointer-events: none !important;
    display: block !important;
}