@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&display=swap');
body {
  font-family: 'Anuphan', sans-serif;
    background: linear-gradient(to right, #000f50, #000000);
    margin: 0;
    padding: 0;
    color: #001858;
}
.container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
h1 {
    font-weight: 600;
    color: #fff;
}
.products {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.product-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    color: #333;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-card img {
    max-width: 100%;
}
.product-card button, form button {
  font-family: 'Anuphan', sans-serif;
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.product-card button:hover, form button:hover {
    background-color: #ff4757;
}
form input, form textarea {
    width: 90%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #001761;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
  }
.top-bar {
  background: white;
  color: #003366;
  padding: 1px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 50px;
}
.store-title.align-left {
  text-align: left;
  margin-left: 20px;
  color: #000080;
}
.cart-section.align-right {
  text-align: right;
  margin-right: 20px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
  padding: 0;
}
nav ul li a {
  text-decoration: none;
  font-weight: 600;
  color: #003366;
}
.icons {
  font-size: 1.5em;
}
.section {
  margin-top: 100px;
  background: rgb(255, 255, 255);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.section1 {
  margin-top: 100px;
  background: rgb(255, 255, 255);
  border-radius: 0px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.products {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.product-card {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333;
}
.product-card img {
  max-width: 100%;
  height: auto;
}
/* styles.css */
.products {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 280px;
  height: 350px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333;
}
.product-card img {
  max-width: 100%;
  height: auto;
  border-bottom: 1px solid #ddd;
}
.product-info {
  padding: 15px;
}
/* styles.css */
.products {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333;
}
.product-card img {
  max-width: 100%;
  height: auto;
  border-bottom: 1px solid #ddd;
}
.product-info {
  padding: 10px;
}
.add-to-cart {
  background-color: #ff6b6b;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.add-to-cart:hover {
  background-color: #ff4757;
}
.top-bar {
  background: white;
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-content {
  display: flex;
  align-items: center;
  width: 100%;
}
.spacer {
  flex-grow: 1;
}
.intro-image {
  width: 96%;
  max-width: 600px;
  display: block;
  margin: 10px auto;
}
.products {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 300px;
  height: auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333;
}
.product-card img {
  max-width: 100%;
  height: auto;
  border-bottom: 1px solid #ddd;
}
.product-info {
  padding: 10px;
}
.add-to-cart {
  background-color: #ff6b6b;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.add-to-cart:hover {
  background-color: #ff4757;
}

/* CSS Styling */
.flash-sale-container {
  background: linear-gradient(to right, #ff6a00, #ff0000);
  color: #fff;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 600px;
}

.flash-sale-title {
  font-size: 1.8em;
  color: #411100;
  font-weight: bold;
  margin-bottom: 10px;
  animation: text-blink 1s infinite alternate;
}

@keyframes text-blink {
  0% {
      opacity: 1;
  }
  100% {
      opacity: 0.5;
  }
}

.flame-icon {
  display: inline-block;
  animation: flicker 0.8s infinite alternate ease-in-out;
  text-shadow: 0 0 10px rgba(255, 69, 0, 0.8), 0 0 20px rgba(255, 99, 71, 0.8), 0 0 30px rgba(255, 165, 0, 0.8);
}

@keyframes flicker {
  0% {
      opacity: 1;
  }
  100% {
      opacity: 0.5;
  }
}

.flash-sale-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flash-sale-text {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.flash-sale-timer {
  font-size: 1.5em;
  font-weight: bold;
  color: #360b00;
  margin-bottom: 10px;
  animation: blink-timer 1s infinite alternate;
}

@keyframes blink-timer {
  0% {
      color: #ffeb3b;
  }
  100% {
      color: #ff0000;
  }
}

.highlight {
  font-weight: bold;
  color: #ffeb3b;
}

.flash-sale-btn {
  background: #fff;
  color: #ff5722;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.flash-sale-btn:hover {
  background: #ffeb3b;
  color: #333;
}


.contact-btn {
  padding: 12px 20px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 40px;
}

.facebook {
  background-color: #1877f2;
}

.line {
  background-color: #25d366;
}

.tiktok {
  background-color: #000000;
}

.phone {
  background-color: #8a2be2;
}

.contact-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}
.cart-bounce {
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-5px);
  }
}
/* CSS Styling */
.cart-popup {
  position: fixed;
  top: 50px;
  right: 20px;
  background: white;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 300px;
}

.hidden {
  display: none;
}

.cart-popup ul {
  list-style: none;
  padding: 0;
}

.cart-popup ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.close-cart {
  background: #ff5722;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.contact-buttons {
  padding: 10.2px 17px;  /* ลดขนาดลงจากเดิม 12px 20px (ลดลง 15%) */
  font-size: 0.85em;  /* ลดขนาดตัวอักษรจาก 1em ลง 15% */
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  margin-bottom: 10%;
}

.facebook {
  background-color: #1877f2;
}

.line {
  background-color: #25d366;
}

.tiktok {
  background-color: #000000;
}

.phone {
  background-color: #8a2be2;
}

.contact-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}
/* CSS Styling */
.cart-popup {
  position: fixed;
  top: 50px;
  right: 20px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 350px;
}

.hidden {
  display: none;
}

.cart-popup h3 {
  color: #003366;
  font-size: 1.5em;
  margin-bottom: 10px;
}

.cart-popup ul {
  list-style: none;
  padding: 0;
}

.cart-popup ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.cart-popup ul li button {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.cart-popup ul li button:hover {
  background: #ff4757;
}

.close-cart {
  background: #ff5722;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.close-cart:hover {
  background: #ff3d00;
}
/* CSS Styling */
.cart-popup {
  position: fixed;
  top: 50px;
  right: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 20px;
  width: 280px;
  max-height: 400px;
  overflow-y: auto;
}

.cart-popup h3 {
  color: #003366;
  font-size: 1.5em;
  text-align: center;
}

.cart-popup ul li {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
  color: #003366;
}

.cart-item-details {
  flex: 1;
  padding-left: 15px;
}

.cart-item-image {
  width: 25px;
  height: 35px;
  border-radius: 3px;
  margin-right: 15px;
}

.cart-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.checkout-btn, .close-cart {
  flex: 1;
  margin: 0 5px;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: 0.3s;
}

.checkout-btn {
  background: #2c81ff;
  color: white;
}

.checkout-btn:hover {
  background: #6597e2;
}

.close-cart {
  background: #9fc2f7;
  color: white;
}

.close-cart:hover {
  background:#bed5f8;
}





.floating-buttons {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 1000;
}

.order-btn1 {
  font-family: 'Anuphan', sans-serif;
  background-color: #113f64;
  color: white;
  padding: 8px 16px; /* ลดขนาด padding จากเดิม */
  border: none;
  border-radius: 5px;
  font-size: 1.0em;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.order-btn2 {
  font-family: 'Anuphan', sans-serif;
  background-color: #95c3ff;
  color: white;
  padding: 8px 16px; /* ลดขนาด padding จากเดิม */
  border: none;
  border-radius: 5px;
  font-size: 1.0em;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.order-btn1:hover, .contact-btn2:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.product-list {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.product-list img {
  width: 100px;
  height: auto;
  cursor: pointer;
  border-radius: 10px;
}
.gallery {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.gallery img {
  width: 300px;
  height: auto;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s;
}
.gallery img:hover {
  transform: scale(1.1);
}
 #popup {
        position: fixed;
        inset: 0;
        display: none;            /* ใช้ display:flex ตอนเปิด */
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,.6);
        z-index: 1000;
      }
      #popup .popup-content {
        position: relative;
        background: #fff;
        padding: 10px;
        border-radius: 10px;
        max-width: 90vw;
        max-height: 90vh;
        box-shadow: 0 10px 30px rgba(0,0,0,.2);
      }
      #popupImg {
        display: block;
        max-width: 85vw;
        max-height: 70vh;
        margin: 0 auto;
      }
      .popup-close {
        position: absolute;
        top: 8px;
        right: 10px;
        font-size: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
      }
      .popup-controls {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 10px;
      }
      .popup-controls button {
        padding: 8px 14px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
      }
      .order-btn3 {
  font-family: 'Anuphan', sans-serif;
  background-color: #fa3434;
  color: white;
  padding: 8px 16px; /* ลดขนาด padding จากเดิม */
  border: none;
  border-radius: 5px;
  font-size: 1.0em;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.order-btn3:hover {
    background-color: #b71c1c;   /* แดงเข้มเมื่อ hover */
}
/* ===== Voda Gallery: แสดงรูปเรียงยาว เห็นเต็มรูป ===== */
#voda-gallery {
  margin-top: 100px;           /* เว้นระยะจากส่วนบนของหน้า */
  margin-bottom: 20px;         /* เว้นก่อนเข้า Product */
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* จากเดิมเป็น grid หลายคอลัมน์ → ปรับเป็นคอลัมน์เดียว */
.gallery-grid {
  display: block;              /* คอลัมน์เดียวเรียงลงมา */
}

/* ให้รูปเต็มรูป: ไม่บิด ไม่ครอบ */
.gallery-grid img {
  display: block;
  width: 100%;                 /* กว้างสุดตามคอนเทนเนอร์ */
  height: auto;                /* รักษาสัดส่วนภาพ */
  /* object-fit ไม่จำเป็นเมื่อปล่อย height:auto */
  margin: 0 auto 16px;         /* เว้นรูปถัดไป */
  border-radius: 10px;
  background: #f7f7f7;         /* เผื่อรูปใส/โปร่ง */
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform .2s ease;
}

.gallery-grid img:last-child {
  margin-bottom: 0;            /* ตัดช่องว่างท้ายแกลเลอรี่ */
}

.gallery-grid img:hover {
  transform: translateY(-2px);
}
