
/* /shop/: แถบค้นหา/หมวดอยู่ซ้าย การ์ด 3 คอลัมน์ สมดุลทั้งชื่อสั้นและยาว */
.woocommerce-shop #main-content{background:#f6f8fa}.woocommerce-shop #main-content .et_pb_section_0_tb_body{padding:30px 0!important;background:#f6f8fa!important}.woocommerce-shop #main-content .et_pb_section_0_tb_body h2{font-size:30px!important}.woocommerce-shop #main-content .et_pb_section_1_tb_body{padding:24px 0 56px!important;background:#f6f8fa!important}.woocommerce-shop #main-content .et_pb_row_1_tb_body{display:grid!important;grid-template-columns:230px minmax(0,1fr);gap:28px;width:94%!important;max-width:1180px!important;margin:0 auto!important;padding:0!important}.woocommerce-shop #main-content .et_pb_row_1_tb_body>.et_pb_column{width:auto!important;float:none!important;margin:0!important;min-width:0}.woocommerce-shop #main-content .et_pb_column_1_tb_body{background:#fff;border:1px solid #dce4eb;border-radius:15px;padding:20px!important;align-self:start}.woocommerce-shop #main-content .et_pb_column_1_tb_body .et_pb_module{margin-bottom:16px!important}.woocommerce-shop #main-content .et_pb_column_1_tb_body h6{font-size:16px!important;font-weight:700!important;padding:0!important}.woocommerce-shop #main-content .et_pb_widget{float:none!important;width:100%!important;margin:0!important}.woocommerce-shop #main-content .widget_search,.woocommerce-shop #main-content .widget_nav_menu{background:none!important;border:0!important;padding:0!important}.woocommerce-shop #main-content .wp-block-search__inside-wrapper{width:100%!important;border:1px solid #c9d6df;border-radius:8px;background:#fff;padding:0;overflow:hidden}.woocommerce-shop #main-content .wp-block-search__input{width:100%;min-width:0;padding:11px 9px!important;border:0!important;background:#fff!important;font-size:13px!important}.woocommerce-shop #main-content .wp-block-search__button{margin:0;padding:7px;background:#fff2e4!important;color:#9e4800!important;border:0!important}.woocommerce-shop #main-content #menu-footerproductmenu{background:none!important;padding:0!important}.woocommerce-shop #main-content #menu-footerproductmenu li{padding:0!important;margin:0!important;border-bottom:1px solid #edf1f4}.woocommerce-shop #main-content #menu-footerproductmenu a{display:block;padding:12px 0!important;font-size:14px;color:#294354!important;line-height:1.6!important}.woocommerce-shop #main-content .woocommerce-breadcrumb{font-size:13px;color:#667b89;margin-bottom:18px!important}.tsp-catalog-tabs{display:flex;gap:9px;border-bottom:1px solid #dce4eb;margin-bottom:20px;padding-bottom:13px}.tsp-catalog-tabs a{display:block;border-radius:30px;padding:9px 17px;background:#fff;border:1px solid #dce4eb;font-size:14px;font-weight:600}
.tsp-catalog-tabs a[aria-current]{background:#ad5000;border-color:#ad5000}
#main-content .tsp-catalog-tabs a{color:#294354!important}
#main-content .tsp-catalog-tabs a[aria-current]{color:#fff!important}
.tsp-catalog .tsp-archive-intro{display:none}.tsp-catalog .woocommerce-result-count{font-size:13px!important;color:#5e7380;margin:10px 0 20px!important}.tsp-catalog .woocommerce-ordering{margin:0 0 20px!important}.tsp-catalog .woocommerce-ordering select{font:inherit;font-size:13px!important;padding:11px;border:1px solid #cdd9e2;border-radius:8px;background:#fff;max-width:100%}.woocommerce-shop #main-content .tsp-catalog ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;clear:both;margin:0!important;padding:0!important}.tsp-catalog ul.products:before,.tsp-catalog ul.products:after{display:none!important}.woocommerce-shop #main-content .tsp-catalog ul.products li.product{width:100%!important;margin:0!important;float:none!important;display:flex!important;flex-direction:column!important;min-width:0;padding:14px!important;border:1px solid #dce4eb!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;transform:none!important}.tsp-catalog li.product .et_shop_image{display:block!important;background:#fff!important}.tsp-catalog li.product img{width:100%!important;height:190px!important;object-fit:contain!important;border:0!important;border-radius:8px;margin:0 0 15px!important}.tsp-catalog li.product .woocommerce-loop-product__title{display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden!important;height:67px!important;min-height:67px!important;font-size:14px!important;line-height:1.6!important;padding:0!important;margin:0 0 12px!important;color:#203a4b!important;overflow-wrap:anywhere}.tsp-catalog li.product .price{display:block!important;min-height:29px;margin:0 0 15px!important;font-size:18px!important}.tsp-catalog li.product .tsp-loop-quantity{margin-top:auto!important}.tsp-catalog li.product .button{font-size:13px!important}.tsp-catalog .woocommerce-pagination{margin:30px 0 0!important}.tsp-catalog .woocommerce-pagination ul{border:0!important;display:flex!important;flex-wrap:wrap;justify-content:center;gap:7px}.tsp-catalog .woocommerce-pagination li{border:0!important}.tsp-catalog .woocommerce-pagination a,.tsp-catalog .woocommerce-pagination span{min-width:40px!important;padding:12px!important;border:1px solid #dce4eb!important;border-radius:8px;background:#fff!important;color:#294354!important}.tsp-catalog .woocommerce-pagination .current{background:#ad5000!important;color:white!important}.tsp-catalog .woocommerce-info{border-top-color:#ad5000!important;background:#fff!important}
/* หน้าแรก: แถบสินค้า Flash Sale เลื่อนด้วยมือ ไม่มีเอฟเฟกต์เข้า ซูม หรือหมุนสินค้าอัตโนมัติ */
.tsp-flash{border:1px solid #f2d4bc;border-radius:17px;background:#fff8f0;overflow:hidden;margin:0 0 24px;color:#203a4b}.tsp-flash[hidden]{display:none!important}.tsp-flash-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;background:linear-gradient(110deg,#9f310c,#ce560b 60%,#e97915);color:#fff}.tsp-flash-label{display:flex;align-items:center;gap:13px}.tsp-flash-label svg{width:27px;height:39px;fill:#ffe29e;flex:none}.tsp-flash-heading h2{font-size:30px!important;line-height:1.1!important;font-weight:800!important;font-style:italic;color:#fff!important;padding:0!important;letter-spacing:1px}.tsp-flash-heading p{font-size:13px;line-height:1.6!important;margin:8px 0 0!important;padding:0!important;color:#fff2dc}.tsp-flash-status{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;font-size:13px}.tsp-flash-status a{color:#fff!important;font-weight:600;padding:8px 0 8px 14px}.tsp-flash-live{background:#fff2;border:1px solid #fff5;border-radius:22px;padding:8px 13px}.tsp-flash-countdown{display:flex;align-items:center;gap:9px;max-width:100%}
.tsp-flash-count{display:inline-flex;align-items:center;gap:12px;font-variant-numeric:tabular-nums}
.tsp-flash-time-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:46px;min-height:46px;padding:5px 6px;border-radius:7px;background:#fff;color:#172b3a;line-height:1}
.tsp-flash-time-tile + .tsp-flash-time-tile::before{position:absolute;left:-8px;top:50%;transform:translateY(-50%);content:':';color:#6c2e00;font-weight:800;font-size:14px}
.tsp-flash-time-tile strong{font-size:20px;font-weight:800;line-height:1.15}
.tsp-flash-time-tile small{font-size:10px;margin-top:3px;line-height:1.15}
@media(max-width:600px){.tsp-flash-countdown{flex:1 1 100%;flex-wrap:wrap;gap:5px 8px}.tsp-flash-count{gap:10px}.tsp-flash-time-tile{min-width:40px;min-height:42px;padding:4px}.tsp-flash-time-tile strong{font-size:17px}.tsp-flash-time-tile + .tsp-flash-time-tile::before{left:-7px}}
.tsp-flash-toolbar{padding:13px 20px 3px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#7e614c}.tsp-flash-toolbar button{width:34px;height:34px;border:1px solid #dcbca2;border-radius:50%;background:#fff;color:#873e0c;font-size:24px;line-height:1;cursor:pointer;margin-left:6px}.tsp-flash-track{padding:14px 18px 22px}.tsp-flash-track>.woocommerce ul.products{display:flex!important;gap:15px!important;overflow-x:auto!important;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:0 0 12px!important;margin:0!important}.tsp-flash-track ul.products:before,.tsp-flash-track ul.products:after{display:none!important}.tsp-flash-track ul.products li.product{float:none!important;flex:0 0 calc((100% - 60px)/5)!important;max-width:none!important;min-width:190px!important;width:auto!important;margin:0!important;padding:14px!important;border:1px solid #e3d8cd!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;scroll-snap-align:start;transform:none!important;animation:none!important;display:flex!important;flex-direction:column!important}.tsp-flash-track li.product .et_shop_image{display:block!important}.tsp-flash-track li.product img{width:100%!important;height:160px!important;object-fit:contain!important;background:#fff!important;margin:8px 0 14px!important;border:0!important}.tsp-flash-track li.product h2.woocommerce-loop-product__title{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;font-size:14px!important;line-height:1.6!important;height:45px!important;min-height:45px!important;margin:0 0 13px!important;padding:0!important;color:#203a4b!important}.tsp-flash-track li.product .price{min-height:30px;font-size:19px!important;margin-bottom:15px!important}.tsp-flash-track li.product .price del{font-size:12px!important}.tsp-flash-track li.product .tsp-loop-quantity{margin-top:auto!important}.tsp-flash-track li.product .button{font-size:12px!important}.tsp-flash-track .onsale{background:#ad390d!important;border-radius:7px!important;color:#fff!important;min-height:0!important;line-height:1.6!important;padding:4px 8px!important;left:10px!important;top:10px!important;font-size:11px!important}.tsp-flash-track .et_overlay{display:none!important}.tsp-flash-track a:focus-visible,.tsp-flash button:focus-visible,.tsp-catalog a:focus-visible{outline:3px solid #244e6b;outline-offset:3px}
@media(max-width:1100px){.tsp-flash-track ul.products li.product{flex-basis:calc((100% - 45px)/4)!important}.woocommerce-shop #main-content .et_pb_row_1_tb_body{grid-template-columns:200px minmax(0,1fr);gap:20px}.tsp-catalog li.product img{height:160px!important}}
@media(max-width:980px){.woocommerce-shop #main-content .et_pb_row_1_tb_body{grid-template-columns:1fr;gap:22px;width:92%!important}.woocommerce-shop #main-content .et_pb_column_1_tb_body{padding:16px!important;display:grid;grid-template-columns:1fr 2fr;gap:10px 20px}.woocommerce-shop #main-content .et_pb_column_1_tb_body>.et_pb_heading{display:none!important}.woocommerce-shop #main-content .et_pb_column_1_tb_body .et_pb_module{margin:0!important}.woocommerce-shop #main-content #menu-footerproductmenu{display:flex;flex-wrap:wrap;gap:5px 13px}.woocommerce-shop #main-content #menu-footerproductmenu li{border:0}.woocommerce-shop #main-content #menu-footerproductmenu a{font-size:12px;padding:4px 0!important}.tsp-flash-heading{align-items:flex-start;padding:20px}.tsp-flash-status{max-width:50%;font-size:12px}.tsp-flash-heading h2{font-size:27px!important}.tsp-flash-track ul.products li.product{flex-basis:calc((100% - 30px)/3)!important}}
@media(max-width:600px){.woocommerce-shop #main-content .et_pb_section_0_tb_body{padding:22px 0!important}.woocommerce-shop #main-content .et_pb_section_1_tb_body{padding-top:10px!important}.woocommerce-shop #main-content .et_pb_column_1_tb_body{display:block}.woocommerce-shop #main-content .et_pb_column_1_tb_body .et_pb_sidebar_1_tb_body{margin-top:14px!important}.woocommerce-shop #main-content .tsp-catalog ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}.woocommerce-shop #main-content .tsp-catalog ul.products li.product{padding:10px!important}.tsp-catalog li.product img{height:135px!important;margin-bottom:10px!important}.tsp-catalog li.product .woocommerce-loop-product__title{font-size:13px!important;height:63px!important;min-height:63px!important}.tsp-catalog li.product .price{font-size:16px!important;min-height:42px}.tsp-catalog .woocommerce-result-count{float:none!important;margin:0 0 12px!important}.tsp-catalog .woocommerce-ordering{float:none!important;width:100%}.tsp-catalog .woocommerce-ordering select{width:100%}.tsp-catalog-tabs a{font-size:13px;padding:8px 14px}.tsp-flash{border-radius:13px}.tsp-flash-heading{display:block;padding:18px 16px}.tsp-flash-heading h2{font-size:26px!important}.tsp-flash-heading p{font-size:12px}.tsp-flash-status{max-width:100%;justify-content:space-between;margin-top:14px;gap:9px}.tsp-flash-status a{font-size:11px;padding:5px 0}.tsp-flash-live{font-size:11px;padding:5px 9px}.tsp-flash-toolbar{padding:10px 12px 0;font-size:10px}.tsp-flash-track{padding:12px 11px 14px}.tsp-flash-track>.woocommerce ul.products{gap:10px!important}.tsp-flash-track ul.products li.product{flex-basis:76%!important;min-width:0!important;padding:13px!important}.tsp-flash-track li.product img{height:155px!important}.tsp-flash-track li.product h2.woocommerce-loop-product__title{font-size:14px!important}.tsp-flash-track .tsp-loop-quantity>span{display:inline!important}.tsp-flash-track .tsp-loop-quantity{justify-content:space-between!important}.tsp-flash-track .tsp-qty-control.quantity{width:112px!important}.tsp-flash-track .tsp-flash-count{font-size:17px}}

/* /shop/: ยกเลิกพื้นเหลืองของวิดเจ็ตเดิม ให้ค้นหาและหมวดอยู่ในแผงขาวเดียวกัน */
.woocommerce-shop #main-content .et_pb_column_1_tb_body .et_pb_widget_area{background:transparent!important;border:0!important;padding:0!important}.woocommerce-shop #main-content .et_pb_column_1_tb_body .et_pb_widget_area ul{background:transparent!important}.woocommerce-shop #main-content .et_pb_column_1_tb_body .et_pb_widget_area a:hover{color:#9b4400!important}

/* หน้าแรก: กำหนดแถบ Flash Sale ให้ชนะกริดสินค้าส่วนกลางของ Divi */
body.home #main-content .tsp-flash ul.products{display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;gap:15px!important;overflow-x:auto!important;width:100%!important}body.home #main-content .tsp-flash ul.products li.product{flex:0 0 calc((100% - 60px)/5)!important;min-width:190px!important;width:auto!important;max-width:none!important;margin:0!important}body.home #main-content .tsp-flash ul.products li.product .price{display:block!important;min-height:30px}
@media(max-width:980px){body.home #main-content .tsp-flash ul.products li.product{flex-basis:calc((100% - 30px)/3)!important}}
@media(max-width:600px){body.home #main-content .tsp-flash ul.products{gap:10px!important}body.home #main-content .tsp-flash ul.products li.product{flex-basis:76%!important;min-width:0!important}}

/* หน้าแรกบนมือถือ: แถบ Flash Sale กว้างแนวเดียวกับส่วนสินค้า ป้ายลดราคาอยู่เหนือรูป */
body.home #main-content .tsp-flash .onsale{z-index:4!important;right:auto!important}
@media(max-width:600px){body.home #main-content .et_pb_row:has(.tsp-flash-module){width:92%!important;max-width:1180px!important}}

body.home #main-content .tsp-flash .tsp-flash-sales-meter{position:relative;isolation:isolate;display:block;width:100%;margin:7px 0 4px;border-radius:999px;overflow:hidden;background:#f2eae3;color:#263541;font-size:12px;font-weight:700;line-height:1.6;text-align:center}
body.home #main-content .tsp-flash .tsp-flash-sales-meter::before{content:'';position:absolute;z-index:-1;inset:0 auto 0 0;width:var(--tsp-flash-fill,0%);background:linear-gradient(90deg,#ff862a,#ffad61);border-radius:inherit}

/* Flash Sale: ป้ายส่วนลดอยู่เหนือรูปที่แม่แบบ Divi ตั้ง z-index 10 ไว้ */
body.home #main-content .tsp-flash .onsale{z-index:30!important}

/* ร้าน/หน้าแรก: คงตำแหน่งป้ายราคาเมื่อไม่โหลด CSS WooCommerce ทั้งชุด */
body.woocommerce-shop #main-content li.product .onsale,body.home #main-content li.product .onsale{position:absolute!important;z-index:30!important}
@media(min-width:601px){.tsp-catalog .woocommerce-result-count{float:left!important}.tsp-catalog .woocommerce-ordering{float:right!important}}
