/* =========================================================
   Lovely Creation — Mobile-First Luxury Commerce Stylesheet
   Author: MIAREXON
   ========================================================= */
:root {
    --mrx-bg: #FDFBF8;
    --mrx-surface: #FFFFFF;
    --mrx-soft: #FAF7F4;
    --mrx-ink: #161A18;
    --mrx-muted: #5C635F;
    --mrx-primary: #133B25;
    --mrx-primary-hover: #0D291A;
    --mrx-gold: #C2934B;
    --mrx-border: #E6DFD5;
    --mrx-sale-bg: #9E2A2B;
    --mrx-topbar-bg: #133B25;
    --mrx-topbar-text: #FFFFFF;
    --mrx-container: 1320px;
    --mrx-radius: 18px;
    --mrx-btn-radius: 999px;
    --mrx-font-size: 15px;
    --mrx-mobile-font-size: 15px;
    --mrx-heading-weight: 700;
    --mrx-heading-tracking: -0.01em;
    --mrx-wc-cols-desktop: 4;
    --mrx-wc-cols-tablet: 3;
    --mrx-wc-cols-mobile: 2;
    --mrx-mobile-pad: 14px;
    --mrx-font-heading: "Cormorant Garamond", Georgia, serif;
    --mrx-font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

html.mrx-smooth-scroll {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--mrx-bg);
    color: var(--mrx-ink);
    font-family: var(--mrx-font-body);
    font-size: var(--mrx-font-size);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.has-mrx-theme-bottom-bar {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
}

/* Accessibility Skip Link */
.mrx-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.mrx-skip-link:focus {
    position: fixed;
    left: 14px;
    top: 14px;
    width: auto;
    height: auto;
    padding: 10px 18px;
    background: var(--mrx-primary);
    color: #FFFFFF;
    border-radius: var(--mrx-btn-radius);
    z-index: 99999;
    font-weight: 700;
    text-decoration: none;
}

@keyframes mrxThemePageFade {
    from { opacity: 0.01; }
    to { opacity: 1; }
}

body.mrx-page-fade .mrx-site-main {
    animation: mrxThemePageFade 0.35s ease both;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mrx-font-heading);
    font-weight: var(--mrx-heading-weight);
    letter-spacing: var(--mrx-heading-tracking);
    color: var(--mrx-ink);
    line-height: 1.16;
    margin-top: 0;
}

a {
    color: var(--mrx-primary);
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

img, video, iframe, svg {
    max-width: 100%;
    height: auto;
}

.mrx-container {
    max-width: var(--mrx-container);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Announcement Bar */
.mrx-topbar {
    background: var(--mrx-topbar-bg);
    color: var(--mrx-topbar-text);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 8px 0;
    text-align: center;
}

.mrx-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.mrx-topbar-cta {
    color: var(--mrx-topbar-text);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Main Content Area */
.mrx-site-main {
    min-height: 62vh;
}

.mrx-site-main.is-elementor-page {
    padding: 0;
}

.mrx-site-main.is-standard-page,
.mrx-site-main.mrx-wc-main {
    padding: 28px 0 56px;
}

/* SEO Breadcrumbs */
.mrx-breadcrumbs {
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--mrx-muted);
}

.mrx-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mrx-breadcrumbs li + li::before {
    content: "/";
    margin-right: 8px;
    opacity: 0.55;
}

.mrx-breadcrumbs a {
    color: var(--mrx-muted);
    text-decoration: none;
}

.mrx-breadcrumbs a:hover {
    color: var(--mrx-primary);
}

.mrx-page-header {
    text-align: center;
    margin-bottom: 26px;
}

.mrx-page-title {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    margin: 0;
}

.mrx-post-date {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mrx-gold);
    margin-bottom: 6px;
}

/* Fallback Header & Mobile Drawer */
.mrx-fallback-header {
    background: var(--mrx-surface);
    border-bottom: 1px solid var(--mrx-border);
    padding: 12px 0;
    position: relative;
    z-index: 900;
}

body.mrx-sticky-header .mrx-fallback-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--mrx-surface) 92%, transparent);
}

.mrx-fh-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mrx-fh-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--mrx-border);
    border-radius: 12px;
    background: var(--mrx-surface);
    cursor: pointer;
}

.mrx-fh-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--mrx-ink);
    border-radius: 2px;
}

.mrx-fh-brand {
    font-family: var(--mrx-font-heading);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    color: var(--mrx-ink);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.mrx-fh-brand-wrap img {
    max-height: 48px;
    width: auto;
}

.mrx-fh-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 22px;
}

.mrx-fh-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--mrx-ink);
    padding: 6px 2px;
}

.mrx-fh-nav a:hover {
    color: var(--mrx-gold);
}

.mrx-fh-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mrx-fh-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--mrx-border);
    background: var(--mrx-soft);
    color: var(--mrx-ink);
    cursor: pointer;
}

.mrx-fh-account {
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--mrx-ink);
    padding: 8px 12px;
}

.mrx-fh-cart {
    padding: 9px 18px;
    border-radius: var(--mrx-btn-radius);
    background: var(--mrx-primary);
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.mrx-fh-cart:hover {
    background: var(--mrx-primary-hover);
}

.mrx-fh-search-bar {
    padding: 12px 0 4px;
    border-top: 1px solid var(--mrx-border);
    margin-top: 12px;
}

/* Mobile Slide Drawer */
.mrx-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
}

.mrx-mobile-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.mrx-md-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 16, 14, 0.48);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mrx-mobile-drawer.is-open .mrx-md-backdrop {
    opacity: 1;
}

