
:root {
  --s-blue:  #1a5fc8;
  --s-blue2: #2979ff;
  --s-navy:  #0d2352;
  --s-txt:   #1a2a3a;
  --s-mute:  #64748b;
  --s-off:   #f8fafc;
  --s-light: #e8f2ff;
}

/* SCROLL LOCK — กันหน้าเว็บเลื่อนด้วยเม้าทะลุไปด้านหลังตอนเปิด popup ใดๆ */
html.modal-scroll-lock,
body.modal-scroll-lock {
  overflow: hidden !important;
  height: 100%;
}

@keyframes shFadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

/* BREADCRUMB */
.bc-wrap { background:#fff; border-bottom:1px solid #e5eef8; padding:14px 0; }
.bc-inner { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--s-mute); }
.bc-inner a { color:var(--s-blue); text-decoration:none; }
.bc-inner .sep { color:#cbd5e1; }

/* SECTION TITLES */
.sol-section { padding:40px 0; }
.sol-section.alt { background:var(--s-off); }
.sol-tag {
  display:inline-block; background:var(--s-light); color:var(--s-blue);
  font-size:.72rem; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  padding:4px 12px; border-radius:20px; margin-bottom:14px;
}
.sol-title {
  font-size:clamp(1.5rem,2.5vw,2rem); font-weight:800;
  color:var(--s-navy); margin-bottom:12px;
}
.sol-title-sub {
  font-size:clamp(1.1rem,1.8vw,1.35rem); font-weight:700;
  color:var(--s-blue); margin-bottom:14px;
}
.sol-sub { font-size:.92rem; color:var(--s-mute); line-height:1.8; }

/* PRODUCT TABS (หน้า product.php) */
.prod-tabs {
  display:flex; gap:8px; flex-wrap:wrap; justify-content:center;
  border-bottom:1px solid #e8edf5; margin-bottom:44px;
}
.prod-tab-btn {
  background:none; border:none; cursor:pointer;
  padding:14px 22px; font-size:.86rem; font-weight:700; color:var(--s-mute);
  border-bottom:3px solid transparent; transition:all .25s; white-space:nowrap;
}
.prod-tab-btn:hover { color:var(--s-blue); }
.prod-tab-btn.active { color:var(--s-blue); border-bottom-color:var(--s-blue); }
.prod-panel { display:block; margin-bottom:52px; animation:shFadeUp .5s ease; }
.prod-panel:last-child { margin-bottom:0; }
.prod-panel-title { font-size:1.25rem; font-weight:800; color:var(--s-navy); margin:0 0 22px; padding-bottom:14px; border-bottom:2px solid #e8edf5; }
#panel-datacenter .prod-panel-title { border-bottom:none; padding-bottom:0; margin-bottom:8px; }
#panel-datacenter .prod-panel-title + .svc-acc-desc { padding-bottom:18px; margin-bottom:22px; border-bottom:2px solid #e8edf5; }
.prod-subsec { margin-bottom:28px; }
.prod-subsec:last-child { margin-bottom:0; }
@media(max-width:767px){
  .prod-tabs { gap:2px; }
  .prod-tab-btn { padding:10px 12px; font-size:.78rem; }
}

/* SERVICES (การ์ดสินค้า — เหมือน solution.php แต่ไม่มี toggle/collapse) */
.svc-acc-item { background:#fff; border:1px solid #e8edf5; border-radius:16px; overflow:hidden; }
.svc-acc-main {
  display:flex; flex-wrap:wrap; align-items:flex-start; gap:16px; padding:22px 28px;
}
.svc-acc-icon {
  width:40px; height:40px; border-radius:12px; flex-shrink:0; margin-top:2px;
  background:var(--s-light); display:flex; align-items:center; justify-content:center;
  font-size:1rem; color:var(--s-blue);
}
.svc-acc-info { flex:1; }
.svc-acc-title { font-size:.96rem; font-weight:700; color:var(--s-navy); margin:0 0 6px; display:block; }
.svc-acc-desc { font-size:.83rem; color:var(--s-mute); line-height:1.85; margin:0; }
.svc-acc-thumb {
  width:160px; height:120px; border-radius:10px; overflow:hidden; flex-shrink:0;
}
.svc-acc-thumb img { width:100%; height:100%; object-fit:cover; display:block; }

/* กล่องสินค้า */
.svc-prod-wrap { border-top:1px solid #e8f2ff; background:var(--s-off); padding:20px 28px 24px; }
.svc-prod-label { font-size:.72rem; font-weight:700; color:var(--s-blue); text-transform:uppercase; letter-spacing:.8px; margin-bottom:14px; }
.svc-prod-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(135px,1fr)); gap:12px; }
.svc-prod-item {
  background:#fff; border:1px solid #e8edf5; border-radius:12px; padding:14px 10px 10px; text-align:center;
  transition:box-shadow .25s; cursor:pointer;
}
.svc-prod-item:hover { box-shadow:0 6px 20px rgba(26,95,200,.10); }
.svc-prod-item img { width:100%; height:72px; object-fit:contain; display:block; margin-bottom:8px; }
.svc-prod-item span {
  font-size:.73rem;
  color:var(--s-navy); font-weight:600; line-height:1.4; display:block;
}
@media(max-width:767px){
  .svc-acc-main { padding:16px 18px; }
  .svc-acc-thumb { width:96px; height:80px; }
  .svc-prod-wrap { padding:16px 18px 18px; }
  .svc-prod-grid { grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); gap:10px; }
}

/* PRODUCT DETAIL POPUP */
.prod-modal-backdrop {
  position:fixed; inset:0; z-index:2000;
  background:rgba(8,20,45,.8);
  display:none; align-items:center; justify-content:center;
  padding:20px;
}
.prod-modal-backdrop.show { display:flex; }
.prod-modal-card {
  background:#fff; border-radius:20px; max-width:880px; width:100%;
  max-height:90vh; overflow-y:auto;
  display:flex; flex-wrap:wrap; position:relative;
  animation:prodModalIn .25s ease;
}
@keyframes prodModalIn { from{opacity:0; transform:scale(.96);} to{opacity:1; transform:scale(1);} }
.prod-modal-close {
  position:absolute; top:14px; right:14px; width:36px; height:36px; border-radius:50%;
  background:var(--s-off); border:1px solid #e2e8f0; color:var(--s-mute);
  display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:.9rem; z-index:5; transition:all .2s;
}
.prod-modal-close:hover { background:var(--s-blue); color:#fff; border-color:var(--s-blue); }
.prod-modal-media { flex:0 0 46%; padding:36px 28px 28px; }
.prod-modal-mainimg { position:relative; width:100%; height:280px; border-radius:14px; overflow:hidden; background:var(--s-off); display:flex; align-items:center; justify-content:center; }
.prod-modal-mainimg img { width:100%; height:100%; object-fit:contain; }
.prod-modal-thumbs-row { display:flex; align-items:center; gap:8px; margin-top:14px; }
.prod-modal-thumb-nav {
  flex-shrink:0; width:28px; height:28px; border-radius:50%; background:var(--s-off);
  border:1px solid #e2e8f0; color:var(--s-mute); display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:.68rem; transition:all .2s;
}
.prod-modal-thumb-nav:hover { background:var(--s-blue); color:#fff; border-color:var(--s-blue); }
.prod-modal-thumbs { flex:1; display:flex; gap:8px; overflow-x:auto; scroll-behavior:smooth; padding-bottom:4px; }
.prod-modal-thumbs::-webkit-scrollbar { height:5px; }
.prod-modal-thumbs::-webkit-scrollbar-thumb { background:#cbd5e1; border-radius:4px; }
.prod-modal-thumbs::-webkit-scrollbar-track { background:transparent; }
.prod-modal-thumb { width:56px; height:56px; border-radius:8px; border:2px solid #e8edf5; overflow:hidden; cursor:pointer; flex-shrink:0; transition:border-color .2s; }
.prod-modal-thumb.active { border-color:var(--s-blue); }
.prod-modal-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.prod-modal-info { flex:1; min-width:280px; padding:36px 32px 32px 0; }
.prod-modal-info h4 { font-size:1.15rem; font-weight:700; color:var(--s-navy); margin:0 0 14px; }
.prod-modal-info p { font-size:.85rem; color:var(--s-mute); line-height:1.9; margin:0 0 22px; }
.prod-modal-info .btn-sol { padding:11px 26px; font-size:.82rem; }
.prod-modal-nav-edge {
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:50%;
  background:rgba(13,35,82,.55); border:none; color:#fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:.9rem; z-index:2; transition:all .2s;
  box-shadow:0 4px 14px rgba(8,20,45,.3);
}
.prod-modal-nav-edge.prev { left:10px; }
.prod-modal-nav-edge.next { right:10px; }
.prod-modal-nav-edge:hover { background:var(--s-blue); }
@media(max-width:767px){
  .prod-modal-media { flex:0 0 100%; padding:30px 22px 0; }
  .prod-modal-info { flex:0 0 100%; padding:20px 22px 28px; }
  .prod-modal-mainimg { height:220px; }
  .prod-modal-nav-edge { width:34px; height:34px; font-size:.78rem; }
  .prod-modal-nav-edge.prev { left:8px; }
  .prod-modal-nav-edge.next { right:8px; }
}

/* SOFTWARE PRODUCT CARDS */
.sw-product-tag {
  font-size:.70rem; font-weight:700; letter-spacing:1px;
  text-transform:uppercase; color:var(--s-blue); margin-bottom:10px;
}
.sw-logo { height:42px; object-fit:contain; object-position:left; margin-bottom:14px; display:block; }
.sw-features {
  display:flex; flex-direction:column; gap:10px; margin-bottom:28px;
  border-left:2px solid #dce8fb; padding-left:16px;
}
.sw-features .fi {
  display:flex; align-items:flex-start; gap:10px;
  font-size:.82rem; color:var(--s-txt); line-height:1.7;
}
.sw-features .fi i { color:var(--s-blue); margin-top:3px; flex-shrink:0; }
.sw-btn {
  display:inline-flex; align-items:center; gap:8px;
  font-size:.82rem; font-weight:700; color:var(--s-blue);
  text-decoration:none; transition:gap .2s;
}
.sw-btn:hover { color:var(--s-blue2); gap:12px; }
.sw-card {
  background:#fff; border:1px solid #e8edf5; border-radius:20px;
  overflow:hidden; height:100%;
  display:flex; flex-direction:column;
  transition:box-shadow .3s, transform .3s;
}
.sw-card:hover { box-shadow:0 12px 40px rgba(26,95,200,.10); transform:translateY(-4px); }
.sw-card-img { overflow:hidden; aspect-ratio:1278/816; flex-shrink:0; }
.sw-card-img img { width:100%; height:100%; object-fit:cover; object-position:top; display:block; }
.sw-card-body { padding:32px 28px; display:flex; flex-direction:column; flex:1; }

/* CTA (ใช้ร่วมกับ .btn-sol) */
.btn-sol {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--s-blue2); color:#fff;
  padding:13px 30px; border-radius:30px;
  font-size:.88rem; font-weight:700; text-decoration:none;
  transition:background .25s, transform .25s;
}
.btn-sol:hover { background:#1565e0; color:#fff; transform:translateY(-2px); }

/* SMART BUILDING & SECURITY — แสดงสินค้าตรงหน้าเพจ แยกตามหมวดเป็นหัวข้อย่อย เรียงแถวละ 4 */
.sbs-cat-block { margin-bottom:30px; }
.sbs-cat-block:last-child { margin-bottom:0; }
.sbs-cat-title {
  font-size:1rem; font-weight:700; color:var(--s-navy); margin:0 0 4px;
  padding-left:12px; border-left:4px solid var(--s-blue);
}
.sbs-cat-tagline { font-size:.82rem; color:var(--s-mute); margin:0 0 16px; padding-left:16px; }
.sbs-product-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.sbs-product-card {
  background:var(--s-off); border:1px solid #e8edf5; border-radius:14px;
  padding:16px 12px 12px; text-align:center; cursor:pointer;
  transition:box-shadow .25s, transform .2s;
}
.sbs-product-card:hover { box-shadow:0 10px 26px rgba(26,95,200,.16); transform:translateY(-3px); }
.sbs-product-imgwrap {
  width:100%; height:170px; display:flex; align-items:center; justify-content:center;
  background:#fff; border-radius:10px; margin-bottom:10px; overflow:hidden;
}
.sbs-product-imgwrap img { width:100%; height:100%; object-fit:contain; }
.sbs-product-card span { font-size:.8rem; font-weight:600; color:var(--s-navy); line-height:1.4; display:block; }
@media(max-width:991px){
  .sbs-product-grid { grid-template-columns:repeat(3, 1fr); }
}
@media(max-width:767px){
  .sbs-product-grid { grid-template-columns:repeat(2, 1fr); gap:12px; }
  .sbs-product-imgwrap { height:90px; }
}

/* RAISED FLOOR RHINO — ธีมสี ขาว / ฟ้า / น้ำเงิน แยกตามรุ่น เรียงแถวละ 4 */
.rhino-cat-block { margin-bottom:32px; padding:22px 22px 24px; background:#fff; border:1px solid var(--s-light); border-radius:16px; }
.rhino-cat-block:last-child { margin-bottom:0; }
.rhino-cat-title {
  font-size:1.02rem; font-weight:700; color:var(--s-navy); margin:0 0 8px;
  padding:6px 16px; display:inline-block; background:var(--s-light);
  border-left:4px solid var(--s-blue); border-radius:0 10px 10px 0;
}
.rhino-cat-series { font-size:.74rem; font-weight:700; color:var(--s-blue); text-transform:uppercase; letter-spacing:.5px; margin:0 0 6px; padding-left:16px; }
.rhino-cat-tagline { font-size:.84rem; color:var(--s-navy); opacity:.72; line-height:1.85; margin:0 0 18px; padding-left:16px; }
.rhino-product-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.rhino-product-card {
  background:#fff; border:1px solid var(--s-light); border-radius:14px;
  padding:16px 12px 12px; text-align:center; cursor:pointer;
  transition:box-shadow .25s, transform .2s, border-color .2s;
}
.rhino-product-card:hover { box-shadow:0 10px 26px rgba(26,95,200,.2); transform:translateY(-3px); border-color:var(--s-blue2); }
.rhino-product-imgwrap {
  width:100%; height:170px; display:flex; align-items:center; justify-content:center;
  background:#fff; border-radius:10px; margin-bottom:10px; overflow:hidden;
}
.rhino-product-imgwrap img { width:100%; height:100%; object-fit:contain; }
.rhino-product-card span { font-size:.8rem; font-weight:600; color:var(--s-navy); line-height:1.4; display:block; }
@media(max-width:991px){
  .rhino-product-grid { grid-template-columns:repeat(3, 1fr); }
}
@media(max-width:767px){
  .rhino-product-grid { grid-template-columns:repeat(2, 1fr); gap:12px; }
  .rhino-product-imgwrap { height:90px; }
}

/* RHINO CATALOG — popup รายละเอียดรุ่นย่อย (detail) */
.rhino-detail-backdrop {
  position:fixed; inset:0; z-index:2100;
  background:rgba(8,20,45,.85);
  display:none; align-items:center; justify-content:center;
  padding:20px;
}
.rhino-detail-backdrop.show { display:flex; }
.rhino-detail-card {
  background:#fff; border-radius:20px; max-width:920px; width:100%;
  max-height:90vh; overflow-y:auto;
  display:flex; flex-direction:column; position:relative;
  animation:prodModalIn .25s ease;
}
.rhino-detail-close {
  position:absolute; top:14px; right:14px; width:36px; height:36px; border-radius:50%;
  background:var(--s-off); border:1px solid #e2e8f0; color:var(--s-mute);
  display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:.9rem; z-index:5; transition:all .2s;
}
.rhino-detail-close:hover { background:var(--s-blue); color:#fff; border-color:var(--s-blue); }
.rhino-detail-media {
  flex:0 0 100%; width:100%; padding:58px 28px 0;
}
.rhino-detail-mainimg { position:relative; width:100%; height:380px; border-radius:14px; overflow:hidden; background:var(--s-off); display:flex; align-items:center; justify-content:center; }
.rhino-detail-mainimg img { width:100%; height:100%; object-fit:contain; }
.rhino-detail-thumbs-row { display:flex; align-items:center; gap:8px; margin-top:14px; }
.rhino-detail-thumbs { flex:1; display:flex; gap:8px; overflow-x:auto; scroll-behavior:smooth; padding-bottom:4px; }
.rhino-detail-thumbs::-webkit-scrollbar { height:5px; }
.rhino-detail-thumbs::-webkit-scrollbar-thumb { background:#cbd5e1; border-radius:4px; }
.rhino-detail-thumbs::-webkit-scrollbar-track { background:transparent; }
.rhino-detail-thumb { width:56px; height:56px; border-radius:8px; border:2px solid #e8edf5; overflow:hidden; cursor:pointer; flex-shrink:0; transition:border-color .2s; }
.rhino-detail-thumb.active { border-color:var(--s-blue); }
.rhino-detail-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.rhino-detail-info { flex:0 0 100%; width:100%; padding:10px 32px 32px; }
.rhino-detail-info h4 { font-size:1.15rem; font-weight:700; color:var(--s-navy); margin:0 0 6px; }
.rhino-detail-tag { display:inline-block; font-size:.68rem; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--s-blue); background:var(--s-light); padding:4px 10px; border-radius:20px; margin-bottom:12px; }
.rhino-detail-desc { font-size:.84rem; color:var(--s-mute); line-height:1.85; margin:0 0 20px; }
.rhino-detail-h5 { font-size:.78rem; font-weight:700; color:var(--s-navy); text-transform:uppercase; letter-spacing:.5px; margin:0 0 10px; }
.rhino-spec-wrap { margin:0 0 20px; }
.rhino-spec-list { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; }
.rhino-spec-list li { font-size:.8rem; color:var(--s-txt); line-height:1.6; border-bottom:1px dashed #eef2f8; padding-bottom:6px; }
.rhino-spec-list li b { display:block; color:var(--s-mute); font-weight:600; font-size:.68rem; text-transform:uppercase; letter-spacing:.3px; margin-bottom:2px; }
.rhino-spec-table-scroll { overflow-x:auto; border:1px solid #e8edf5; border-radius:12px; max-width:100%; -webkit-overflow-scrolling:touch; }
.rhino-spec-table { width:100%; border-collapse:collapse; font-size:.76rem; min-width:480px; }
.rhino-spec-table th, .rhino-spec-table td { padding:9px 12px; text-align:center; white-space:nowrap; border-bottom:1px solid #eef2f8; }
.rhino-spec-table thead th { background:var(--s-off); color:var(--s-navy); font-weight:700; font-size:.7rem; text-transform:uppercase; letter-spacing:.3px; }
.rhino-spec-table td:first-child, .rhino-spec-table th:first-child {
  text-align:left; font-weight:700; color:var(--s-navy); background:var(--s-off); position:sticky; left:0; z-index:1;
}
.rhino-spec-table tbody tr:last-child td { border-bottom:none; }
@media (max-width:600px) {
  .rhino-spec-table { font-size:.5rem; min-width:220px; }
  .rhino-spec-table th, .rhino-spec-table td { padding:3px 4px; }
}
.rhino-feat-list, .rhino-std-list { list-style:none; padding:0; margin:0 0 20px; }
.rhino-feat-list li, .rhino-std-list li { display:flex; align-items:flex-start; gap:8px; font-size:.82rem; color:var(--s-txt); line-height:1.7; padding:4px 0; }
.rhino-feat-list li i, .rhino-std-list li i { color:var(--s-blue); margin-top:3px; flex-shrink:0; font-size:.7rem; }
.rhino-detail-src { font-size:.74rem; color:var(--s-mute); }
.rhino-detail-src a { color:var(--s-blue); font-weight:600; text-decoration:none; }
.rhino-detail-nav-edge {
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:50%;
  background:rgba(13,35,82,.55); border:none; color:#fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:.9rem; z-index:2; transition:all .2s;
  box-shadow:0 4px 14px rgba(8,20,45,.3);
}
.rhino-detail-nav-edge.prev { left:10px; }
.rhino-detail-nav-edge.next { right:10px; }
.rhino-detail-nav-edge:hover { background:var(--s-blue); }
@media(max-width:767px){
  .rhino-detail-media { flex:0 0 100%; padding:50px 22px 0; }
  .rhino-detail-info { flex:0 0 100%; padding:20px 22px 28px; }
  .rhino-detail-mainimg { height:220px; }
  .rhino-detail-nav-edge { width:34px; height:34px; font-size:.78rem; }
  .rhino-detail-nav-edge.prev { left:8px; }
  .rhino-detail-nav-edge.next { right:8px; }
  .rhino-spec-list { grid-template-columns:1fr; }
}

/* ปุ่มดูเพิ่มเติม — อยู่ใต้รายละเอียดในกล่องเดียวกัน ชิดขวา */
.svc-acc-more {
  display:flex; width:max-content; align-items:center; gap:6px; margin:12px 0 0 auto;
  padding:9px 18px; border-radius:20px; background:var(--s-light); color:var(--s-blue);
  font-size:.78rem; font-weight:700; text-decoration:none; white-space:nowrap; transition:all .25s;
}
.svc-acc-more:hover { background:var(--s-blue); color:#fff; }
.svc-acc-more i { font-size:.68rem; transition:transform .25s; }
.svc-acc-more:hover i { transform:translateX(3px); }
.fa-download:before { content:"\f019"; }
