
/* ===============================
   ALAIDEE NAVBAR – LARGE LOGO STYLE
=============================== */
body {
  font-family: 'Prompt', sans-serif;
}

.navbar.alaidee-navbar {
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;   /* 👈 อันนี้สำคัญ */
    background-color: #f2c94c !important;
  border-bottom: 1px solid rgba(0,0,0,0.18);
}


.alaidee-navbar .navbar-brand {
  position: relative;
  width: 190px;          /* กันพื้นที่ให้โลโก้ */
  margin-right: 36px;    /* ให้เท่ากับ gap เมนู */
  padding: 0;
}


.alaidee-navbar .navbar-brand img {
  height: 145px;
  width: auto;
  object-fit: contain;

  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(calc(-50% + 4px));
}

.alaidee-navbar .nav-link {
  color: #1f1f1f !important;
  font-weight: 600 !important;
}

/* =========================
   GLOBAL SEARCH BAR
========================= */

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

.search-zone .container {
    max-width: 1400px;
}

/* ===============================
   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: 14px;
    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;
}

.product-title{
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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;
}

.meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.meta-label {
    width: 120px;
    font-size: 14px;
    color: #777;
    font-weight: 500;
}

.meta-value {
    font-size: 16px;
    color: #333;
}

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

.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 {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    margin-bottom: 18px;
}

.availability-row-wrapper .availability-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;   /* 🔥 ทำให้ข้อความอยู่กลางจริง */
    gap: 12px;

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

    font-size: 15px;
    font-weight: 500;
}

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

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

.delivery {
    background: rgba(241, 196, 15, 0.06);
}

/* สีไอคอน */
.stock-high .icon-circle {
    background: #2ecc71;
    color: #fff;
}

.delivery .icon-truck {
    background: #f1c40f;
    color: #000;
}

.highlight-number {
    font-size: 18px;
    font-weight: 600;
    margin: 0 4px;
}


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

/* ===============================
   CTA ROW
=============================== */

.cta-row {
    display: flex;
    gap: 20px;
    margin-top: 22px;
}

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

.ala-btn {
    flex: 1;
    height: 70px;
    border-radius: 16px;
    border: none;

    font-size: 20px;
    font-weight: 700;
    letter-spacing: .3px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    cursor: pointer;
    transition: all .18s ease;
}

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

.ala-btn-cart {
    background: linear-gradient(180deg,#ffd84a 0%,#f2c94c 100%);
    color: #111;

    box-shadow:
        0 5px 0 #c28f00,
        0 10px 18px rgba(0,0,0,.15);
}

.ala-btn-cart:hover {
    transform: translateY(-2px);
    box-shadow:
        0 7px 0 #c28f00,
        0 14px 22px rgba(0,0,0,.18);
}

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


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

.ala-btn-buy {
    background: linear-gradient(180deg,#58a774 0%,#2f7f4f 100%);
    color: #fff;

    box-shadow:
        0 5px 0 #2a6a44,
        0 10px 18px rgba(0,0,0,.14);
}

.ala-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow:
        0 7px 0 #2a6a44,
        0 14px 22px rgba(0,0,0,.18);
}

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


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

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

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

/* ===============================
   MENU LAYOUT – CLEAN VERSION
=============================== */

/* จัดเมนูให้กึ่งกลางแนวตั้ง */
.navbar-nav {
  align-items: center;
}

/* CENTER MENU */
.alaidee-center-menu {
  display: flex;
  gap: 36px;        /* 👈 ช่องว่างหลัก */
  align-items: center;
  padding-left: 0;
}

/* RIGHT MENU */
.alaidee-right-menu {
  display: flex;
  gap: 36px;        /* 👈 ให้เท่ากับ center */
  align-items: center;
}

/* 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%;
  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: 16px;
}


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

.alaidee-container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.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-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-main {
  font-size: 40px;
  font-weight: 800;
  color: var(--ala-yellow);
}

.price-vat {
  font-size: 14px;
  color: #666;
}


.tier-box {
  margin-top: 30px;
  max-width: 440px;
}

.tier-title {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.tier-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f9fafb;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.tier-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
}

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

.tier-col-left {
  width: 50%;
}

.tier-col-right {
  width: 50%;
  text-align: right;
  font-weight: 600;
  color: var(--ala-yellow);
  font-variant-numeric: tabular-nums; /* 👈 ทำให้ตัวเลขตรงกันสวย */
}


.related-card {
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px;
}

.related-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}



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

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

@media (max-width: 991px) {
  .alaidee-center-menu {
    gap: 14px;
    padding-left: 0;
  }
}

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

.product-badges {
    display: flex;
    gap: 30px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #1f1f1f;
}

.badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f2c94c, #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
   box-shadow:
  0 30px 60px rgba(0,0,0,0.08),
  0 10px 25px rgba(0,0,0,0.06);
}

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


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