/* ===== Container for Service Page ===== */
.container-led {
    max-width: 1400px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 1px;
}

/* ===== Image Placeholder for Services ===== */
.image-placeholder {
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.p1 {
        font-size: 15px !important;
        line-height: 1.6;
        margin: 20px auto;
        padding: 0 10px;
        text-indent: 20px;
    }
.service-heading {
  text-align: center;
  margin: 20px 0;
}


/*สำหรับจัดการส่วนสินค้า*/
.product-card-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* ปรับขนาดให้พอดีกับหน้าจอ */
    gap: 20px;
    /*justify-content: center;
    align-items: stretch;
    margin-top: 20px;*/
    
}
.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
    gap: 20px;
    width: 300px;
    /*height: 500px;*/
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-description {
    font-size: 14px;
    color: #555;
    padding: 0px 15px;
    text-align: left;
    flex-grow: 1;
    margin-top: 1;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 0px;
    text-align: left;
    padding: 10px;
    
}
.product-price {
  font-size: 16px;
  color: #e91e63;
  margin: 10px 0;
}
.product-btn {
  display: inline-block;
  margin: 0 auto 15px auto;
  padding: 5px 5px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.3s;
}
.product-btn:hover {
  background-color: #0056b3;
}
.product-card img.product-image  {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-top: 3px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00274d; 
  text-align: center; 
  position: relative; 
  margin-bottom: 10px;
  display: inline-block;
  width: 600px; 
}
.underline {
  width: 300px;
  height: 3px;
  background-color: #FFD700; /* ใช้สีเหลือง */
  margin: 5px auto 0;
}
.underline-u {
  width: 200px;
  height: 3px;
  background-color: #FFD700; /* ใช้สีเหลือง */
  margin: 5px auto 0;
}
.message.error {
  background-color: #f8d7da;    
  border: 1px solid #f5c6cb;    
  color: #721c24;               
  padding: 12px 20px;           
  margin: 20px 0;               
  border-radius: 4px;           
  font-size: 0.9rem;            
  text-align: left;             
}



/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .image-placeholder {
    margin: 10px 0;
    padding: 0;
    height: auto !important;
    display: flex;
    justify-content: center;
  }

  .image-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  .divider {
    display: none;
  }
  .products-description {
    font-size: 13px;
  }
  .section-title {
    font-size: 1.2rem;
}
}