/* ===========================================
   Product Card — woocommerce-card.css
   ตรงตาม mockup การ์ดสินค้า
=========================================== */

:root {
    --card-red:       #9E161D;
    --card-red-hover: #b8001a;
    --card-border:    #F2F2F2;
    --card-bg:        #FFFFFF;
    --card-text:      #1A1A1A;
    --card-gray:      #F0F0F0;
    --card-gray-text: #666666;
    --card-radius:    8px;
	--spc-red:       #9E161D;
    --spc-red-hover: #b8001a;
    --spc-border:    #E8E8E8;
    --spc-bg-gray:   #EBEBEB;
    --spc-text:      #1A1A1A;
    --spc-gray:      #666666;
	--cmp-red:    #9E161D;
    --cmp-border: #E8E8E8;
    --cmp-bg:     #FFFFFF;
    --cmp-bg-alt: #F9F9F9;
    --cmp-text:   #1A1A1A;
    --cmp-gray:   #666666;
	
}

/* ── Grid layout ── */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
	
}

@media (max-width: 1024px) {
    ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
    ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    ul.products { grid-template-columns: 1fr !important; }
}

/* ── Card wrapper ── */
li.csf-product-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: var(--card-font);
    transition: box-shadow 0.2s, transform 0.2s;
	box-shadow:none;
}

li.csf-product-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* ── Link ── */
.csf-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Badge Premium ── */
.csf-badge-premium {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 64px;
}

.csf-badge-premium img {
    width: 100%;
    height: auto;
}

/* ── Badge SALE ── */
.csf-badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--card-red);
    color: #fff;
    font-family: var(--card-font);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* ── รูปสินค้า ── */
.csf-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.csf-card-image img.csf-img,
.csf-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Body ── */
.csf-card-body {
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* Category */
.csf-card-category {
    font-size: 16px;
    color: #9E161D;
    margin: 0 !important;
    line-height: 1.3 !important;
	font-weight:600;
}

/* รุ่น */
.csf-card-model {
    font-size: 17px;
    font-weight: 700;
    color: var(--card-text);
    margin: 0;
    line-height: 1.3;
}

.csf-card-model-label {
    font-weight: 400;
    font-size: 14px;
    color: var(--card-gray-text);
}

/* Badges ปี / แรงม้า / ชั่วโมง */
.csf-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
	margin-bottom:.5rem;
}

.csf-badge-info {
    display: inline-block;
    background: #F8F8F8;
    color: #777777;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border: 1px solid #F2F2F2;
    white-space: nowrap;
}

/* ราคา */
.csf-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--card-red);
    margin: 4px 0 0;
    line-height: 1.2;
}

.csf-card-price span {
    font-size: 14px;
    font-weight: 400;
}

/* ── Footer ── */
.csf-card-footer {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ปุ่มติดต่อ */
.csf-btn-contact {
    display: block;
    width: 100%;
    background: var(--card-red);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-family: var(--card-font);
    font-size: 14px;
    font-weight: 600;
    padding: 11px 16px;
    transition: background 0.15s;
    box-sizing: border-box;
    line-height: 1.4;
}

.csf-btn-contact:hover {
    background: var(--card-red-hover) !important;
    color: #fff !important;
}

/* Checkbox เปรียบเทียบ */
.compare-button {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: var(--card-gray-text);
    cursor: pointer;
    user-select: none;
	padding: 11px 16px;
	font-size: 14px;
    font-weight: 600;
	justify-content:center;
	border:1px solid #DDD9D8;
}
.compare-button .compare{
	display: flex;
    align-items: center;
	gap:.25rem;
}
.compare-button input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--card-red);
    cursor: pointer;
    flex-shrink: 0;
}
/* ── Wrapper ── */
.spc-wrapper {
    font-family: var(--spc-font);
    padding: 24px 0 48px;
}

.spc-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ════════════════════════════════════
   SECTION 1: รูป + ข้อมูลหลัก
