/* ฟอนต์และโครงสร้างพื้นฐาน */
* {
    box-sizing: border-box;
    
  }
  body {
    margin: 0;
    padding: 0;
  }
  
  
  .gift-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    padding-top: 80px;   /* ดันเนื้อหาลงมาใต้ header */
    box-sizing: border-box;
  }
  
  .hero-video {
    position: absolute;
    inset: 0;        /* = top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  
  
  .hero-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    /* background: rgba(0, 0, 0, 0.4); */
    padding: 2rem 3rem;
    border-radius: 20px;
    z-index: 1;
    /* box-shadow: 0 0 30px rgba(0, 0, 0, 0.3); */
  }
  
  .hero-text h1 {
    font-family: 'Charm', cursive;
    font-size: 5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.774);
  }
  
  .hero-text p {
    font-family: 'Sriracha', cursive;
    font-size: 1.8rem;
    color: #fffafc;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  }
  
  /* ===== BUTTON STYLE ===== */
  .load-more-button {
    display: block;
    margin: 30px auto;
    padding: 12px 36px;
    background-color: #f48fb1;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(244, 143, 177, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  .load-more-button:hover {
    background-color: #e91e63;
    box-shadow: 0 6px 12px rgba(233, 30, 99, 0.5);
  }








  /* ===== welcome STYLE ===== */
  .welcome-section {
    padding: 10px 20px;
    
    background-color: #fff9f9;
    text-align: center;
    font-family: 'Noto Sans Thai', sans-serif;
  }
  
  .welcome-section .container {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .welcome-section h2 {
    font-size: 2.4rem;
    color: #c49a6c;
    margin-bottom: 20px;
  }
  
  .welcome-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
  }
  


  /* ===== galler STYLE ===== */
  h1{
    font-family:'Oswald',sans-serif;
    font-size:50px;
  }
  .gallery-wrap{
    display:flex;
    width:100%;
    height:200px;
  }
  
  .item {
    flex: 1;
    height: 50%;
    background-position: center;
    background-size: cover;
    background-repeat: none;
    transition: flex 0.8s ease;
    
    &:hover{
      flex: 7;
    }
  }
  
  .item-1{
    background-image:url('/img/index/ของชำร่วย.jpg'); 
  }
  .item-2{
    background-image:url('/img/index/ของรับไหว้.jpg');
  }
  .item-3{
    background-image:url('https://images.pexels.com/photos/1048256/pexels-photo-1048256.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940');
  }
  .item-4{
    background-image:url('https://images.pexels.com/photos/7919/pexels-photo.jpg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940');
  }
  .item-5{
    background-image:url('https://images.pexels.com/photos/38910/magnolia-trees-springtime-blossoms-spring-38910.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940');
  }

  .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center; /* กลางแนวตั้ง */
    align-items: center;     /* กลางแนวนอน */
    height: 50vh;           /* เต็มหน้าจอแนวตั้ง */
    padding: 20px;
    box-sizing: border-box;
  }
  
  h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 40px;
    margin-bottom: 20px;
  }
  
  .gallery-wrap {
    display: flex;
    width: 90vw;         /* กว้าง 90% ของ viewport width */
    max-width: 1200px;   /* กำหนดความกว้างสูงสุด */
    height: 350px;
    margin: 0 auto;      /* กึ่งกลางแนวนอน */
  }
  
  
  .item {
    position: relative;
    flex: 1;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: flex 0.8s ease;
    cursor: pointer;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .item:hover {
    flex: 7;
  }
  
  .item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    transition: background 0.8s ease;
    z-index: 1;
  }
  
  .item:hover::before {
    background: rgba(0,0,0,0.6);
  }
  
  .item > * {
    position: relative;
    z-index: 2;
  }
  
  .item h3 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
  }
  
  .item p {
    margin: 0 0 15px 0;
    font-size: 1rem;
  }
  
  .item button {
    background-color: #d4945a;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s ease;
    z-index: 2;
  }
  
  .item button:hover {
    background-color: #b3763e;
  }





/* ===== article STYLE ===== */

