/* ============================================================
   KUBOTA BAANDUNG — Home Layout v23 (14 พ.ย. 2026)
   โจทย์เจ้าของร้านรอบนี้:
   1) กระทิงแดงโชว์เต็มตัว (เห็นถึงหลังไฟ/หางไฟ) ทั้งมือถือและเดสก์ท็อป
      ในโซนแท็บ B/L/MU/M — จมูกถึงกลางโซน ไม่โดน crop เหมือนเดิม
   2) แท็บรุ่นทุกโซน = รถลอยตัวจริง (ตัดพื้นขาวแล้ว) ไม่ใช่คำว่า "รอภาพซิลูเอต"
   3) มือถือ: แท็บรุ่น 4 อันต้องพอดีจอ ไม่ต้องเลื่อน (มีแค่ 4 หัวข้อ)
   4) มือถือ: กลุ่มการ์ด 3 คอลัมน์ของรถขุดที่ยืดยาวเป็นเส้นสปาเก็ตตี้
      → แบ่งครึ่งเหนือ/ใต้ แถวละ 3 คัน รวม 6 คัน ความยาวรวมเท่าเดิม
      การ์ดกระชับขึ้นแต่ข้อมูลครบทุกช่อง (ห้ามตัดทิ้ง)
   5) มือถือ: แถวคู่ท้ายแถบรถขุด คง 2 คอลัมน์ แต่ย่นเหลือราว 60%
   ============================================================ */

/* ═══ 1) เวทีกระทิงแดง — ในกรอบวัวแดง (sr-bullband) ═══ */
.sr-bullband {
  background:
    radial-gradient(560px 300px at 82% 16%, rgba(255, 255, 255, .10), transparent 62%),
    linear-gradient(108deg, #0a2c64 0%, #0e3f8f 30%, #1a5ab5 58%, #2f8ed2 86%, #3ba3dd 100%);
}
/* ลายขีดเฉียงโปสเตอร์ มุมล่างซ้าย — อารมณ์เดียวกับภาพโปสเตอร์เดิม */
.sr-bullband:before {
  content: '';
  position: absolute;
  left: -46px;
  bottom: -110px;
  z-index: 0;
  width: 460px;
  height: 460px;
  background: repeating-linear-gradient(52deg, rgba(112, 210, 255, .17) 0 30px, rgba(112, 210, 255, 0) 30px 64px);
  transform: rotate(-4deg);
  pointer-events: none;
}
.sr-bullband .sr-bull-float {
  position: absolute;
  right: 1.5%;
  top: var(--bull-top, 150px);
  z-index: 1;
  height: var(--bull-h, 140px);
  width: auto;
  max-width: 62%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(5, 22, 52, .45));
  pointer-events: none;
}
/* เวที: เปิดช่องหว่างหัวแถบกับแท็บรุ่นให้กระทิงยืนเต็มตัว */
.sr-bullband .sr-cats { margin-top: var(--bull-stage, 152px) !important; }

@media (max-width: 767px) {
  .sr-bullband { --bull-top: 158px; --bull-h: 132px; --bull-stage: 150px; }
}
@media (min-width: 768px) {
  .sr-bullband { --bull-top: 196px; --bull-h: 300px; --bull-stage: 318px; }
}