════════════════════════════════════ */
.spc-top {
    display: grid;
    grid-template-columns: 58% 40%;
    gap: 20px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

@media (max-width: 768px) {
    .spc-top { grid-template-columns: 1fr; gap: 20px; }
}

/* Gallery */
.spc-gallery { display: flex; flex-direction: column; gap: 12px; }

.spc-main-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.spc-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spc-thumbnails {
    display: flex;
    align-items: center;
    gap: 6px;
	position:relative;
}

.spc-thumb-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    scrollbar-width: none;
}

.spc-thumb-track::-webkit-scrollbar { display: none; }

.spc-thumb {
    height: 72px;
    aspect-ratio:1;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s;
}

.spc-thumb:hover, .spc-thumb.active {
    border-color: var(--spc-red);
}

.spc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spc-thumb-nav {
    width: 27px;
    height: 27px;
    background-color: rgb(221 34 69 / 70%);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
	position:absolute;
	padding:0;
	color:#000;
	top:50%;
	transform:translatey(-50%)
}
.spc-thumb-nav.spc-thumb-prev{
	left:-.5rem
}
.spc-thumb-nav.spc-thumb-next{
	left: calc(100% - .5rem)
}

.spc-thumb-nav:hover { background: var(--spc-bg-gray); }

/* Info */
.spc-info { display: flex; flex-direction: column; gap: 12px; }

.spc-category {
    font-size: 14px;
    color: var(--spc-gray);
    margin: 0;
}

.spc-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--spc-text);
    margin: 0;
    line-height: 1.3;
}

.spc-desc {
    font-size: 14px;
    color: var(--spc-gray);
    margin: 0;
    line-height: 1.6;
}

.spc-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.spc-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--spc-red);
}

.spc-stock {
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.spc-in-stock  { color: #16a34a;  }
.spc-out-stock { color: #dc2626; }

/* อุปกรณ์ต่อพ่วง */
.spc-addons-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--spc-text);
    margin: 0 0 8px;
}

.spc-addon-list { display: flex; flex-direction: column; gap: 8px; }

.spc-addon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--spc-text);
    cursor: pointer;
    padding: 10px 14px;
    border: 1px solid var(--spc-border);
    border-radius: 4px;
    transition: border-color 0.15s, background 0.15s;
}

.spc-addon-item input[type="checkbox"] { display: none; }

.spc-addon-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--spc-border);
    border-radius: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}

.spc-addon-item input:checked ~ .spc-addon-check {
    background: var(--spc-red);
    border-color: var(--spc-red);
}

.spc-addon-item input:checked ~ .spc-addon-check::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.spc-addon-item:has(input:checked) {
    background: #fff5f5;
    border-color: var(--spc-red);
}

/* ปุ่ม */
.spc-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.spc-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    font-family: var(--spc-font);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    box-sizing: border-box;
    line-height: 1;
}

.spc-btn-calc {
    background: #fff;
    color: var(--spc-text) !important;
    border: 1px solid var(--spc-border);
	line-height:1.2;
}

.spc-btn-calc:hover { background: var(--spc-bg-gray); }

.spc-btn-contact {
    background: var(--spc-red);
    color: #fff !important;
}

.spc-btn-contact:hover { background: var(--spc-red-hover); }

/* ════════════════════════════════════
   SECTION 2: Tabs
════════════════════════════════════ */
/* .spc-tabs-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
} */

.spc-tabs-nav {
    display: flex;
    margin-bottom: 1rem;
    gap: .75rem;
    /* border-bottom: 2px solid var(--spc-border); */
}

.spc-tab-btn {
    padding: 14px 28px;
    font-family: var(--spc-font);
    font-size: 16px;
    font-weight: 600;
    color: #000;
    background: #FFFF;
    border: none;
    border-top: 3px solid transparent;
    /* margin-bottom: -2px; */
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1.2;
    height: auto;
    min-width: 15rem;
}

