* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Kanit", serif;
}
#wrapper {
    width: 100%;
    min-height: 100vh;
}
body {
    background-color: #f4f4f4;
}
iconify-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
}
/* navbar *//* navbar *//* navbar */
.allnavbar {
    width: 100%;
    height: 100px;
    background-color: #f4f4f4;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 30px;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
    position: fixed;
    z-index: 100;
    top: 0;
}

.nav {
    margin-right: 35px;
}

.left-navbar {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-right: 300px;
}

.right-navbar {
    display: flex;
    gap: 15px;
    align-items: center;
}
.nav-icon-1 .ant-design-home {
    margin-left: 12px;
    margin-bottom: 10px;
}
.nav-icon-1 a{
    text-decoration: none;
    color: #242424;
}
.nav-icon-1 a:hover{
    color: #04757b;
    transition: color 0.3s ease;
}

/* change when another page *//* change when another page *//* change when another page *//* change when another page */
.nav-icon-3 a.active {
    font-weight: bold;
    color: #04757b;
}
/* change when another page *//* change when another page *//* change when another page *//* change when another page */

.nav-icon-2 .ant-design-product {
    margin-left: 28px;
    margin-bottom: 10px;
}
.nav-icon-2 a{
    text-decoration: none;
    color: #242424;
}
.nav-icon-2 a:hover{
    color: #04757b;
    transition: color 0.3s ease;
}

.nav-icon-3 .ant-design-suggest {
    margin-left: 20px;
    margin-bottom: 10px;
}
.nav-icon-3 a{
    text-decoration: none;
    color: #242424;
}
.nav-icon-3 a:hover{
    color: #04757b;
    transition: color 0.3s ease;
}

.nav-icon-4 .ant-design-about {
    margin-left: 20px;
    margin-bottom: 10px;
}
.nav-icon-4 a{
    text-decoration: none;
    color: #242424;
}
.nav-icon-4 a:hover{
    color: #04757b;
    transition: color 0.3s ease;
}

.nav-icon-5 .ant-design-review {
    margin-left: 15px;
    margin-bottom: 10px;
}.nav-icon-5 a{
    text-decoration: none;
    color: #242424;
}
.nav-icon-5 a:hover{
    color: #04757b;
    transition: color 0.3s ease;
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-logo img {
    height: 70px;
}
.search-container {
    display: flex;
    align-items: center;
    width: 270px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px;
    background: white;
    margin-right: 50px;
}
.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 5px 10px;
    background: transparent;
}
.search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    color: #333;
}
.search-btn:hover {
    color: #04757b;
}


.user-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 50px; 
}
.user-container iconify-icon {
    width: 32px;
    height: 32px;
    display: block;
}
.user-name {
    white-space: nowrap;
    text-align: center;
}
.nav-icon-user a {
    text-decoration: none;
    color: #242424;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s ease;
}
.nav-icon-user a:hover {
    color: #04757b;
}
.nav-icon-user .n-user a.active {
    font-weight: bold;
    color: #04757b;
}



.nav-icon-6 .ant-design-coin {
    margin-left: 15px;
    margin-bottom: 10px;
}
.nav-icon-6 a{
    text-decoration: none;
    color: #242424;
}
.nav-icon-6 a:hover{
    color: #04757b;
    transition: color 0.3s ease;
}

.nav-icon-7 .ant-design-cart {
    margin-left: 2px;
    margin-bottom: 10px;
}
.nav-icon-7 a{
    text-decoration: none;
    color: #242424;
}
.nav-icon-7 a:hover{
    color: #04757b;
    transition: color 0.3s ease;
}






/* ใช้สำหรับทุกหน้าที่มี hero banner *//* ใช้สำหรับทุกหน้าที่มี hero banner *//* ใช้สำหรับทุกหน้าที่มี hero banner *//* ใช้สำหรับทุกหน้าที่มี hero banner */


.line-md--chevron-small-right {
    display: inline-block;
    width: 24px;
    height: 24px;
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12l-5 -5M15 12l-5 5'/%3E%3C/svg%3E");
    background-color: currentColor;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.herobanner-page {
    width: 100%;
    height: 300px;
    background: url(pic/slide5.JPG);
    background-size: cover;
    background-position: center -300px;
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
    margin-top: 100px;
}
.herobanner-page h1 {
    font-size: 48px;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.7);
}

.mini-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.mini-nav a{
    text-decoration: none;
    color: #242424;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.7);
}
.mini-nav a:hover {
    text-decoration: underline;
    color: #04757b;
}



