---
const currentYear = new Date().getFullYear();
---

<footer class="footer section">
  <div class="container-custom">
    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12 mb-12">
      <!-- Company Info -->
      <div>
        <div class="flex items-center space-x-3 mb-6">
          <img src="/images/logo/13523630950840.png" alt="Deal Plus Tech" class="h-10 w-auto" />
          <span class="text-xl font-bold">Deal Plus Tech</span>
        </div>
        <p class="text-secondary-300 text-base mb-6">
          ผู้เชี่ยวชาญด้านระบบน้ำ ให้คำแนะนำและจำหน่ายท่อ PPR ตราช้าง ท่อพีพีอาร์ ท่อ HDPE Thai PPR รั้วตาข่าย คุณภาพสูง ราคาถูก
        </p>
        <div class="flex space-x-4">
          <a href="#" class="w-10 h-10 rounded-full bg-white/10 hover:bg-primary-500 flex items-center justify-center transition-colors">
            <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>
          </a>
          <a href="#" class="w-10 h-10 rounded-full bg-white/10 hover:bg-primary-500 flex items-center justify-center transition-colors">
            <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"/></svg>
          </a>
        </div>
      </div>
      
      <!-- Quick Links -->
      <div>
        <h3 class="text-lg font-bold mb-6">ลิงก์ด่วน</h3>
        <ul class="space-y-3">
          <li><a href="/about-us" class="text-secondary-300 hover:text-white transition-colors text-base">เกี่ยวกับเรา</a></li>
          <li><a href="/product" class="text-secondary-300 hover:text-white transition-colors text-base">สินค้าทั้งหมด</a></li>
          <li><a href="/portfolio" class="text-secondary-300 hover:text-white transition-colors text-base">ผลงาน</a></li>
          <li><a href="/contact-us" class="text-secondary-300 hover:text-white transition-colors text-base">ติดต่อเรา</a></li>
        </ul>
      </div>
      
      <!-- Product Categories -->
      <div>
        <h3 class="text-lg font-bold mb-6">หมวดหมู่สินค้า</h3>
        <ul class="space-y-3">
          <li><a href="/ท่อ-ppr-thai-ppr" class="text-secondary-300 hover:text-white transition-colors text-base">ท่อ PPR</a></li>
          <li><a href="/ท่อhdpe" class="text-secondary-300 hover:text-white transition-colors text-base">ท่อ HDPE</a></li>
          <li><a href="/ท่อและข้อต่อpvc" class="text-secondary-300 hover:text-white transition-colors text-base">ท่อ PVC</a></li>
          <li><a href="/วาล์ว-valve" class="text-secondary-300 hover:text-white transition-colors text-base">วาล์ว</a></li>
          <li><a href="/ปั๊มน้ำ" class="text-secondary-300 hover:text-white transition-colors text-base">ปั๊มน้ำ</a></li>
        </ul>
      </div>
      
      <!-- Contact -->
      <div>
        <h3 class="text-lg font-bold mb-6">ติดต่อเรา</h3>
        <ul class="space-y-4">
          <li class="flex items-start space-x-3">
            <svg class="w-6 h-6 text-primary-400 mt-0.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 class="text-secondary-300 text-base">090-555-1415</span>
          </li>
          <li class="flex items-start space-x-3">
            <svg class="w-6 h-6 text-primary-400 mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
            </svg>
            <span class="text-secondary-300 text-base">info@dealplustech.co.th</span>
          </li>
          <li class="flex items-start space-x-3">
            <svg class="w-6 h-6 text-primary-400 mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
            </svg>
            <span class="text-secondary-300 text-base">กรุงเทพมหานคร และปริมณฑล</span>
          </li>
        </ul>
      </div>
    </div>
    
    <div class="border-t border-white/10 pt-8">
      <div class="flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0">
        <p class="text-secondary-400 text-base">
          &copy; {currentYear} Deal Plus Tech. สงวนลิขสิทธิ์
        </p>
        <div class="flex space-x-6">
          <a href="/privacy-policy" class="text-secondary-400 hover:text-white transition-colors text-base">นโยบายความเป็นส่วนตัว</a>
          <a href="/terms-and-conditions" class="text-secondary-400 hover:text-white transition-colors text-base">ข้อกำหนดการใช้งาน</a>
          <button onclick="openConsentPreferences()" class="text-secondary-400 hover:text-white transition-colors text-base">
            การตั้งค่าคุกกี้
          </button>
        </div>
      </div>
    </div>
  </div>
</footer>