.spc-tab-btn:hover { 
    
    color: var(--spc-red);
    border-top-color: var(--spc-red);
    background-color: #FFF !important;
}

.spc-tab-btn.spc-tab-active {
    color: var(--spc-red);
      background-color: #FFF !important;
    border-top-color: var(--spc-red);
}

.spc-tab-content { 
    padding: 24px; 
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ตารางข้อมูลสำคัญ */
.spc-info-list{
	list-style-type : none;
	padding-left : 0;
}
.spc-info-list li{
	display:grid;
	grid-template-columns: 50% 40%;
	align-items:center;
	font-weight:500;
	margin-bottom:.5rem;
	gap:.5rem;
}
.spc-dot{
	color:#9E161D;
}
/* แคตตาล็อก */
.spc-catalog-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid var(--spc-border);
    border-radius: 0 0 4px 4px;
    flex-wrap: wrap;
    gap: 12px;
}

.spc-catalog-info { display: flex; align-items: center; gap: 12px; }

.spc-catalog-thumb {
    width: 48px;
    height: 48px;
    background: var(--spc-red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.spc-catalog-name { font-size: 14px; color: var(--spc-text); }

.spc-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--spc-red);
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
}

.spc-btn-download:hover { background: var(--spc-red-hover); }

/* Video */
.spc-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.spc-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.spc-empty { color: var(--spc-gray); font-size: 14px; padding: 20px 0; }

/* ════════════════════════════════════
   SECTION 3: Calculator
════════════════════════════════════ */
.spc-calc-wrap {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.spc-calc-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 24px;
}

@media (max-width: 640px) {
    .spc-calc-inner { grid-template-columns: 1fr; }
}

.spc-calc-price-label { font-size: 13px; color: var(--spc-gray); margin: 0; }

.spc-calc-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--spc-red);
    margin: 4px 0 16px;
}

.spc-calc-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.spc-calc-field label { font-size: 13px; color: var(--spc-text); flex: 1; }

.spc-calc-field input {
    width: 100px;
    padding: 8px 10px;
    font-family: var(--spc-font);
    font-size: 14px;
    border: 1px solid var(--spc-border);
    border-radius: 4px;
    outline: none;
    text-align: right;
}

.spc-calc-field input:focus { border-color: var(--spc-red); }

.spc-calc-result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--spc-text);
}

.spc-calc-monthly {
    font-size: 24px;
    font-weight: 700;
    color: var(--spc-red);
}

/* ════════════════════════════════════
   SECTION 4: Related
════════════════════════════════════ */


.spc-related-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--spc-text);
    margin: 0 0 20px;
}

.spc-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) { .spc-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .spc-related-grid { grid-template-columns: 1fr; } }

.spc-related-card {
    border: 1px solid var(--spc-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
    position: relative;
}

.spc-related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10); }

.spc-related-card > a {
    text-decoration: none !important;
    color: inherit !important;
    flex: 1;
}

.spc-related-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #fff;
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spc-related-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spc-related-body { padding: 12px 12px 8px; }

.spc-related-cat { font-size: 12px; color: var(--spc-gray); margin: 0 0 4px; }

.spc-related-model {
    font-size: 15px;
    font-weight: 700;
    color: var(--spc-text);
    margin: 0 0 6px;
}

.spc-related-model span { font-weight: 400; font-size: 13px; color: var(--spc-gray); }

.spc-related-footer { padding: 0 12px 12px; }


/* ── Layout wrapper ── */
.shop-layout-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    max-width: calc(1140px + 2em);
    margin: 0 auto;
    padding: 20px 0;
    align-items: start;
	width:100%;
	row-gap:0;
}

@media (max-width: 900px) {
    .shop-layout-wrap {
        grid-template-columns: 1fr;
    }
    .shop-sidebar {
        order: 2; /* sidebar ย้ายไปด้านล่างบนมือถือ */
    }
    .shop-main {
        order: 1;
    }
}

