/* Explicit sizes are essential: the fallback Hello header otherwise uses the
   1040px source logo and the recovered homepage has no layout stylesheet. */
body { background: #fafafa; color: #2d3748; font-family: Kanit, sans-serif; }
.fh-contact-strip { background: #1a1a1a; color: #fff; font-size: 13px; }
.fh-contact-inner { max-width: 1200px; margin: auto; padding: 8px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fh-contact-inner a { color: #fff; text-decoration: none; }
#site-header.site-header { width: 100%; max-width: none; padding: 0; background: #fff; border-bottom: 1px solid #eee; z-index: 30; }
#site-header .header-inner { width: 100%; max-width: 1200px; min-height: 76px; margin: auto; padding: 12px 24px; align-items: center; flex-wrap: nowrap; gap: 24px; box-sizing: border-box; }
#site-header .site-branding { flex: 0 0 160px; max-width: 160px; }
#site-header .custom-logo { display: block; width: 160px; max-width: 100%; height: auto; }
#site-header .site-navigation { margin-left: auto; }
#site-header .site-navigation > .menu { flex-wrap: nowrap; align-items: center; margin: 0; gap: 2px; }
#site-header .site-navigation .menu > li > a { padding: 10px 9px; color: #222; font-size: 14px; white-space: nowrap; }
#site-header .site-navigation .menu > li.current-menu-item > a { color: #6b5600; }
#site-header .site-navigation .menu > li > a:hover { background: #faf7d8; }
#site-header .site-navigation .menu > li.menu-item-has-children { padding-inline-end: 8px; }
#site-header .site-navigation .menu > li.menu-item-has-children::after { font-size: 14px; }
#site-header .site-navigation .sub-menu { min-width: 220px; border-top: 3px solid #ebe51a; box-shadow: 0 6px 18px #0002; }
#site-header a:focus-visible, .fh-contact-strip a:focus-visible { outline: 2px solid #9b7900; outline-offset: 3px; }

.home #content.site-main { max-width: none; width: 100%; padding: 0; }
.home .page-content > p:empty { display: none; }
.fhc { width: 100%; max-width: 1200px; padding: 0 24px; margin: 0 auto; box-sizing: border-box; }
.fhc > p:empty, .fh-head > p:empty, .fh-card > p:empty, .fh-ch-card > p:empty { display: none; }
.fh-hero { position: relative; width: 100%; height: 480px; overflow: hidden; background: #222; }
.fh-hero .fhHeroSwiper, .fh-hero .swiper-wrapper, .fh-hero .swiper-slide { width: 100%; height: 100%; }
.fh-hero .swiper-wrapper { position: relative; }
.fh-hero .swiper-slide { position: absolute; inset: 0; display: none; }
.fh-hero .swiper-slide:first-child, .fh-hero .swiper-slide.fh-slide-active { display: block; }
.fh-hero .swiper-slide[hidden] { display: none; }
.fh-hero .swiper-slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); }
.fh-hero .swiper-wrapper > p { display: none; }
.fh-hero-box { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: calc(100% - 120px); max-width: 640px; text-align: center; color: #fff; }
.fh-hero-box h3 { font-size: 18px; color: #fff; margin: 0 0 12px; }
.fh-hero-box h1 { font-size: clamp(28px, 4vw, 42px); color: #fff; margin: 0 0 18px; font-weight: 800; letter-spacing: 1px; }
.fh-hero-box p { font-size: 15px; line-height: 1.7; margin: 0 0 24px; color: #fff; }
.fh-hero-box p:empty { display: none; }
.fh-btn-g { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.fh-btn-g br { display: none; }
.fh-btn { display: inline-block; padding: 11px 28px; text-decoration: none !important; font-size: 15px; font-weight: 600; border: 1px solid transparent; border-radius: 6px; box-shadow: 0 4px 12px #0002; }
.fh-btn-d { background: #222; color: #fff !important; border-color: #fff6; }
.fh-btn-y { background: #f5ed1e; color: #111 !important; }
.fh-hero .fh-slide-control { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 38px; height: 48px; padding: 0; border: 1px solid #fff8; background: #0005; color: #fff; border-radius: 0; font: 30px/1 sans-serif; cursor: pointer; }
.fh-hero .fh-slide-prev { left: 16px; }
.fh-hero .fh-slide-next { right: 16px; }
.fh-hero .fh-slide-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; z-index: 3; }
.fh-slide-dots button { width: 26px; height: 26px; padding: 7px; border: 0; background: transparent; cursor: pointer; }
.fh-slide-dots button::before { content: ''; display: block; width: 12px; height: 12px; border: 1px solid #fff; border-radius: 50%; background: #ffffff55; }
.fh-slide-dots button[aria-pressed="true"]::before { background: #f5ed1e; border-color: #f5ed1e; }
.fh-hero button:focus-visible, .fh-btn:focus-visible { outline: 3px solid #f5ed1e; outline-offset: 3px; }
.fh-sec, .fh-sec-g, .fh-sec-grad { padding: 55px 0; }
.fh-sec-g { background: #f8fafc; border-block: 1px solid #e2e8f0; }
.fh-sec-grad { background: linear-gradient(180deg, #f8fafc, #eff6ff); }
.fh-head { text-align: center; margin-bottom: 35px; }
.fh-head .sub { font-size: 13px; line-height: 1.8; color: #64748b; margin-bottom: 8px; }
.fh-head .main { font-size: 28px; color: #222; margin: 0; }
.fh-head .bar { width: 50px; height: 3px; background: #e8c204; margin: 14px auto 0; }
.fh-about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.fh-about-grid img { width: 100%; max-width: 100%; height: auto; }
.fh-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.fh-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fh-grid-4 > p:empty, .fh-grid-3 > p:empty { display: none; }
.fh-card, .fh-ch-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 4px 15px #0000000a; text-align: center; overflow: hidden; min-width: 0; }
.fh-card img { display: block; width: 100%; height: 210px; object-fit: cover; }
.fh-card h3 { font-size: 16px; line-height: 1.65; padding: 16px 12px; margin: 0; color: #222; }
.fh-cta { background: #1e293b; color: #fff; padding: 36px 0; }
.fh-cta-flex { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.fh-cta h2 { font-size: 26px; color: #f5ed1e; margin: 0 0 10px; }
.fh-cta p { color: #cbd5e1; margin: 0; font-size: 15px; }
.fh-ch-card { padding-bottom: 18px; }
.fh-ch-card img { display: block; width: 100%; height: 190px; object-fit: contain; padding: 15px; box-sizing: border-box; }
.fh-ch-card h3 { font-size: 16px; line-height: 1.7; margin: 12px; }
.fh-ch-card h3 a { color: #222; text-decoration: none; overflow-wrap: anywhere; }
.fh-ch-card p { font-size: 14px; color: #555; margin: 10px; }
.fh-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fh-gallery-grid p { display: contents; }
.fh-gallery-grid br { display: none; }
.fh-gallery-grid img { display: block; width: 100%; height: 240px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 12px #0000000f; }
.fh-product-sec .woocommerce ul.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.fh-product-sec .woocommerce ul.products::before, .fh-product-sec .woocommerce ul.products::after { display: none; }
.fh-product-sec .woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none; padding: 15px; border: 1px solid #eaeaea; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px #00000008; display: flex; flex-direction: column; justify-content: space-between; text-align: center; }
.fh-product-sec .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; line-height: 1.65; color: #222; }

.fh-contact-inner { align-items: center; }
.fh-contact-social { display: flex; gap: 14px; margin-left: auto; }
.fh-contact-social img { display: block; width: 26px; height: 26px; object-fit: contain; }
.fh-home-product-link { background: #f5ed1e !important; color: #1e293b !important; border-radius: 5px !important; font-size: 13px !important; line-height: 1.5 !important; }
.fh-home-product-link:focus-visible { outline: 3px solid #806600; outline-offset: 3px; }
.fh-floating-widget { position: fixed; bottom: 25px; right: 25px; z-index: 9999; font-family: Kanit, sans-serif; }
.fh-widget-trigger { display: flex; align-items: center; gap: 9px; background: #1e293b; color: #fff; padding: 11px 20px; border: 0; border-radius: 30px; box-shadow: 0 4px 20px #0003; font: 600 14px/1.5 Kanit, sans-serif; cursor: pointer; }
.fh-widget-trigger:hover, .fh-widget-trigger:focus { background: #334155; color: #fff; }
.fh-widget-dot { width: 10px; height: 10px; background: #22c55e; border-radius: 50%; }
.fh-widget-popup { position: absolute; bottom: 58px; right: 0; width: min(290px, calc(100vw - 32px)); background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 8px 30px #0003; overflow: hidden; }
.fh-widget-popup[hidden] { display: none; }
.fh-widget-header { display: flex; align-items: center; justify-content: space-between; background: #1e293b; padding: 8px 12px 8px 16px; gap: 8px; }
.fh-widget-header h2 { font-size: 14px; color: #fff; margin: 0; line-height: 1.5; }
.fh-widget-header button { color: #fff; background: transparent; border: 0; padding: 4px; min-width: 32px; min-height: 32px; font-size: 24px; cursor: pointer; }
.fh-widget-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fh-widget-body p { font-size: 12px; color: #64748b; margin: 0; }
.fh-widget-item { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 8px; color: #fff !important; text-decoration: none !important; }
.fh-widget-item strong { font-size: 13px; }
.fh-widget-item span { font-size: 11px; }
.fh-widget-item.line { background: #06a84b; }
.fh-widget-item.phone { background: #e8471a; }
.fh-widget-item.fb { background: #0072dd; }
.fh-floating-widget :focus-visible { outline: 3px solid #e8c204; outline-offset: -3px; }
@media (max-width: 600px) {
    .fh-contact-inner > a[href^="mailto"] { display: none; }
    .fh-floating-widget { bottom: 18px; right: 16px; }
}

@media (max-width: 1100px) {
    #site-header .header-inner { gap: 16px; }
    #site-header .site-branding { flex-basis: 160px; max-width: 160px; }
    #site-header .site-navigation .menu > li > a { padding-inline: 7px; font-size: 13px; }
}
@media (max-width: 992px) {
    #site-header .header-inner { min-height: 76px; }
    #site-header .site-navigation-toggle-holder { display: flex !important; margin-left: auto; padding: 0; }
    #site-header .site-navigation-dropdown { top: 100%; bottom: auto; left: 0; margin: 0; }
    #site-header .site-navigation-dropdown > .menu { max-height: calc(100dvh - 120px); overflow-y: auto; box-shadow: 0 8px 16px #0002; }
    #site-header .site-navigation-dropdown ul.menu li a { padding: 12px 24px; }
    #site-header .site-navigation-dropdown ul.menu li.menu-item-has-children > a { padding-right: 66px; }
    #site-header .fh-submenu-toggle { position: absolute; top: 4px; right: 14px; width: 42px; height: 42px; border: 1px solid #ddd; background: #fff; color: #222; font-size: 22px; padding: 0; cursor: pointer; }
    #site-header .fh-submenu-toggle[aria-expanded="true"] { background: #f5f0ba; }
    #site-header .site-navigation-dropdown ul.menu li.current-menu-item > a { background: #f5f0ba; color: #222; }
    .fh-product-sec .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .fh-contact-inner { padding-inline: 18px; gap: 6px 16px; font-size: 12px; }
    #site-header .header-inner { padding-inline: 18px; }
    .fhc { padding: 0 18px; }
    .fh-hero { height: 410px; }
    .fh-hero-box { width: calc(100% - 78px); }
    .fh-hero-box h3 { font-size: 17px; }
    .fh-hero-box h1 { font-size: 28px; }
    .fh-hero-box p { font-size: 14px; line-height: 1.8; }
    .fh-hero .fh-slide-control { width: 28px; height: 40px; }
    .fh-hero .fh-slide-prev { left: 5px; }
    .fh-hero .fh-slide-next { right: 5px; }
    .fh-btn { padding: 10px 20px; font-size: 14px; }
    .fh-btn-g { gap: 10px; }
    .fh-sec, .fh-sec-g, .fh-sec-grad { padding: 36px 0; }
    .fh-about-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .fh-about-grid > div:first-child { text-align: center; }
    .fh-about-grid img { max-width: 280px; }
    .fh-grid-4, .fh-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .fh-card img { height: 160px; }
    .fh-card h3 { font-size: 14px; }
    .fh-grid-3 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .fh-cta-flex { flex-direction: column; text-align: center; }
    .fh-gallery-grid img { height: 170px; }
    .fh-product-sec .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
