
/* ===============================
   ALAIDEE NAVBAR – LARGE LOGO STYLE
=============================== */
* {
    box-sizing: border-box;
}

body {
  font-family: 'Prompt', sans-serif;
}

/* ===============================
   ALAIDEE NAVBAR – STABLE LARGE LOGO
=============================== */

/* ===============================
   ALAIDEE NAVBAR – PRO VERSION
=============================== */

.navbar.alaidee-navbar {
  height: 92px;
  display: flex;
  align-items: center;
  background: linear-gradient(
      180deg,
      #f2d96b 0%,
      #f2c94c 100%
  ) !important;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}



/* =====================================
   NAV STRUCTURE – FINAL PRO LAYOUT
===================================== */

/* container เป็น flex หลัก */
.alaidee-navbar .alaidee-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* collapse ต้องกินพื้นที่เต็ม */
.alaidee-navbar .navbar-collapse {
    display: flex !important;
    align-items: center;
    flex: 1;
}

/* ===== LEFT (LOGO) ===== */
.alaidee-navbar .navbar-brand {
    flex: 0 0 auto;
}

/* ===== CENTER ===== */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-center .navbar-nav {
    display: flex;
    align-items: center;
    gap: 48px;
}

/* ===== RIGHT ===== */
.nav-right {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

.nav-right .navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}



.alaidee-center-menu .nav-link {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: 0.2s ease;
}


/* right menu */
.alaidee-right-menu {
  display: flex;
  gap: 36px;
  align-items: center;
}

/* cart */
.cart-icon {
  font-size: 22px;
  position: relative;
}

.cart-badge {
  top: 4px;
  right: -4px;
  font-size: 10px;
}


.alaidee-navbar .nav-link {
  display: inline-block;
  position: relative;
  padding: 0 10px;   /* 🔥 เพิ่ม buffer */
  line-height: 1.2;  /* 🔥 ปรับความสูงตัวอักษร */
}

.alaidee-navbar .nav-link:hover {
  color: #000 !important;
}

.alaidee-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: #000;
  transition: width .25s ease;
}

.alaidee-navbar .nav-link:hover::after {
  width: 100%;
}




.alaidee-navbar .navbar-brand img {
  height: 120px;       /* ขนาดที่คุณชอบ */
  position: relative;
  top: 4px;           /* 🔥 ดันลงให้กลางจริง */
}
/* =========================
   GLOBAL SEARCH BAR
========================= */

.search-zone {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: none;
}

/* ===============================
   PRODUCT TOP SPACING
=============================== */


.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    height: 50px;
    padding: 0 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: 0.2s ease;
}

.search-input:focus {
    border-color: var(--ala-yellow);
    outline: none;
}

.search-btn {
    height: 50px;
    padding: 0 25px;
    background: var(--ala-yellow);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.search-btn:hover {
    background: #e0a800;
}

/* =========================
   BREADCRUMB
========================= */

.breadcrumb {
    margin-top: 12px;
    margin-bottom: 18px;
    font-size: 12px;   /* 👈 ลดตรงนี้ */
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #f2c94c;
}

.breadcrumb .active {
    color: #1f1f1f;
    font-weight: 600;
}

:root{
  --ala-black:#111111;
  --ala-yellow:#f2c94c;   /* ใช้ตัวนี้เป็นหลัก */
  --ala-green:#1f6b3a;
  --ala-border:#e5e7eb;
  --btn-width: 220px;
  --ala-gap: 18px;
}




/* =========================
   ปรับตัวเลข ในหน้าสินค้า
========================= */

.price{
  color:var(--ala-yellow);
  font-weight:700;
}

.trust-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:500;
  color:var(--ala-green);
}


.product-main-title {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 14px;
}

.product-main-title .mpn {
    font-weight: 700;
    color: #111;
}

.product-main-title .brand {
    font-weight: 500;
    color: #555;
    margin-left: 8px;
}


.product-subtitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.meta-tech {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.meta-row {
    margin-bottom: 8px;
    font-size: 14px;
}

.meta-label {
    color: #888;
    margin-right: 4px;
}


.meta-value {
    color: #111;
}

.meta-value.strong {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}


.meta-row-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    row-gap: 4px;
    align-items: start;
    margin-bottom: 12px;
    font-size: 14px;
}

