video.responsive{width:100%; height:auto;}



/* Banner 01 */
.banner-01{position: relative;}

.banner-video{position: relative; height:calc(100dvh - 7.625rem);}
/* .banner-video::before{

} */
.banner-video video{
  object-fit:cover; width:100%; height:100%; 
}
.banner-video .text-wrapper{
  position: absolute;  top:0; right:0; bottom:0; left:0;
  display:flex; flex-direction:column; align-items:start; justify-content:center;
}
.banner-video .text-wrapper .container{z-index:3;}

.banner-01 .swiper-slide .animate{
  opacity:0; transform:translateY(4rem); transition:all ease-in-out .75s;
}
.banner-01 .swiper-slide-active .animate{opacity:1; transform:none; transition-delay:var(--delay);}
.loading .banner-01 .swiper-slide .animate{opacity:0!important; transform:translateY(4rem)!important;}


/* Breadcrumb 01 */
.breadcrumb-01{position:relative;}
.breadcrumb-01 .wrapper{
  height:17rem; display:flex; justify-content:center;
  align-items:center; flex-direction:column; padding:0 .875rem;
}
.breadcrumb-01 .wrapper > *{position:relative;}
.breadcrumb-01 .img-bg{
  position:absolute; top:0; left:0; right:0; bottom:0;
  background-size:cover; background-position:center; background-repeat:no-repeat;
}
.breadcrumb-01 .links-container{padding:.25rem 1.25rem; border-radius:1000em;}
.breadcrumb-01 .link-wrapper{display:flex; align-items:center;}
.breadcrumb-01 .link-wrapper .link{display:flex; align-items:center;}
.breadcrumb-01 .link-wrapper .link .menu{
  display:block; display:-webkit-box; text-overflow:ellipsis; overflow:hidden;
  -webkit-box-orient:vertical; -webkit-line-clamp:1;
}
.breadcrumb-01 .link-wrapper .link:last-child .menu{font-weight:600!important;}
.breadcrumb-01 .link-wrapper .link .line{
  width:1.125rem; height:.125rem; margin:0 .5rem;
}
.breadcrumb-01 .link-wrapper .link:last-child .line{display:none;}
.breadcrumb-01:after{
  content:''; position:absolute; top:0; left:0; bottom:0; right:0; z-index:1;
}


.swiper-04 .swiper{padding-bottom:1rem;}
.swiper-04 .swiper-pagination{text-align:center;}
.swiper-04 .swiper-horizontal>.swiper-pagination-bullets{bottom:0rem;}
.swiper-04 .swiper-pagination .swiper-pagination-bullet{width:.4375rem; height:.4375rem; transition: width .25s;}
.swiper-04 .swiper-pagination .swiper-pagination-bullet-active{border-radius:.3rem; width:1.5rem;}
.swiper-04 .swiper-pagination{position:relative!important; margin-top:1rem;}


.section-cate{min-height:30rem;}


/* Section 01 */
.section-01 .img-preview{display:flex; justify-content:center;}
.section-01 .img-preview img{
  display:block; max-width:100%; width:auto; max-height:100%; height:20rem;
}
@media screen and (max-width:767.98px){
  .section-01 .img-preview{margin-top:.875rem;}
  .section-01 .img-preview img{height:18rem;}
}
@media screen and (max-width:575.98px){
  .section-01 .img-preview img{height:15rem;}
}
@media screen and (max-width:575.98px){
  .section-01 .img-preview img{height:11rem;}
}



