/* Soundspace theme — base styles (ปุ่มติดต่อ + modal) · ใช้ CSS var จาก config */

/* ปุ่ม "สอบถาม/สั่งซื้อ" (แทน add-to-cart) */
.ss-contact-cta { margin: 16px 0; }
.ss-contact-btn {
	display: inline-block; background: var(--ss-line, #06c755); color: #fff !important;
	padding: 12px 28px; border-radius: 8px; font-weight: 600; text-decoration: none;
	font-size: 16px; line-height: 1.3; transition: filter .15s ease;
}
.ss-contact-btn:hover { filter: brightness(.94); }

/* modal */
.ss-modal[hidden] { display: none; }
.ss-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; font-family: "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif; }
.ss-modal, .ss-modal * { font-family: "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif; }  /* modal อยู่นอก .ss-site → บังคับฟอนต์ธีม */
.ss-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.ss-modal__box {
	position: relative; background: #fff; border-radius: 14px; padding: 28px 26px;
	max-width: 380px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,.3); text-align: center;
}
.ss-modal__x { position: absolute; top: 8px; right: 12px; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 28px; line-height: 1; cursor: pointer; color: #888 !important; padding: 4px 8px; width: auto; }
.ss-modal__x:hover { color: var(--ss-accent, #e23b2e) !important; background: transparent !important; }
.ss-modal__box h3 { margin: .2em 0 .4em; font-size: 20px; color: var(--ss-ink, #222); }
.ss-modal__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ss-btn { display: block; padding: 12px; border-radius: 8px; font-weight: 600; text-decoration: none; color: #fff !important; }
.ss-btn--line { background: var(--ss-line, #06c755); }
.ss-btn--fb   { background: #1877f2; }
.ss-btn--tel  { background: var(--ss-accent, #e23b2e); }

/* หน้าเพจ default (page.php) — เว้น space บน + container กัน content ชิด header */
.ss-page { padding: 34px 0 44px; }
.ss-page__inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ss-about-fullpara { margin-top: 6px; }

/* ===== หน้า /about/ (page-about.php · code template · 2-col แบบเดิม) ===== */
.ss-about { padding: 40px 0 44px; }
.ss-about__wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ss-about__title { font-size: 28px; font-weight: 800; color: var(--ss-ink, #222); margin: 0 0 28px; }
.ss-about__sec { margin-bottom: 48px; }
.ss-about__sec:last-child { margin-bottom: 0; }
.ss-about__bar { display: inline-flex; align-items: center; margin: 0 0 24px 34px; position: relative; }
.ss-about__dot { position: absolute; left: -34px; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--c); transform: translateY(-50%); }
.ss-about__bar::before { content: ""; position: absolute; left: -20px; top: 50%; width: 20px; height: 3px; background: var(--c); transform: translateY(-50%); }
.ss-about__name { background: var(--c); color: #fff; font-size: 20px; font-weight: 700; padding: 9px 26px; border-radius: 4px; }
/* 2 คอลัมน์: text ซ้าย · รูป ขวา (แบบ WPBakery เดิม) */
.ss-about__row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.ss-about__col-text { color: #444; font-size: 15.5px; line-height: 1.95; }
.ss-about__col-text p { margin: 0 0 16px; }
.ss-about__col-text a { color: var(--ss-brand, #8a7f3d); text-decoration: none; }
.ss-about__col-text a:hover { text-decoration: underline; }
.ss-about__col-media { display: flex; flex-direction: column; gap: 18px; }
.ss-about__img { width: 100%; height: auto; display: block; border-radius: 12px; }
.ss-about__row--img { margin-top: 24px; align-items: start; }
.ss-about__quote { margin: 22px 0 6px; padding: 0; text-align: center; font-size: 16.5px; font-weight: 700; color: var(--ss-ink, #222); line-height: 1.7; }
.ss-about__note { background: #faf8f0; border-left: 4px solid var(--ss-brand, #8a7f3d); border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 26px 0 0; color: #555; font-size: 15px; line-height: 1.9; }
.ss-about__note p { margin: 0; }
.ss-about__link { display: inline-block; margin-top: 10px; color: var(--ss-brand, #8a7f3d); font-weight: 700; text-decoration: none; }
.ss-about__link:hover { text-decoration: underline; }
@media (max-width: 768px) {
	.ss-about__row { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
	.ss-about__name { font-size: 17px; padding: 8px 18px; }
	.ss-about__col-text { font-size: 15px; }
	.ss-about__quote { font-size: 15.5px; }
}

/* ===== หน้า /contact/ (page-contact.php) ===== */
/* NOTE: wrapper = .ss-cpage (ห้ามใช้ .ss-contact ซ้ำ — ชนกับ header ชั้น 2 .ss-contact
   ทำให้ padding 40/44 รั่วไปพอง header ทุกหน้า) · ให้เท่ากับ .ss-about / .ss-hto */
.ss-cpage { padding: 40px 0 44px; }
.ss-contact__wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ss-contact__title { font-size: 28px; font-weight: 800; color: var(--ss-ink, #222); margin: 0 0 28px; }
.ss-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.ss-contact__web { font-size: 22px; font-weight: 800; color: var(--ss-ink, #222); margin: 0 0 4px; }
.ss-contact__by { color: #333399; font-weight: 600; margin: 0 0 18px; }
.ss-contact__company { font-size: 16px; margin: 0 0 18px; }
.ss-contact__company a { color: var(--ss-brand, #8a7f3d); text-decoration: underline; font-weight: 700; }
.ss-contact__list { margin: 0; }
.ss-citem { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #ececec; font-size: 15px; line-height: 1.6; }
.ss-citem dt { flex: 0 0 84px; color: #888; font-weight: 600; }
.ss-citem dd { margin: 0; color: #444; }
.ss-citem a { color: var(--ss-brand, #8a7f3d); text-decoration: none; }
.ss-citem a:hover { text-decoration: underline; }
.ss-citem--tel a { color: var(--ss-accent, #e23b2e); font-weight: 700; }
.ss-citem--line { color: var(--ss-line, #06c755) !important; font-weight: 700; }
.ss-contact__map { border-radius: 12px; overflow: hidden; border: 1px solid #eee; }
.ss-contact__map iframe { display: block; width: 100%; height: 420px; }
.ss-contact__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; align-items: start; }
.ss-contact__gallery > img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid #eee; }
@media (max-width: 768px) {
	.ss-contact__row, .ss-contact__gallery { grid-template-columns: 1fr; }
	.ss-contact__title { font-size: 22px; }
}

/* ===== carousel (component reuse · .ss-carousel — contact/store gallery, future product) ===== */
.ss-carousel { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #eee; background: #f1f1f1; aspect-ratio: 3 / 2; }
.ss-carousel__track { position: absolute; inset: 0; }
.ss-carousel__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.ss-carousel__slide.is-active { opacity: 1; }
.ss-carousel__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.ss-carousel__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.4); cursor: pointer; transition: background .2s, transform .2s; }
.ss-carousel__dot:hover { background: rgba(255,255,255,.85); }
.ss-carousel__dot.is-active { background: #fff; transform: scale(1.3); }

/* ===== หน้า /how-to-order/ (page-how-to-order.php · stepped) ===== */
.ss-hto { padding: 40px 0 44px; }
.ss-hto__wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ss-hto__title { font-size: 28px; font-weight: 800; color: var(--ss-ink, #222); margin: 0 0 28px; }
.ss-steps { list-style: none; margin: 0; padding: 0; }
.ss-step { display: flex; gap: 18px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid #eee; }
.ss-step:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
/* badge = ไอคอนในวงกลม (แบบเว็บเดิม) + ชิปเลขลำดับมุมขวาบน */
.ss-step__badge { flex: 0 0 auto; position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--ss-brand, #8a7f3d); color: #fff; display: flex; align-items: center; justify-content: center; }
.ss-step__badge svg { width: 27px; height: 27px; }
.ss-step__n { position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--ss-accent, #e23b2e); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.ss-step__body { min-width: 0; flex: 1; color: #555; font-size: 15px; line-height: 1.85; }
.ss-step__title { font-size: 19px; font-weight: 700; color: var(--ss-ink, #222); margin: 6px 0 12px; }
.ss-step__body p { margin: 0 0 12px; }
.ss-step__body ul, .ss-step__body ol { margin: 0 0 14px; padding-left: 22px; }
.ss-step__body li { margin-bottom: 6px; }
.ss-step__body a { color: var(--ss-brand, #8a7f3d); text-decoration: none; font-weight: 600; }
.ss-step__body a:hover { text-decoration: underline; }
.ss-step__body a[href^="tel:"] { color: var(--ss-accent, #e23b2e); }
.ss-step__sub { font-weight: 600; color: var(--ss-ink, #222); margin-top: 4px; }
.ss-step__note { font-size: 14px; color: #888; }
.ss-bank { background: #faf8f0; border: 1px solid #efeada; border-radius: 10px; padding: 14px 20px; margin: 8px 0 14px; max-width: 440px; }
.ss-bank__row { display: flex; gap: 12px; padding: 5px 0; }
.ss-bank__row span { flex: 0 0 100px; color: #888; }
.ss-bank__row b { color: var(--ss-accent, #e23b2e); }
@media (max-width: 600px) {
	.ss-hto__title { font-size: 22px; }
	.ss-step { gap: 14px; }
	.ss-step__badge { width: 48px; height: 48px; }
	.ss-step__badge svg { width: 23px; height: 23px; }
}

/* ===== Blog listing (page-blog / page-news · 2-col cards + sidebar) ===== */
.ss-blog { padding: 40px 0 44px; }
.ss-blog__wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ss-blog__crumb { font-size: 13px; color: #999; margin-bottom: 14px; }
.ss-blog__crumb a { color: var(--ss-brand, #8a7f3d); text-decoration: none; }
.ss-blog__crumb a:hover { text-decoration: underline; }
.ss-blog__crumb span { margin: 0 7px; }
.ss-blog__cols { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.ss-blog__title { font-size: 28px; font-weight: 800; color: var(--ss-ink, #222); margin: 0 0 16px; border-left: 5px solid var(--ss-brand, #8a7f3d); padding-left: 14px; line-height: 1.25; }
.ss-blog__intro { color: #666; font-size: 15px; line-height: 1.9; margin: 0 0 26px; }
.ss-blog__intro p { margin: 0 0 10px; }
/* บังคับชิดซ้าย (ทับ text-align:center ที่ WPBakery/vc_column_text ใส่ inline มา) */
.ss-blog__intro, .ss-blog__intro * { text-align: left !important; }
/* ให้ intro ทั้ง 2 หน้าเว้นขอบซ้ายเท่ากัน — ล้าง padding/margin ซ้าย-ขวาของ wrapper WPBakery (news) ให้ชิดซ้ายเท่า blog */
.ss-blog__intro > *,
.ss-blog__intro [class^="vc_"], .ss-blog__intro [class*=" vc_"],
.ss-blog__intro [class^="wpb_"], .ss-blog__intro [class*=" wpb_"] {
	margin-left: 0 !important; margin-right: 0 !important;
	padding-left: 0 !important; padding-right: 0 !important;
}
.ss-blog__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ss-blog__empty { color: #888; padding: 30px 0; }

/* pagination */
.ss-pagination { margin-top: 32px; }
.ss-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ss-pagination a, .ss-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 13px; border: 1px solid #e2e2e2; border-radius: 8px; text-decoration: none; color: var(--ss-ink, #333); font-weight: 600; font-size: 14px; transition: border-color .15s, color .15s, background .15s; }
.ss-pagination a:hover { border-color: var(--ss-brand, #8a7f3d); color: var(--ss-brand, #8a7f3d); }
.ss-pagination .current { background: var(--ss-brand, #8a7f3d); border-color: var(--ss-brand, #8a7f3d); color: #fff; }
.ss-pagination .dots { border-color: transparent; }

/* การ์ดบทความ */
.ss-bcard { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; transition: box-shadow .18s, transform .18s; }
.ss-bcard:hover { box-shadow: 0 12px 30px rgba(0,0,0,.1); transform: translateY(-3px); }
/* thumbnail สูงเท่ากันทุกการ์ด · ทุกเบราว์เซอร์ (padding-ratio 16:10 + รูป absolute · ไม่พึ่ง aspect-ratio) */
.ss-bcard__thumb { position: relative; display: block; height: 0; padding-bottom: 62.5%; background: #f1f1f1; overflow: hidden; }
.ss-bcard__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.ss-bcard:hover .ss-bcard__thumb img { transform: scale(1.05); }
.ss-bcard__noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: #bbb; font-weight: 800; letter-spacing: 1px; font-size: 14px; }
.ss-bcard__body { padding: 14px 16px 18px; }
/* title: ตัด 2 บรรทัด + ... · จองความสูง 2 บรรทัด → ทุกการ์ดสูงเท่ากัน */
.ss-bcard__title { font-size: 16px; font-weight: 700; line-height: 1.45; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.ss-bcard__title a { color: var(--ss-ink, #222); text-decoration: none; }
.ss-bcard__title a:hover { color: var(--ss-brand, #8a7f3d); }
.ss-bcard__cat { font-size: 12.5px; color: #999; font-style: italic; }

/* sidebar */
.ss-blog__side { display: flex; flex-direction: column; gap: 22px; }
.ss-swid__head { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: #2a2a2a; padding: 10px 14px; margin: 0 0 12px; border-radius: 6px; }
.ss-swid__search { display: flex; border: 1px solid #e2e2e2; border-radius: 8px; overflow: hidden; background: #fff; }
.ss-swid__search input { flex: 1; min-width: 0; border: 0; padding: 11px 14px; font: inherit; font-size: 14px; outline: none; background: transparent; }
.ss-swid__search button { border: 0; background: #f4f4f4; padding: 0 14px; color: #777; cursor: pointer; display: flex; align-items: center; }
.ss-swid__search button:hover { color: var(--ss-brand, #8a7f3d); }
.ss-swid__fb { border: 1px solid #eee; border-radius: 8px; overflow: hidden; min-height: 140px; background: #f7f7f7; }
.ss-swid__fb iframe { display: block; width: 100%; }
.ss-swid__cats { display: flex; align-items: center; justify-content: space-between; background: #faf8f0; border: 1px solid #efeada; border-radius: 8px; padding: 14px 16px; color: var(--ss-brand, #8a7f3d); font-weight: 700; text-decoration: none; }
.ss-swid__cats:hover { background: #f5f1e2; }
.ss-swid__cats span { font-size: 18px; }
.ss-latest { list-style: none; margin: 0; padding: 0; }
.ss-latest__item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.ss-latest__item:last-child { border-bottom: 0; }
.ss-latest__thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: #f1f1f1; }
.ss-latest__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-latest__meta { min-width: 0; }
.ss-latest__meta a { display: block; font-size: 13.5px; font-weight: 600; color: var(--ss-ink, #222); text-decoration: none; line-height: 1.4; margin-bottom: 3px; }
.ss-latest__meta a:hover { color: var(--ss-brand, #8a7f3d); }
.ss-latest__meta time { font-size: 12px; color: #aaa; }

@media (max-width: 900px) {
	.ss-blog__cols { grid-template-columns: 1fr; gap: 30px; }
	.ss-blog__side { max-width: 480px; }
}
@media (max-width: 560px) {
	.ss-blog__grid { grid-template-columns: 1fr; }
	.ss-blog__title { font-size: 22px; }
}

/* ===== Single post (single.php · เดิม + modern + AEO) — reuse .ss-blog__wrap/__cols/__side ===== */
.ss-single { padding: 34px 0 46px; }
.ss-single__main { min-width: 0; }
.ss-single__hero { margin: 0 0 22px; border-radius: 14px; overflow: hidden; border: 1px solid #eee; }
.ss-single__hero img { width: 100%; height: auto; display: block; }
.ss-single__title { font-size: 30px; font-weight: 800; line-height: 1.3; color: var(--ss-ink, #222); margin: 0 0 14px; }
.ss-single__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: #999; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid #eee; }
.ss-single__meta b { color: #555; }
.ss-single__meta a { color: var(--ss-brand, #8a7f3d); text-decoration: none; }
.ss-single__meta a:hover { text-decoration: underline; }

/* typography เนื้อหาบทความ */
.ss-single__content { color: #3a3a3a; font-size: 16.5px; line-height: 1.95; }
.ss-single__content > *:first-child { margin-top: 0; }
.ss-single__content p { margin: 0 0 18px; }
.ss-single__content h2 { font-size: 23px; font-weight: 800; margin: 34px 0 14px; color: var(--ss-ink, #222); }
.ss-single__content h3 { font-size: 19px; font-weight: 700; margin: 26px 0 12px; color: var(--ss-ink, #222); }
.ss-single__content img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; }
.ss-single__content a { color: var(--ss-brand, #8a7f3d); text-decoration: underline; }
.ss-single__content ul, .ss-single__content ol { margin: 0 0 18px; padding-left: 24px; }
.ss-single__content li { margin-bottom: 8px; }
.ss-single__content blockquote { margin: 22px 0; padding: 14px 22px; border-left: 4px solid var(--ss-brand, #8a7f3d); background: #faf8f0; color: #555; border-radius: 0 10px 10px 0; }
.ss-single__content iframe, .ss-single__content video { max-width: 100%; }

/* ปุ่มแชร์ */
.ss-share { display: flex; align-items: center; gap: 10px; margin: 30px 0; flex-wrap: wrap; }
.ss-share__label { font-weight: 700; color: #666; font-size: 14px; }
.ss-share__btn { color: #fff !important; text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 6px; transition: filter .15s; }
.ss-share__btn:hover { filter: brightness(.93); }
.ss-share__btn--fb { background: #1877f2; }
.ss-share__btn--line { background: var(--ss-line, #06c755); }

/* CTA ท้ายบทความ */
.ss-postcta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; background: linear-gradient(135deg, #8f8358, #7c6f45); color: #fff; border-radius: 14px; padding: 26px; margin: 30px 0; }
.ss-postcta__text b { display: block; font-size: 18px; margin-bottom: 4px; }
.ss-postcta__text span { color: rgba(255,255,255,.88); font-size: 14px; }
.ss-postcta__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ss-postcta__line { background: var(--ss-line, #06c755); color: #fff !important; text-decoration: none; font-weight: 700; padding: 11px 20px; border-radius: 8px; }
.ss-postcta__tel { background: #fff; color: #2a2a2a !important; text-decoration: none; font-weight: 700; padding: 11px 20px; border-radius: 8px; }
.ss-postcta__line:hover, .ss-postcta__tel:hover { filter: brightness(.95); }

/* บทความที่เกี่ยวข้อง (reuse .ss-bcard) */
.ss-related { margin-top: 42px; padding-top: 28px; border-top: 1px solid #eee; }
.ss-related__head { font-size: 20px; font-weight: 800; margin: 0 0 18px; color: var(--ss-ink, #222); border-left: 5px solid var(--ss-brand, #8a7f3d); padding-left: 12px; }
.ss-related__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.ss-related .ss-bcard__title { font-size: 14.5px; }
@media (max-width: 700px) { .ss-related__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
	.ss-related__grid { grid-template-columns: 1fr; }
	.ss-single__title { font-size: 23px; }
}

/* ===== Product card (.ss-pcard · ใช้ทั้ง home + shop/archive) ===== */
.ss-pcard { display: flex; flex-direction: column; border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.ss-pcard:hover { box-shadow: 0 10px 26px rgba(0,0,0,.09); transform: translateY(-2px); }
.ss-pcard__thumb { display: block; aspect-ratio: 1 / 1; background: #fafafa; }
.ss-pcard__thumb .ss-pcard__img, .ss-pcard__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ss-pcard__title { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 12px 13px 4px; color: var(--ss-ink, #222); text-decoration: none; font-size: 14px; line-height: 1.4; min-height: 2.8em; }
.ss-pcard__title:hover { color: var(--ss-brand, #8a7f3d); }
.ss-pcard__price { padding: 0 13px 12px; color: var(--ss-accent, #e23b2e); font-weight: 700; font-size: 15px; }
.ss-pcard__price del { color: #aaa; font-weight: 400; font-size: 13px; margin-right: 4px; }
.ss-pcard__cta { margin-top: auto; text-align: center; padding: 11px; background: var(--ss-brand, #8a7f3d); color: #fff; text-decoration: none; font-weight: 600; font-size: 13.5px; transition: filter .15s; }
.ss-pcard__cta:hover { filter: brightness(.92); color: #fff; }

/* ===== Shop / product archive (woocommerce/archive-product.php) ===== */
.ss-shop { padding: 30px 0 0; }  /* bottom = 0 → เส้น .ss-shop__sep + SHOP BY BRAND (margin ของมันเอง) เว้นระยะพอดี */
.ss-shop__wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ss-shop .woocommerce-breadcrumb { font-size: 13px; color: #999; margin-bottom: 14px; }
.ss-shop .woocommerce-breadcrumb a { color: var(--ss-brand, #8a7f3d); text-decoration: none; }
.ss-shop__cols { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.ss-shop__side { position: sticky; top: 84px; z-index: 40; }        /* z-index กัน flyout submenu โดน content บัง */
.ss-shop__main { min-width: 0; position: relative; z-index: 1; }
.ss-shop__title { font-size: 26px; font-weight: 800; color: var(--ss-ink, #222); margin: 0 0 12px; border-left: 5px solid var(--ss-brand, #8a7f3d); padding-left: 13px; line-height: 1.3; }
.ss-shop__desc { color: #666; font-size: 15px; line-height: 1.85; margin: 0 0 18px; border-bottom: 1px solid #eee; padding-bottom: 16px; }
.ss-shop__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ss-shop__toolbar .woocommerce-result-count { margin: 0; color: #888; font-size: 13.5px; }
.ss-shop__toolbar .woocommerce-ordering { margin: 0; }
.ss-shop__toolbar select { padding: 7px 10px; border: 1px solid #e2e2e2; border-radius: 7px; font: inherit; }
.ss-shop ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 !important; padding: 0 !important; list-style: none; }
.ss-shop ul.products::before, .ss-shop ul.products::after { content: none !important; display: none !important; }
.ss-shop ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; clear: none !important; padding: 0 !important; }
.ss-shop nav.woocommerce-pagination { margin-top: 30px; }
.ss-shop nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; border: 0; margin: 0; padding: 0; }
.ss-shop nav.woocommerce-pagination ul li { border: 0; margin: 0; overflow: visible; }
.ss-shop nav.woocommerce-pagination a, .ss-shop nav.woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid #e2e2e2; border-radius: 8px; font-weight: 600; color: var(--ss-ink, #333); text-decoration: none; background: #fff; }
.ss-shop nav.woocommerce-pagination .current { background: var(--ss-brand, #8a7f3d); border-color: var(--ss-brand, #8a7f3d); color: #fff; }
.ss-shop .ss-catnav--mobile-only { display: none; margin: 0 0 18px; }  /* ตัด margin-top 44px ของ .ss-catnav (ตั้งไว้สำหรับ home) → gap พอดีบน shop */
@media (max-width: 980px) {
	.ss-shop__cols { grid-template-columns: 1fr; }
	.ss-shop__side { display: none; }
	.ss-shop .ss-catnav--mobile-only { display: block; }
}
@media (max-width: 700px) { .ss-shop ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ===== SHOP BY BRAND (component · home + shop archive) ===== */
.ss-brands { margin: 44px 0; }
.ss-brands__title { font-size: 20px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ss-ink, #222); margin: 0 0 22px; position: relative; padding: 0 0 12px 14px; border-bottom: 2px solid #ededed; }
.ss-brands__title::before { content: ""; position: absolute; left: 0; top: 3px; width: 5px; height: 20px; border-radius: 3px; background: var(--ss-brand, #8a7f3d); }
.ss-brands__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ss-brand { display: flex; align-items: center; justify-content: center; padding: 14px 10px; background: #fff; border-radius: 6px; transition: transform .15s, box-shadow .15s; }
.ss-brand img { max-width: 100%; max-height: 42px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .15s, opacity .15s; }
.ss-brand:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.ss-brand:hover img { filter: none; opacity: 1; }
.ss-brand--nolink { cursor: default; }
/* SHOP BY BRAND = full-width (ท้ายหน้า) · เส้นคั่น .ss-shop__sep อยู่ในคอลัมน์สินค้า (align สินค้า ไม่เลยขอบ sidebar) */
.ss-shop__sep { border: 0; border-top: 1px solid #f0f0f0; height: 0; margin: 30px 0 0; }
.ss-shop-brands__wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 24px; }
@media (max-width: 980px) { .ss-brands__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .ss-brands__grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Single product (woocommerce/single-product.php · .ss-singlep) ===== */
.ss-singlep div.product { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 26px 34px; align-items: start; margin: 0; }
.ss-singlep div.product::before, .ss-singlep div.product::after { content: none !important; display: none !important; }
.ss-singlep div.product > input, .ss-singlep div.product > script, .ss-singlep div.product > .clear { display: none !important; }
/* gallery */
.ss-singlep div.product > .images { grid-column: 1; width: auto !important; float: none !important; margin: 0 !important; opacity: 1 !important; }
.ss-singlep div.product .images img { max-width: 100%; height: auto; border-radius: 10px; }
.ss-singlep div.product .woocommerce-product-gallery__image, .ss-singlep div.product .yith_magnifier_zoom_wrap { width: 100% !important; }
.ss-singlep div.product .woocommerce-main-image { display: block; }
.ss-singlep div.product .thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ss-singlep div.product .thumbnails img { width: 72px; height: auto; border: 1px solid #eee; border-radius: 6px; }
/* summary */
.ss-singlep div.product > .summary { grid-column: 2; width: auto !important; float: none !important; margin: 0 !important; }
.ss-singlep .summary .product_title { font-size: 23px; font-weight: 800; line-height: 1.35; color: var(--ss-ink, #222); margin: 0 0 12px; text-transform: none; }
.ss-singlep .summary .woocommerce-product-details__short-description { color: #555; font-size: 15px; line-height: 1.85; margin: 0 0 14px; }
.ss-singlep .summary .price { color: var(--ss-accent, #e23b2e); font-size: 25px; font-weight: 800; margin: 0 0 16px; display: block; }
.ss-singlep .summary .price del { color: #aaa; font-weight: 400; font-size: 16px; margin-right: 8px; }
.ss-singlep .summary .price ins { text-decoration: none; }
.ss-singlep .summary .ss-contact-cta { margin: 2px 0 16px; }
.ss-singlep .summary .ss-contact-btn { display: block; text-align: center; background: var(--ss-brand, #8a7f3d); font-size: 16px; padding: 14px; border-radius: 8px; }
.ss-singlep .summary .ss-contact-btn:hover { filter: brightness(.93); }
.ss-singlep .summary .product_meta { font-size: 13.5px; color: #888; border-top: 1px solid #eee; padding-top: 14px; margin-top: 6px; line-height: 1.9; }
.ss-singlep .summary .product_meta a { color: var(--ss-brand, #8a7f3d); text-decoration: none; }
.ss-singlep .summary .product_meta a:hover { text-decoration: underline; }
/* share */
.ss-pshare { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ss-pshare__label { font-size: 13.5px; color: #666; font-weight: 600; }
.ss-pshare__btn { color: #fff !important; text-decoration: none; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 6px; transition: filter .15s; }
.ss-pshare__btn:hover { filter: brightness(.9); color: #fff; }
.ss-pshare__btn--fb { background: #1877f2; }
.ss-pshare__btn--x { background: #111; }
.ss-pshare__btn--line { background: var(--ss-line, #06c755); }
/* tabs */
.ss-singlep div.product > .woocommerce-tabs { grid-column: 1 / -1; margin-top: 22px; }
.ss-singlep .woocommerce-tabs ul.tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid #eee; }
.ss-singlep .woocommerce-tabs ul.tabs::before, .ss-singlep .woocommerce-tabs ul.tabs::after { display: none; content: none; }
.ss-singlep .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.ss-singlep .woocommerce-tabs ul.tabs li::before, .ss-singlep .woocommerce-tabs ul.tabs li::after { display: none; content: none; }
.ss-singlep .woocommerce-tabs ul.tabs li a { display: block; padding: 11px 20px; color: #666; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.ss-singlep .woocommerce-tabs ul.tabs li.active a { color: var(--ss-brand, #8a7f3d); border-bottom-color: var(--ss-brand, #8a7f3d); }
.ss-singlep .woocommerce-tabs .panel { padding-top: 20px; color: #444; line-height: 1.9; font-size: 15px; }
.ss-singlep .woocommerce-tabs .panel h2 { font-size: 20px; color: var(--ss-ink, #222); }
/* related */
.ss-singlep div.product > .related.products { grid-column: 1 / -1; margin-top: 38px; border-top: 1px solid #eee; padding-top: 26px; }
.ss-singlep .related.products > h2 { font-size: 20px; font-weight: 800; color: var(--ss-ink, #222); margin: 0 0 18px; border-left: 5px solid var(--ss-brand, #8a7f3d); padding-left: 12px; }
.ss-singlep .related.products ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 !important; padding: 0 !important; list-style: none; }
.ss-singlep .related.products ul.products::before, .ss-singlep .related.products ul.products::after { content: none !important; display: none !important; }
.ss-singlep .related.products ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
@media (max-width: 980px) { .ss-singlep .related.products ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
	.ss-singlep div.product { grid-template-columns: 1fr; }
	.ss-singlep div.product > .summary { grid-column: 1; }
	.ss-singlep .related.products ul.products { grid-template-columns: repeat(2, 1fr); }
}
/* หมวดหมู่ (mobile) — เหนือ SHOP BY BRAND (full-width · หน้า single) */
.ss-singlep__catnav { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ss-singlep__catnav .ss-catnav--mobile-only { display: none; margin: 32px 0 14px; }
@media (max-width: 980px) { .ss-singlep__catnav .ss-catnav--mobile-only { display: block; } }

/* ---- woo-search-box live dropdown: บังคับฟอนต์ธีม (plugin render นอก .ss-site จึงไม่ได้ฟอนต์) ---- */
.guaven_woos_suggestion,
.guaven_woos_suggestion *,
.guaven_woos_final_results,
.guaven_woos_final_results * {
	font-family: "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

/* ---- woo-search-box dropdown: สีชื่อสินค้า = แบรนด์ทอง #897C4F · hover = navy เดิม #333366 ---- */
.guaven_woos_suggestion a,
.guaven_woos_final_results a {
	color: #897C4F !important;
}
.guaven_woos_suggestion a:hover,
.guaven_woos_suggestion a:focus,
.guaven_woos_final_results a:hover,
.guaven_woos_final_results a:focus {
	color: #333366 !important;
}

/* ---- Single product · tab content: heading ใน tab ใหญ่เกิน (เช่น ลิงก์ดาวน์โหลดที่ถูกใส่ใน h3) → ขนาดพอดี ---- */
.ss-singlep .woocommerce-Tabs-panel h3 {
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.6;
	margin: 0 0 8px;
}
.ss-singlep .woocommerce-Tabs-panel h3 a { font-weight: 600; }

/* ---- Single product · Mobile: ยุบเป็น 1 คอลัมน์ + คุม YITH gallery ไม่ให้ล้นขอบ (overflow bug) ---- */
@media (max-width: 768px) {
	.ss-singlep div.product { grid-template-columns: minmax(0, 1fr) !important; }
	.ss-singlep div.product > .images,
	.ss-singlep div.product > .summary { grid-column: 1 / -1 !important; min-width: 0 !important; max-width: 100% !important; }
	.ss-singlep div.product .images,
	.ss-singlep div.product .woocommerce-product-gallery__image,
	.ss-singlep div.product .yith_magnifier_zoom_wrap { overflow: hidden !important; max-width: 100% !important; }
	.ss-singlep div.product .yith_magnifier_zoom_wrap { position: relative !important; }
	.ss-singlep div.product .yith_magnifier_loading { max-width: 100% !important; }
	.ss-singlep div.product .thumbnails { max-width: 100% !important; overflow: hidden !important; }
	.ss-singlep div.product .images img,
	.ss-singlep div.product .attachment-shop_single { width: auto !important; max-width: 100% !important; height: auto !important; }
}

/* ---- Single product · tab video responsive 16:9 (จาก iframe fixed width ที่ล้น) ---- */
.ss-singlep .woocommerce-Tabs-panel iframe {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 8px;
}
/* ---- Single product · Mobile tabs: grid 2 คอลัมน์ (pill) เห็นครบ 4 tab · ไม่ scroll/ไม่ถูกตัด ---- */
@media (max-width: 768px) {
	.ss-singlep .woocommerce-tabs ul.tabs {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 6px !important;
		border-bottom: 0 !important;
		overflow: visible !important;
	}
	.ss-singlep .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
	.ss-singlep .woocommerce-tabs ul.tabs li::before,
	.ss-singlep .woocommerce-tabs ul.tabs li::after { display: none !important; content: none !important; box-shadow: none !important; }
	.ss-singlep .woocommerce-tabs ul.tabs li a {
		display: block !important;
		text-align: center !important;
		white-space: normal !important;
		padding: 11px 8px !important;
		font-size: 14px !important;
		background: #f4f4f4 !important;
		border-radius: 8px !important;
		border-bottom: 0 !important;
		color: #555 !important;
	}
	.ss-singlep .woocommerce-tabs ul.tabs li.active a {
		background: var(--ss-brand, #8a7f3d) !important;
		color: #fff !important;
	}
}
