/* =========================================================
   Matti Mum Gold – nền tảng + chuyển động
   ========================================================= */
:root {
  --gold: #d4a259;
  --gold-deep: #b8924f;
  --brown: #4a3622;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: #ffffff; color: #3d2c1c; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, strong, b, button, nav, nav a, [role=tab],
[style*="font-weight: 600"], [style*="font-weight: 700"], [style*="font-weight: 800"], [style*="letter-spacing"] { font-family: 'Montserrat', sans-serif; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.links-a a { color: #8a6a3b; } .links-a a:hover { color: #4a3622; }
.links-b a { color: #7a5c30; } .links-b a:hover { color: #4a3622; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #8a6a3b; outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #4a3622; color: #fff !important; padding: 10px 16px; border-radius: 10px; text-decoration: none; font: 600 13px 'Montserrat', sans-serif; }
.skip:focus { top: 12px; }

/* ---------- Header dính, đổ bóng khi cuộn ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: box-shadow .35s var(--ease-soft), background-color .35s; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(107, 79, 44, .10); background: rgba(255, 255, 255, .94) !important; backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header .brand img { transition: transform .4s var(--ease-out); }
.site-header .brand:hover img { transform: scale(1.05); }

.nav-link { position: relative; transition: transform .3s var(--ease-out), color .25s; transform-origin: 50% 60%; }
.nav-link:hover { transform: scale(1.2); z-index: 1; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link:hover { color: #8a6a3b !important; }

.icon-btn { border-radius: 50%; transition: background-color .25s, transform .25s; }
.icon-btn:hover { background: #f6eee1 !important; transform: rotate(-8deg); }

/* ---------- Nút ---------- */
.btn, .hero-cta a { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), filter .3s; }
.btn:hover, .hero-cta a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(107, 79, 44, .20); filter: brightness(1.04); }
.btn:active, .hero-cta a:active { transform: translateY(0) scale(.97); }
.hero-cta a span[aria-hidden], .btn span[aria-hidden] { display: inline-block; transition: transform .3s var(--ease-out); }
.hero-cta a:hover span[aria-hidden] { transform: translateX(4px); }
.cart-badge.pop { animation: pop .5s var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ---------- Hero / slider ---------- */
.hero { isolation: isolate; }
.hero-img { transform: scale(1.05); will-change: transform; }
.js .hero { animation: heroIn 1.1s var(--ease-out) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.js .hero-cta > a { animation: fadeUp .8s var(--ease-out) both; }
.js .hero-cta > a:nth-child(1) { animation-delay: .45s; }
.js .hero-cta > a:nth-child(2) { animation-delay: .6s; }
.js .hero-controls { animation: fadeIn .8s .8s both; }
.hero-controls button { transition: background-color .25s, color .25s, transform .25s var(--ease-out); }
.hero-controls button:hover { background: #6b4f2c !important; color: #fff !important; transform: scale(1.06); }
[data-bar] { transition: width .7s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Banner nhiều lớp ---------- */
.hero { container-type: inline-size; background: linear-gradient(118deg, #fdf3e2 0%, #fde9cd 45%, #f9d7a2 78%, #f4c07a 100%); }
.hero .slides { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-soft), visibility 0s .5s; }
.scene.is-active { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-soft); }
.h-copy { position: absolute; left: 6.7%; width: 47%; color: #6a4c32; font-family: 'Montserrat', sans-serif; }
.h-eyebrow { display: block; font-size: 1.3cqw; font-weight: 700; letter-spacing: .2em; color: #5c4228; }
.h-title { margin: 2.7cqw 0 0; font-size: 4.6cqw; line-height: 1.13; letter-spacing: -.012em; color: #6a4c32; }
.hl { display: block; overflow: hidden; padding: 0 .05em .1em 0; margin-bottom: -.1em; }
.hl > span { display: inline-block; }
.h-text { margin: 2.3cqw 0 0; max-width: 36cqw; font-size: 1.45cqw; line-height: 1.62; font-weight: 500; color: #5a4130; }
.h-text .w { display: inline-block; }
.h-group { position: absolute; }
.ly { position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
.ly-can, .ly-glass, .ly-base { transform-origin: 50% 100%; }
.orb-b { position: absolute; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff5dc 0%, #f3d9a6 38%, #ddb06a 78%, #c8954b 100%); box-shadow: 0 .8cqw 1.6cqw rgba(170, 120, 50, .22); }

/* vào cảnh: mỗi lần đổi slide các lớp chạy lại */
.scene.is-active .h-eyebrow { animation: hUp .6s var(--ease-out) both; }
.scene.is-active .hl > span { animation: hLine .75s var(--ease-out) both; }
.scene.is-active .hl:nth-child(1) > span { animation-delay: .08s; }
.scene.is-active .hl:nth-child(2) > span { animation-delay: .16s; }
.scene.is-active .hl:nth-child(3) > span { animation-delay: .24s; }
.scene.is-active .h-text .w { animation: hWord .55s var(--ease-out) both; animation-delay: calc(.32s + var(--i, 0) * 18ms); }
.scene.is-active .ly-base { animation: inLeft .8s .05s var(--ease-out) both, floatB 2.6s .85s ease-in-out infinite; }
.scene.is-active .ly-can { animation: canIn .8s var(--ease-out) both, floatA 2.4s .8s ease-in-out infinite; }
.scene.is-active .ly-glass { animation: glassIn .8s .12s var(--ease-out) both, floatB 2.2s .9s ease-in-out infinite; }
.scene.is-active .ly-ingr { animation: ingrIn .85s .25s cubic-bezier(.34, 1.56, .64, 1) both, wobble 2s 1.1s ease-in-out infinite; }
.scene.is-active .ly-splash { animation: splashIn .7s .1s var(--ease-out) both, breatheS 2s .8s ease-in-out infinite; }
.scene.is-active .ly-drops { animation: dropsIn .7s .35s cubic-bezier(.34, 1.56, .64, 1) both, floatC 1.8s 1s ease-in-out infinite; }
.scene.is-active .orb-b { animation: orbIn .7s .2s cubic-bezier(.34, 1.56, .64, 1) both, orbFloat 2.6s .9s ease-in-out infinite; }
.scene.is-active .orb-1 { animation-delay: .3s, 1.2s; animation-duration: .7s, 3.2s; }
@keyframes hUp { from { opacity: 0; transform: translateY(1.2cqw); letter-spacing: .4em; } to { opacity: 1; transform: none; } }
@keyframes hLine { from { transform: translateY(110%); } to { transform: none; } }
@keyframes hWord { from { opacity: 0; transform: translateY(.6em); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes canIn { from { opacity: 0; transform: translateY(14%) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes inLeft { from { opacity: 0; transform: translateX(-18%); } to { opacity: 1; transform: none; } }
@keyframes glassIn { from { opacity: 0; transform: translateX(28%) rotate(7deg); } to { opacity: 1; transform: none; } }
@keyframes ingrIn { from { opacity: 0; transform: translateY(-30%) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes splashIn { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes dropsIn { from { opacity: 0; transform: translateY(-25%) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-12%, -35%) scale(1.12); } }
@keyframes orbIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5%) rotate(-1.5deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-4%) rotate(2.5deg); } }
@keyframes floatC { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-12%) scale(1.06); } }
@keyframes wobble { 0%, 100% { transform: rotate(0deg) translateY(0); } 25% { transform: rotate(2.5deg) translateY(-5%); } 50% { transform: rotate(0deg) translateY(-1%); } 75% { transform: rotate(-2.5deg) translateY(-4%); } }
@keyframes breatheS { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.08) rotate(-2deg); } }

/* ---------- Khối chữ MATTI MUM GOLD ---------- */
.brand-intro .sp { display: inline-block; }
.js .brand-intro .ornament > span { transform: scaleX(0); transition: transform .9s var(--ease-out); }
.js .brand-intro .ornament > span:first-child { transform-origin: right; }
.js .brand-intro .ornament > span:last-child { transform-origin: left; }
.js .brand-intro.in .ornament > span { transform: scaleX(1); }
.js .brand-intro .ornament svg { opacity: 0; transform: scale(.4) rotate(-40deg); transition: opacity .6s, transform .9s var(--ease-out); }
.js .brand-intro.in .ornament svg { opacity: 1; transform: none; animation: sway 4s 1.2s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-12deg) scale(1.1); } }
.js .brand-intro .bt-1 .sp { opacity: 0; transform: translateY(.7em) rotate(8deg); transition: opacity .5s, transform .7s var(--ease-out); transition-delay: calc(var(--i) * 45ms + 150ms); }
.js .brand-intro .bt-2 .sp, .js .brand-intro .bt-3 .sp { opacity: 0; transform: translateY(10px); filter: blur(4px); transition: opacity .6s, transform .6s var(--ease-out), filter .6s; }
.js .brand-intro .bt-2 .sp { transition-delay: calc(var(--i) * 70ms + 800ms); }
.js .brand-intro .bt-3 .sp { transition-delay: calc(var(--i) * 30ms + 1500ms); }
.js .brand-intro.in .sp { opacity: 1; transform: none; filter: none; }
/* ánh vàng lướt qua từng chữ cái, lặp lại liên tục */
.js .brand-intro.in .bt-1 .sp { animation: shine 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms + 1.6s); }
@keyframes shine { 0%, 100% { color: #b8873c; text-shadow: none; } 8% { color: #f2c66d; text-shadow: 0 0 14px rgba(242, 198, 109, .55); } 16% { color: #b8873c; text-shadow: none; } }

/* ---------- Hiện dần khi cuộn ---------- */
.js .rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.rv-img { transform: translate3d(0, 18px, 0) scale(.96); }
.js .rv.in { opacity: 1; transform: none; }
.js .grow-line { transform: scaleX(0); transform-origin: left; transition: transform 1s .3s var(--ease-out); }
.js .grow-line.in { transform: scaleX(1); }

/* Đường sóng "Vì sao mẹ chọn" tự vẽ */
.js .waves svg { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease-soft); }
.js .waves.in svg { clip-path: inset(0 0 0 0); }
.js .waves > div > div { opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .waves.in > div > div { opacity: 1; transform: none; }
.js .waves.in > div > div:nth-child(1) { transition-delay: .35s; }
.js .waves.in > div > div:nth-child(2) { transition-delay: .7s; }
.js .waves.in > div > div:nth-child(3) { transition-delay: 1.05s; }
.waves > div > div > span:first-child { transition: transform .4s var(--ease-out), background-color .3s; }
.waves > div > div:hover > span:first-child { transform: translateY(-4px) rotate(-6deg); background: #f3e1c1 !important; }

/* ---------- Thẻ & hover ---------- */
.card-dark { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.card-dark:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(74, 54, 34, .28); }
.card-dark img { transition: transform .7s var(--ease-out); }
.card-dark:hover img { transform: scale(1.07) rotate(-1.5deg); }
.card-dark > span:last-child > span { transition: transform .4s var(--ease-out), background-color .3s; }
.card-dark:hover > span:last-child > span { transform: translateX(3px) rotate(-45deg); background: var(--gold) !important; }

.card-lift { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(107, 79, 44, .14); }
.card-lift img { transition: transform .6s var(--ease-out); }
.card-lift:hover img { transform: scale(1.04); }

.story img { transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out); }
.story:hover img { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(107, 79, 44, .18); }
.story h3 { transition: color .3s; }
.story:hover h3 { color: #b8873c !important; }

.value-card > span:first-child { transition: transform .45s var(--ease-out), background-color .3s; }
.value-card:hover > span:first-child { transform: translateY(-3px) scale(1.08); background: #f3e1c1 !important; }
.step-card { transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s; }
.step-card:hover { transform: translateY(-3px); border-color: #d9bf8f !important; box-shadow: 0 10px 22px rgba(107, 79, 44, .10); }

.cert .seal { transition: transform .8s var(--ease-out); }
.cert:hover .seal { transform: rotate(-12deg) scale(1.06); }

/* Chuyển động nền nhẹ */
.bob { animation: bob 5s ease-in-out infinite; }
.card-lift:nth-child(2) .bob { animation-delay: -2.5s; }
.float-wrap img { animation: bob 7s ease-in-out infinite; }
.orb { animation: drift 7s ease-in-out infinite; }
.orb-2 { animation-duration: 9s; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, -14px); } }

/* ---------- Trang sản phẩm ---------- */
.product-stage img { transition: opacity .35s var(--ease-soft), transform .6s var(--ease-out); }
.product-stage:hover img { transform: scale(1.04); }
#mainImg.swap { opacity: 0; transform: scale(.96); }
.thumb { transition: transform .3s var(--ease-out), border-color .25s, box-shadow .3s; }
.thumb:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(107, 79, 44, .12); }
.tab { color: #3d2c1c; border-bottom: 2px solid transparent !important; transition: color .25s; }
.tab:hover { color: #7a5c30; }
.tab.is-active { color: #7a5c30; font-weight: 700; }
.tab-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--gold-deep); border-radius: 2px; transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.tabpanel:not([hidden]) { animation: fadeUp .45s var(--ease-out); }
[data-msg]:not([hidden]) { animation: fadeUp .4s var(--ease-out); }
.faq { transition: border-color .3s, box-shadow .3s; }
.faq:hover, .faq.is-open { border-color: #dcc395 !important; box-shadow: 0 8px 20px rgba(107, 79, 44, .07); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.faq.is-open .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-body p { opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .45s var(--ease-out); }
.faq.is-open .faq-body p { opacity: 1; transform: none; transition-delay: .08s; }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; font-size: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq.is-open .faq-icon::after { transform: rotate(0deg); }

/* ---------- Trang chính sách ---------- */
.policy-menu button { transition: background-color .25s, color .25s, transform .3s var(--ease-out); }
.policy-menu button:not(.is-on):hover { background: #f1e4cf !important; transform: translateX(3px); }
.policy-view > * { animation: fadeUp .5s var(--ease-out); }
.policy-card { transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s; }
.policy-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(107, 79, 44, .12); border-color: #dcc395 !important; }
.policy-card .more { display: inline-block; transition: transform .3s var(--ease-out); }
.policy-card:hover .more { transform: translateX(4px); }

/* ---------- Footer ---------- */

/* ---------- Điện thoại & máy tính bảng ---------- */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap !important; gap: 4px 12px !important; padding: 8px 16px 0 !important; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav .nav-sep { padding: 0 10px !important; }
}
@media (max-width: 640px) {
  .lang { display: none; }
  section { padding-left: 16px !important; padding-right: 16px !important; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr) !important; }
  .hero { border-radius: 14px !important; }
  .hero[data-slider] { overflow: visible !important; margin-bottom: 58px !important; box-shadow: none !important; }
  .hero[data-slider] .slides { box-shadow: 0 10px 24px rgba(107,79,44,0.12); }
  .hero-cta { top: calc(100% + 12px) !important; left: 0 !important; gap: 10px !important; }
  .hero-controls { display: none !important; }
  .hero-dots { display: flex !important; }
}
.hero-dots { display: none; position: absolute; right: 10px; bottom: 14px; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(107, 79, 44, .35); transition: width .4s var(--ease-out), background-color .3s; }
.hero-dots button[aria-current="true"] { width: 22px; background: #6b4f2c; }

/* ---------- Tôn trọng người dùng tắt chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .rv, .js .waves > div > div { opacity: 1 !important; transform: none !important; }
  .js .waves svg { clip-path: none !important; }
  .js .grow-line { transform: none !important; }
  .js .brand-intro .sp, .js .brand-intro .ornament > span, .js .brand-intro .ornament svg { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-img { transform: none !important; }
  .ly, .orb-b, .h-copy * { animation: none !important; }
}

/* Banner: chỉ chữ chuyển động; hộp, ly, hạt, lá, giọt, quả cầu đứng yên */
.scene .ly, .scene .orb-b { animation: none !important; transform: none !important; opacity: 1 !important; }
/* Chân trang đứng yên */
.site-footer, .site-footer * { animation: none !important; transition: none !important; }
.js .site-footer .grow-line { transform: none !important; }

/* Cửa sổ xem giấy tờ (Truy xuất & Chứng nhận) */
html.doc-open { overflow: hidden; }
.doc-dialog { width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 22px; background: #fffaf1; color: #3d2c1c; box-shadow: 0 30px 80px rgba(40, 26, 12, .35); display: none; flex-direction: column; overflow: hidden; font-family: 'Montserrat', system-ui, sans-serif; }
.doc-dialog[open] { display: flex; animation: fadeUp .35s var(--ease-out); }
.doc-dialog::backdrop { background: rgba(40, 26, 12, .55); backdrop-filter: blur(2px); }
.doc-head, .doc-lot, .doc-tabs, .doc-foot { flex: none; }
.doc-dialog button { font-family: inherit; }
.doc-head { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px 12px; border-bottom: 1px solid #efe2cc; }
.doc-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.doc-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: #b8873c; }
.doc-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: #4a3622; outline: none; }
.doc-head p { margin: 0; font-size: 12.5px; color: #6b5338; }
.doc-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f3e6cf; color: #4a3622; font-size: 24px; line-height: 1; cursor: pointer; }
.doc-close:hover { background: #ead6b2; }
.doc-lot { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 12px 22px; background: #f6ecd9; font-size: 13px; }
.doc-lot span { display: flex; flex-direction: column; }
.doc-lot b { font-size: 11px; letter-spacing: .08em; color: #8a6a3b; text-transform: uppercase; }
.doc-lot em { flex-basis: 100%; font-size: 12px; color: #8a3b1c; }
.doc-tabs { display: flex; gap: 8px; padding: 12px 22px; background: #f1e7d6; overflow-x: auto; }
.doc-tabs button { flex: none; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #d8c09a; background: #ffffff; color: #4a3622; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.doc-tabs button[aria-selected="true"] { background: #715433; border-color: #715433; color: #ffffff; }
.doc-pages { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 22px 16px; display: flex; flex-direction: column; gap: 14px; background: #f1e7d6; }
.doc-pages img { display: block; width: 100%; height: auto; border-radius: 8px; background: #ffffff; box-shadow: 0 6px 18px rgba(107, 79, 44, .15); }
.doc-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 22px 16px; border-top: 1px solid #efe2cc; }
.doc-pdf, .doc-close2 { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.doc-pdf, .doc-pdf:visited, .doc-pdf:hover { background: #715433; color: #ffffff !important; }
.doc-pdf[hidden] { display: none; }
.doc-close2 { border: 1.5px solid #6b4f2c; background: transparent; color: #4a3622; }
@media (max-width: 600px) { .doc-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; } .doc-head, .doc-pages, .doc-foot, .doc-lot { padding-left: 14px; padding-right: 14px; } }