.article-section {
    background-color: #f9f5f0;
    padding: 60px 20px;
    text-align: center;
  }
  
  .article-section .container {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .article-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    color: #a66c3e;
    margin-bottom: 40px;
  }
  
  .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
  }
  
  .article-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
  }
  
  .article-box:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }
  
  .article-box img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
    height: 150px;
    margin-bottom: 15px;
  }
  
  .article-box h3 {
    font-family: 'Oswald', sans-serif;
    color: #a66c3e;
    font-size: 22px;
    margin: 0 0 10px 0;
  }
  
  .article-box p {
    font-size: 16px;
    color: #555;
    flex-grow: 1;
  }
  
  .article-box button {
    align-self: flex-start;
    background-color: #d18c5a;
    border: none;
    color: white;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
  }
  
  .article-box button:hover {
    background-color: #b3713e;
  }
  









/* ===== related-products STYLE ===== */

  .related-products {
    max-width: 1100px;
    margin: 4rem auto 3rem;
    padding: 0 1rem;
  }
  
  .related-products h2 {
    font-size: 2rem;
    color: #5e4436;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
  }
  
  .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
  }
  
  .related-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgb(0 0 0 / 0.08);
    text-align: center;
    text-decoration: none;
    color: #4a4a4a;
    padding: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgb(0 0 0 / 0.12);
  }
  
  .related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
  }
  
  .related-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: 'Noto Sans Thai', sans-serif;
  }
  
  .related-card .price {
    font-weight: 700;
    color: #d43f52;
    font-size: 1rem;
  }
  
  
  
  /* Responsive */
  @media (max-width: 768px) {
    .product-container {
      flex-direction: column;
      margin: 2rem 1rem;
    }
    .product-images, .product-info {
      max-width: 100%;
    }
    .product-thumbs {
      justify-content: flex-start;
    }
  }
  
 


/* ===== new-products STYLE ===== */
  .new-products {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
    font-family: 'Noto Sans Thai', sans-serif;
  }
  
  .new-products h2 {
    font-size: 28px;
    color: #d32f2f; /* แดงนิดๆ */
    margin-bottom: 30px;
    border-bottom: 2px solid #ccc;
    display: inline-block;
    padding-bottom: 10px;
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .product-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
    background-color: #fff;
  }
  
  .product-item img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .product-item:hover {
    transform: scale(1.03);
  }
  
  
/* ===== map STYLE ===== */
  .map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  /* Responsive embed (อัตราส่วน 16:9) */
  .map-container iframe {
    width: 100% !important;
    height: 400px;
  }
  
  


  @media screen and (max-width: 1024px) {
    .hero-text h1 {
      font-size: 3.5rem;
    }
  
    .hero-text p {
      font-size: 1.4rem;
    }
  
    .gallery-wrap {
      height: 250px;
    }
  
    .item:hover {
      flex: 4; /* ปรับลดการขยาย */
    }
  
    .wrapper h1 {
      font-size: 30px;
    }
  }
  
  @media screen and (max-width: 768px) {
    .hero-text {
      top: 45%;
      padding: 1rem 2rem;
    }
  
    .hero-text h1 {
      font-size: 2.5rem;
    }
  
    .hero-text p {
      font-size: 1.2rem;
    }
  
    .gallery-wrap {
      flex-direction: column;
      height: auto;
    }
  
    .item {
      flex: none;
      height: 200px;
      width: 100%;
    }
  
    .item:hover {
      flex: none;
    }
  
    .wrapper {
      height: auto;
      padding: 40px 20px;
    }
  
    .welcome-section h2 {
      font-size: 1.8rem;
    }
  
    .welcome-section p {
      font-size: 1rem;
    }
  
    .article-section h2,
    .new-products h2,
    .related-products h2 {
      font-size: 1.6rem;
    }
  
    .article-box p {
      font-size: 14px;
    }
  
    .article-box button,
    .item button {
      font-size: 14px;
      padding: 8px 16px;
    }
  
    .map-container iframe {
      height: 250px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .hero-text h1 {
      font-size: 2rem;
    }
  
    .hero-text p {
      font-size: 1rem;
    }
  
    .item h3 {
      font-size: 1.3rem;
    }
  
    .item p {
      font-size: 0.9rem;
    }
  
    .new-products h2,
    .related-products h2,
    .article-section h2 {
      font-size: 1.4rem;
    }
  
    .product-grid,
    .related-grid,
    .articles-grid {
      grid-template-columns: 1fr;
    }
  
    .load-more-button {
      padding: 10px 24px;
      font-size: 14px;
    }
  }
  




  