/*
Theme Name: Mercular TXT Clone
Description: Full supplied Mercular Gaming snapshot with original Next.js state and scripts. Includes optional legacy editable layout. Remote APIs remain external dependencies.
Version: 2.0.4
Requires at least: 5.8
Requires PHP: 7.4
Author: Custom Theme
Text Domain: mercular-txt-clone
*/

/* The source owns the visual design. These rules provide a small standalone
   baseline for the WordPress adapter and its optional interactions. */
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.swiper { position: relative; display: block; overflow-x: auto; scrollbar-width: none; }
.swiper::-webkit-scrollbar { display: none; }
.swiper-wrapper { display: flex; position: relative; width: 100%; height: 100%; box-sizing: content-box; }
.swiper-slide { flex-shrink: 0; position: relative; }
.mc-wp-content { max-width: 1200px; min-height: 50vh; margin: 32px auto; padding: 0 20px; }
.mc-wp-content a { color: #0f63e9; text-decoration: underline; }
.mc-wp-content article { margin-bottom: 32px; }
.mc-search-dialog { width: min(600px, calc(100% - 32px)); border: 0; border-radius: 12px; padding: 24px; color: #161c24; }
.mc-search-dialog::backdrop { background: #0008; }
.mc-search-dialog form { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-search-dialog label { flex-basis: 100%; font-weight: 600; }
.mc-search-dialog input { flex: 1; min-width: 160px; padding: 12px; border: 1px solid #bbc3cc; border-radius: 8px; }
.mc-search-dialog button { padding: 10px 16px; border: 0; border-radius: 8px; background: #0f63e9; color: white; }
.mc-search-dialog .mc-close { background: #edf1f5; color: #161c24; }
.mc-search-status { min-height: 1.5em; margin: 12px 0 0; }
.mc-filter-hidden { display: none !important; }
body.admin-bar #main-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar #main-header { top: 46px; } }

/* 1.1 — screenshot-based restoration of the sections formerly populated by Next.js. */
@font-face{font-family:NotoSans-Thai;src:url('assets/fonts/noto-sans-thai-thai-400-normal.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap;unicode-range:U+0E00-0E7F,U+200C-200D,U+25CC}
@font-face{font-family:NotoSans-Thai;src:url('assets/fonts/noto-sans-thai-latin-400-normal.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F}
@font-face{font-family:NotoSans-Thai;src:url('assets/fonts/noto-sans-thai-thai-500-normal.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap;unicode-range:U+0E00-0E7F,U+200C-200D,U+25CC}
@font-face{font-family:NotoSans-Thai;src:url('assets/fonts/noto-sans-thai-latin-500-normal.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F}
@font-face{font-family:NotoSans-Thai;src:url('assets/fonts/noto-sans-thai-thai-600-normal.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap;unicode-range:U+0E00-0E7F,U+200C-200D,U+25CC}
@font-face{font-family:NotoSans-Thai;src:url('assets/fonts/noto-sans-thai-latin-600-normal.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F}
@font-face{font-family:NotoSans-Thai;src:url('assets/fonts/noto-sans-thai-thai-700-normal.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap;unicode-range:U+0E00-0E7F,U+200C-200D,U+25CC}
@font-face{font-family:NotoSans-Thai;src:url('assets/fonts/noto-sans-thai-latin-700-normal.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F}
:root{--mc-blue:#0967f5;--mc-ink:#161c24}
.mc-header{background:#fff;position:relative;z-index:20;margin:0 auto 20px;max-width:1280px}
.mc-header-inner{height:64px;display:flex;align-items:center;gap:24px}
.mc-logo{width:136px;flex-shrink:0}.mc-logo img{width:136px;height:42px;object-fit:contain}
.mc-category-menu summary{list-style:none;cursor:pointer;background:#eaf2ff;border-radius:5px;padding:7px 12px;color:var(--mc-blue);font-size:13px;white-space:nowrap;font-weight:600}.mc-category-menu summary::-webkit-details-marker{display:none}.mc-category-menu summary span{font-size:24px;vertical-align:middle;line-height:18px;margin-right:8px}
.mc-category-menu nav{position:absolute;top:58px;width:280px;background:#fff;box-shadow:0 8px 30px #19324c25;border-radius:8px;padding:12px;display:grid;gap:4px}.mc-category-menu nav a{padding:10px;border-radius:6px;font-size:14px}.mc-category-menu nav a:hover{background:#eaf2ff}
.mc-header-search{margin:0 auto;max-width:560px;display:flex;align-items:center;background:#f4f5f6;border-radius:24px;flex:1;min-width:180px;height:38px}.mc-header-search input{border:0;background:none;outline:none;width:100%;padding:8px 14px;font-size:14px;min-width:0}.mc-header-search input::placeholder{color:#a0a8b3}.mc-header-search button{display:grid;place-items:center;border:0;border-radius:50%;background:var(--mc-blue);color:white;width:34px;height:34px;flex-shrink:0;padding:8px}.mc-header-search svg{fill:none;stroke:currentColor;stroke-width:1.8}
.mc-locale{font-size:20px}.mc-cart{width:24px;line-height:0}.mc-cart svg{width:24px;stroke-width:1.7}.mc-login{background:var(--mc-blue);color:#fff;padding:8px 18px;font-size:13px;font-weight:600;border-radius:5px;white-space:nowrap}
.mc-subnav{height:24px;display:flex;align-items:center;font-size:12px}.mc-subnav a{background:#f5f6f8;padding:4px 10px;border-radius:5px}
.mc-categories .swiper{overflow-x:auto!important;padding:14px 0 12px;scrollbar-width:none}.mc-categories .swiper-wrapper{gap:16px}.mc-categories .swiper-slide{width:232px!important}.mc-categories .css-18u3d9v{display:flex;align-items:center;background:#f5f6f8;border-radius:8px;height:80px;padding:0 10px;gap:8px}.mc-categories .subcategory-list{width:102px;min-width:102px;height:102px;background:transparent}.mc-categories .subcategory-list img{width:100%;height:100%;object-fit:contain}.mc-categories .css-17egz6e{flex:1}.mc-categories .css-1b87ybi{font-size:14px;line-height:20px;text-align:left}.mc-categories .css-2zwozy,.mc-categories .css-xpshig{display:flex}
.mc-restored-content,.mc-brand-sections{max-width:1280px;margin:auto}
.mc-best{padding:34px 0 24px;text-align:center}.mc-best-heading{width:360px;height:60px;object-fit:contain;display:block;margin:0 auto 14px}.mc-best-tabs{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}.mc-best-tabs button,.mc-category-tab{border:0;border-radius:24px;padding:7px 15px;font-size:13px;font-weight:600;color:#636d79;background:#f0f2f4}.mc-best-tabs button[aria-selected=true]{background:var(--mc-blue);color:#fff}.mc-best-description{max-width:860px;margin:16px auto 20px;font-size:14px;line-height:22px}.mc-best-panel{position:relative}.mc-best-panel[hidden]{display:none}.mc-carousel{display:flex;overflow-x:auto;scrollbar-width:none;gap:20px;scroll-snap-type:x proximity;padding:4px 2px 20px}.mc-carousel::-webkit-scrollbar{display:none}.mc-best .mc-carousel{justify-content:flex-start}.mc-mini-card{flex:0 0 calc((100% - 100px)/6);min-width:0;display:flex;flex-direction:column;text-align:left;background:#fff;border-radius:12px;box-shadow:0 8px 22px #919eab20;overflow:hidden;scroll-snap-align:start;padding-bottom:10px;color:var(--mc-ink)}.mc-mini-image{position:relative;width:100%;aspect-ratio:1}.mc-mini-image>img{width:100%;height:100%;object-fit:contain;display:block}.mc-mini-title{font-size:12px;line-height:20px;min-height:40px;margin:10px 10px 6px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.mc-mini-card strong{font-size:16px;margin:0 10px 4px;font-weight:600}.mc-best-card{text-align:center;box-shadow:none}.mc-best-card .mc-mini-image{border-radius:50%;border:1px solid #f5f6f8}.mc-best-card .mc-mini-title{font-size:12px}.mc-best-card .mc-shipping{display:none}.mc-rank{position:absolute;bottom:-3px;left:18%;right:18%;background:#89c4df;color:#fff;font-size:26px;line-height:34px;font-weight:700;clip-path:polygon(0 0,100% 0,95% 50%,100% 100%,0 100%,5% 50%)}.mc-slide-next{position:absolute;right:-18px;top:40%;width:36px;height:36px;border-radius:50%;background:#fff;border:0;box-shadow:0 2px 12px #919eab30;color:var(--mc-blue);font-size:28px;line-height:30px;z-index:1}.mc-progress{width:400px;max-width:80%;height:4px;background:#dfe5ec;margin:14px auto}.mc-progress span{display:block;width:40%;height:100%;background:var(--mc-blue)}
.mc-brands{padding:26px 0 64px}.mc-brands h2,.mc-brand-section h2{font-size:22px;line-height:32px;font-weight:700;margin:0}.mc-brand-logos{display:flex;gap:34px;justify-content:center;align-items:center;min-height:138px}.mc-brand-logos a{width:145px;height:90px;display:block}.mc-brand-logos img{height:100%;width:100%;object-fit:contain}
#mc-products .mc-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #dfe3e8;padding:12px 0 16px;margin:0 0 24px}.mc-toolbar button,.mc-toolbar select{border:0;background:#f5f6f8;color:#454f5b;font-size:13px;padding:8px 12px;border-radius:6px}.mc-toolbar #mc-sort{margin-left:auto}.mc-result-status{font-size:12px;color:#637381}.mc-source-filter{display:none!important}
#mc-products .css-1dzs72t{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px;width:100%;margin:0}#mc-products .css-1hzyivn{padding:0;width:100%;max-width:100%;min-width:0}#mc-products .product-card{width:100%;min-width:0;height:100%}#mc-products .product-card-detail-section{min-height:104px}#mc-products .product-secondary{opacity:0}#mc-products .product-card:hover .product-secondary{opacity:1}#mc-products .product-card .css-16pmv5v{z-index:3}.mc-shipping{font-size:11px;color:#5c9fcf;display:block;margin:3px 10px}.mc-filter-hidden{display:none!important}
.mc-brand-sections{padding:28px 0 0}.mc-brand-section{padding:20px 0 32px}.mc-section-heading{display:flex;justify-content:space-between;align-items:center}.mc-section-heading>a{color:var(--mc-blue);font-size:13px}.mc-brand-section>p{font-size:14px;line-height:22px;max-width:860px;margin:6px 0 20px}.mc-brand-carousel{position:relative;display:flex;align-items:stretch;gap:20px}.mc-brand-banner{flex:0 0 calc((100% - 100px)/6);border-radius:12px;overflow:hidden;align-self:stretch;margin-bottom:20px;min-height:280px}.mc-brand-banner img{width:100%;height:100%;object-fit:cover;display:block}.mc-brand-carousel>.mc-carousel{flex:1;min-width:0}.mc-brand-carousel .mc-mini-card{flex-basis:calc((100% - 80px)/5)}
.mc-marquee{height:270px;display:flex;align-items:center;overflow:hidden;white-space:nowrap;margin-top:20px}.mc-marquee span{font-family:Arial,sans-serif;font-weight:700;font-size:108px;line-height:1.2;color:transparent;-webkit-text-stroke:1.5px #4a88ff;animation:mc-ticker 30s linear infinite;transform:translateX(25%)}@keyframes mc-ticker{to{transform:translateX(-50%)}}
.facility-footer{background:#f7f8fa}.facility-footer .css-13gmivw{background:#f7f8fa;padding:28px 20px}.facility-footer .css-q2p15c{max-width:1100px;margin:auto;gap:36px}.facility-footer .css-akirc2{background:var(--mc-blue);border-radius:50%;padding:9px;display:flex}.facility-footer .css-calnri span{color:var(--mc-ink)}.facility-footer .css-67l65n{font-size:16px}.facility-footer .css-1wwqqml{font-size:12px}
.mc-footer{max-width:1280px;margin:auto;padding:28px 0 24px}.mc-footer-grid{display:grid;grid-template-columns:1.1fr 1.25fr 1fr 2fr 1fr;gap:24px}.mc-footer-column h3{font-size:15px;margin:0 0 12px;font-weight:600}.mc-footer-column>a{display:block;color:#637381;font-size:12px;line-height:26px}.mc-footer-column p{font-size:12px;color:#637381}.mc-footer-language{align-self:start;background:#f5f6f8;padding:8px 14px;font-size:13px;border-radius:4px}.mc-socials{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px}.mc-socials a{display:flex;align-items:center;justify-content:center;background:#161c24;color:white;width:30px;height:30px;border-radius:50%;font-family:Arial,sans-serif;font-size:20px;font-weight:bold}.mc-socials a:first-child{background:#1877f2}.mc-socials a:nth-child(4){background:#f00}.mc-socials a:nth-child(5){background:linear-gradient(35deg,#ffd940,#f32887,#8852f9)}.mc-socials a:nth-child(6){background:#00c300;font-size:9px}.mc-footer-services{display:flex;justify-content:center;gap:18px;align-items:center;margin:44px 0 20px;font-family:Arial,sans-serif;font-weight:bold;font-size:12px;color:#213875}.mc-footer-services span:nth-child(4){background:#ffed00;color:#d3151d}.mc-footer-services span:nth-child(5){background:#f26d24;color:#fff}.mc-footer-services span:nth-child(6){background:#f5df19;color:#242424}.mc-footer-services span{padding:4px 8px}.mc-copyright{text-align:center;font-size:10px;color:#637381}.mc-copyright a{margin-left:16px;color:#0f63e9}.mc-floating{position:fixed;right:20px;bottom:22px;z-index:30;display:flex;flex-direction:column;align-items:center;gap:10px}.mc-floating>a{background:var(--mc-blue);color:white;padding:9px 12px;border-radius:12px;font-size:12px;box-shadow:0 3px 12px #0f63e940}.mc-floating button{border:0;background:var(--mc-blue);color:#fff;border-radius:50%;width:36px;height:36px;font-size:24px;box-shadow:0 3px 12px #0f63e940}
@media(max-width:1340px){.mc-header,.mc-restored-content,.mc-brand-sections,.mc-footer{margin-left:24px;margin-right:24px}.mc-slide-next{right:-12px}}
@media(max-width:899px){.mc-header{margin:0 16px 16px}.mc-header-inner{gap:12px;height:auto;min-height:58px;flex-wrap:wrap;padding:10px 0}.mc-logo{width:110px}.mc-logo img{width:110px;height:34px}.mc-category-menu{order:2}.mc-category-menu summary{font-size:0;padding:8px}.mc-category-menu summary span{font-size:24px;margin:0}.mc-header-search{order:5;flex-basis:100%;max-width:none}.mc-locale{margin-left:auto}.mc-login{padding:7px 12px}.mc-header .mc-subnav{display:none}.mc-restored-content,.mc-brand-sections,.mc-footer{margin-left:16px;margin-right:16px}.mc-categories .swiper-slide{width:190px!important}.mc-categories .subcategory-list{width:84px;min-width:84px;height:84px}.mc-categories .css-18u3d9v{height:68px}.mc-best-heading{width:280px;height:46px}.mc-best-tabs button,.mc-category-tab{font-size:11px;padding:7px 10px}.mc-best-description{font-size:12px}.mc-mini-card{flex-basis:calc((100% - 32px)/3)}.mc-best .mc-carousel{gap:16px}.mc-brand-logos{gap:12px;min-height:100px}.mc-brand-logos a{width:23%;height:70px}.mc-brands{padding-bottom:32px}.mc-brands h2,.mc-brand-section h2{font-size:20px}.mc-brand-banner{flex-basis:calc((100% - 32px)/3);min-height:250px}.mc-brand-carousel .mc-mini-card{flex-basis:calc((100% - 16px)/2)}#mc-products .css-1dzs72t{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mc-footer-grid{grid-template-columns:repeat(3,1fr);gap:22px}.mc-contact-column{grid-column:span 2}.mc-marquee{height:180px}.mc-marquee span{font-size:78px}.facility-footer .css-q2p15c{gap:20px;flex-wrap:wrap}.facility-footer .css-q2p15c>a{width:calc(50% - 10px)}}
@media(max-width:599px){.mc-header-inner{gap:10px}.mc-logo{width:100px}.mc-logo img{width:100px}.mc-category-menu summary{padding:5px}.mc-locale{font-size:17px}.mc-cart{width:20px}.mc-login{font-size:12px;padding:7px 10px}.mc-mini-card{flex-basis:calc((100% - 24px)/2.2)}.mc-best .mc-carousel{gap:12px}.mc-best{padding:24px 0 14px}.mc-best-description{margin:12px 0 16px}.mc-best-tabs{gap:5px}.mc-best-tabs button,.mc-category-tab{font-size:10px;padding:6px 9px}.mc-brand-logos{gap:12px}.mc-brand-logos a{height:60px}.mc-brands{padding-top:16px;padding-bottom:24px}.mc-brand-carousel{gap:12px}.mc-brand-banner{flex-basis:40%;min-height:230px}.mc-brand-carousel .mc-mini-card{flex-basis:100%}.mc-brand-section>p{font-size:12px;line-height:20px}.mc-brand-section h2{font-size:18px}.mc-brand-section{padding:18px 0}.mc-section-heading>a{font-size:11px}#mc-products .css-1dzs72t{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#mc-products .mc-toolbar{gap:6px}.mc-toolbar select,.mc-toolbar button{font-size:11px;padding:7px 8px}.mc-result-status{width:100%;order:5}.mc-marquee{height:150px}.mc-marquee span{font-size:62px}.mc-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}.mc-contact-column{grid-column:auto}.mc-footer-language{grid-column:1/-1}.mc-footer-services{gap:8px;flex-wrap:wrap;margin:24px 0 16px}.mc-footer-services span{font-size:10px}.mc-floating{right:12px;bottom:14px}.facility-footer .css-q2p15c{gap:16px}.facility-footer .css-calnri span{white-space:normal}.facility-footer .css-67l65n{font-size:13px}.facility-footer .css-1wwqqml{font-size:10px}.facility-footer .css-akirc2{padding:7px}.facility-footer .css-akirc2 svg{width:24px;height:24px}.mc-copyright{line-height:20px}.mc-copyright a{white-space:nowrap;margin-left:8px}}
@media(prefers-reduced-motion:reduce){.mc-marquee span{animation:none}.mc-carousel{scroll-behavior:auto}}
.mc-logo-fallback{font:700 26px Arial,sans-serif;color:#202832;letter-spacing:-1.2px;line-height:42px}.mc-logo-fallback::first-letter{color:#0f63e9}.mc-original-logo[hidden],.mc-logo-fallback[hidden]{display:none}
#mc-products .css-1ptceeh{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px}#mc-products .css-9e9a27{display:flex;align-items:center;gap:5px}#mc-products .css-9e9a27 p{margin:0;white-space:nowrap}
.mc-categories .swiper-slide>a{display:block;width:100%}.mc-categories .css-18u3d9v{width:100%;min-width:100%;box-sizing:border-box}.mc-categories .css-17egz6e{width:auto!important;min-width:0}
.mc-mini-image>img,#mc-products .css-19g7cpb>img{font-size:0}
@media(max-width:599px){#mc-products{padding-left:16px;padding-right:16px}#mc-products .css-1ou8djj{width:100%;margin:0}#mc-products .css-8atqhb{padding-left:0;padding-right:0;min-width:0}.mc-header .mc-category-menu{order:0}.mc-brand-carousel .mc-mini-card{min-width:0}.mc-mini-title{word-break:break-word}}
.mc-category-menu:not([open]) nav{display:none}.mc-category-menu nav{left:0;box-sizing:border-box;max-width:calc(100vw - 32px)}
.mc-categories .css-18u3d9v{flex-direction:row;justify-content:space-between;max-width:none}.mc-categories .subcategory-list{position:static;max-width:none;margin:0;overflow:visible}.mc-categories .css-17egz6e{background:transparent;height:auto;align-items:flex-start;justify-content:center;padding:0}.mc-categories .css-gjz3yj{width:auto;height:auto;align-items:flex-start}.mc-categories .css-2zwozy{right:0!important}.mc-categories .css-xpshig{left:0!important}
.mc-th-flag{display:inline-block;width:18px;height:13px;border-radius:2px;vertical-align:middle;background:linear-gradient(#c21f32 0 16.67%,#fff 16.67% 33.33%,#21366c 33.33% 66.67%,#fff 66.67% 83.33%,#c21f32 83.33%);box-shadow:0 0 1px #6e7a87}
@media(max-width:599px){.mc-logo-fallback{font-size:22px;letter-spacing:-1px}.mc-categories .css-1b87ybi{font-size:12px;line-height:18px}.mc-categories .subcategory-list{width:80px;min-width:80px;height:80px}#__next{max-width:100%;overflow-x:clip}}