.mrx-md-panel {
    position: relative;
    width: min(86vw, 340px);
    height: 100%;
    background: var(--mrx-surface);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
}

.mrx-mobile-drawer.is-open .mrx-md-panel {
    transform: translateX(0);
}

.mrx-md-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--mrx-border);
}

.mrx-md-title {
    font-family: var(--mrx-font-heading);
    font-size: 22px;
    font-weight: 700;
}

.mrx-md-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--mrx-border);
    border-radius: 50%;
    background: var(--mrx-soft);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mrx-md-nav ul {
    list-style: none;
    margin: 14px 0;
    padding: 0;
}

.mrx-md-nav li {
    border-bottom: 1px solid var(--mrx-border);
}

.mrx-md-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    text-decoration: none;
    font-weight: 600;
    color: var(--mrx-ink);
    font-size: 15.5px;
}

.mrx-md-footer {
    margin-top: auto;
    display: grid;
    gap: 10px;
    padding-top: 16px;
}

/* Fallback Footer */
.mrx-fallback-footer {
    background: var(--mrx-primary);
    color: #FFFFFF;
    padding: 36px 0 24px;
    font-size: 13.5px;
}

.mrx-ff-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding-bottom: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mrx-fallback-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mrx-fallback-footer li + li {
    margin-top: 8px;
}

.mrx-fallback-footer a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.mrx-fallback-footer a:hover {
    color: var(--mrx-gold);
}

.mrx-ff-inner {
    text-align: center;
}

.mrx-ff-inner p {
    margin: 0;
    opacity: 0.9;
}

/* Mobile Sticky Bottom App Bar */
.mrx-mobile-bottom-bar {
    display: none;
}

/* Floating WhatsApp & Back-to-Top */
.mrx-float-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 78px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1E9E52;
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    z-index: 880;
}

.mrx-float-whatsapp:hover {
    transform: translateY(-2px);
}

.mrx-back-to-top {
    position: fixed;
    right: 18px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--mrx-border);
    background: var(--mrx-surface);
    color: var(--mrx-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.22s ease;
    z-index: 879;
}

.mrx-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Blog & Cards */
.mrx-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 16px 0 32px;
}

.mrx-post-card {
    background: var(--mrx-surface);
    border: 1px solid var(--mrx-border);
    border-radius: var(--mrx-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mrx-post-body {
    padding: 20px;
}

.mrx-post-title a {
    text-decoration: none;
    color: var(--mrx-ink);
}

.mrx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: var(--mrx-btn-radius);
    background: var(--mrx-primary);
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    border: 1px solid var(--mrx-primary);
    cursor: pointer;
}

.mrx-btn:hover {
    background: var(--mrx-primary-hover);
}

.mrx-btn-outline {
    background: transparent;
    color: var(--mrx-primary) !important;
}

/* Touch-Friendly Search Form & Inputs (16px prevents iOS Safari auto-zoom) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
select,
textarea {
    font-family: var(--mrx-font-body);
    font-size: 16px;
    border: 1px solid var(--mrx-border);
    border-radius: 12px;
    padding: 10px 14px;
    background: var(--mrx-surface);
    color: var(--mrx-ink);
    min-height: 44px;
}

/* Global Clean WooCommerce Responsive Grid & Notices */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(var(--mrx-wc-cols-desktop), minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    background: var(--mrx-surface);
    border: 1px solid var(--mrx-border);
    border-radius: var(--mrx-radius);
    padding: 12px;
    overflow: hidden;
}

body.mrx-card-zoom .woocommerce ul.products li.product a img {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: calc(var(--mrx-radius) - 6px);
}

body.mrx-card-zoom .woocommerce ul.products li.product:hover a img {
    transform: scale(1.04);
}

.woocommerce span.onsale {
    background-color: var(--mrx-sale-bg) !important;
    border-radius: var(--mrx-btn-radius) !important;
}

.woocommerce-message,
.woocommerce-info {
    background: var(--mrx-soft);
    border: 1px solid var(--mrx-border);
    border-top: 3px solid var(--mrx-primary);
    border-radius: 14px;
    color: var(--mrx-ink);
}

.woocommerce-error {
    border-radius: 14px;
}

.mrx-empty-state {
    text-align: center;
    padding: 48px 16px;
}

.mrx-404-code {
    font-family: var(--mrx-font-heading);
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 700;
    color: var(--mrx-gold);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
    .mrx-fh-burger {
        display: inline-flex;
    }
    .mrx-fh-nav,
    .mrx-fh-account {
        display: none;
    }
    .mrx-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(var(--mrx-wc-cols-tablet), minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (max-width: 640px) {
    body {
        font-size: var(--mrx-mobile-font-size);
    }
    .mrx-container {
        padding: 0 var(--mrx-mobile-pad);
    }
    .mrx-posts-grid {
        grid-template-columns: 1fr;
    }
    .mrx-ff-grid {
        grid-template-columns: 1fr;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(var(--mrx-wc-cols-mobile), minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .woocommerce ul.products li.product {
        padding: 8px;
    }
    .mrx-mobile-bottom-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: var(--mrx-surface);
        border-top: 1px solid var(--mrx-border);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        z-index: 950;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
    }
    .mrx-mobile-bottom-bar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        font-size: 11px;
        font-weight: 600;
        color: var(--mrx-ink);
        min-height: 44px;
    }
    body.has-mrx-theme-bottom-bar .mrx-float-whatsapp {
        bottom: 132px;
    }
    body.has-mrx-theme-bottom-bar .mrx-back-to-top {
        bottom: 78px;
    }
}