.meta-left,
.meta-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}



.meta-row-flex {
    display: flex;
    align-items: center;   /* ⭐ เปลี่ยนเป็น center */
    gap: 30px;
}

.meta-tech {
    flex: 1 1 0%;
    min-width: 0;              /* ⭐ สำคัญมาก */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}


/* =========================
   PRODUCT META INLINE ROW
========================= */

.meta-inline-row {
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.meta-item .meta-label {
    color: #9ca3af;
    font-weight: 500;
}

.meta-item .meta-value {
    color: #111;
    font-weight: 600;
}

.meta-item .meta-value.strong {
    font-size: 16px;
}

.tech-text {
    overflow: hidden;
}

/* =========================
   CATEGORY + TECH INLINE
========================= */

.meta-inline-tech {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #444;
    min-width: 0;
}

.tech-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}





.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f3f8;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.product-meta-line {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 500;
    color: #444;
}

/* ===============================
   AVAILABILITY FLEX VERSION
=============================== */

.availability-row-wrapper {
    margin-bottom: 18px;
}

.availability-card {
    padding: 8px 14px;
    border-radius: 10px;
    min-height: 42px;
}


.availability-text {
    font-size: 50px;
    line-height: 1.2;
}

/* ไอคอนกลมจริง */
.icon-circle,
.icon-truck {
    width: 28px;
    height: 28px;
    border-radius: 50%;       /* 🔥 อันนี้ทำให้กลับมากลม */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* สีพื้นหลังกล่องสต๊อก */
.stock-high {
    background: rgba(46, 204, 113, 0.05);
}

.stock-high .icon-circle {
    background: transparent;
    color: #f30a0a;
}

.delivery {
    background: transparent;
    border: 1px solid rgba(154, 123, 0, 0.25);
}

.delivery .icon-truck {
    background: transparent;
    color: #9a7b00;
}

.highlight-number {
    font-size: 15px;
    font-weight: 600;
    opacity: 0.85;
  font-weight: 600;
  }


/* ===== จัดตรงหน้าสินค้า ส่วน พร้อมส่ง จัดส่งภายใน ===== */


/* ===ควบคุมแถวของราคา ==== */

.price-line-extended {
    display: grid;
    grid-template-columns: 240px var(--btn-width) var(--btn-width);
    gap: var(--ala-gap);
    align-items: center;
    width: 100%;
}

.price-availability-inline {
    display: contents;
}

.price-left {
    grid-column: 1;
}

.price-availability-inline .availability-pill:nth-child(1) {
    grid-column: 2;
}

.price-availability-inline .availability-pill:nth-child(2) {
    grid-column: 3;
}


.price-availability-inline .availability-pill {
    width: var(--btn-width);
}

.price-line-extended,
.buy-row {
    width: 100%;
        gap: var(--ala-gap);
}

.availability-pill {
    display: flex;              /* ⭐ สำคัญมาก */
    align-items: center;        /* จัดกลางแนวตั้ง */
    justify-content: center;    /* จัดกลางแนวนอน */
    height: 35px;
    padding: 0;   /* ⭐ เอา padding ออก */
    border-radius: 8px;

    font-size: 14px;
    font-weight: 400;

    box-shadow: none;
    border: 0px solid rgba(0,0,0,0.05);
}

.availability-pill strong {
    font-weight: 700;
    font-size: 16px;
    margin: 0 6px;
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
}


.availability-pill.stock {
    background: #f4fbf7;   /* เขียวอ่อนกว่าเดิม */
    color: #2e7d32;
}

.availability-pill.delivery {
    background: #fff8e6;   /* เหลืองครีม */
    color: #2e7d32;
}

.line-box{
    display:flex;
    align-items:center;
    gap:15px;
}

.line-qr{
    width:80px;
    border-radius:6px;
}

.line-action{
    display:flex;
    flex-direction:column;
}

.alaidee-footer img{
    width:80px;
    border-radius:8px;
}

.alaidee-footer .btn{
    padding:6px 14px;
}
.alaidee-footer{
    font-size:14px;
}


.alaidee-footer p,
.alaidee-footer span{
    font-size:15px;
}
.alaidee-footer h6{
    font-size:18px;
    font-weight:600;
    letter-spacing:0.3px;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-section {
    flex: 1;
}




/* Mobile */

@media (max-width:768px){
    .price-line-extended {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

   
}

/* Mobile */
@media (max-width: 768px) {
    .availability-row-wrapper {
        flex-direction: column;
    }
}


/* ===============================
   BASE BUTTON STRUCTURE
=============================== */

.ala-btn { 
height: 58px; 
width: var(--btn-width); 
border-radius: 14px; 
border: none; 
font-size: 16px; 
font-weight: 600; 
display: flex; /* เปลี่ยนจาก inline-flex */ 
align-items: center; 
justify-content: center; 
gap: 8px; 
cursor: pointer; 
transition: all .18s ease; }


/* ===============================
   GOLD CART BUTTON
=============================== */


.ala-btn-cart{
    background: #f2c94c;
    color: #111;
    border: 1px solid #d4b100;
    box-shadow: none;
}



.ala-btn-cart:hover{
    background: #e6bb38;
    transform: none;
}


.ala-btn-cart:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #c28f00;
}



/* ===============================
   GREEN BUY BUTTON
=============================== */

.ala-btn-buy{
    background: #2f7f4f;
    color: #fff;
    border: 1px solid #2a6a44;
    box-shadow: none;
}



.ala-btn-buy:hover{
    background: #276b43;
    transform: none;
}

.ala-btn-buy:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #2a6a44;
}


.buy-row{
    display: grid;
    grid-template-columns: 240px var(--btn-width) var(--btn-width);
    gap: var(--ala-gap);
    align-items: center;
    width: 100%;
}


.buy-box {
    display: flex;
    align-items: flex-start;
    width: 100%;
}


.cta-row {
    display: flex;
    gap: 16px;
    margin-left: auto;   /* ดันปุ่มไปขวาสุด */
    gap: var(--ala-gap);
}





.availability-text {
    white-space: nowrap;
}


.buy-top-row {
    display: flex;
    align-items: center;
    gap: 24px;
}




/* ===============================
   MENU LAYOUT – CLEAN VERSION
=============================== */
/* ===============================
   ALAIDEE NAVBAR – FINAL STABLE
=============================== */

.alaidee-navbar .navbar-nav {
  align-items: center;
}

/* hover */
.alaidee-navbar .nav-link:hover {
  color: #000 !important;
}




/* LINK STYLE */
.alaidee-navbar .nav-link {
  color: #1f1f1f !important;
  font-weight: 500;
}

/* CART */
.cart-icon {
  font-size: 1.2rem;
}

.btn-ala-yellow{
  background: var(--ala-yellow);
  color:#000;
  font-weight:600;
  border:none;
}

.btn-ala-yellow:hover{
  background:#000;
  color:#fff;
}

.btn-ala-green{
  background: var(--ala-green);
  color:#fff;
  border:none;
}


/* ================================
   ภาพซ้ายและฝั่งขวา
================================ */
/* ===== Layout ===== */
.main-section-product .row {
  align-items: stretch;
}

.col-lg-5,
.col-lg-7 {
  display: flex;
}
.product-card {
  flex: 1;
  height: 100%;

  display: flex;              /* 🔥 เพิ่ม */
  flex-direction: column;     /* 🔥 เพิ่ม */

  background: #ffffff;
  border-radius: 26px;
  padding: 32px;

  border: 1px solid #ececec;

  box-shadow:
      0 25px 60px rgba(0,0,0,0.06),
      0 8px 20px rgba(0,0,0,0.04);

  position: relative;
  overflow: hidden;

  transition: all .25s ease;
}
.product-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 10px;
  background: linear-gradient(
      90deg,
      #e4c552 0%,
      #f2d96b 50%,
      #e4c552 100%
  );

  border-top-left-radius: 28px;
  border-top-right-radius: 28px;

  z-index: 0;
  box-shadow:
    0 4px 8px rgba(242,201,76,0.25);
}



