:root {
    --font-h1: 54px;
    --font-h2: 40px;
    --font-h3: 27px;
    --font-body: 15px;
    --font-caption: 11px;
    --font-button: 12.5px;
}

html { scrollbar-gutter: stable; }

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-body);
    font-weight: 300;
    line-height: 1.65;
    color: #000;
    background: #fff;
    margin: 0;
    padding: 0;
}

* { box-sizing: border-box; }

/* ==========================================================
   UNIVERSAL EDITORIAL TEMPLATE
========================================================== */
body.page:not(.woocommerce-page):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .entry-header {
    text-align: center;
    padding: 36px 18px 27px !important;
    background: #fbfbfb; 
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 36px !important;
    width: 100%;
}

body.page:not(.woocommerce-page):not(.woocommerce-account) .entry-title,
body.page:not(.woocommerce-page):not(.woocommerce-account) .page-title {
    font-family: 'Fraunces', serif;
    font-size: 43px;
    font-weight: 400;
    color: #111;
    margin: 0;
    letter-spacing: -0.5px;
}

body.page:not(.woocommerce-page):not(.woocommerce-account) .entry-content {
    max-width: 720px;
    margin: 0 auto 90px auto;
    padding: 0 18px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.8;
    color: #444;
}

body.page:not(.woocommerce-page) .entry-content h1,
body.page:not(.woocommerce-page) .entry-content h2,
body.page:not(.woocommerce-page) .entry-content h3 {
    font-family: 'Fraunces', serif;
    color: #111;
    font-weight: 400;
    margin-top: 45px;
    margin-bottom: 18px;
}