/* ═══ 2) แท็บรุ่น: รถลอยตัวจริงในกรอบ ═══ */
.sr-cat-img { overflow: hidden; }
.sr-cat-veh {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 88%;
  height: 86%;
  margin: auto;
  object-fit: contain;
  object-position: center 64%;
  filter: drop-shadow(0 5px 7px rgba(28, 52, 92, .26));
}
.sr-cat-letter {
  position: absolute;
  top: 4px;
  left: 5px;
  z-index: 2;
  font-family: 'Barlow Condensed', Prompt, sans-serif;
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .05em;
  color: #16305e;
  padding: 3px 7px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(28, 52, 92, .22);
  box-shadow: 0 2px 6px rgba(28, 52, 92, .12);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.sr-bullband .sr-cat-letter,
.shw-band .sr-cat-letter,
.exc-band .sr-cat-letter { font-size: 11px; }

/* ═══ 3) มือถือ: แท็บรุ่นพอดีจอ ไม่ต้องเลื่อน ═══ */
@media (max-width: 767px) {
  .sr-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    overflow: visible;
  }
  #harvesters .sr-cats { grid-template-columns: repeat(3, 1fr); }
  .sr-cat { flex: none; width: auto; max-width: none; }
  .sr-cat-img { aspect-ratio: 120 / 76; }
  .sr-cat h3 { font-size: 11px; margin-top: 6px; }
  .sr-cat-count { font-size: 9.5px; }
  .sr-cat-letter { font-size: 9.5px; padding: 2px 6px 3px; }
  .shw-band .sr-cat-letter, .exc-band .sr-cat-letter, .sr-bullband .sr-cat-letter { font-size: 9.5px; }
  .sr-bullband .sr-cats { margin-top: var(--bull-stage, 150px) !important; }
}

/* ═══ 4) รถขุดมือสอง — เดสก์ท็อป: 10 คัน เรียง 3-3-2-2 ไม่มีรู ═══ */
@media (min-width: 768px) {
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(-n+6) { grid-column: auto / span 2; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+7) { grid-column: auto / span 3; }
}

/* ═══ 5) รถขุดมือสอง — มือถือ: 2 คันแรกเต็มครึ่งจอ (คงเดิม)
      คันที่ 3-8 = สองแถว แถวละ 3 คัน (เกาหลีเหนือ 3 / เกาหลีใต้ 3)
      คันที่ 9-10 = แถวคู่ย่น 60% ═══ */
@media (max-width: 767px) {
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) { grid-column: auto / span 2; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) { grid-column: auto / span 3; }

  /* กระชับทั้งกลุ่ม 3 คอลัมน์ (3-8) — ข้อมูลครบ แค่ย่นพื้นที่ */
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) .sr-hero206 { aspect-ratio: 4 / 3; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) .sr-card-body { padding: 7px 8px 9px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) h3 { font-size: 11.5px; line-height: 1.3; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) .sr-chips { gap: 3px; margin-top: 4px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) .sr-chip { font-size: 8.5px; padding: 1.5px 5px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) .sr-facts { gap: 3px; margin: 5px 0 4px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) .sr-fact { padding: 2.5px 5px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) .sr-fact .k { font-size: 8px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) .sr-fact .v { font-size: 10.5px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) .sr-fact.sr-cash { padding: 4px 6px; gap: 1px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) .sr-fact.sr-cash .v { font-size: 11.5px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) .sr-sellerline { font-size: 8.5px; padding: 3px 5px; margin-bottom: 3px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+3):nth-of-type(-n+8) .sr-detail { padding: 5px; font-size: 10.5px; margin-top: 4px; }

  /* แถวคู่ท้าย (9-10): ย่นเหลือราว 60% ของเดิม — เนื้อหาครบเช่นเดิม */
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) .sr-hero206 { aspect-ratio: 16 / 9; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) .sr-card-body { padding: 7px 9px 8px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) h3 { font-size: 12px; line-height: 1.25; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) .sr-chips { gap: 3px; margin-top: 3px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) .sr-chip { font-size: 8.5px; padding: 1px 5px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) .sr-facts { gap: 2px; margin: 4px 0 3px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) .sr-fact { padding: 2px 5px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) .sr-fact .k { font-size: 7.5px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) .sr-fact .v { font-size: 10.5px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) .sr-fact.sr-cash { padding: 3px 6px; gap: 0; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) .sr-fact.sr-cash .v { font-size: 11.5px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) .sr-sellerline { font-size: 8px; padding: 2px 5px; margin-bottom: 2px; }
  #exc-sec-rec .sr-grid-h > article.sr-card-h:nth-of-type(n+9) .sr-detail { padding: 5px; font-size: 10.5px; margin-top: 3px; }
}