.alaidee-breadcrumb {
  margin-bottom: 14px;
  color: #6b7280;
}


.product-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.product-card table {
  margin-bottom: 0;
}

.product-card ul {
  padding-left: 18px;
}

.spec-info-wrapper .product-card{
  padding: 26px 28px;  /* ลดจาก 32px */
}
.spec-info-wrapper .product-card{
  min-height: 420px;
}
.product-card h4{
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  position: relative;
}

.product-card h4::after{
  content:"";
  display:block;
  width: 60px;
  height: 3px;
  background: var(--ala-yellow);
  margin-top: 10px;
  border-radius: 4px;
}
.product-card table th{
  font-weight:600;
  color:#111;
}

.product-card table td{
  color:#444;
}




/* ===== Image Area ===== */
.product-image-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-product-image {
  max-height: 520px;
  width: 100%;
  object-fit: contain;
}

.thumb-row {
  margin-top: 18px;
}

.main-section-product {
  background: #f3f4f6;
  padding-top: 20px;
  padding-bottom: 40px;
}



.product-image-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* column เป็น flex */
.col-lg-5,
.col-lg-7 {
  display: flex;
}




/* ================================
   ALAIDEE FOOTER – ULTRA COMPACT
================================ */

.alaidee-footer {
  background-color: #f2c94c;
  color: #1f1f1f;

  padding: 8px 0;          /* 👈 สำคัญมาก */
  font-size: 13px;
}