body.page:not(.woocommerce-page) .entry-content h2 { font-size: 29px; border-bottom: 1px solid #eaeaea; padding-bottom: 13px; }
body.page:not(.woocommerce-page) .entry-content h3 { font-size: 21.5px; }
body.page:not(.woocommerce-page) .entry-content p { margin-bottom: 22px; }

body.page:not(.woocommerce-page) .entry-content ul,
body.page:not(.woocommerce-page) .entry-content ol { margin-bottom: 30px; padding-left: 20px; }
body.page:not(.woocommerce-page) .entry-content li { margin-bottom: 10px; padding-left: 10px; }
body.page:not(.woocommerce-page) .entry-content li::marker { color: #a67c52; font-weight: 600; }

/* ==========================================================
   CONTACT PAGE LUXURY LAYOUT
========================================================== */
body.page .entry-content:has(.marbo-contact-wrapper) {
    max-width: 1200px !important;
    padding: 0 !important;
}

.marbo-contact-wrapper {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px 80px;
    font-family: 'Inter', sans-serif;
}

.marbo-contact-hero { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.marbo-contact-hero h1 { font-family: 'Fraunces', serif; font-size: 54px; color: #111; margin-bottom: 10px; letter-spacing: -1px; }
.marbo-contact-hero .marbo-subtitle { font-size: 14px; font-weight: 600; color: #a67c52; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.marbo-contact-hero .marbo-desc { font-size: 16px; color: #555; line-height: 1.7; }

.marbo-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 80px !important;
    align-items: start;
}

.marbo-contact-info .info-block { margin-bottom: 40px; }
.marbo-contact-info .info-block h3 {
    display: flex; align-items: center; gap: 12px;
    font-family: 'Fraunces', serif; font-size: 24px; color: #111;
    margin-bottom: 15px; border-bottom: 1px solid #eaeaea; padding-bottom: 10px;
}
.marbo-contact-info .info-block h3 svg { color: #a67c52; }
.info-content { padding-left: 34px; }
.info-content p { font-size: 15px; color: #555; line-height: 1.8; margin: 0 0 10px 0; }
.info-content a { color: #111; text-decoration: none; font-weight: 500; transition: color 0.3s; }
.info-content a:hover { color: #a67c52; }

.contact-social-links { display: flex; gap: 15px; margin-top: 20px; }
.contact-social-links a {
    display: inline-block; padding: 10px 24px; border: 1px solid #eaeaea; background: #fff;
    border-radius: 30px; font-size: 12px; font-weight: 600; color: #111;
    text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease;
}
.contact-social-links a:hover { background: #111; color: #fff; border-color: #111; transform: translateY(-2px); }

.marbo-contact-form-column { position: sticky; top: 100px; }
.marbo-contact-form-card { background: #fff; padding: 45px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; }
.form-card-header h3 { font-family: 'Fraunces', serif; font-size: 32px; color: #111; margin: 0 0 10px; }
.form-card-header p { font-size: 14px; color: #666; margin-bottom: 35px; line-height: 1.6; }

.marbo-custom-form .form-row { margin-bottom: 20px; }
.marbo-custom-form .split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.marbo-custom-form label { display: block; font-size: 12px; font-weight: 600; color: #333; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.marbo-custom-form input, .marbo-custom-form textarea {
    width: 100%; padding: 15px 18px; border: 1px solid transparent; border-radius: 12px;
    font-size: 14px; font-family: 'Inter', sans-serif; transition: all 0.3s ease;
    background: #f7f7f7; color: #111;
}
.marbo-custom-form input::placeholder, .marbo-custom-form textarea::placeholder { color: #aaa; }
.marbo-custom-form input:focus, .marbo-custom-form textarea:focus { border-color: #111; background: #fff; outline: none; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }

.marbo-submit-btn {
    width: 100%; background: #111; color: #fff; border: none; padding: 18px;
    font-size: 15px; font-weight: 600; border-radius: 30px; cursor: pointer;
    margin-top: 15px; transition: all 0.3s ease;
}
.marbo-submit-btn:hover { background: #a67c52; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(166, 124, 82, 0.2); }

/* ==========================================================
   CONSOLIDATED RESPONSIVENESS (TABLET & MOBILE)
========================================================== */
@media screen and (max-width: 1024px) {
    .marbo-contact-grid { grid-template-columns: 1fr !important; gap: 50px !important; }
    .marbo-contact-form-column { position: relative !important; top: 0 !important; }
    .marbo-contact-form-card { padding: 35px 25px; }
    body.page .entry-content:has(.marbo-contact-wrapper) { padding: 0 20px !important; }
}

@media screen and (max-width: 768px) {
    body.page:not(.woocommerce-page):not(.woocommerce-account) .entry-header { padding: 25px 20px 20px !important; margin-bottom: 30px !important; }
    body.page:not(.woocommerce-page):not(.woocommerce-account) .entry-title,
    body.page:not(.woocommerce-page):not(.woocommerce-account) .page-title { font-size: 32px !important; }
    body.page:not(.woocommerce-page):not(.woocommerce-account) .entry-content { font-size: 15px; margin-bottom: 60px; }
    
    .marbo-contact-hero h1 { font-size: 38px !important; }
    .marbo-custom-form .split-row { grid-template-columns: 1fr !important; }
    .marbo-contact-form-card { padding: 30px 20px !important; }
    .info-content { padding-left: 0 !important; }
}

/* ==========================================================
   FLOATING LUXURY WISHLIST TOAST NOTIFICATION
========================================================== */
.marbo-toast-container {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 999999 !important;
    pointer-events: none !important;
    width: calc(100% - 40px);
    max-width: 440px;
}

.marbo-wishlist-toast {
    pointer-events: auto !important;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 10px 18px 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.marbo-wishlist-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.marbo-wishlist-toast.is-hiding {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
}

.marbo-toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.marbo-toast-icon .toast-heart-icon.added {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

.marbo-toast-icon .toast-heart-icon.removed {
    stroke: #aaaaaa !important;
}

.marbo-toast-body {
    flex: 1;
    min-width: 0;
}

.marbo-toast-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    line-height: 1.2;
}

.marbo-toast-product {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.marbo-toast-cta {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #dfba86;
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(223, 186, 134, 0.12);
    border: 1px solid rgba(223, 186, 134, 0.25);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.marbo-toast-cta:hover {
    background: rgba(223, 186, 134, 0.24);
    color: #ffffff;
}

.marbo-toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.marbo-toast-close:hover {
    color: #ffffff;
}

/* ==========================================================
   HIGH-END LOADING ANIMATIONS (The "Soft Awakening")
========================================================== */

/* 1. Global Page Reveal */
html.marbo-js-loading main#primary {
    opacity: 0;
    transform: translateY(12px);
}
html.marbo-js-loaded main#primary {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* 2. Image Soft-Load (Skeleton & Reveal) */
@keyframes marboSkeletonPulse {
    0% { background-color: #f6f4ee; }
    50% { background-color: #eae6df; }
    100% { background-color: #f6f4ee; }
}

.marbo-img-skeleton {
    background-color: #f6f4ee;
    animation: marboSkeletonPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    position: relative;
    overflow: hidden;
    display: block;
}

.marbo-soft-img {
    opacity: 0 !important;
    transform: scale(1.03);
    filter: blur(4px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                filter 0.5s ease;
    will-change: opacity, transform, filter;
}

.marbo-soft-img.is-loaded {
    opacity: 1 !important;
    transform: scale(1);
    filter: blur(0);
}

/* Ensure hover gallery images remain hidden if not active */
.marbo-gallery-img.marbo-soft-img.is-loaded:not(.active) {
    opacity: 0 !important;
}

/* 3. Staggered Grid Entrance */
html.marbo-js-loading .marbo-products-grid li.product,
html.marbo-js-loaded .marbo-products-grid li.product:not(.in-view) {
    opacity: 0;
    transform: translateY(20px);
}

html.marbo-js-loaded .marbo-products-grid li.product.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.215, 0.61, 0.355, 1),
                transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* 4. WooCommerce Minimal Overrides */
/* Hide the clunky spinning wheel */
.woocommerce .blockUI.blockOverlay::before {
    display: none !important;
}

/* Make the overlay a minimal transparency shift */
.woocommerce .blockUI.blockOverlay {
    background-color: #ffffff !important;
    opacity: 0.5 !important;
    backdrop-filter: blur(2px) !important;
}

/* ==========================================================
   5. AESTHETIC FULLSCREEN PRELOADER (90% White with Dribble Line)
========================================================== */
#marbo-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
    pointer-events: auto;
}

#marbo-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.marbo-preloader-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.marbo-preloader-line-holder {
    position: relative;
    width: 140px;
    height: 2px;
    margin: 0 auto;
    overflow: visible;
}

.marbo-preloader-line-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.08);
    border-radius: 1px;
}

.marbo-preloader-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background-color: #111111;
    border-radius: 1px;
    animation: marboPreloaderDribble 1.35s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* Continuous Dribble Line Animation Based on Desktop Navbar Menu Hover */
@keyframes marboPreloaderDribble {
    0% {
        left: 0;
        width: 0%;
        opacity: 1;
    }
    40% {
        left: 0;
        width: 115%;
    }
    55% {
        left: 0;
        width: 90%;
    }
    70% {
        left: 0;
        width: 105%;
    }
    80% {
        left: 0;
        width: 100%;
        opacity: 1;
    }
    88% {
        left: 0;
        width: 100%;
        opacity: 1;
    }
    98% {
        left: 100%;
        width: 0%;
        opacity: 0.2;
    }
    100% {
        left: 0;
        width: 0%;
        opacity: 0;
    }
}

/* ==========================================================
   MARBOCRAFT 404 ERROR PAGE STYLES
========================================================== */
.marbo-404-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(50px, 8vw, 100px) 20px;
    background: radial-gradient(circle at 50% 30%, #faf8f5 0%, #f4f1eb 100%);
}

.marbo-404-card {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    border: 1px solid #ede8e1;
    border-radius: 24px;
    padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
    box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0,0,0,0.02);
}

.marbo-404-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #f7f5f2;
    border: 1px solid #e8e3dc;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8c827a;
    margin-bottom: 24px;
}

.marbo-404-number {
    font-family: var(--marbo-font-heading, 'Fraunces', serif);
    font-size: clamp(64px, 12vw, 110px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #1e1b18;
    margin-bottom: 12px;
}

.marbo-404-title {
    font-family: var(--marbo-font-heading, 'Fraunces', serif);
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 400;
    color: #1e1b18;
    line-height: 1.3;
    margin-bottom: 16px;
}

.marbo-404-desc {
    font-size: clamp(14px, 1.8vw, 15.5px);
    line-height: 1.7;
    color: #6d665f;
    max-width: 520px;
    margin: 0 auto 32px;
}

.marbo-404-search-box {
    max-width: 440px;
    margin: 0 auto 32px;
}

.marbo-404-search-box .marbo-search-form {
    display: flex;
    align-items: center;
    background: #f6f4f0;
    border: 1px solid #eae5de;
    border-radius: 999px;
    padding: 4px 6px 4px 18px;
    transition: all 0.2s ease;
}

.marbo-404-search-box .marbo-search-form:focus-within {
    background: #ffffff;
    border-color: #1e1b18;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.marbo-404-search-box input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14.5px;
    color: #1e1b18;
    padding: 8px 0;
}

.marbo-404-search-box button {
    background: #1e1b18;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.marbo-404-search-box button:hover {
    background: #000000;
}

.marbo-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.marbo-404-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.marbo-404-btn.btn-primary {
    background: #1e1b18;
    color: #ffffff;
    border: 1px solid #1e1b18;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.marbo-404-btn.btn-primary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.marbo-404-btn.btn-secondary {
    background: #ffffff;
    color: #1e1b18;
    border: 1px solid #ded9d1;
}

.marbo-404-btn.btn-secondary:hover {
    background: #f7f5f2;
    border-color: #1e1b18;
    transform: translateY(-2px);
}

.marbo-404-suggestions {
    border-top: 1px solid #f0ece6;
    padding-top: 24px;
}

.marbo-404-suggestions span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8c827a;
    margin-bottom: 12px;
}

.marbo-404-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.marbo-404-pills a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #fbfaf8;
    border: 1px solid #e8e3dc;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #2d2a26;
    text-decoration: none;
    transition: all 0.2s ease;
}

.marbo-404-pills a:hover {
    background: #1e1b18;
    color: #ffffff;
    border-color: #1e1b18;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .marbo-404-card {
        padding: 32px 18px;
        border-radius: 18px;
    }
    .marbo-404-actions {
        flex-direction: column;
        width: 100%;
    }
    .marbo-404-btn {
        width: 100%;
    }
}

/* ==========================================================
   GLOBAL ANIMATION KEYFRAMES & WOOCOMMERCE CLEANUP
========================================================== */
@keyframes marboFadeUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marboKenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* Eliminate default ugly WooCommerce sale badge across all pages */
body.woocommerce span.onsale,
.woocommerce span.onsale,
span.onsale {
    display: none !important;
}

/* Global Luxury Breadcrumbs Styling */
.woocommerce-breadcrumb {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    color: #888888 !important;
    margin: clamp(14px, 1.5vw, 22px) 0 clamp(16px, 1.8vw, 24px) 0 !important;
    letter-spacing: 0.2px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    line-height: 1.5 !important;
}

.woocommerce-breadcrumb a {
    color: #444444 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease, text-decoration 0.2s ease !important;
}

.woocommerce-breadcrumb a:hover {
    color: #111111 !important;
    text-decoration: underline !important;
}

.woocommerce-breadcrumb .marbo-breadcrumb-sep,
.woocommerce-breadcrumb span {
    color: #aaaaaa !important;
    user-select: none;
}