---
import BaseLayout from '@/layouts/BaseLayout.astro';
import Header from '@/components/common/Header.astro';
import Footer from '@/components/common/Footer.astro';
---

<BaseLayout title="ท่อพีพีอาร์" description="ท่อพีพีอาร์ ส่งฟรี กรุงเทพมหานคร ปริมณฑล สามารถสอบถามได้">
  <Header slot="header" />
  
  <main class="bg-white min-h-screen">
    <!-- Category Hero Section -->
    <section class="hero-gradient py-16">
      <div class="container-custom">
        <div class="grid lg:grid-cols-2 gap-12 items-center">
          <div>
            <div class="card-glass p-2">
              <img src="/images/products-cropped/ppr-pipe_000C.jpg" alt="ท่อพีพีอาร์" class="w-full h-auto rounded-xl" width="600" height="400" loading="eager" fetchpriority="high" decoding="sync" onerror="this.src='/images/logo/dealplustech-logo.png'" />
            </div>
          </div>
          
          <div>
            <span class="inline-block px-4 py-1.5 bg-white/20 text-white rounded-full text-sm font-medium mb-4">
              ท่อพีพีอาร์
            </span>
            <h1 class="text-3xl sm:text-4xl lg:text-5xl font-bold text-white mb-4">ท่อพีพีอาร์</h1>
            <p class="text-lg sm:text-xl text-white/80 mb-8 leading-relaxed">
              ท่อพีพีอาร์ ส่งฟรี กรุงเทพมหานคร ปริมณฑล สามารถสอบถามได้
            </p>
            
            <div class="flex flex-wrap gap-4">
              <a href="https://line.me/ti/p/~dealplustech" target="_blank" class="btn-white flex items-center gap-2">
                <span>แชท Line</span>
              </a>
              <a href="tel:0905551415" class="btn-white flex items-center gap-2">
                <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"/>
                </svg>
                <span>090-555-1415</span>
              </a>
            </div>
            
            <div class="flex flex-wrap gap-6 mt-8">
              <div class="flex items-center gap-2 text-white/80">
                <svg class="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
                </svg>
                <span>คุณภาพสูง</span>
              </div>
              <div class="flex items-center gap-2 text-white/80">
                <svg class="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
                </svg>
                <span>ราคาโรงงาน</span>
              </div>
              <div class="flex items-center gap-2 text-white/80">
                <svg class="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
                </svg>
                <span>จัดส่งฟรี</span>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    
    <!-- Subcategories -->
    <section class="section bg-secondary-50">
      <div class="container-custom">
        <div class="text-center mb-12">
          <h2 class="section-title">สินค้าในหมวดนี้</h2>
        </div>
        
        <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
          <a href="/ท่อ-ppr-thai-ppr" class="card-hover group overflow-hidden block">
            <div class="relative h-48 overflow-hidden img-zoom">
              <img src="/images/products-cropped/ppr-pipe_000C.jpg" alt="ท่อ PPR" class="w-full h-full object-cover" width="400" height="300" loading="lazy" decoding="async" onerror="this.src='/images/logo/dealplustech-logo.png'" />
            </div>
            <div class="p-4 text-center bg-white">
              <h3 class="text-lg font-bold text-secondary-900 group-hover:text-primary-600 transition-colors">ไทยพีพีอาร์</h3>
            </div>
          </a>
          <a href="/ท่อพีพีอาร์ตราช้าง" class="card-hover group overflow-hidden block">
            <div class="relative h-48 overflow-hidden img-zoom">
              <img src="/images/products-cropped/ppr-scg.jpg" alt="ท่อ PPR ตราช้าง" class="w-full h-full object-cover" width="400" height="300" loading="lazy" decoding="async" onerror="this.src='/images/logo/dealplustech-logo.png'" />
            </div>
            <div class="p-4 text-center bg-white">
              <h3 class="text-lg font-bold text-secondary-900 group-hover:text-primary-600 transition-colors">ท่อ PPR ตราช้าง</h3>
            </div>
          </a>
          <a href="/pp-r-pp-rct-poloplast" class="card-hover group overflow-hidden block">
            <div class="relative h-48 overflow-hidden img-zoom">
              <img src="/images/poloplast/POLOPLAST_001.png" alt="ท่อ PP-R Poloplast" class="w-full h-full object-cover" width="400" height="300" loading="lazy" decoding="async" onerror="this.src='/images/logo/dealplustech-logo.png'" />
            </div>
            <div class="p-4 text-center bg-white">
              <h3 class="text-lg font-bold text-secondary-900 group-hover:text-primary-600 transition-colors">ท่อ PP-R Poloplast</h3>
            </div>
          </a>
          <a href="/ท่อhdpe" class="card-hover group overflow-hidden block">
            <div class="relative h-48 overflow-hidden img-zoom">
              <img src="/images/products-cropped/hdpe001.png" alt="ท่อ HDPE" class="w-full h-full object-cover" width="400" height="300" loading="lazy" decoding="async" onerror="this.src='/images/logo/dealplustech-logo.png'" />
            </div>
            <div class="p-4 text-center bg-white">
              <h3 class="text-lg font-bold text-secondary-900 group-hover:text-primary-600 transition-colors">ท่อ HDPE</h3>
            </div>
          </a>
          <a href="/ท่อ-upvc" class="card-hover group overflow-hidden block">
            <div class="relative h-48 overflow-hidden img-zoom">
              <img src="/images/products-cropped/upvc-pipe_000C.jpg" alt="ท่อ UPVC" class="w-full h-full object-cover" width="400" height="300" loading="lazy" decoding="async" onerror="this.src='/images/logo/dealplustech-logo.png'" />
            </div>
            <div class="p-4 text-center bg-white">
              <h3 class="text-lg font-bold text-secondary-900 group-hover:text-primary-600 transition-colors">ท่อ UPVC</h3>
            </div>
          </a>
          <a href="/ท่อไซเลอร์" class="card-hover group overflow-hidden block">
            <div class="relative h-48 overflow-hidden img-zoom">
              <img src="/images/products-cropped/syler-pipe-cold-water.jpg" alt="ท่อ Syler" class="w-full h-full object-cover" width="400" height="300" loading="lazy" decoding="async" onerror="this.src='/images/logo/dealplustech-logo.png'" />
            </div>
            <div class="p-4 text-center bg-white">
              <h3 class="text-lg font-bold text-secondary-900 group-hover:text-primary-600 transition-colors">ท่อ Syler</h3>
            </div>
          </a>
          <a href="/ท่อและข้อต่อpvc" class="card-hover group overflow-hidden block">
            <div class="relative h-48 overflow-hidden img-zoom">
              <img src="/images/products-cropped/pvc-standard-01.jpg" alt="ท่อ PVC" class="w-full h-full object-cover" width="400" height="300" loading="lazy" decoding="async" onerror="this.src='/images/logo/dealplustech-logo.png'" />
            </div>
            <div class="p-4 text-center bg-white">
              <h3 class="text-lg font-bold text-secondary-900 group-hover:text-primary-600 transition-colors">ท่อ PVC</h3>
            </div>
          </a>
          <a href="/ท่อระบายน้ำ-3-ชั้น-ไซเลนท" class="card-hover group overflow-hidden block">
            <div class="relative h-48 overflow-hidden img-zoom">
              <img src="/images/products-cropped/XYLENT_001.png" alt="ท่อ XYLENT" class="w-full h-full object-cover" width="400" height="300" loading="lazy" decoding="async" onerror="this.src='/images/logo/dealplustech-logo.png'" />
            </div>
            <div class="p-4 text-center bg-white">
              <h3 class="text-lg font-bold text-secondary-900 group-hover:text-primary-600 transition-colors">ท่อ XYLENT</h3>
            </div>
          </a>
        </div>
      </div>
    </section>
    
    <!-- Contact CTA -->
    <section class="cta-gradient py-16">
      <div class="container-custom text-center">
        <h2 class="text-2xl sm:text-3xl font-bold text-white mb-6">สนใจสินค้าของเรา?</h2>
        <p class="text-lg text-white/80 mb-8 max-w-2xl mx-auto">
          ติดต่อเราวันนี้เพื่อรับคำแนะนำและราคาพิเศษ
        </p>
        <div class="flex flex-wrap justify-center gap-4">
          <a href="https://line.me/ti/p/~dealplustech" target="_blank" class="btn-white">
            Line: @dealplustech
          </a>
          <a href="tel:0905551415" class="btn-white">
            โทร 090-555-1415
          </a>
        </div>
      </div>
    </section>
  </main>
  
  <Footer slot="footer" />
</BaseLayout>