/*
Theme Name: MAPET SHOP PetMart
Theme URI: https://www.mapetshop.com/
Author: LIGHTING EXPRESS CO., LTD.
Description: Modern WooCommerce pet shop theme for MAPET SHOP by LIGHTING EXPRESS CO., LTD. Includes live search, mega menu, mini cart, banner slider, mobile sticky add to cart, blog content and editable branding.
Version: 2.6.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: lighting-express
Tags: e-commerce, blog, custom-logo, featured-images, woocommerce, responsive-layout
*/
:root{
  --le-blue:#0e4fc0;
  --le-blue-dark:#083b94;
  --le-blue-soft:#eaf2ff;
  --le-yellow:#ffcf42;
  --le-yellow-soft:#fff4cd;
  --le-ink:#183153;
  --le-text:#314662;
  --le-muted:#6d7f98;
  --le-border:#d9e2f0;
  --le-bg:#f7f9fd;
  --le-white:#ffffff;
  --le-radius:22px;
  --le-shadow:0 16px 38px rgba(9,53,129,.10);
  --wrap:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"IBM Plex Sans Thai","Noto Sans Thai","Segoe UI",Tahoma,sans-serif;color:var(--le-text);background:var(--le-bg);line-height:1.75;font-size:16px}
a{color:var(--le-blue);text-decoration:none} a:hover{color:var(--le-blue-dark)}
img{max-width:100%;height:auto;display:block}
.container{width:min(calc(100% - 32px),var(--wrap));margin:auto}
.site-topbar{background:var(--le-blue-dark);color:#d9e7ff;font-size:12px}
.site-topbar .inner{display:flex;gap:16px;align-items:center;justify-content:space-between;min-height:38px;flex-wrap:wrap}
.site-topbar .left,.site-topbar .right{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.site-header{background:var(--le-blue);position:sticky;top:0;z-index:50;box-shadow:0 6px 18px rgba(0,0,0,.08)}
.site-header .nav-wrap{display:flex;align-items:center;gap:22px;min-height:84px}
.brand{display:flex;align-items:center;gap:14px;color:#fff;margin-right:auto}
.brand svg{width:54px;height:54px;flex:0 0 auto}.brand .brand-logo-img{width:var(--le-logo-width,170px);max-width:280px;height:auto;max-height:64px;flex:0 0 auto}
.brand .name{font-weight:900;font-size:23px;line-height:1.05;letter-spacing:-.02em}
.brand .name small{display:block;font-size:11px;font-weight:600;color:#d9e7ff;letter-spacing:.02em;margin-top:6px}
.main-nav ul{list-style:none;display:flex;gap:22px;margin:0;padding:0;align-items:center}
.main-nav a{color:#fff;font-weight:700;font-size:14px}
.nav-tools{display:flex;align-items:center;gap:10px}
.pill-btn,.nav-cart{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:999px;padding:0 16px;font-weight:800;font-size:13px}
.pill-btn{background:#fff;color:var(--le-blue-dark)}
.nav-cart{background:var(--le-yellow);color:#352700}
.menu-toggle{display:none;background:none;border:0;color:#fff;font-size:28px;padding:4px 8px}
.hero{padding:22px 0 34px;background:linear-gradient(180deg,var(--le-blue) 0,var(--le-blue) 70%,transparent 70%)}
.hero-card{background:linear-gradient(135deg,#fff8df,#ffe7a7);border-radius:32px;overflow:hidden;box-shadow:var(--le-shadow);position:relative}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;min-height:420px;align-items:center}
.hero-copy{padding:56px 56px 56px 60px;position:relative;z-index:1}
.eyebrow{display:inline-block;background:#fff;color:var(--le-blue-dark);font-size:12px;font-weight:900;padding:6px 12px;border-radius:999px;margin-bottom:18px}
.hero h1,.display{font-size:clamp(34px,5vw,68px);line-height:1.05;letter-spacing:-.04em;margin:0 0 16px;color:var(--le-blue-dark);font-weight:900}
.hero p{font-size:18px;color:#48607f;margin:0 0 24px;max-width:560px}
.btn-row{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border-radius:999px;padding:0 20px;font-weight:800;font-size:14px;border:1px solid transparent}
.btn-primary{background:var(--le-blue);color:#fff}
.btn-secondary{background:#fff;color:var(--le-blue-dark);border-color:#dfe8fb}
.hero-visual{padding:24px 22px 0 0;display:flex;align-items:flex-end;justify-content:center;min-height:420px;position:relative}
.hero-visual img{width:100%;height:auto;max-height:400px;object-fit:contain}
.section{padding:68px 0}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px 28px;
  flex-wrap:wrap;
  width:100%;
  min-width:0;
  margin-bottom:26px;
}
.section-head > *{
  min-width:0;
  max-width:100%;
}
.section-head > div:first-child{
  flex:1 1 520px;
  min-width:0;
}
.section-head h2{
  margin:0;
  max-width:100%;
  font-size:clamp(27px,3.5vw,40px);
  line-height:1.18;
  color:var(--le-ink);
  font-weight:900;
  letter-spacing:-.02em;
  overflow-wrap:anywhere;
  word-break:normal;
  text-wrap:balance;
}
.section-head p{
  margin:8px 0 0;
  max-width:680px;
  color:var(--le-muted);
  overflow-wrap:anywhere;
}
.section-head .badge-link{
  flex:0 0 auto;
  max-width:100%;
  font-size:13px;
  font-weight:800;
  background:#fff;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--le-border);
  white-space:normal;
  text-align:center;
}
.white-card{background:#fff;border:1px solid var(--le-border);border-radius:var(--le-radius);box-shadow:0 8px 20px rgba(19,49,91,.05)}
.category-row{display:grid;grid-template-columns:repeat(6,1fr);gap:18px}
.category-pill{padding:20px 12px;text-align:center}
.category-pill .icon{width:86px;height:86px;border-radius:50%;margin:0 auto 12px;display:grid;place-items:center;background:linear-gradient(180deg,#fffef8,#ffe8a8);font-size:42px;border:6px solid #fff;box-shadow:0 8px 18px rgba(0,0,0,.06)}
.category-pill h3{margin:0;font-size:15px;color:var(--le-ink)}
.brand-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.brand-item{padding:28px 16px;text-align:center;min-width:0}
.brand-item .logo-badge{
  width:140px;
  height:140px;
  border-radius:36px;
  margin:0 auto 20px;
  background:linear-gradient(145deg,#ffffff 0%,#eef5ff 55%,#fff1b7 100%);
  display:grid;
  place-items:center;
  color:var(--le-blue-dark);
  font-weight:900;
  font-size:64px;
  line-height:1;
  border:1px solid #d7e5fb;
  box-shadow:0 14px 28px rgba(14,79,192,.13), inset 0 0 0 7px rgba(255,255,255,.66);
  transition:transform .25s ease, box-shadow .25s ease;
}
.brand-item h4{margin:0;font-size:17px;color:var(--le-ink);font-weight:900;line-height:1.35}
.brand-item p{margin:8px auto 0;max-width:210px;font-size:13px;line-height:1.55;color:var(--le-muted)}
.use-case-section{position:relative}
.use-case-grid{gap:20px}
.use-case-card{
  min-height:300px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border:1px solid #dbe6f6;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.use-case-card:nth-child(2n) .logo-badge{background:linear-gradient(145deg,#fffdf6 0%,#fff1b6 62%,#eaf3ff 100%)}
@media (hover:hover) and (pointer:fine){
  .use-case-card:hover{transform:translateY(-7px);box-shadow:0 18px 34px rgba(14,79,192,.12);border-color:#bfd4f5}
  .use-case-card:hover .logo-badge{transform:scale(1.055) rotate(-2deg);box-shadow:0 18px 34px rgba(14,79,192,.18), inset 0 0 0 7px rgba(255,255,255,.7)}
}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.product-card{overflow:hidden}
.product-card .thumb{aspect-ratio:1/1;background:linear-gradient(180deg,#f9fbff,#eef4ff);display:grid;place-items:center;border-bottom:1px solid var(--le-border)}
.product-card .thumb img{width:100%;height:100%;object-fit:cover}
.product-card .content{padding:18px}
.product-card h3{margin:0 0 8px;font-size:18px;line-height:1.35;color:var(--le-ink)}
.price{font-size:20px;font-weight:900;color:var(--le-blue-dark);margin:10px 0}
.meta{font-size:13px;color:var(--le-muted)}
.banner-strip{background:linear-gradient(135deg,#ffdf72,#ffc72c);border-radius:28px;padding:18px;overflow:hidden;box-shadow:var(--le-shadow)}
.banner-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;align-items:center}
.banner-copy{padding:18px 22px}
.banner-copy h3{font-size:clamp(32px,4vw,54px);line-height:1;margin:0;color:var(--le-blue-dark);font-weight:900}
.banner-copy p{margin:10px 0 0;color:#5a4a14}
.banner-visual{display:flex;justify-content:center}
.banner-visual img{max-height:210px;object-fit:contain}
.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.article-card{overflow:hidden}
.article-card .thumb{aspect-ratio:1.25/1;background:#e8eef8}
.article-card .thumb img{width:100%;height:100%;object-fit:cover}
.article-card .content{padding:18px}
.article-card h3{margin:0 0 10px;font-size:22px;line-height:1.3;color:var(--le-ink)}
.article-card p{margin:0 0 10px;color:var(--le-text)}
.info-panels{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.info-box{padding:26px}
.info-box h3{margin:0 0 10px;font-size:22px;color:var(--le-ink)}
.info-box p{margin:0;color:var(--le-text)}
.cta-band{background:linear-gradient(180deg,#0f57cf,#0a45ad);color:#fff;border-radius:26px;padding:34px;display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;box-shadow:var(--le-shadow)}
.cta-band h3{margin:0 0 10px;font-size:34px;line-height:1.08}
.cta-band p{margin:0;color:#dbe6ff}
.page-hero{padding:48px 0;background:linear-gradient(180deg,var(--le-blue),var(--le-blue-dark));color:#fff}
.page-hero h1{margin:0;font-size:clamp(32px,5vw,58px);line-height:1.05}
.page-hero p{max-width:760px;color:#dbe6ff}
.content-area{padding:48px 0 80px}
.editorial{display:grid;grid-template-columns:minmax(0,760px) 320px;gap:32px}
.entry{background:#fff;border-radius:var(--le-radius);padding:30px;border:1px solid var(--le-border)}
.entry h2,.entry h3{color:var(--le-ink);line-height:1.25}
.entry > p:first-of-type{font-size:19px;color:#4f6480}
.entry blockquote{margin:24px 0;padding:20px 22px;background:var(--le-blue-soft);border-left:5px solid var(--le-blue);border-radius:18px;font-size:20px;color:var(--le-blue-dark);font-weight:700}
.sidebar-box{padding:24px;position:sticky;top:100px}
.mini-list{display:grid;gap:14px}
.mini-item{display:grid;grid-template-columns:74px 1fr;gap:12px;align-items:start}
.mini-item img{width:74px;height:74px;object-fit:cover;border-radius:14px}
.mini-item h4{margin:0 0 4px;font-size:14px;line-height:1.35;color:var(--le-ink)}
.mini-item small{color:var(--le-muted)}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.contact-box{padding:28px}
.contact-box h2{margin-top:0}
.site-footer{margin-top:40px;background:#092f77;color:#d9e7ff;padding-top:56px}
.footer-grid{display:grid;grid-template-columns:1.25fr .8fr .8fr 1.1fr;gap:24px;padding-bottom:30px}
.site-footer h4{margin:0 0 14px;color:#fff;font-size:15px}
.site-footer p,.site-footer li,.site-footer a{color:#d9e7ff;font-size:14px}
.site-footer ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.18);padding:16px 0;font-size:12px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.pagination{margin-top:28px}
.woocommerce-breadcrumb{font-size:13px;margin-bottom:24px}
@media (max-width: 1100px){
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .brand-grid{grid-template-columns:repeat(4,1fr)}
  .category-row{grid-template-columns:repeat(3,1fr)}
  .info-panels{grid-template-columns:1fr}
}
@media (max-width: 920px){
  .menu-toggle{display:block}
  .main-nav{display:none;position:absolute;left:0;right:0;top:84px;background:var(--le-blue);padding:20px 16px;border-top:1px solid rgba(255,255,255,.16)}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column;align-items:flex-start}
  .hero-grid,.banner-grid,.editorial,.contact-grid,.cta-band,.footer-grid{grid-template-columns:1fr}
  .hero-copy{padding:42px 26px 14px 26px}
  .hero-visual{padding:0 20px 10px 20px;min-height:260px}
  .product-grid,.article-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 640px){
  .site-topbar{display:none}
  .site-header .nav-wrap{min-height:72px}
  .hero{padding-top:10px}
  .hero-card{border-radius:24px}
  .hero p{font-size:16px}
  .section{padding:54px 0}
  .category-row,.brand-grid,.product-grid,.article-grid{grid-template-columns:1fr}
  .page-hero{padding:36px 0}
  .entry{padding:22px}
}

/* Google Fonts: Mitr for headings, Prompt for UI and body */
h1,h2,h3,h4,h5,h6,.display,.hero h1,.section-head h2,.page-hero h1,.cta-band h3,.banner-copy h3,.brand .name{
  font-family:"Anuphan","IBM Plex Sans Thai","Noto Sans Thai",sans-serif;
}
button,input,textarea,select,.btn,.pill-btn,.nav-cart,.main-nav a,.eyebrow,.price,.meta{
  font-family:"IBM Plex Sans Thai","Noto Sans Thai",sans-serif;
}

/* v1.3 easy header customization */
.site-header .main-nav a,.site-header .brand,.site-header .brand .name,.site-header .menu-toggle{color:var(--le-header-text,#fff)}
.site-header .nav-wrap{transition:min-height .2s ease}


/* MAPET SHOP v2 commerce UX */
.header-search{position:relative;width:min(320px,28vw)}
.header-search-form{display:flex;align-items:center;background:#fff;border:1px solid rgba(255,255,255,.35);border-radius:999px;overflow:hidden;height:42px}
.header-search-form input{border:0;outline:0;background:transparent;padding:0 14px;width:100%;font-size:13px;color:#21334d}
.header-search-form button{border:0;background:transparent;padding:0 13px;color:#0e4fc0;cursor:pointer;font-size:17px}
.live-search-results{display:none;position:absolute;top:49px;left:0;right:0;background:#fff;border-radius:18px;box-shadow:0 18px 46px rgba(9,45,102,.20);padding:8px;z-index:120;max-height:410px;overflow:auto}
.live-search-results.open{display:block}
.live-result{display:grid;grid-template-columns:52px 1fr auto;gap:10px;align-items:center;padding:9px;border-radius:12px;color:#314662}
.live-result:hover{background:#f2f6fd}
.live-result img{width:52px;height:52px;object-fit:cover;border-radius:10px;background:#eef3fb}
.live-result-title{font-size:13px;font-weight:700;line-height:1.35}
.live-result-price{font-size:12px;color:#0e4fc0;font-weight:800;white-space:nowrap}
.live-search-empty{padding:15px;font-size:13px;color:#6d7f98;text-align:center}
.shop-menu-wrap{position:relative}
.shop-menu-button{border:0;background:rgba(255,255,255,.12);color:var(--le-header-text,#fff);font-weight:800;border-radius:999px;min-height:42px;padding:0 15px;cursor:pointer}
.mega-menu{display:none;position:absolute;top:52px;left:0;width:720px;background:#fff;color:#314662;border-radius:22px;box-shadow:0 20px 55px rgba(6,40,94,.22);padding:20px;z-index:110}
.mega-menu.open{display:block}
.mega-menu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.mega-cat{display:flex;align-items:center;gap:12px;padding:12px;border-radius:15px;color:#314662;background:#f8faff}
.mega-cat:hover{background:#edf4ff;color:#0e4fc0}
.mega-cat img{width:54px;height:54px;border-radius:14px;object-fit:cover;background:#fff}
.mega-cat .fallback-icon{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;background:#fff4cd;font-size:28px}
.mega-cat strong{display:block;font-size:14px;color:#183153}
.mega-cat small{font-size:11px;color:#7b8ba1}
.hero-slider{position:relative}
.hero-slide{display:none}
.hero-slide.active{display:block;animation:leFade .35s ease}
@keyframes leFade{from{opacity:.3}to{opacity:1}}
.hero-slider-controls{position:absolute;left:28px;right:28px;bottom:22px;display:flex;justify-content:space-between;align-items:center;z-index:6;pointer-events:none}
.hero-slider-arrows{display:flex;gap:8px;pointer-events:auto}
.hero-arrow{width:42px;height:42px;border-radius:50%;border:1px solid rgba(14,79,192,.18);background:#fff;color:#0e4fc0;cursor:pointer;font-size:20px;box-shadow:0 6px 16px rgba(0,0,0,.08)}
.hero-dots{display:flex;gap:7px;pointer-events:auto}
.hero-dot{width:9px;height:9px;border-radius:99px;border:0;background:rgba(14,79,192,.28);padding:0;cursor:pointer}
.hero-dot.active{width:24px;background:#0e4fc0}
.category-pill .icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.mini-cart-overlay{position:fixed;inset:0;background:rgba(8,22,43,.44);opacity:0;visibility:hidden;transition:.25s;z-index:190}
.mini-cart-overlay.open{opacity:1;visibility:visible}
.mini-cart-drawer{position:fixed;top:0;right:0;width:min(420px,92vw);height:100vh;background:#fff;z-index:200;transform:translateX(105%);transition:.28s ease;box-shadow:-18px 0 50px rgba(9,44,90,.18);display:flex;flex-direction:column}
.mini-cart-drawer.open{transform:translateX(0)}
.mini-cart-head{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;border-bottom:1px solid #e7edf6}
.mini-cart-head h3{margin:0;color:#183153;font-size:21px}
.mini-cart-close{border:0;background:#eef4ff;width:38px;height:38px;border-radius:50%;cursor:pointer;font-size:20px;color:#183153}
.mini-cart-content{padding:18px 22px;overflow:auto;flex:1}
.mini-cart-content .woocommerce-mini-cart{list-style:none;padding:0;margin:0}
.mini-cart-content .woocommerce-mini-cart-item{padding:12px 24px 12px 0!important;border-bottom:1px solid #edf1f7;min-height:80px}
.mini-cart-content .woocommerce-mini-cart-item img{width:58px!important;height:58px!important;object-fit:cover;border-radius:12px;float:left!important;margin-right:10px!important}
.mini-cart-content .woocommerce-mini-cart__total{padding:16px 0;border-top:1px solid #e7edf6;margin-top:12px}
.mini-cart-content .woocommerce-mini-cart__buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mini-cart-content .woocommerce-mini-cart__buttons .button{margin:0!important;text-align:center}
.shop-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:start}
.shop-filters{background:#fff;border:1px solid #d9e2f0;border-radius:20px;padding:20px;position:sticky;top:110px}
.shop-filters h3{margin:0 0 14px;color:#183153;font-size:19px}
.shop-filter-cats{display:grid;gap:7px;margin-bottom:20px}
.shop-filter-cats a{font-size:13px;padding:8px 10px;border-radius:10px;background:#f7f9fd;color:#405672}
.shop-filter-cats a:hover{background:#eaf2ff;color:#0e4fc0}
.mobile-sticky-cart{display:none}
.mapet-company-card{background:#fff;border:1px solid #d9e2f0;border-radius:20px;padding:22px}
.mapet-company-card strong{color:#183153}
@media (max-width:1180px){.header-search{width:240px}.main-nav ul{gap:14px}.main-nav a{font-size:13px}}
@media (max-width:920px){
  .header-search{display:none}.shop-menu-wrap{display:none}.mega-menu{display:none!important}
  .shop-layout{grid-template-columns:1fr}.shop-filters{position:static}
}
@media (max-width:680px){
  .hero-slider-controls{left:15px;right:15px;bottom:12px}
  .hero-arrow{width:36px;height:36px}
  body.single-product{padding-bottom:76px}
  .mobile-sticky-cart{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:160;background:#fff;border-top:1px solid #dce5f1;box-shadow:0 -8px 24px rgba(9,44,90,.12);padding:10px 14px;align-items:center;gap:12px}
  .mobile-sticky-cart .sticky-price{font-weight:900;color:#0e4fc0;min-width:92px;font-size:17px}
  .mobile-sticky-cart .sticky-cart-button{flex:1;display:flex;align-items:center;justify-content:center;min-height:46px;border-radius:999px;background:#0e4fc0;color:#fff;font-weight:800}
  .mega-menu-grid{grid-template-columns:1fr}
}


.hero-photo-slider-section{padding:22px 0 34px;background:linear-gradient(180deg,var(--le-blue) 0,var(--le-blue) 58%,transparent 58%)}
.hero-slider-photo{background:#122944;min-height:480px}
.hero-slider-photo .hero-slide{position:relative;min-height:480px}
.hero-slide-bg{position:absolute;inset:0;background-size:cover;background-position:center center;background-repeat:no-repeat;transform:scale(1.01)}
.hero-slide-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,34,70,.82) 0%,rgba(10,34,70,.54) 36%,rgba(10,34,70,.22) 60%,rgba(10,34,70,.18) 100%)}
.hero-slide-inner{position:relative;z-index:2;min-height:480px;display:flex;align-items:center;padding:42px 54px}
.hero-copy-photo{max-width:620px;padding:0}
.hero-copy-photo h1{color:#fff;text-shadow:0 3px 14px rgba(0,0,0,.25)}
.hero-copy-photo p{color:#edf4ff;text-shadow:0 2px 10px rgba(0,0,0,.18)}
.hero-copy-photo .eyebrow{background:rgba(255,255,255,.16);backdrop-filter:blur(4px);color:#fff;border:1px solid rgba(255,255,255,.2)}
.hero-slider-controls{position:absolute;left:28px;right:28px;bottom:22px;display:flex;justify-content:space-between;align-items:center;z-index:6;pointer-events:none}
.hero-slider-arrows{display:flex;gap:8px;pointer-events:auto}
.hero-arrow{width:46px;height:46px;border:0;border-radius:50%;background:rgba(255,255,255,.86);color:var(--le-blue-dark);font-size:28px;line-height:1;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.12)}
.hero-dots{display:flex;gap:8px;pointer-events:auto}
.hero-dot{width:11px;height:11px;border-radius:50%;border:0;background:rgba(255,255,255,.42);cursor:pointer;padding:0}
.hero-dot.active{background:#fff}
@media (max-width: 920px){
  .hero-photo-slider-section{padding-top:10px}
  .hero-slider-photo,.hero-slider-photo .hero-slide,.hero-slide-inner{min-height:420px}
  .hero-slide-inner{padding:34px 24px}
  .hero-slide-overlay{background:linear-gradient(180deg,rgba(10,34,70,.78) 0%,rgba(10,34,70,.58) 48%,rgba(10,34,70,.52) 100%)}
}
@media (max-width: 640px){
  .hero-slider-photo,.hero-slider-photo .hero-slide,.hero-slide-inner{min-height:380px}
  .hero-copy-photo{max-width:100%}
  .hero-slider-controls{left:15px;right:15px;bottom:12px}
  .hero-arrow{width:40px;height:40px;font-size:24px}
}


/* MAPET v2.2: equal featured article cards */
.article-grid-featured{align-items:stretch}
.article-card-featured{display:flex;flex-direction:column;overflow:hidden;border-radius:24px;transition:transform .25s ease,box-shadow .25s ease}
.article-card-featured:hover{transform:translateY(-5px);box-shadow:0 18px 38px rgba(19,49,91,.12)}
.article-feature-image{display:block;width:100%;aspect-ratio:16/10;overflow:hidden;background:#eaf2ff;flex:0 0 auto}
.article-feature-image img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .4s ease}
.article-card-featured:hover .article-feature-image img{transform:scale(1.035)}
.article-feature-content{display:flex;flex-direction:column;flex:1;padding:20px 20px 22px}
.article-feature-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;font-weight:700;color:#7b8ba2;margin-bottom:10px}
.article-feature-meta span{color:var(--le-blue);background:var(--le-blue-soft);padding:5px 9px;border-radius:999px;white-space:nowrap}
.article-feature-title{font-family:"Anuphan","IBM Plex Sans Thai",sans-serif!important;font-size:21px!important;line-height:1.4!important;font-weight:800!important;margin:0 0 10px!important;color:var(--le-ink)!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:58px}
.article-feature-title a{color:inherit}
.article-feature-excerpt{margin:0 0 17px!important;color:var(--le-text);font-size:14px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.article-feature-link{margin-top:auto;display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:800;color:var(--le-blue)}
.article-feature-link span{transition:transform .2s ease}
.article-feature-link:hover span{transform:translateX(4px)}
@media(max-width:640px){
  .article-feature-image{aspect-ratio:16/10}
  .article-feature-title{min-height:auto;font-size:20px!important}
}


@media (max-width: 760px){
  .section-head{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    align-items:start;
    gap:14px;
  }
  .section-head > div:first-child{
    width:100%;
  }
  .section-head h2{
    font-size:clamp(25px,7vw,34px);
    line-height:1.2;
  }
  .section-head p{
    width:100%;
    max-width:none;
  }
  .section-head .badge-link{
    justify-self:start;
  }
}


/* MAPET v2.4: image-only Hero Slider */
.hero-photo-slider-section{
  padding:18px 0 32px;
  background:var(--le-bg);
}
.hero-slider-image-only{
  position:relative;
  overflow:hidden;
  width:100%;
  min-height:0;
  background:#fff;
  border-radius:24px;
  box-shadow:var(--le-shadow);
}
.hero-slider-image-only .hero-slide{
  display:none;
  position:relative;
  width:100%;
  min-height:0;
  padding:0;
  margin:0;
}
.hero-slider-image-only .hero-slide.active{
  display:block;
  animation:mapetHeroFade .45s ease;
}
.mapet-hero-image{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1600 / 650;
  object-fit:cover;
  object-position:center;
  margin:0;
}
.hero-slider-image-only .hero-slide-overlay,
.hero-slider-image-only .hero-slide-inner,
.hero-slider-image-only .hero-slider-controls,
.hero-slider-image-only .hero-slider-arrows,
.hero-slider-image-only .hero-dots,
.hero-slider-image-only .hero-arrow,
.hero-slider-image-only .hero-dot{
  display:none !important;
}
@keyframes mapetHeroFade{
  from{opacity:.25}
  to{opacity:1}
}
@media(max-width:920px){
  .hero-photo-slider-section{padding:12px 0 24px}
  .hero-slider-image-only{border-radius:18px}
}
@media(max-width:640px){
  .hero-photo-slider-section{padding:8px 0 18px}
  .hero-slider-image-only{border-radius:12px}
}

/* Full-width delivery / after-sales image banner */
.delivery-banner-section{overflow:hidden}
.delivery-image-banner{width:100%;overflow:hidden;border-radius:28px;background:#fff;box-shadow:var(--le-shadow)}
.delivery-image-banner img{display:block;width:100%;height:auto;max-width:none;object-fit:contain}
@media(max-width:640px){
  .delivery-image-banner{border-radius:20px}
}


@media (max-width:1100px){
  .use-case-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .brand-item .logo-badge{width:132px;height:132px;font-size:60px}
}
@media (max-width:760px){
  .use-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .use-case-card{min-height:250px;padding:22px 12px}
  .brand-item .logo-badge{width:112px;height:112px;border-radius:30px;font-size:52px;margin-bottom:16px}
  .brand-item h4{font-size:16px}
  .brand-item p{font-size:12px}
}
@media (max-width:460px){
  .use-case-grid{grid-template-columns:1fr}
  .use-case-card{min-height:220px}
  .brand-item .logo-badge{width:124px;height:124px;font-size:58px}
}