/* ── Sidebar ── */
.shop-sidebar {
    position: sticky;
    top: 20px;
    background: #fff;
    padding: 20px;
}

/* Widget titles */
.shop-sidebar .widget-title,
.shop-sidebar .widgettitle {
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
    padding: 8px 0;
    margin: 0 0 12px;
    border-bottom: 2px solid #D9001B;
}

/* Category list */
.shop-sidebar .product-categories {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
}

.shop-sidebar .product-categories li {
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.shop-sidebar .product-categories li a {
    color: #333;
    text-decoration: none;
}

.shop-sidebar .product-categories li a:hover,
.shop-sidebar .product-categories .current-cat > a {
    color: #D9001B;
}

.shop-sidebar .count {
    color: #999;
    font-size: 11px;
    margin-left: 4px;
}

/* Filter by attribute */
.shop-sidebar .woocommerce-widget-layered-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-sidebar .woocommerce-widget-layered-nav-list li {
    padding: 4px 0;
    font-size: 13px;
}

.shop-sidebar .woocommerce-widget-layered-nav-list li a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-sidebar .woocommerce-widget-layered-nav-list li a:hover {
    color: #D9001B;
}

.shop-sidebar .woocommerce-widget-layered-nav-list li.chosen a {
    color: #D9001B;
    font-weight: 600;
}

/* Price filter */
.shop-sidebar .price_slider_wrapper {
    padding: 8px 0;
}

.shop-sidebar .price_slider {
    margin-bottom: 12px;
}

.shop-sidebar .ui-slider-horizontal {
    height: 4px;
    background: #E8E8E8;
    border-radius: 2px;
    border: none;
}

.shop-sidebar .ui-slider-range {
    background: #D9001B;
}

.shop-sidebar .ui-slider-handle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #D9001B;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    top: -6px;
    cursor: pointer;
}

.shop-sidebar .price_slider_amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.shop-sidebar .price_slider_amount .price_label {
    font-size: 12px;
    color: #666;
}

.shop-sidebar .price_slider_amount button {
    background: #D9001B;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

/* Widget spacing */
.shop-sidebar .widget {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.shop-sidebar .widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ── Shop main area ── */
.shop-main .woocommerce-result-count {
    font-size: 13px;
    color: #666;
}

.shop-main .woocommerce-ordering select {
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid #E8E8E8;
    border-radius: 4px;
    font-family: inherit;
}

/* Products grid */
.shop-main ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
}

@media (max-width: 1024px) {
    .shop-main ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .shop-main ul.products {
        grid-template-columns: 1fr !important;
    }
}


.widget_price_filter .price_slider_amount{
	display: flex;
    flex-flow: column-reverse;
	margin-top:0 !important;
}

.shop-sidebar .price_slider_amount .price_label{
	margin-left: 0;
    width: 100%;
}
.shop-sidebar .price_slider_amount button{
	font-size: 16px;
    width: 100%;
    border-radius: 0;
    padding: 12px;
    font-weight: 500;
    margin-top: 1rem;
}
.shop-main .woocommerce-ordering select{
	line-height:1;
}
@media screen and (min-width:768px){
	.woocommerce-ordering {
        max-width: 190px !important;
        
        width: 100%;
    }
}

.ssf-wrap {
   
    display: flex;
    flex-direction: column;
    gap: 0;
}
/* ── Search input ── */
.ssf-search-section {
    padding-bottom: 14px;
}

.ssf-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ssf-search-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: #AAA;
    pointer-events: none;
    flex-shrink: 0;
}

.ssf-search-input {
    width: 100%;
    padding: 9px 12px 9px 34px !important;

    font-family: inherit;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    outline: none;
    background: #F9F9F9;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
}

.ssf-search-input:focus {
    border-color: #D9001B;
    background: #fff;
}