/* Tab Container */
.tab-container{position:relative; display:block; width:100%; border:1px solid #b0b0b0; padding:2.5rem; border-radius:.2rem;}
.tab-container.mt-adaptive{margin-top:2rem;}
.tab-container .tabs{position:relative; }
.tab-container .tab{cursor:pointer;}
.tab-container .tab-contents{position:relative; width:100%;}
.tab-container .tab-content{position:absolute; pointer-events:none; top:0; opacity:0; padding:0; margin:0; transition:opacity .6s, transform .6s;}
.tab-container .tab-content.active{position:relative; overflow:hidden; pointer-events:auto; opacity:1;}
.tab-container .tab-content.fade-out:not(.no-fade){opacity:0; pointer-events:none;}
.tab-container .tab-content.fade-in:not(.no-fade){
  display:block; position:absolute; opacity:0; transform:translateY(1.5rem); pointer-events:none;
}
.tab-container .tab-content-inner{padding:0 1rem;}
.tab-container .tab-content-inner .tab-content-inner-wrapper ul{padding-left:2.25rem;}
.tab-container .tab-content-inner .tab-content-inner-wrapper .title{font-weight:400; font-size:.9375rem;}
.tab-container .tab-content-inner .tab-content-img img{
  display:block; max-width:100%; width:auto; max-height:100%;
}
.tab-container .tab-content-inner .tab-content-img.size-01>img{height:15rem;}
.tab-container .tab-image.size-01{display:flex; justify-content:center;}
.tab-container .tab-image.size-01 img{width:auto; height:30rem;}
@media screen and (max-width:991.98px){
  .tab-container .tab-content-inner .tab-content-img.size-01>img{height:12rem;}
}
@media screen and (max-width:767.98px){
  .tab-container .tab-image.size-01 img{width:100%; height:auto;}
}
@media screen and (max-width:575.98px){
  .tab-container .tab-content-inner .tab-content-img.size-01>img{height:10rem;}
}

.tabs.tabs-01 .tab>.wrapper{
  position:relative; display:flex; align-items:start;
  padding:1rem 1.25rem; transition:all .25s; box-shadow: 0 6px 12px rgba(145, 158, 171, .2);
  cursor: pointer; border-radius:.2rem; overflow:hidden;
}
.tabs.tabs-01 .tab>.wrapper:hover,
.tabs.tabs-01 .tab.active>.wrapper{
  box-shadow: 0 8px 16px rgba(145, 158, 171, .4);
}
.tabs.tabs-01 .tab>.wrapper::before{
  content:''; position:absolute; top:0; bottom:0;
  left:0; width:0; transition: width .25s;
}
.tabs.tabs-01 .tab>.wrapper:hover::before, .tabs.tabs-01 .tab.active>.wrapper::before{width:100%;}
.tabs.tabs-01 .tab>.wrapper .title {
  padding-left:1rem;  line-height:1.375rem;
}
.tabs.tabs-01 .tab>.wrapper>* {
  position: relative;
  transition: color .25s;
}
.tabs.tabs-01 .tab>.wrapper:hover .icon,
.tabs.tabs-01 .tab.active>.wrapper .icon {
  animation: rotate 4s infinite;
}
@keyframes rotate{
  100% {transform: rotate(180deg);}
}
@media screen and (max-width:991.98px){
  .tab-container .tab-content-inner{padding:0;}
}
@media screen and (max-width:490px){
  .tab-container{padding:2rem;}
}


/* Tabs 01 */

table {
  width: 100%;
  vertical-align: middle;
  border: medium none;
  border-collapse: collapse;
  border-spacing: 0;
  font-size:.875rem;
}
table td {
  padding: 5px 10px;
  text-align: left;
  border-right: 1px solid #e1e1e1;
}
table tr {
  border: 1px solid #e1e1e1;
}


/* Section Cate */
.section-cate .cate-container{display:flex; flex-wrap:wrap; align-items:flex-start;}
.section-cate .panel-left{width:24rem; padding:0 3rem 0 0;}
.section-cate .panel-right{width:calc(100% - 24rem); position:relative;}
.section-cate .cate{margin-bottom:1.5rem;}
.section-cate .cate-title{
  display:flex; align-items:center; padding:0 1.5rem; height:6rem; cursor:pointer;
  border-radius:.375rem .375rem 0 0; background:var(--color-p); color:#ffffff;
  box-shadow:0 .125rem .5rem rgba(0,0,0,.15);
}
.section-cate .cate-title .icon{width:1.75rem; font-size:1.25rem; transition:transform .25s;}
.section-cate .cate:not(.active) .cate-title .icon{transform:rotate(-90deg);}
.section-cate .cate-title .title{font-size:1.75rem; line-height:1.2;}
.section-cate .cate-subs{display:none; margin-left:.125rem; border-left:2px solid var(--color-p); background:#f7f7f7;}
.section-cate .cate.active .cate-subs{display:block;}
.section-cate .cate-sub{
  display:flex; align-items:center; padding:0 1.25rem; height:4rem; cursor:pointer; color:#5f5f5f;
  border-bottom:1px solid #e3e3e3; transition:background .25s, color .25s;
}
.section-cate .cate-sub .icon{width:1.5rem; font-size:.75rem; color:#7a7a7a; transition:color .25s;}
.section-cate .cate-sub .title{font-size:1.25rem;}
.section-cate .cate-sub:hover, .section-cate .cate-sub.active{background:#ffffff; color:var(--color-p);}
.section-cate .cate-sub.active .icon{color:var(--color-p);}
.section-cate .cate-content{display:none;}
.section-cate .cate-content.active{display:block; animation:cate-fade .4s;}
.section-cate .cate-content .grids{--gs:1.5rem;}
.section-cate .card-product{
  display:flex; flex-direction:column; height:100%; background:#ffffff; border:1px solid #efefef; color:#222325;
  transition:box-shadow .25s;
}
.section-cate .card-product:hover{box-shadow:0 .5rem 1.5rem rgba(0,0,0,.08);}
.section-cate .card-product .img-wrapper{
  display:flex; align-items:center; justify-content:center; aspect-ratio:10/9; 
  background:#ffffff; overflow:hidden; padding:1rem;
}
.section-cate .card-product .img-wrapper img{display:block; width:100%; height:100%; object-fit:contain;}
.section-cate .card-product .text-wrapper{display:flex; flex-direction:column; flex:1; padding:1rem 1.5rem 1.5rem 1.5rem;}
.section-cate .card-product .title{font-size:1.5rem; font-weight:400; line-height:1.2; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;}
.section-cate .card-product .desc{
  margin-top:1rem; font-size:1rem; color:#555555;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden;
}
.section-cate .card-product .view-more{margin-top:auto; padding-top:1.25rem; font-size:1rem; color:var(--color-p);}
.section-cate .card-product .view-more em{margin-left:.375rem; font-size:.875rem; transition:transform .25s;}
.section-cate .card-product:hover .view-more em{transform:translateX(.25rem);}
/* Search */
.section-cate .cate-search{position:relative; margin-bottom:1.5rem;}
.section-cate .cate-search .icon{position:absolute; top:50%; left:1.25rem; transform:translateY(-50%); color:#7a7a7a; pointer-events:none;}
.section-cate .cate-search input{
  width:100%; height:3.5rem; padding:0 1.25rem 0 3.25rem; font-size:1rem; font-family:inherit;
  border:1px solid #e1e1e1; border-radius:var(--bradius); background:#ffffff; outline:none; transition:border-color .25s;
}
.section-cate .cate-search input:focus{border-color:var(--color-p);}
.section-cate .cate-empty{padding:2rem 0; font-size:1.125rem; color:#696969;}
.section-cate .cate-empty[hidden], .section-cate .grid[hidden]{display:none!important;}
/* Sticky panel-left (desktop) */
@media screen and (min-width:992px){
  .section-cate .container.ovf-hidden{overflow:visible!important; overflow:clip!important;}
  /* html/body ตั้ง overflow-x:hidden ไว้ใน style.css ทำให้ sticky ไม่ทำงาน จึงปลดเฉพาะ body ของหน้าที่มี section-cate */
  body:not(.loading):has(.section-cate){overflow:visible!important;}
  .section-cate .panel-left{
    position:sticky; top:6.5rem; max-height:calc(100vh - 7.5rem); overflow-y:auto; scrollbar-width:thin;
  }
}
/* All products + count */
.section-cate .cate-all{
  display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; padding:0 1.5rem; height:3.5rem;
  cursor:pointer; border:1px solid #e1e1e1; border-radius:var(--bradius); background:#f7f7f7; transition:background .25s, color .25s;
}
.section-cate .cate-all .title{font-size:1.25rem;}
.section-cate .cate-all:hover{color:var(--color-p);}
.section-cate .cate-all.active{background:var(--color-p); border-color:var(--color-p); color:#ffffff;}
.section-cate .count{
  margin-left:auto; min-width:1.75rem; padding:0 .5rem; line-height:1.5rem; text-align:center; font-size:.875rem;
  border-radius:1rem; background:#e1e1e1; color:#555555;
}
.section-cate .cate-all.active .count{background:rgba(255,255,255,.25); color:#ffffff;}
.section-cate .cate-sub.active .count{background:var(--color-p); color:#ffffff;}
@keyframes cate-fade{from{opacity:0; transform:translateY(.75rem);} to{opacity:1; transform:none;}}
@media screen and (max-width:1199.98px){
  .section-cate .panel-left{width:20rem; padding-right:1.5rem;}
  .section-cate .panel-right{width:calc(100% - 20rem);}
}
@media screen and (max-width:991.98px){
  .section-cate .panel-left{width:100%; padding:0 0 1.5rem 0;}
  .section-cate .panel-right{width:100%;}
  .section-cate .cate-all{height:3rem; margin-bottom:.75rem;}
  .section-cate .cate-all .title{font-size:1.125rem;}
  .section-cate .cate-title{height:3.5rem;}
  .section-cate .cate-title .title{font-size:1.25rem;}
  .section-cate .cate-sub{height:3rem;}
  .section-cate .cate-sub .title{font-size:1rem;}
  .section-cate .panel-left{padding-bottom:1rem;}
  .section-cate .cate-search input{height:3rem;}
  .section-cate .card-product .title{font-size:1.25rem;}
}

/* Panel-left toggle (mobile) */
.section-cate .cate-toggle{display:none;}
@media screen and (max-width:991.98px){
  .section-cate .cate-toggle{
    display:flex; align-items:center; width:100%; height:3.25rem; padding:0 1.25rem; font-family:inherit; font-size:1.125rem;
    border:0; border-radius:var(--bradius); background:var(--color-p); color:#ffffff; cursor:pointer; text-align:left;
  }
  .section-cate .cate-toggle .icon{margin-right:.75rem; font-size:1rem;}
  .section-cate .cate-toggle .current{
    flex:1; min-width:0; margin:0 .75rem; text-align:right; font-size:.875rem; opacity:.85;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .section-cate .cate-toggle .chevron{font-size:.875rem; transition:transform .25s;}
  .section-cate .panel-left.open .cate-toggle .chevron{transform:rotate(180deg);}
  .section-cate .panel-left-body{display:none; margin-top:.75rem;}
  .section-cate .panel-left.open .panel-left-body{display:block; animation:cate-fade .3s;}
}

/* Card range (spec highlight) */
.section-cate .card-product .range{margin-top:.75rem; padding:.375rem .75rem; font-size:.9375rem; background:#f0f0f0; color:#222325; border-radius:var(--bradius);}

/* Category intro (แสดงเมื่อเลือกหมวดย่อยเท่านั้น) */
.section-cate .cate-intro{
  display:flex; align-items:center; margin-bottom:1.5rem; padding:1.25rem 1.5rem; background:#f7f7f7; border-radius:var(--bradius);
}
.section-cate .cate-intro .intro-img{flex:0 0 30%; max-width:14rem; margin-right:1.5rem;}
.section-cate .cate-intro .intro-img img{display:block; width:100%; height:auto; mix-blend-mode:multiply;}
.section-cate .cate-intro .intro-text{flex:1; min-width:0;}
.section-cate .cate-intro .title{margin:0; padding-bottom:.75rem; font-size:1.375rem; line-height:1.25; border-bottom:1px solid #e1e1e1;}
.section-cate .cate-intro .intro-desc{margin-top:.75rem; font-size:.9375rem; color:#555555;}
.section-cate .cate-intro .intro-desc p{margin:0 0 .625rem 0;}
.section-cate .cate-intro .intro-desc p:last-child{margin-bottom:0;}
.section-cate .cate-intro .intro-more{display:none;}
@media screen and (max-width:767.98px){
  .section-cate .cate-intro{flex-direction:column; align-items:stretch; padding:1rem;}
  .section-cate .cate-intro .intro-img{flex:none; width:55%; max-width:10rem; margin:0 auto 1rem auto;}
  .section-cate .cate-intro .title{font-size:1.125rem;}
  .section-cate .cate-intro .intro-desc{
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden;
  }
  .section-cate .cate-intro.expanded .intro-desc{display:block; overflow:visible;}
  .section-cate .cate-intro .intro-more{
    display:inline-block; margin-top:.5rem; padding:0; font-family:inherit; font-size:.9375rem; background:none; border:0; color:var(--color-p); cursor:pointer;
  }
}

/* Brand bar (โลโก้แบรนด์เหนือช่องค้นหาในหน้ารายการ) */
.section-cate .brand-bar{display:flex; align-items:center; margin-bottom:1.25rem; padding-bottom:1rem; border-bottom:1px solid #e1e1e1;}
.section-cate .brand-bar .brand-logo{display:block; width:8.75rem; max-width:100%; height:auto; mix-blend-mode:multiply;}

/* Brodie: โลโก้กึ่งกลางเหนือข้อความแนะนำในหน้า products.php (แสดงเมื่อมีไฟล์โลโก้) */
.section-cate .brand-logo-center{text-align:center; margin-bottom:1rem;}
.section-cate .brand-logo-center .brand-logo{display:inline-block; width:10rem; max-width:100%; height:auto;}

/* ปุ่มดาวน์โหลดแคตตาล็อกที่แถบแบรนด์ (หน้ารายการสินค้า ACCU) */
.section-cate .brand-bar{justify-content:space-between; gap:1rem; flex-wrap:wrap;}
.section-cate .brand-bar .brand-catalog{display:inline-flex; align-items:center; gap:.5rem; padding:.5rem 1rem; border:1px solid currentColor; border-radius:2rem; font-size:.875rem; font-weight:500; line-height:1.2; text-decoration:none; color:var(--color-p, #1d5ba8); transition:background .2s,color .2s;}
.section-cate .brand-bar .brand-catalog span{opacity:.7; font-weight:400;}
.section-cate .brand-bar .brand-catalog:hover{background:var(--color-p, #1d5ba8); color:#fff;}

/* วิดีโอใต้ panel-left-body (ใช้เมื่อแบรนด์ตั้งค่า 'video' ใน _seo.php) */
.section-cate .panel-left-video{margin-top:1.25rem;}
.section-cate .panel-left-video video{display:block; width:100%; height:auto; aspect-ratio:16/9; border-radius:var(--bradius); background:#000000; object-fit:contain;}
.section-cate .panel-left-video .video-caption{margin:.5rem 0 0 0; font-size:.8125rem; line-height:1.4; color:#555555;}

/* วิดีโอใต้ panel-left-body: responsive */
@media screen and (max-width:991.98px){
  /* panel-left เต็มความกว้างและ panel-left-body พับเก็บ: วิดีโออยู่ใต้ปุ่ม Categories ไม่ให้ใหญ่เกินไปบนแท็บเล็ต */
  .section-cate .panel-left-video{margin:.75rem 0 0 0; max-width:34rem;}
}
@media screen and (max-width:575.98px){
  .section-cate .panel-left-video{max-width:none;}
  .section-cate .panel-left-video .video-caption{font-size:.75rem;}
}
@media screen and (min-width:992px){
  /* panel-left ลอย (sticky) และมีความสูงจำกัด: ให้รายการหมวดเลื่อนได้เอง ส่วนวิดีโออยู่ล่างสุดโดยไม่ถูกบัง */
  .section-cate .panel-left:has(.panel-left-video){display:flex; flex-direction:column; overflow:hidden;}
  .section-cate .panel-left:has(.panel-left-video) .panel-left-body{flex:1 1 auto; min-height:0; overflow-y:auto; scrollbar-width:thin;}
  .section-cate .panel-left:has(.panel-left-video) .panel-left-video{flex:none;}
}

/* <video> responsive: ย่อขยายตามความกว้างของกล่องที่ครอบ รักษาอัตราส่วน 16:9 ไม่ล้นขอบ */
video.video-responsive{display:block; width:100%; max-width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; background:#000000;}