/* ใช้สำหรับทุกหน้าที่มี hero banner *//* ใช้สำหรับทุกหน้าที่มี hero banner *//* ใช้สำหรับทุกหน้าที่มี hero banner */

























.recommend-quiz {
  max-width: 60%;
  margin: 100px 20% 40px 20%;
  padding: 20px;
  font-family: 'Prompt', sans-serif;
  animation: fadeIn 0.6s ease;
}
.question-inner-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px;
}

.question-img {
  max-width: 100%;
  border-radius: 12px;
}

.question-image {
  flex: 1;
  max-width: 400px;
  background: #f3f3f3;
  padding: 20px;
  border-radius: 12px;
}

.question-content {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.submit-section {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

.submit-section.right-only {
  justify-content: flex-end;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.progress-wrapper {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 5px;
  margin-bottom: 20px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background-color: #04757B;
  width: 0%;
  transition: width 0.4s ease-in-out;
}

/* Question Block Layout */
.question-block {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  animation: fadeIn 0.4s ease;
}

.question-block > .question-image {
  width: 40%;
  background-color: #eee;
  border-radius: 12px;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.question-block > .question-content {
  width: 55%;
}

.question-block h3 {
  margin-top: 0;
  color: #333;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: bold;
}

.question-block label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  color: #444;
  cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 10px;
}

/* Navigation Buttons */
.prev-btn,
.next-btn,
.show-recommendation {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.next-btn {
  background-color: #04757B;
  color: white;
  float: right;
}
.next-btn:hover {
  background-color: #035d64;
}

.prev-btn {
  background-color: #E0E0DE;
  color: #333;
  float: left;
}
.prev-btn:hover {
  background-color: #c8c8c8;
}

.submit-section {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}


.show-recommendation {
  background-color: #BB7E5D;
  color: white;
}
.show-recommendation:hover {
  background-color: #a0694d;
}

/* Clear float buttons */
.question-block::after {
  content: "";
  display: table;
  clear: both;
}


/* การ์ดสินค้า recommend_result.php */
.product-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 1100px;
  padding: 0 1rem;
  margin-bottom: 40px;
  font-family: "Kanit", serif;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-top: 2rem;
  font-weight: bold;
}

.product-card {
  position: relative;
  width: 240px;
  min-height: 360px;
  box-shadow: 0px 1px 13px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.product-card .image {
  background: #f1f1f1;
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
}

.product-card .image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.product-card .title {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin-top: 0.8rem;
  min-height: 2.5rem;
}

.product-card .price {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: #04757B;
  margin-top: 0.3rem;
}

/* ปุ่มดูสินค้าที่แสดงเมื่อ hover */
.product-card::after {
  content: "ดูสินค้า";
  position: absolute;
  left: 0;
  bottom: -60px;
  background: #04757B;
  color: #fff;
  height: 2.5em;
  width: 100%;
  transition: all 0.2s ease;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0;
  border-radius: 0 0 12px 12px;
  text-align: center;
  padding-top: 0.6em;
}

.product-card:hover::after {
  bottom: 0;
  opacity: 1;
}

.product-card:active::after {
  content: "กำลังโหลด...";
}





































/* footer *//* footer *//* footer *//* footer *//* footer *//* footer *//* footer *//* footer *//* footer *//* footer */
footer {
    background-color: #04757b;
    color: white;
    width: 100%;

    padding: 40px 5% 20px 5%;
    font-family: sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.logo-column img.footer-logo {
    height: 70px;
    margin-bottom: 10px;
}

.logo-column p {
    font-size: 14px;
    line-height: 1.6;
}

.link-column a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 15px 0;
    font-size: 14px;
}

.link-column a:hover {
    text-decoration: underline;
}

.subscribe-column p {
    margin-top: 10px;
    margin-bottom: 30px;
    font-weight: 500;
}


.footer-bottom {
    border-top: 1px solid white;
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 13px;
}

.social-icons {
    display: flex;
    justify-content: space-between;
}

.social-icons a {
    display: inline-block;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.facebook_footer {
    background-image: url(pic/Facebook_Logo_\(2019\).png.png);
}

.shopee_footer {
    background-image: url(pic/Logo-Shopee.png);
}

.line_footer {
    background-image: url(pic/OG-Image-LS-1200x630.png);
}

.laz_footer {
    background-image: url(pic/TB1PApewFT7gK0jSZFpXXaTkpXa-200-200.png);
}
/* footer *//* footer *//* footer *//* footer *//* footer *//* footer *//* footer *//* footer *//* footer *//* footer */