/*
Theme Name: Shopee Luxury Affiliate
Theme URI: https://example.com/shopee-luxury-affiliate
Author: Moo
Description: Momellea premium mother and child editorial theme, focused on trust, calm design, and conversion-ready content.
Version: 1.3.2
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: shopee-luxury-affiliate
*/

:root {
    --sla-ink: #4c4651;
    --sla-charcoal: #625b68;
    --sla-gold: #b99656;
    --sla-gold-soft: #f4dfad;
    --sla-rose: #efaebd;
    --sla-rose-soft: #ffe8ef;
    --sla-sage: #a9cfbc;
    --sla-sage-soft: #e2f5e9;
    --sla-blue-soft: #e3f1fb;
    --sla-lavender-soft: #eee8fb;
    --sla-butter: #fff3c9;
    --sla-cream: #fffaf4;
    --sla-paper: #ffffff;
    --sla-muted: #7f7683;
    --sla-line: #eee2e6;
    --sla-shadow: 0 22px 65px rgba(127, 103, 122, .13);
}

html { scroll-behavior: smooth; }
body { background: var(--sla-cream); }
body,
button,
input,
select,
textarea,
.wp-element-button {
    font-family: "Noto Sans Thai", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sla-trust-strip :is(h1, h2, h3, h4, h5, h6),
.sla-post-card :is(h1, h2, h3, h4, h5, h6),
.sla-article-shell :is(h1, h2, h3, h4, h5, h6),
.sat-product-card :is(h1, h2, h3, h4, h5, h6),
.wp-block-group[class*="box"] :is(h1, h2, h3, h4, h5, h6),
.wp-block-group[class*="card"] :is(h1, h2, h3, h4, h5, h6) {
    font-family: "Noto Sans Thai", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { text-underline-offset: 3px; }

.wp-site-blocks { overflow: hidden; }
.sla-shell { margin-inline: auto; max-width: 1240px; padding-inline: 28px; }
.sla-site-header { backdrop-filter: blur(18px); background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--sla-line); box-shadow: 0 8px 30px rgba(127,103,122,.07); position: relative; z-index: 20; }
.sla-site-header .wp-block-site-title a { color: var(--sla-ink); text-decoration: none; }
.sla-site-header .wp-block-site-title { font-size: clamp(22px, 2.5vw, 29px) !important; font-weight: 700; letter-spacing: .035em; }
.sla-site-header .wp-block-navigation-item__content { color: #6e6571; font-size: 13px; font-weight: 650; }
.sla-site-header .wp-block-navigation-item__content:hover { color: #c47089; }
.sla-brand-mark { align-items: center; display: flex; gap: 12px; }
.sla-brand-mark .wp-block-site-logo { line-height: 0; margin: 0; }
.sla-brand-mark .custom-logo { height: 64px; max-width: 250px; object-fit: contain; width: auto; }
.sla-brand-dot { background: linear-gradient(135deg, #f5b3c4, #f1d58f); border-radius: 50%; box-shadow: 0 0 0 5px rgba(239, 174, 189, .18); display: inline-block; height: 12px; width: 12px; }

.sla-hero { background: radial-gradient(circle at 82% 12%, rgba(255,255,255,.72), transparent 24%), linear-gradient(135deg, #ffe4ed 0%, #fff1d2 46%, #e4f4ed 100%); border-radius: 0 0 34px 34px; color: var(--sla-ink); overflow: hidden; padding: clamp(70px, 10vw, 130px) 28px; position: relative; }
.sla-hero::after { border: 1px solid rgba(185, 150, 86, .2); border-radius: 50%; content: ""; height: 460px; position: absolute; right: -150px; top: -180px; width: 460px; }
.sla-hero-inner { margin-inline: auto; max-width: 1180px; position: relative; z-index: 2; }
.sla-kicker { color: #a86d7e; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.sla-hero h1 { color: var(--sla-ink); font-size: clamp(43px, 6.4vw, 76px); letter-spacing: -.045em; line-height: 1.08; margin: 15px 0 24px; max-width: 820px; }
.sla-hero p { color: #716875; font-size: clamp(17px, 2vw, 21px); line-height: 1.7; max-width: 720px; }
.sla-hero .wp-block-buttons { margin-top: 34px; }
.sla-hero .wp-block-button__link { background: #665d69; border: 1px solid #665d69; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 800; padding: 14px 23px; }
.sla-button-outline .wp-block-button__link { background: rgba(255,255,255,.56) !important; border-color: #c99cac !important; color: #755d69 !important; }
.sla-hero-art { bottom: 9%; height: 340px; pointer-events: none; position: absolute; right: 8%; width: 340px; }
.sla-orbit { border: 1px solid rgba(170, 122, 141, .22); border-radius: 50%; position: absolute; }
.sla-orbit-one { height: 100%; inset: 0; width: 100%; }
.sla-orbit-two { height: 70%; inset: 15%; width: 70%; }
.sla-heart { align-items: center; background: rgba(255,255,255,.5); border: 1px solid rgba(170,122,141,.18); border-radius: 50%; color: #d887a0; display: flex; font-size: 72px; height: 145px; justify-content: center; left: 98px; position: absolute; top: 98px; width: 145px; }

.sla-trust-strip { background: var(--sla-paper); border: 1px solid var(--sla-line); border-radius: 18px; box-shadow: var(--sla-shadow); margin: -34px auto 70px; max-width: 1100px; padding: 23px 28px; position: relative; z-index: 3; }
.sla-trust-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.sla-trust-item { align-items: center; display: flex; gap: 13px; }
.sla-trust-icon { align-items: center; background: var(--sla-rose-soft); border-radius: 50%; color: #8b625d; display: flex; flex: 0 0 40px; font-weight: 900; height: 40px; justify-content: center; width: 40px; }
.sla-trust-item strong, .sla-trust-item small { display: block; }
.sla-trust-item small { color: var(--sla-muted); margin-top: 2px; }

.sla-section { margin-block: 70px; }
.sla-section-heading { align-items: end; border-bottom: 1px solid var(--sla-line); display: flex; justify-content: space-between; margin-bottom: 28px; padding-bottom: 18px; }
.sla-section-heading h2 { font-size: clamp(30px, 4vw, 48px); margin: 5px 0 0; }
.sla-section-heading p { color: var(--sla-muted); margin: 0; max-width: 480px; }
.sla-topic-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sla-topic-card { border: 1px solid rgba(48,44,42,.07); border-radius: 24px; color: var(--sla-ink); min-height: 250px; padding: 30px; position: relative; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.sla-topic-card:hover { box-shadow: var(--sla-shadow); transform: translateY(-4px); }
.sla-topic-rose { background: var(--sla-rose-soft); }
.sla-topic-sage { background: var(--sla-sage-soft); }
.sla-topic-blue { background: var(--sla-blue-soft); }
.sla-topic-icon { align-items: center; background: rgba(255,255,255,.7); border-radius: 50%; display: flex; font-size: 22px; height: 48px; justify-content: center; margin-bottom: 28px; width: 48px; }
.sla-topic-card small, .sla-topic-card strong { display: block; }
.sla-topic-card small { color: var(--sla-muted); font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.sla-topic-card strong { font-size: 22px; line-height: 1.3; }
.sla-topic-card p { color: var(--sla-muted); font-size: 13px; line-height: 1.65; }
.sla-topic-link { bottom: 26px; color: #7e6555; font-size: 12px; font-weight: 800; position: absolute; }

.sla-post-grid .wp-block-post-template { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sla-post-card { background: var(--sla-paper); border: 1px solid var(--sla-line); border-radius: 18px; box-shadow: 0 12px 38px rgba(35, 28, 17, .06); height: 100%; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.sla-post-card:hover { box-shadow: var(--sla-shadow); transform: translateY(-4px); }
.sla-post-card .wp-block-post-featured-image { aspect-ratio: 16/10; margin: 0; overflow: hidden; }
.sla-post-card .wp-block-post-featured-image img { height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.sla-post-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.sla-post-card-body { padding: 21px; }
.sla-post-card .wp-block-post-terms { color: #9a6f69; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sla-post-card .wp-block-post-title { font-size: 22px; line-height: 1.25; margin: 9px 0 12px; }
.sla-post-card .wp-block-post-title a { color: var(--sla-ink); text-decoration: none; }
.sla-post-card .wp-block-post-excerpt { color: var(--sla-muted); font-size: 13px; line-height: 1.65; }
.sla-post-card .wp-block-post-date { border-top: 1px solid #eee7d9; color: #8d8374; font-size: 11px; margin-top: 16px; padding-top: 13px; }

.sla-authority-box { background: var(--sla-paper); border: 1px solid var(--sla-line); border-radius: 26px; box-shadow: var(--sla-shadow); margin-block: 80px; padding: clamp(34px, 6vw, 66px); }
.sla-authority-grid { align-items: center; display: grid; gap: clamp(28px, 6vw, 72px); grid-template-columns: 150px 1fr; }
.sla-authority-mark { align-items: center; background: linear-gradient(145deg, var(--sla-rose-soft), #f9f2ea); border: 1px solid #e4d4cc; border-radius: 50%; color: #9c736c; display: flex; font-size: 54px; font-weight: 300; height: 150px; justify-content: center; width: 150px; }
.sla-authority-box h2 { font-size: clamp(28px, 4vw, 44px); margin: 5px 0 18px; max-width: 760px; }
.sla-authority-box p { color: var(--sla-muted); max-width: 850px; }
.sla-principles { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; }
.sla-principles span { color: #665d57; font-size: 13px; font-weight: 700; }
.sla-editorial-callout { background: linear-gradient(135deg, var(--sla-lavender-soft), var(--sla-blue-soft)); border: 1px solid #ddd5ec; border-radius: 24px; color: var(--sla-ink); margin-block: 80px; overflow: hidden; padding: clamp(35px, 6vw, 70px); position: relative; }
.sla-editorial-callout h2 { color: var(--sla-ink); font-size: clamp(32px, 5vw, 56px); max-width: 760px; }
.sla-editorial-callout p { color: var(--sla-muted); max-width: 680px; }
.sla-mom-callout { background: radial-gradient(circle at 88% 20%, rgba(255,255,255,.72), transparent 30%), linear-gradient(135deg, var(--sla-lavender-soft), var(--sla-blue-soft)); }

.sla-article-shell { background: var(--sla-paper); border: 1px solid var(--sla-line); border-radius: 24px; box-shadow: var(--sla-shadow); margin-block: 48px 80px; overflow: hidden; }
.sla-article-header { background: linear-gradient(135deg, #ffe7ee, #fff3d4, #e7f5ee); color: var(--sla-ink); padding: clamp(42px, 7vw, 88px); }
.sla-article-header h1 { color: var(--sla-ink); font-size: clamp(38px, 6vw, 68px); letter-spacing: -.045em; line-height: 1.04; margin-block: 16px 22px; }
.sla-article-header .wp-block-post-date, .sla-article-header .wp-block-post-author-name { color: var(--sla-muted); font-size: 12px; }
.sla-article-featured { margin: 0; max-height: 650px; overflow: hidden; }
.sla-article-featured img { height: min(62vw, 650px); object-fit: cover; width: 100%; }
.sla-article-content { font-size: 17px; line-height: 1.85; margin-inline: auto; max-width: 820px; padding: clamp(35px, 7vw, 80px) 24px; }
.sla-article-content h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 1.7em; }
.sla-article-content h3 { font-size: clamp(22px, 3vw, 30px); margin-top: 1.5em; }
.sla-article-content img { border-radius: 16px; }
.sla-article-content blockquote { border-left: 4px solid var(--sla-gold); color: #544a3b; font-family: Georgia, serif; font-size: 21px; margin-inline: 0; padding: 10px 0 10px 24px; }
.sla-article-content .sat-product-card { margin-block: 28px; }
.sla-article-footer { border-top: 1px solid var(--sla-line); margin: 0 auto; max-width: 820px; padding: 28px 24px 50px; }

.sla-archive-header { background: linear-gradient(135deg, #ffe7ee, #fff3d4, #e7f5ee); border-radius: 0 0 28px 28px; color: var(--sla-ink); padding: 65px 28px; }
.sla-archive-header h1 { color: var(--sla-ink); font-size: clamp(38px, 6vw, 64px); margin: 8px auto; max-width: 1180px; }
.sla-archive-header .wp-block-query-title, .sla-archive-header p { margin-inline: auto; max-width: 1180px; }
.sla-pagination { margin-block: 40px 80px; }
.sla-pagination a, .sla-pagination .current { border: 1px solid var(--sla-line); border-radius: 999px; padding: 8px 12px; text-decoration: none; }

.momellea-articles { margin-inline: auto; max-width: 1180px; padding: 24px 0 70px; }
.momellea-article-filter { align-items: end; background: linear-gradient(135deg, var(--sla-rose-soft), var(--sla-blue-soft)); border: 1px solid var(--sla-line); border-radius: 24px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; margin-bottom: 38px; padding: 24px; }
.momellea-article-filter label { color: var(--sla-ink); display: grid; font-size: 12px; font-weight: 750; gap: 8px; }
.momellea-article-filter select,
.momellea-article-filter input { background: rgba(255,255,255,.9); border: 1px solid #dfd3dc; border-radius: 14px; box-sizing: border-box; color: var(--sla-ink); min-height: 48px; padding: 11px 14px; width: 100%; }
.momellea-article-filter button { background: #665d69; border: 0; border-radius: 999px; color: #fff; cursor: pointer; font-weight: 800; min-height: 48px; padding: 12px 24px; }
.momellea-filter-summary { color: var(--sla-muted); font-size: 13px; margin: -18px 0 24px; }
.momellea-article-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.momellea-article-card { background: var(--sla-paper); border: 1px solid var(--sla-line); border-radius: 22px; box-shadow: 0 12px 34px rgba(127,103,122,.08); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.momellea-article-card:hover { box-shadow: var(--sla-shadow); transform: translateY(-4px); }
.momellea-article-card__image { aspect-ratio: 16 / 10; background: var(--sla-lavender-soft); display: block; overflow: hidden; }
.momellea-article-card__image img { height: 100%; object-fit: cover; width: 100%; }
.momellea-article-card__body { padding: 22px; }
.momellea-article-card__meta { color: #a66e80; font-size: 11px; font-weight: 800; }
.momellea-article-card h2 { font-size: 21px; line-height: 1.35; margin: 9px 0 12px; }
.momellea-article-card h2 a { color: var(--sla-ink); text-decoration: none; }
.momellea-article-card p { color: var(--sla-muted); font-size: 13px; line-height: 1.7; }
.momellea-article-card__link { color: #8f6372; font-size: 12px; font-weight: 800; }
.momellea-article-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.momellea-article-pagination .page-numbers { border: 1px solid var(--sla-line); border-radius: 999px; padding: 8px 13px; text-decoration: none; }
.momellea-article-pagination .current { background: var(--sla-rose-soft); color: var(--sla-ink); }
.momellea-articles-empty { background: var(--sla-paper); border: 1px solid var(--sla-line); border-radius: 20px; padding: 40px; text-align: center; }

.sla-site-footer { background: linear-gradient(135deg, #fff0f4, #f0edf9); border-top: 1px solid var(--sla-line); color: #746b77; margin-top: 80px; padding: 60px 28px 28px; }
.sla-footer-grid { display: grid; gap: 40px; grid-template-columns: 1.3fr .7fr .7fr; margin-inline: auto; max-width: 1180px; }
.sla-site-footer h2, .sla-site-footer h3 { color: var(--sla-ink); }
.sla-site-footer .wp-block-site-title { letter-spacing: .035em; }
.sla-site-footer a { color: #776572; }
.sla-footer-note { border-top: 1px solid rgba(126,105,119,.15); font-size: 11px; margin: 44px auto 0; max-width: 1180px; padding-top: 22px; }

@media (max-width: 900px) {
    .sla-post-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sla-topic-grid { grid-template-columns: 1fr; }
    .sla-trust-grid, .sla-footer-grid { grid-template-columns: 1fr; }
    .sla-trust-strip { margin-inline: 20px; }
    .sla-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .sla-hero-art { opacity: .35; right: -100px; }
    .momellea-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .momellea-article-filter { grid-template-columns: 1fr 1fr; }
    .momellea-article-filter button { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .sla-shell { padding-inline: 18px; }
    .sla-hero { border-radius: 0 0 24px 24px; padding-inline: 20px; }
    .sla-hero .wp-block-buttons { align-items: stretch; flex-direction: column; }
    .sla-hero .wp-block-button, .sla-hero .wp-block-button__link { width: 100%; }
    .sla-post-grid .wp-block-post-template { grid-template-columns: 1fr; }
    .sla-site-header { padding-inline: 16px !important; }
    .sla-brand-mark .custom-logo { height: 52px; max-width: 205px; }
    .sla-article-shell { border-radius: 0; border-inline: 0; margin-top: 0; }
    .sla-article-header { padding-inline: 24px; }
    .sla-authority-grid { grid-template-columns: 1fr; }
    .sla-authority-mark { height: 96px; width: 96px; }
    .momellea-article-grid, .momellea-article-filter { grid-template-columns: 1fr; }
    .momellea-article-filter button { grid-column: auto; width: 100%; }
}