.ssf-search-input::placeholder {
    color: #AAA;
    font-size: 14px;
}
/* ── Section ── */
.ssf-section {
    border-bottom: 1px solid #F0F0F0;
    padding: 12px 0;
}

.ssf-section:last-of-type {
    border-bottom: none;
}

/* ── Section Header ── */
.ssf-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 2px 0;
}

.ssf-section-head.ssf-no-toggle {
    cursor: default;
}

.ssf-section-title {
   
    font-weight: 700;
    color: #1A1A1A;
}

.ssf-toggle-icon {
    font-size: 18px;
    font-weight: 400;
    color: #999;
    line-height: 1;
    width: 20px;
    text-align: center;
}

/* ── Section Body ── */
.ssf-section-body {
    margin-top: 10px;
}

/* ── Category list ── */
.ssf-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ssf-cat-list li a {
    font-size: 16px;
    color: #444;
    text-decoration: none !important;
    display: block;
    padding: 3px 0 3px 10px;
    border-left: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.ssf-cat-list li a:hover {
    color: #D9001B;
    border-left-color: #D9001B;
}

.ssf-cat-list li.ssf-active a {
    color: #D9001B;
    font-weight: 600;
    border-left-color: #D9001B;
}

/* ── Checkbox list ── */
.ssf-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ssf-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.ssf-check-item input[type="checkbox"] {
    display: none;
}

.ssf-checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #CCC;
    border-radius: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}

.ssf-check-item input:checked ~ .ssf-checkmark {
    background: #D9001B;
    border-color: #D9001B;
}

.ssf-check-item input:checked ~ .ssf-checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

/* ── Range inputs ── */
.ssf-range-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ssf-range-input {
    flex: 1;
    padding: 7px 8px;
    font-size: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    text-align: center;
    width: 100%;
    min-width: 0;
}

.ssf-range-input:focus {
    border-color: #D9001B;
}

.ssf-range-sep {
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
}

/* ── Buttons ── */
.ssf-btn-filter {
    width: 100%;
    padding: 11px;
    background: #D9001B;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.15s;
	line-height:1;
}

.ssf-btn-filter:hover {
    background: #b8001a;
}

.ssf-btn-reset {
    display: block;
    width: 100%;
    padding: 9px;
    background: #F5F5F5;
    color: #666;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    text-decoration: none !important;
    margin-top: 8px;
    transition: background 0.15s;
	line-height:1;
}

.ssf-btn-reset:hover {
    background: #E8E8E8;
    color: #333;
}


/* ── Wrapper ── */
#yith-woocompare.yct-compare {
    font-family: var(--cmp-font);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.yct-compare-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--cmp-text);
    margin: 0 0 20px;
}

.yct-empty {
    text-align: center;
    color: var(--cmp-gray);
    padding: 40px 0;
    font-size: 15px;
}

/* ── Table ── */
.yct-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--cmp-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.yct-table thead tr,
.yct-table tfoot tr {
    display: none;
}

/* ── Product info row ── */
.yct-row-product-info td,
.yct-row-product-info th {
    padding: 20px 16px;
    text-align: center;
    border-bottom: 2px solid var(--cmp-border);
    vertical-align: top;
}

.yct-row-product-info th {
    text-align: left;
    vertical-align: middle;
    min-width: 140px;
}

/* Product image */
.yct-product-image {
    position: relative;
    margin-bottom: 12px;
}

.yct-product-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

.yct-remove-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Product title */
.yct-product-link {
    text-decoration: none !important;
}

.yct-product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--cmp-text);
    margin: 0 0 12px;
    line-height: 1.4;
}

.yct-product-title:hover {
    color: var(--cmp-red);
}

/* ปุ่มดูรายละเอียด */
.yct-btn-view {
    display: inline-block;
    background: var(--cmp-red);
    color: #fff !important;
    text-decoration: none !important;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
}

.yct-btn-view:hover {
    background: #b8001a !important;
}

