* {
    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-2 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 -900px;
    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 */









.products-page {
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    justify-items: center;
}


.left-product{
    width: 15%;
    margin-left: 15%;
    margin-top: 100px;
}
.right-product {
    flex: 1;
    width: 50%;
    margin-right: 10%;
}
.pagination-product {
    text-align: center;
    margin-top: 30px;
}

.product-card {
    width: 310px;
    height: 385px;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 8px;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.product-card:hover {
    transform: scale(1.03);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 270px;
    height: 250px;
    position: relative;
    margin: auto;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 22px;
    color: #04757b;
    cursor: pointer;
    transition: color 0.3s ease;

}

.wishlist-icon:hover {
    color: red;
}

.wishlist-icon[icon="ant-design:heart-filled"],
.wishlist-icon-detail[icon="ant-design:heart-filled"] {
    color: red !important;
}


/* .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
} */

.product-details {
    padding: 10px;
    font-weight: normal;
}

.product-details h3 {
    font-weight: normal;
    margin-top: 10px;
    margin-bottom: 5px;
}


.product-price {
    font-size: 16px;
    font-weight: bold;
}

.current-price {
    margin-bottom: 5px;
}

.old-price {
    text-decoration: line-through;
    color: gray;
    margin-left: 10px;
}


.rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 5px;
    color: #ffc73a;
    /* สีดาว */
    font-size: 16px;
}

.rating-stars .iconify-icon {
    font-size: 18px;
}

.rating-count {
    margin-left: 5px;
    color: #555;
    font-size: 14px;
}



.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.3rem;
  --stroke: #666;
  --fill: #ffc73a;
  margin-bottom: 10px;
  margin-top: 10px;
}


.rating input {
  appearance: none;
  position: absolute;
}

.rating label {
  cursor: pointer;
}

.rating svg {
  width: 2rem;
  height: 2rem;
  fill: transparent;
  stroke: var(--stroke);
  stroke-linejoin: bevel;
  stroke-dasharray: 12;
  animation: idle 4s linear infinite;
  transition: stroke 0.2s, fill 0.5s;
}

@keyframes idle {
  from {
    stroke-dashoffset: 24;
  }
}

.rating label:hover svg,
.rating input:hover ~ label svg {
  stroke: var(--fill);
}

.rating input:checked ~ label svg {
  transition: 0s;
  animation: idle 4s linear infinite, yippee 0.75s backwards;
  fill: var(--fill);
  stroke: var(--fill);
  stroke-opacity: 0;
  stroke-dasharray: 0;
  stroke-linejoin: miter;
  stroke-width: 8px;
}

@keyframes yippee {
  0% {
    transform: scale(1);
    fill: var(--fill);
    fill-opacity: 0;
    stroke-opacity: 1;
    stroke: var(--stroke);
    stroke-dasharray: 10;
    stroke-width: 1px;
    stroke-linejoin: bevel;
  }

  30% {
    transform: scale(0);
  }

  30.1% {
    stroke: var(--fill);
    stroke-dasharray: 0;
    stroke-linejoin: miter;
    stroke-width: 8px;
  }

  60% {
    transform: scale(1.2);
    fill: var(--fill);
  }
}




.add-to-cart {
    font-size: 38px;
    cursor: pointer;
    color: #242424;
    transition: transform 0.2s ease, color 0.3s ease;
    position: absolute;
    margin-top: -60px;
    right: 25px;
    border: none;
    background: none;
}

.add-to-cart:hover {
    transform: scale(1.1);
    color: #04757b;
}



/* 🔹 ซ่อน popup alert login */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-content p {
    font-size: 18px;
    margin-bottom: 10px;
}

.popup-content button {
    margin: 5px;
    padding: 10px 20px;
    border: none;
    background: #04757b;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.popup-content button:hover {
    background: #035c60;
}







.filter-toggle {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: #f0f0f0;
  color: #333;
  font-size: 14px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}

.filter-toggle.active {
  background-color: #ff9d3b;
  color: #fff;
  font-weight: bold;
  border-color: #ff9d3b;
}

.filter-toggle input {
  display: none;
}

.filter-dropdown {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 40px;
}










/* 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;
}

.clean-sorting {
    padding: 10px 20px;
    background: #f4f1eb;
    color: #242424;
    border: none;
    text-decoration: none;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    display: block;
}



.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 */







.popup-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.popup-modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  font-family: 'Prompt', sans-serif;
}

.popup-modal-content p {
  font-size: 16px;
  margin-bottom: 20px;
}

.popup-close-btn {
  padding: 10px 20px;
  background-color: #04757B;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