.alaidee-footer h6 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.alaidee-footer p,
.alaidee-footer li {
  margin-bottom: 2px;
  line-height: 1.3;
}

.alaidee-footer .row {
  padding: 0;              /* 👈 ตัด padding ซ้อน */
}

.footer-link {
  color: #1f1f1f;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.alaidee-footer .border-top {
  margin-top: 6px;
  padding-top: 4px;
  font-size: 12px;
  border-color: rgba(0,0,0,0.25) !important;
}


/* ===============================
   ALAIDEE LAYOUT SYSTEM
=============================== */

:root{
  --site-max-width:1500px;
}

.alaidee-container{
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.main-section {
  padding-top: 5px;
  padding-bottom: 60px;
}

.main-section-sm {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ===============================
   PRODUCT PAGE STYLE
=============================== */

.product-wrap {
  background: #fff;
  border-radius: 18px;
}

.product-title {
  font-size: 1.7rem;
  font-weight: 700;
}

.meta-label {
  color: #9ca3af;
}

.meta-value {
  color: #374151;
}

.main-product-image {
  max-height: 520px;
  width: 100%;
  object-fit: contain;
  padding: 0;          /* 🔥 เอา padding ออก */
  border: none;        /* 🔥 เอา border ออก */
  border-radius: 0;    /* 🔥 เอา radius ออก */
}
.product-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
}


.price-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 12px 14px;
    border-radius: 16px;

    background: linear-gradient(180deg,#fffdf6,#fff6d9);
    border: 1px solid rgba(242,201,76,0.25);

    height: 80px;   /* ⭐ ทำให้สูงใกล้ปุ่ม */
}

.price-main {
    font-size: 45px;
    font-weight: 800;
    color: #c7a300;
    line-height: 1;
    text-align: center;
}

.price-vat {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    opacity: .85;
    margin-top: -2px;   /* 🔥 ดึงให้ชิดขึ้น */
    text-align: center;
}


.price-block {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 18px;
}

.price-main .currency {
    font-size: 26px;
    font-weight: 700;
    margin-right: 6px;
    vertical-align: top;
}




.price-block {
  margin-bottom: 24px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
}



/* =========================
   QTY MODERN – PROFESSIONAL
========================= */

.qty-modern {
    display: flex;
    align-items: center;
    height: 58px;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    width: 170px;
}

/* ปุ่ม - + */
.qty-modern .qty-btn {
    width: 50px;
    height: 100%;
    border: none;
    background: #f7f7f7;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}

.qty-modern .qty-btn:hover {
    background: #f2c94c;
    color: #000;
}

/* ช่องตัวเลข */
.qty-input-modern {
    width: 70px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    background: #fff;
}

/* เอาลูกศรขึ้นลงออก */
.qty-input-modern::-webkit-outer-spin-button,
.qty-input-modern::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input-modern {
    -moz-appearance: textfield;
}



/* ===============================
   PRICE TIER UNDER QTY
=============================== */

.tier-wrapper {
    margin-top: 0px;
    width: calc(
        240px + var(--ala-gap) + var(--btn-width)
    );
        max-width: 100%;
}


.tier-header-new {
    padding: 16px 20px;
    font-weight: 700;
    background: linear-gradient(90deg,#fff9e6,#fff4cc);
    border-bottom: 1px solid #e5e5e5;
    text-align: center; 
}

.tier-col-header {
    display: grid;
    grid-template-columns: 1fr 160px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #ececec;
    background: #fafafa;
}

.tier-box-new {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

/* Rows */
.tier-row-new {
    display: grid;
    grid-template-columns: 1fr 160px;
    padding: 6px 20px;  
    border-bottom: 1px solid #ececec;
}


.tier-row-new:last-child {
    border-bottom: none;
}


.tier-price {
    text-align: right;
    font-weight: 700;
    font-size: 14px; 
    color: var(--ala-green);
    font-variant-numeric: tabular-nums;
}

.tier-row-new:hover {
    background: #fafafa;
}

.tier-qty {
    text-align: left;
    font-variant-numeric: tabular-nums;
    font-weight: 600;  
    font-size: 14px;    
}



/* แถวแรกเป็น best tier */
.tier-row-new:first-child {
    background: linear-gradient(90deg,#fffbe6,#fff4cc);
    font-weight: 700;
}

/* ===============================
   TIER + TRUST SIDE BY SIDE
=============================== */
.tier-trust-row{
    display: flex;
    align-items: flex-start;   /* 🔥 สำคัญมาก */
    gap: 30px;
    margin-top: 12px;
}

.cta-and-trust {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 20px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.badge-icon {
  width: 28px;
  height: 28px;
  background: #f2d66b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
     box-shadow:
  0 30px 60px rgba(0,0,0,0.08),
  0 10px 25px rgba(0,0,0,0.06);
}

/* ===============================
   TRUST PANEL – PRODUCT PAGE
=============================== */

.trust-panel{
    padding: 22px 24px;
    margin-top: 0 !important;
    border-radius: 18px;
    width: var(--btn-width);
    max-width: var(--btn-width);
    background: linear-gradient(
        180deg,
        #fff8dc 0%,
        #fff2bf 100%
    );

    border: 1px solid rgba(242,201,76,0.35);
 margin-top: 0px;   /* ลอง 30 ก่อน */
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.05),
        0 6px 16px rgba(0,0,0,0.04);
}

/* แถวแต่ละรายการ */
.trust-item{
    display: flex;
    align-items: center;
    gap: 14px;

    font-size: 15px;
    font-weight: 500;
    color: #1f1f1f;
     white-space: nowrap;   /* ⭐ ห้ามตัดบรรทัด */
}

/* ไอคอนกลม */
.trust-icon{
    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: var(--ala-green);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 14px;

    box-shadow:
        0 6px 14px rgba(31,107,58,0.25);
}

.trust-wrapper{
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 18px;   /* ใช้ gap เดียวกับปุ่ม */
}



/* ===============================
   RELATED PRODUCTS
================================ */

.related-card {
    border-top: 6px solid #f2c94c;
    padding: 20px 24px;   /* เดิม 32px → ลดลง */
}

.related-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all .2s ease;
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.related-img-wrap {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.related-img-wrap img {
    max-height: 100px;
    object-fit: contain;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    min-height: 38px;
}

.related-price {
    color: #1f6b3a;
    font-weight: 700;
    font-size: 15px;
}

.related-row {
    flex-wrap: nowrap;
    overflow: hidden;
}

.related-row > div {
    flex: 0 0 16.66%;
    max-width: 16.66%;
}

.related-card h4::after {
  display: block;
  margin: 12px auto 0;
}




/* ===============================
   PRODUCT TRUST BADGES
================================ */

.badge-icon i {
    color: #2e7d32; /* เขียวเข้ม */
    font-size: 14px;
}




.product-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.product-card ul li {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 6px 0;          /* ลดจาก 10px */
    border-bottom: 1px solid #eee;
    font-size: 14px;         /* ลดนิดเดียวพอ */
    line-height: 1.4;        /* คุมความแน่น */
}


.product-card ul li:last-child {
    border-bottom: none;
}

.product-card ul li strong {
    font-weight: 600;
    color: #111;
}

.search-input::placeholder {
    font-size: 14px;      /* บังคับให้เหมือนกัน */
    font-weight: 400;
    color: #6b7280;       /* สีเทาแบบ professional */
    opacity: 1;           /* 🔥 สำคัญมาก */
}





.category-card-modern {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.25s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.category-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.category-image {
    height: 180px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    max-height: 140px;
    max-width: 90%;
    object-fit: contain;
}

.sub-list-modern a {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    text-decoration: none;
}

.sub-list-modern a:hover {
    color: #f2c94c;
}


.ala-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 500;
    margin-bottom: 20px;
}

.ala-alert-error {
    background: #fff3f3;
    border-left: 5px solid #e53935;
    color: #c62828;
}

.ala-alert-success {
    background: #fffbea;
    border-left: 5px solid #f2c94c;
    color: #333;
}

.ala-alert-warning {
    background: #fff8e1;
    border-left: 5px solid #f2c94c;
    color: #444;
}


.search-suggest-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - 110px); /* หักปุ่ม Search */
    background: #fff;
    border-radius: 10px;
    z-index: 999999;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.suggest-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.15s ease;
}

.suggest-item:hover {
    background: #f2f2f2;
}

.search-wrapper {
    position: relative;   /* ⭐ เพิ่มอันนี้ */
    overflow: visible;    /* ⭐ สำคัญมาก */
}

.search-wrapper .search-suggest-box {
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    border-radius: 16px;
}

.cart-icon {
    font-size: 20px;
}

.cart-badge {
    position: absolute;
    top: 6px;
    right: 0px;
    background: #ff3b3b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 50px;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

.navbar,
.search-zone {
  border-bottom: none !important;
}


.search-form {
    display: flex;
    gap: 10px;
    position: relative;   /* ⭐ เพิ่มบรรทัดนี้ */
}


.sku-line {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

.sku-line .meta-label {
    font-weight: 500;
}

.sku-line .meta-value {
    font-weight: 600;
    color: #444;
}


/* MOBILE */
@media (max-width: 991px) {
    .alaidee-center-menu,
    .alaidee-right-menu {
        margin-top: 10px;
        text-align: center;
    }

    .alaidee-right-menu {
        justify-content: center;
    }
}


/* ===============================
   MOBILE
=============================== */

@media (max-width:768px){
    .cta-row{
        flex-direction: column;
    }

    .ala-btn{
        height: 64px;
        font-size:18px;
    }
}

/* ======================================
   PRODUCT PAGE – MOBILE APP MODE (STEP 1)
====================================== */

@media (max-width: 1024px) {

.product-mobile-app .alaidee-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

/* ดันเนื้อหาไม่ให้ชน navbar */
.product-mobile-app .main-section-product {
    padding-top: 110px;
}

/* ทำ card ดู flat แบบแอป */
.product-mobile-app .product-card {
    border-radius: 0;
    box-shadow: none;
}

/* ทำพื้นหลังเรียบแบบแอป */
.product-mobile-app {
    background: #f5f6f8;
}

/* ======================================
   MOBILE BUY BAR (STEP 2)
====================================== */

@media (max-width:1024px){

.product-mobile-app {
    padding-bottom: 95px;
}

.mobile-buy-bar{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: #ffffff;
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 9999;
}

.mobile-buy-bar button{
    flex: 1;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
}

.mobile-cart-btn{
    background: #f0f0f0;
}

.mobile-buy-btn{
    background: #f2c94c;
}

}



}


/* ===============================
   MOBILE TOGGLER
=============================== */
.alaidee-navbar .navbar-toggler {
    border-color: rgba(0,0,0,0.35);
}

.alaidee-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}