/* Presentation selectors are scoped to Media Z wrappers; no checkout DOM rewrites. */
:root {
    --mz-ink:#172c46; --mz-muted:#526277; --mz-blue:#075dc6; --mz-navy:#102843;
    --mz-sky:#edf6ff; --mz-bg:#f5f7fa; --mz-border:#dce4ec; --mz-radius:14px;
}
html { scroll-behavior:smooth; }
body { margin:0; }
* { box-sizing:border-box; }
img { max-width:100%; height:auto; }
a, button, input, select, textarea { -webkit-tap-highlight-color:transparent; }
:where(a,button,input,select,textarea,summary):focus-visible { outline:3px solid #c16a00; outline-offset:4px; }
.mz-skip { position:absolute; left:16px; top:-100px; z-index:100000; padding:12px 20px; background:#fff; color:var(--mz-ink); }
.mz-skip:focus { top:16px; }
.wp-site-blocks > * + * { margin-block-start:0; }
.mz-shell { max-width:1240px; margin-inline:auto; padding-inline:24px; }
.mz-main { max-width:1240px; margin-inline:auto; padding:32px 24px 56px; min-height:45vh; }
.mz-header { background:#fff; border-bottom:1px solid var(--mz-border); }
.mz-header > *, .mz-footer-columns > * { margin-block-start:0; margin-block-end:0; }
.mz-topbar { background:var(--mz-navy); color:#fff; font-size:12px; }
.mz-topbar p { margin:0; padding:8px 24px; }
.mz-header-main { display:flex; align-items:center; gap:28px; padding-block:22px; }
.mz-brand a { color:var(--mz-navy); text-decoration:none; display:block; }
.mz-brand a:hover { text-decoration:none; }
.mz-brand-type { display:block; white-space:nowrap; font-size:28px; font-weight:800; line-height:1.05; letter-spacing:-1px; }
.mz-brand-type strong { color:var(--mz-blue); }
.mz-brand-type small { display:block; margin-top:6px; font-size:10px; letter-spacing:4px; font-weight:600; }
.mz-brand-image { width:auto; max-width:180px; max-height:58px; object-fit:contain; }
.mz-header-search { flex:1; min-width:0; }
.mz-header-search .wp-block-search__inside-wrapper { border:1px solid var(--mz-border); border-radius:10px; background:var(--mz-bg); padding:4px; }
.mz-header-search .wp-block-search__input { background:transparent; border:0; padding:9px 12px; min-width:0; font:inherit; }
.mz-header-search .wp-block-search__button { margin-left:4px; border:0; border-radius:7px; padding:10px 20px; font-size:14px; }
.mz-header-actions { display:flex; align-items:center; gap:18px; white-space:nowrap; }
.mz-header-actions .mz-button--text { font-size:13px; }
.mz-categories ul { list-style:none; padding:0; margin:0; }
.mz-categories a { color:var(--mz-ink); text-decoration:none; }
.mz-categories a:hover { color:var(--mz-blue); text-decoration:none; }
.mz-categories--nav ul { display:flex; gap:2px; overflow-x:auto; scrollbar-width:thin; padding:0 0 2px; }
.mz-categories--nav a { display:block; white-space:nowrap; padding:12px 18px; font-size:14px; border-radius:8px 8px 0 0; }
.mz-categories--nav li:first-child a { background:var(--mz-sky); color:var(--mz-blue); font-weight:700; }
.mz-categories--grid ul { display:grid; grid-template-columns:repeat(auto-fit,minmax(125px,1fr)); gap:12px; }
.mz-categories--grid a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; padding:18px 8px; border:1px solid var(--mz-border); border-radius:12px; font-size:13px; font-weight:600; height:100%; text-align:center; background:#fff; }
.mz-categories--grid img { height:40px; width:44px; object-fit:contain; }
.mz-category-symbol { display:flex; align-items:center; justify-content:center; width:44px; height:40px; background:var(--mz-sky); color:var(--mz-blue); border-radius:9px; font-size:25px; }
.mz-categories--grid a:hover { border-color:var(--mz-blue); background:var(--mz-sky); }
.mz-button { display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:11px 20px; border:1px solid transparent; border-radius:9px; font:inherit; font-size:14px; font-weight:600; line-height:1.4; text-decoration:none; cursor:pointer; }
.mz-button:hover { text-decoration:none; filter:brightness(.95); }
.mz-button--primary { background:var(--mz-blue); color:#fff; }
.mz-button--secondary { background:#fff; color:var(--mz-blue); border-color:var(--mz-border); }
.mz-button--text { background:transparent; color:var(--mz-blue); padding-inline:0; }
.mz-button--line { background:#06703c; color:#fff; }
.mz-hero { background:var(--mz-sky); border:1px solid #e0edf9; border-radius:20px; padding:42px; overflow:hidden; }
.mz-hero h1 { font-size:clamp(30px,3.4vw,48px); letter-spacing:-1px; line-height:1.35; max-width:580px; margin-block:14px; }
.mz-hero .wp-block-columns { gap:42px; align-items:center; margin:0; }
.mz-hero-copy { max-width:550px; }
.mz-hero p:not(.mz-eyebrow) { color:var(--mz-muted); }
.mz-eyebrow { color:var(--mz-blue); font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; margin:0 0 12px; }
.mz-hero-ctas { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.mz-hero-note { font-size:12px; margin-top:16px; }
.mz-hero-product { background:#fff; border:1px solid var(--mz-border); border-radius:16px; padding:20px; text-align:center; }
.mz-hero-product .mz-hero-image { display:block; object-fit:contain; width:100%; height:250px; margin:auto; }
.mz-hero-product-name { display:block; font-size:12px; color:var(--mz-muted); margin-top:12px; overflow-wrap:anywhere; }
.mz-section { margin-top:38px; }
.mz-section-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:16px; }
.mz-section-head h2 { margin:0; font-size:24px; }
.mz-section-head p { margin:4px 0 0; font-size:13px; color:var(--mz-muted); }
.mz-product-grid .wc-block-product-template { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:16px !important; }
.mz-product-grid .wc-block-product { min-width:0; border:1px solid var(--mz-border); border-radius:var(--mz-radius); background:#fff; padding:16px; display:flex; flex-direction:column; gap:10px; overflow:hidden; }
.mz-product-grid .wc-block-product:hover { border-color:#a3bedc; }
.mz-product-grid .wc-block-product > * { margin-top:0; margin-bottom:0; }
.mz-product-grid .wp-block-woocommerce-product-image { aspect-ratio:1; margin-bottom:4px; }
.mz-product-grid .wp-block-woocommerce-product-image img { width:100%; height:100%; object-fit:contain; }
.mz-product-grid .wp-block-post-title { font-size:14px; font-weight:600; line-height:1.65; min-height:3.3em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mz-product-grid .wp-block-post-title a { color:var(--mz-ink); }
.mz-product-grid .wp-block-woocommerce-product-price { font-size:18px; margin-top:auto; }
.mz-product-grid .wp-block-woocommerce-product-button { width:100%; }
.mz-product-grid .wp-block-woocommerce-product-button a { width:100%; font-size:13px; padding:11px 10px; }
.mz-services { background:var(--mz-bg); border:1px solid var(--mz-border); padding:24px; border-radius:14px; margin-top:38px; }
.mz-services h3 { font-size:16px; margin:0 0 6px; }
.mz-services p { margin:0; font-size:13px; color:var(--mz-muted); }
.mz-services .wp-block-columns { margin:0; gap:24px; }
.mz-catalog-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:28px; align-items:start; }
.mz-catalog-sidebar { border:1px solid var(--mz-border); border-radius:12px; padding:18px; }
.mz-filter-inner h2,.mz-filter-inner h3 { font-size:15px; margin-top:18px; margin-bottom:12px; }
.mz-filter-inner h2:first-child { margin-top:0; }
.mz-filter-inner ul { padding-inline-start:20px; font-size:13px; }
.mz-filter-inner li { margin-bottom:10px; }
.mz-product-summary .wp-block-post-title { font-size:clamp(22px,2.2vw,30px); overflow-wrap:anywhere; }
.mz-product-summary .wp-block-woocommerce-product-price { font-size:28px; }
.mz-product-summary .cart .button { background:var(--mz-blue); color:#fff; border-radius:10px; min-height:46px; }
.mz-product-summary .cart select,.mz-product-summary .cart input { font:inherit; padding:8px; max-width:100%; }
.mz-product-layout { gap:36px; margin-top:22px; }
.mz-footer { background:var(--mz-navy); color:#fff; padding:36px 0 20px; }
.mz-footer .mz-brand a,.mz-footer .mz-brand-type strong { color:#fff; }
.mz-footer a { color:#fff; }
.mz-footer p { color:#d0dceb; font-size:13px; }
.mz-footer-columns { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px; }
.mz-footer h3 { font-size:15px; margin:0 0 14px; }
.mz-footer-links ul { list-style:none; margin:0; padding:0; }
.mz-footer-links li { margin-bottom:8px; font-size:13px; }
.mz-footer .mz-button--line { background:#fff; color:#056333; }
.mz-copyright { border-top:1px solid #38516e; padding-top:18px; margin-top:28px; }
.mz-checkout-header { border-bottom:1px solid var(--mz-border); padding-block:20px; }
.mz-checkout-header .mz-shell { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.mz-checkout-page { max-width:1160px; }
.mz-checkout-page h1 { font-size:28px; }
/* Explicit wrapper rules, not fragile payment-provider/internal DOM selectors. */
.mz-checkout-page :where(input,select,textarea) { max-width:100%; }
@media (max-width:1023px) {
    .mz-header-main { gap:20px; }
    .mz-header-actions .wp-block-mediaz-shop-link { display:none; }
    .mz-hero { padding:28px; }
    .mz-hero h1 { font-size:34px; }
    .mz-catalog-layout { grid-template-columns:190px minmax(0,1fr); gap:20px; }
    .mz-catalog-layout .mz-product-grid .wc-block-product-template { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}
@media (max-width:781px) {
    .mz-shell { padding-inline:16px; }
    .mz-main { padding:20px 16px 36px; }
    .mz-header-main { flex-wrap:wrap; gap:18px 16px; padding-block:16px; }
    .mz-brand-type { font-size:24px; }
    .mz-header-search { order:3; flex-basis:100%; }
    .mz-header-actions { margin-left:auto; }
    .mz-topbar p { padding:8px 16px; font-size:11px; }
    .mz-categories--nav a { padding:11px 13px; font-size:13px; }
    .mz-hero { padding:24px 20px; border-radius:14px; }
    .mz-hero h1 { font-size:31px; }
    .mz-hero .wp-block-columns { gap:22px; }
    .mz-hero-product .mz-hero-image { height:180px; }
    .mz-hero-product { padding:14px; }
    .mz-hero-note { margin-bottom:0; }
    .mz-categories--grid ul { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
    .mz-categories--grid a { padding:14px 6px; font-size:12px; }
    .mz-section { margin-top:28px; }
    .mz-section-head h2 { font-size:21px; }
    .mz-section-head .mz-button { font-size:12px; }
    .mz-product-grid .wc-block-product-template,
    .mz-catalog-layout .mz-product-grid .wc-block-product-template { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; }
    .mz-product-grid .wc-block-product { padding:11px; gap:8px; }
    .mz-product-grid .wp-block-post-title { font-size:12px; }
    .mz-product-grid .wp-block-woocommerce-product-price { font-size:15px; }
    .mz-product-grid .wp-block-woocommerce-product-button a { font-size:12px; padding-inline:5px; }
    .mz-services { margin-top:28px; padding:20px; }
    .mz-services .wp-block-columns { gap:18px; }
    .mz-catalog-layout { display:block; }
    .mz-catalog-sidebar { margin-bottom:20px; }
    .mz-footer-columns { grid-template-columns:1fr; gap:24px; }
    .mz-footer { padding-top:28px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* Featured hero: readable cards and touch targets on phones. */
@media (max-width:781px) {
 .mz-hero-featured { width:100%; min-width:0; }
 .mz-hero-featured > h2 { font-size:22px; margin:0 0 18px; }
 .mz-hero-featured .woocommerce ul.products { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; margin:0; padding:0; }
 .mz-hero-featured .woocommerce ul.products::before, .mz-hero-featured .woocommerce ul.products::after { display:none; }
 .mz-hero-featured .woocommerce ul.products li.product { float:none; width:100%; min-width:0; margin:0; }
 .mz-hero-featured .woocommerce ul.products li.product a img { width:100%; height:220px; object-fit:contain; margin:0 auto 12px; }
 .mz-hero-featured .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:16px; line-height:1.6; overflow-wrap:anywhere; }
 .mz-hero-featured .woocommerce ul.products li.product .price { font-size:18px; }
 .mz-hero-featured .woocommerce ul.products li.product .button { display:flex; align-items:center; justify-content:center; min-height:44px; width:100%; padding:12px; box-sizing:border-box; }
}

/* Category cards: large contained images and aligned labels, 2026-11-14. */
.mz-categories--grid li { min-width:0; }
.mz-categories--grid a { box-sizing:border-box; justify-content:flex-start; gap:8px; padding:8px 8px 12px; }
.mz-categories--grid img { display:block; width:100%; height:auto; aspect-ratio:1 / 1; max-width:100%; object-fit:contain; margin:0; }
.mz-categories--grid .mz-category-symbol { width:100%; height:auto; aspect-ratio:1 / 1; font-size:40px; }
.mz-categories--grid a > span:last-child { display:flex; align-items:center; justify-content:center; width:100%; min-height:2.8em; line-height:1.4; margin-top:auto; overflow-wrap:anywhere; }
/* Bilingual category labels: English above Thai, matched to existing category URLs. */.mz-categories--grid a > span:last-child { flex-direction:column; gap:2px; min-height:3.4em; }.mz-categories--grid a > span:last-child::before { display:block; font-size:10px; font-weight:700; line-height:1.2; letter-spacing:.03em; }.mz-categories--grid a[href*="case-computer"] > span:last-child::before { content:"PC CASE"; }.mz-categories--grid a[href*="cooling"] > span:last-child::before,.mz-categories--grid a[href*="liquid-cooler"] > span:last-child::before,.mz-categories--grid a[href*="air-cooler"] > span:last-child::before,.mz-categories--grid a[href*="fans-heatsinks"] > span:last-child::before { content:"COOLING"; }.mz-categories--grid a[href*="accessories"] > span:last-child::before { content:"ACCESSORIES"; }.mz-categories--grid a[href*="%e0%b8%ad%e0%b8%b8%e0%b8%9b"] > span:last-child::before { content:"NETWORKING"; }.mz-categories--grid a[href*="notebook"] > span:last-child::before { content:"NOTEBOOK"; }.mz-categories--grid a[href*="cpu"] > span:last-child::before { content:"CPU"; }.mz-categories--grid a[href*="graphics-card"] > span:last-child::before { content:"GRAPHICS CARD"; }.mz-categories--grid a[href*="motherboard"] > span:last-child::before { content:"MOTHERBOARD"; }.mz-categories--grid a[href*="ram"] > span:last-child::before { content:"RAM"; }.mz-categories--grid a[href*="ssd-flash-drive"] > span:last-child::before { content:"STORAGE"; }.mz-categories--grid a[href*="monitor"] > span:last-child::before { content:"MONITOR"; }.mz-categories--grid a[href*="keyboard"] > span:last-child::before { content:"KEYBOARD"; }.mz-categories--grid a[href*="mouse"] > span:last-child::before { content:"MOUSE"; }.mz-categories--grid a[href*="headset"] > span:last-child::before { content:"HEADSET"; }.mz-categories--grid a[href*="cables-adapters"] > span:last-child::before { content:"CABLES & ADAPTERS"; }.mz-categories--grid a[href*="%e0%b9%80"] > span:last-child::before { content:"CUSTOM PC"; }.mz-categories--grid a[href*="%e0%b8%9e"] > span:last-child::before { content:"POWER SUPPLY"; }
.mz-categories--grid a[href*="%e0%b8%ad%e0%b8%b8%e0%b8%9b"] > span:last-child::before { content:"NETWORKING"; }/* All products thumbnail, 2026-11-14. */.mz-categories--grid a[href="https://mediazshop.com/shop/"] .mz-category-symbol { font-size:0; background:transparent url("https://mediazshop.com/wp-content/uploads/2026/11/all-products-300.png") center / contain no-repeat; }.mz-categories--grid a[href="https://mediazshop.com/shop/"] > span:last-child::before { content:"ALL PRODUCTS"; }/* Homepage product names: maximum two lines. */.home .woocommerce-loop-product__title, .home .mz-product-grid .wp-block-post-title, .home .mz-hero-product-name { display:-webkit-box !important; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; text-overflow:ellipsis; line-height:1.6; max-height:3.2em; min-height:3.2em; }.home .woocommerce-loop-product__title { padding-block:0 !important; }

/* Keep WooCommerce price filter controls inside the catalog sidebar. */
.mz-catalog-sidebar .wc-block-product-filter-price-slider__content:not(.wc-block-product-filter-price-slider__content--inline) { grid-template-columns:minmax(0,1fr) 0 minmax(0,1fr); column-gap:8px; }
.mz-catalog-sidebar .wc-block-product-filter-price-slider__content > div { min-width:0; }
.mz-catalog-sidebar .wp-block-woocommerce-product-filter-price-slider .text input[type="text"] { box-sizing:border-box; width:100%; max-width:100%; min-width:0; padding:6px 4px; font:inherit; font-size:12px; border:1px solid var(--mz-border); border-radius:4px; }
