/* ==========================================================================
   SIRIPHAT PRINTING — site-final.css  (โหลดเป็นไฟล์สุดท้าย)
   แถบบนสุดและ footer กรมท่าเข้ม · hero เนื้อหาและเมนูสว่าง · สีหลักตามโลโก้ · Messenger เป็นปุ่มหลัก / LINE เป็นปุ่มรอง
   ซ่อนส่วนที่ยังไม่มีเนื้อหาจริง · ปุ่มกลับขึ้นบน / ข้อความแจ้งเตือน (ย้ายมาจาก chat.css / quote.css)
   ========================================================================== */
[hidden] { display: none !important; }

/* --- สีหลักตามโลโก้ (ฟ้า cyan #18a0db) : ปุ่ม/ลิงก์ใช้เฉดเข้มขึ้นให้ตัวหนังสืออ่านง่าย --- */
:root {
  --c-primary: #18a0db;
  --c-primary-hover: #1283b8;
  --c-sky: #18a0db;
  --c-tint: #e8f6fd;
  --c-tint-2: #f3fafe;
  --c-line: #d5e6f0;
}

/* --- แถบบนสุดกรมท่าเข้ม / เมนูพื้นขาว ตัวหนังสือกรมท่า (คงหน้าตาเดิม) --- */
.topbar { background: #123a78; color: #fff; }
.topbar__item svg { opacity: 1; }
.main-nav__link:hover,.main-nav__link.is-active { color: #18a0db; }
.main-nav__link::after { background: #18a0db; }

/* --- Hero สว่าง: ไล่จากขาวเป็นฟ้าอ่อน ตัวเน้นใช้ฟ้าโลโก้ --- */
.hero.hero--type { background: radial-gradient(ellipse at 50% 30%, #fff 8%, #e8f6fd 58%, #dcedf8 100%); border-bottom: 0; }
.hero--type .hero-type__eyebrow { color: #3d5470; }
.hero--type .hero-type__eyebrow > span { background: #18a0db; box-shadow: 0 0 0 5px rgba(8,168,232,.16); }
.hero--type .hero-type__accent { background: linear-gradient(110deg, #18a0db 10%, #18a0db 90%); -webkit-background-clip: text; background-clip: text; }
.hero--type .hero-type__accent > svg { stroke: #7fd3f5; }
.hero--type .hero-type__orbit { border-color: rgba(8,120,170,.12); }
/* --- ปุ่มติดต่อ: Messenger = น้ำเงิน · LINE = เขียว ตัวหนังสือขาวทุกปุ่ม --- */
.site-header__cta { box-shadow: none; }
.hero--type .hero-type__messenger { border-color: #18a0db; background: #18a0db; color: #fff; box-shadow: 0 8px 20px rgba(24,160,219,.28); }
.hero--type .hero-type__messenger:hover { border-color: #1283b8; background: #1283b8; color: #fff; }
.hero--type .hero-type__messenger > svg { color: #fff; }
.hero--type .hero-type__line { border: 1.5px solid #06c755; background: #06c755; color: #fff; box-shadow: 0 8px 20px rgba(6,199,85,.25); }
.hero--type .hero-type__line:hover { border-color: #05a948; background: #05a948; color: #fff; }
.hero--type .hero-type__line > svg { color: #fff; }
.product-showcase__top .btn--primary { border-color: #18a0db; background: #18a0db; }
.product-showcase__top .btn--primary:hover { border-color: #1283b8; background: #1283b8; }
#services .prod__cta .btn--line,.product-showcase__top .btn--line { border: 1.5px solid #06c755; background: #06c755; color: #fff; }
#services .prod__cta .btn--line:hover,.product-showcase__top .btn--line:hover { border-color: #05a948; background: #05a948; color: #fff; }


/* --- จัดส่งทั่วประเทศ: แบนเนอร์เต็มความกว้างหน้าจอ ไม่มีมุมโค้ง รูปเป็นพื้นหลัง ข้อความอยู่ซ้ายบนพื้นสว่างของรูป --- */
#shipping.section--tight { padding-block: 0; background: #e8f6fd; }
#shipping .container { max-width: none; padding-inline: 0; }
.sh { position: relative; display: grid; align-items: center; min-height: 400px; overflow: hidden; border-radius: 0; background: #e8f6fd; }
.sh__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.sh__body { position: relative; z-index: 1; width: 46%; max-width: 620px; padding: 48px 0 48px max(24px, calc((100vw - 1200px) / 2 + 24px)); }
.sh__title { margin: 0 0 10px; color: #0b2a5b; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.3; }
.sh__lead { margin: 0 0 20px; color: #3d5a75; font-size: 16px; line-height: 1.75; }
.sh__facts { display: grid; gap: 10px; margin: 0 0 26px; }
.sh__facts li { display: flex; align-items: center; gap: 12px; color: #0b2a5b; font-size: 16px; line-height: 1.4; }
.sh__facts b { font-weight: 700; }
.sh__facts small { margin-left: 8px; color: #52708a; font-size: 14px; }
.sh__ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--c-primary); box-shadow: 0 2px 8px rgba(11,42,91,.14); }
.sh__ico svg { width: 18px; height: 18px; }
@media (max-width: 1023px) { .sh__body { width: 58%; max-width: none; padding-left: 28px; } }
@media (max-width: 767px) {
  .sh { display: block; min-height: 0; background: #fff; }
  .sh__img { position: static; height: auto; aspect-ratio: 16 / 9; object-position: 78% center; }
  .sh__body { width: auto; max-width: none; padding: 26px 22px 30px; }
}
/* --- ปุ่มกลับขึ้นบน / ข้อความแจ้งเตือน --- */
.back-top {
  position: fixed; right: 22px; bottom: 24px; z-index: 110;
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--c-line); border-radius: 50%;
  background: #fff; color: var(--c-primary); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.back-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.back-top svg { width: 18px; height: 18px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 400;
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--c-navy); color: #fff; font-size: 15px;
  opacity: 0; pointer-events: none; transform: translate(-50%, 12px);
  transition: opacity .25s, transform .25s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 767px) {
  .back-top { right: 14px; bottom: 20px; width: 42px; height: 42px; }
}

/* --- รูปสินค้า: กรอบสี่เหลี่ยมจัตุรัส 1:1 ขนาดเท่ากันทุกสินค้า (ข้อความฝั่งขวาสูงแค่ไหนก็ไม่ทำให้กรอบเปลี่ยน) --- */
@media (min-width: 1025px) {
  .product-showcase__top { align-items: stretch; }
  .product-gallery--showcase { align-self: start; aspect-ratio: 1 / 1; }
  .product-gallery--showcase .product-gallery__main { flex: none; width: 100%; height: 100%; min-height: 0; aspect-ratio: 1 / 1; }
  .product-gallery--showcase .gallery-media, .product-gallery--showcase .gallery-crop { aspect-ratio: 1 / 1; height: 100%; }
  .product-showcase__top > .prod__body { min-height: 0; }
}
/* --- ตัวอย่างงาน: ช่องสี่เหลี่ยมจัตุรัส ใส่รูปแล้วกดขยายได้ --- */
.product-sample-slot { aspect-ratio: 1 / 1; min-height: 0; }
.product-sample-slot.has-img { position: relative; display: block; overflow: hidden; padding: 0; border: 1px solid #dbe8ef; border-style: solid; background: #fff; cursor: zoom-in; }
.product-sample-slot.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.product-sample-slot.has-img:hover img { transform: scale(1.05); }
.product-sample-slot.has-img .slot-cap, .product-sample-slot.has-img > svg { display: none; }
.product-sample-slot.has-img::after { content: "ขยายดู"; position: absolute; right: 8px; bottom: 8px; padding: 3px 10px; background: rgba(255,255,255,.92); color: #0b2a5b; font-size: 14px; font-weight: 700; opacity: 0; transition: opacity .2s; }
.product-sample-slot.has-img:hover::after, .product-sample-slot.has-img:focus-visible::after { opacity: 1; }
.product-lightbox__nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 56px; margin-top: -28px; border: 0; background: rgba(11,42,91,.75); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.product-lightbox__nav:hover { background: rgba(11,42,91,.95); }
.product-lightbox__nav--prev { left: 12px; }
.product-lightbox__nav--next { right: 12px; }
.product-lightbox img { display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; margin: 0 auto; object-fit: contain; }

/* --- มือถือ: ตัวอย่างงานเรียง 2 รูปต่อ 1 แถว --- */
@media (max-width: 767px) {
  .product-showcase__samples-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: visible; }
}
/* --- วงกลมสีกระดาษ (จำนวนชั้น) --- */
.spec-dots { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; vertical-align: middle; }
.spec-dots i { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--dot); border: 1px solid rgba(11, 42, 91, .28); }dd > .spec-dots:first-child { margin-left: 0; }

/* --- หมวดที่ยังไม่มีรูปหลัก: กรอบรูปว่าง --- */
.product-gallery__main--empty { cursor: default; }
.gallery-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #6b7c8c; background: #e8f6fd; }
.gallery-empty svg { width: 44px; height: 44px; color: #18a0db; }
.gallery-empty strong { font-size: 16px; font-weight: 700; }

/* --- การ์ดสินค้า: ลดสีฟ้าตัวหนังสือ ใช้โทนกลางแทน (เหลือฟ้าเฉพาะปุ่ม Messenger) --- */
.product-showcase__top .prod__sub { color: #3d5470; font-weight: 600; }
.product-showcase__top .product-specs dt { color: #3d5470; }
.product-showcase__top .prod__tag { border-color: #dbe3ea; color: #3d5470; background: #f4f6f8; }
.product-showcase__samples-head span { color: #6b7c8c; }
.product-sample-slot svg { color: #9aa9b6; }
.spec-dots i { border-color: rgba(31, 42, 55, .25); }
/* --- "ขอบคุณลูกค้า" สีพื้นเดียวกับ Footer + เส้นคั่นระหว่างส่วน --- */
#clients { background: var(--c-tint); border-top: 1px solid var(--c-line); }
.ft { border-top: 1px solid var(--c-line); }
/* --- มือถือ/แท็บเล็ต: กรอบรูปสินค้าเป็นสี่เหลี่ยมจัตุรัส ตรงกับรูป 1:1 (ไม่มีแถบสีข้างรูป) --- */
@media (max-width: 1024px) {
  .product-gallery--showcase { aspect-ratio: 1 / 1; }
  .product-gallery--showcase .product-gallery__main { flex: none; width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1; }
  .product-gallery--showcase .gallery-media, .product-gallery--showcase .gallery-crop { aspect-ratio: 1 / 1; height: 100%; }
  .product-gallery--showcase .gallery-media img.gallery-photo { object-fit: cover; }
}
/* --- ปุ่มทั้งหมด: ไม่มีเงา --- */
.btn, .btn:hover, .btn:focus-visible, .site-header__cta, .site-header__cta:hover,
.hero--type .hero-type__messenger, .hero--type .hero-type__messenger:hover,
.hero--type .hero-type__line, .hero--type .hero-type__line:hover { box-shadow: none !important; }

/* --- แสงปาดผ่านปุ่มหลัก (Messenger / LINE / ปุ่มสีทึบ) --- */
.btn--primary, .btn--msg, .btn--line, .hero--type .hero-type__messenger, .hero--type .hero-type__line {
  position: relative; overflow: hidden; isolation: isolate;
}
.btn--primary::after, .btn--msg::after, .btn--line::after,
.hero--type .hero-type__messenger::after, .hero--type .hero-type__line::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.4) 50%, transparent 100%);
  transform: translateX(-130%) skewX(-20deg);
  animation: btn-shine 8s ease-in-out infinite;
}
.btn:hover::after { animation-duration: 4s; }
@keyframes btn-shine {
  0%, 70% { transform: translateX(-130%) skewX(-20deg); }
  100%    { transform: translateX(330%) skewX(-20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn::after { animation: none !important; display: none; }
}

/* --- มือถือ: ให้ลิงก์เบอร์โทรบนแถบบนกดง่าย (พื้นที่แตะอย่างน้อย 44px) --- */
@media (max-width: 767px) {
  a.topbar__item { min-height: 44px; padding: 0 12px; }
  .topbar { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