/* ── Data rows ── */
.yct-row th,
.yct-row td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--cmp-border);
    font-size: 14px;
    vertical-align: middle;
}

.yct-row:last-child th,
.yct-row:last-child td {
    border-bottom: none;
}

.yct-row:nth-child(even) {
    background: var(--cmp-bg-alt);
}

/* Label column */
.yct-row-label {
    font-weight: 600;
    color: var(--cmp-text);
    min-width: 140px;
    background: var(--cmp-bg-alt);
    border-right: 1px solid var(--cmp-border);
}

/* Value columns */
.yct-row td {
    color: var(--cmp-gray);
    text-align: center;
}

/* ราคา */
.yct-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--cmp-red);
}

/* สถานะ */
.yct-stock {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.yct-instock {
    background: #dcfce7;
    color: #16a34a;
}

.yct-outstock {
    background: #fee2e2;
    color: #dc2626;
}

/* แถว different */
.yct-row.yct-different td {
    background: #fffbf0;
}

/* ── Remove button ── */
.yith-woocompare-remove-product {
    color: #999;
    font-size: 18px;
    text-decoration: none !important;
    line-height: 1;
    transition: color .15s;
}

.yith-woocompare-remove-product:hover {
    color: var(--cmp-red);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .yct-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .yct-row-label {
        min-width: 100px;
        font-size: 12px;
    }

    .yct-row th,
    .yct-row td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ── ซ่อนคอลัมน์ว่างขวาสุด ── */
.yct-table td.filler,
.yct-table th.yct-th-empty {
    display: none;
}

/* ── Remove button ── */
.yct-remove-btn,
.yith-woocompare-remove-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999 !important;
    font-size: 18px;
    text-decoration: none !important;
    line-height: 1;
    transition: background .15s, color .15s;
    border: none;
    cursor: pointer;
}

.yct-remove-btn:hover,
.yith-woocompare-remove-product:hover {
    background: #D9001B;
    color: #fff !important;
}

/* ── Remove overlay บนรูป ── */
.yct-remove-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

/* ── ซ่อนแถวที่ label ว่างหรือเป็นตัวเลข ── */
.yct-row.repeated {
    display: none;
}

/* ── ปรับ row remove ── */
.yct-row-remove td,
.yct-row-remove th {
    padding: 8px 16px;
    text-align: right;
    border-bottom: 1px solid var(--cmp-border);
    background: #fafafa;
}

/* ── ปรับ description row ── */
.yct-row.description{
	display: table-row !important;
}
.yct-row.description td {
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    min-height: 60px;
	
}

/* ── Highlight different values ── */
.yct-row.yct-different td {
    background: #fffbf0 !important;
    font-weight: 500;
}

/* ── ซ่อนแถว attribute ที่ไม่ต้องการ ── */
.yct-row.pa_horsepower th::before { content: 'แรงม้า (HP)'; }
.yct-row.pa_productyear th::before { content: 'ปี'; }
.yct-row.pa_hours th::before { content: 'ชั่วโมงใช้งาน'; }
.yct-row.pa_brand th::before { content: 'ยี่ห้อ'; }
.yct-row.pa_model th::before { content: 'รุ่น'; }

/* ซ่อน label เดิมที่เป็นตัวเลขหรือ slug */
.yct-row.pa_horsepower .yct-row-label,
.yct-row.pa_productyear .yct-row-label,
.yct-row.pa_hours .yct-row-label,
.yct-row.pa_brand .yct-row-label,
.yct-row.pa_model .yct-row-label {
    font-size: 0;
}

.yct-row.pa_horsepower .yct-row-label::before,
.yct-row.pa_productyear .yct-row-label::before,
.yct-row.pa_hours .yct-row-label::before,
.yct-row.pa_brand .yct-row-label::before,
.yct-row.pa_model .yct-row-label::before {
    font-size: 14px;
}




