:root{
  --brown:#5a2e1f;
  --accent:#ff2a2a;
  --radius:14px;
}
*{box-sizing:border-box}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#111}

.fw-black{font-weight:900}
.logo-mini{display:inline-grid;place-items:center;width:34px;height:34px;background:#111;color:#fff;font-weight:900;border-radius:6px;letter-spacing:.5px}

.navbar .nav-link{font-weight:700;letter-spacing:.6px}
.navbar .dropdown-menu{border-radius:10px}

.hero{position:relative}
.hero-slide{min-height:56vh;background:#222 center/cover no-repeat}
.hero-1{background-image:linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.45)),linear-gradient(90deg,#333,#222)}
.hero-2{background-image:linear-gradient(0deg,rgba(0,0,0,.4),rgba(0,0,0,.4)),linear-gradient(90deg,#444,#222)}
.hero-overlay{position:relative;padding-top:10vh;padding-bottom:12vh}

.category-ribbon .cat-tile{display:flex;align-items:center;justify-content:center;height:74px;background:#111;color:#fff;text-decoration:none;border-radius:10px; position:relative; overflow:hidden}
.category-ribbon .cat-tile span{position:relative;z-index:2;font-weight:800;letter-spacing:.5px}
.category-ribbon .cat-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg, rgba(255,255,255,.05), rgba(255,255,255,0));}

.product-card{border:1px solid #e5e5e5;border-radius:var(--radius);background:#fff}
.product-card .prod-img{width:180px;height:120px;margin-inline:auto;background:linear-gradient(180deg,#f5f5f5,#e8e8e8);border:1px solid #ddd;border-radius:12px}
.product-card h6{font-weight:800}

.content-card{border:1px solid #e9e9e9;border-radius:var(--radius);background:#fff}
.side-card{border:1px solid #e9e9e9;border-radius:var(--radius);background:#fff;overflow:hidden}

.product-row .thumb{width:92px; height:92px; background:linear-gradient(#f5f5f5,#e8e8e8); border:1px solid #ddd}
.product-row{border:1px solid #e9e9e9;background:#fff}

.related-thumb{width:64px;height:64px;background:linear-gradient(#f5f5f5,#e8e8e8);border:1px solid #ddd;border-radius:10px}

.footer-cta{background:#2b2b2b url('') center/cover no-repeat}
.text-accent{color:var(--accent)}
.site-footer{background:var(--brown)}
.copyright{background:#151515;color:#aaa}

.btn{letter-spacing:.3px}
.btn.rounded-1{border-radius:8px}


/* ===== Visual tweaks to resemble provided mock ===== */
header .navbar{border-bottom:1px solid #eee}
header .nav-link{color:#111}
header .nav-link.active{color:#000;text-decoration:underline;text-underline-offset:6px}
.carousel-indicators [data-bs-target]{width:10px;height:10px;border-radius:50%}
.sub-nav .badge{letter-spacing:.5px}

.side-card .list-group-item{cursor:pointer}
.side-card .list-group-item.active{background:#111;color:#fff;border-color:#111}

.footer-cta{background:linear-gradient(120deg, rgba(0,0,0,.75), rgba(0,0,0,.65)), url('');}
.footer-cta .h5{letter-spacing:.4px}
.site-footer a{text-decoration:none}

@media (min-width:992px){
  .hero-overlay{padding-top:14vh;padding-bottom:16vh}
}

/* === Brand lock (easily editable) === */
:root{
  --brand-brown:#5a2e1f;
  --brand-dark:#111111;
  --brand-accent:#ff2a2a;
  --brand-muted:#eee7e3;
}

/* Page-specific hero backgrounds from provided screenshots */
.hero-1{background-image:linear-gradient(0deg,rgba(0,0,0,.50),rgba(0,0,0,.50)),url('assets/img/hero-home.jpg')}
.hero-2{background-image:linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.45)),url('assets/img/hero-about.jpg')}
.page-hero.company{background-image:linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.45)),url('assets/img/hero-about.jpg')}
.page-hero.products{background-image:linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.45)),url('assets/img/hero-products.jpg')}
.page-hero.detail{background-image:linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.45)),url('assets/img/hero-product-detail.jpg')}
.page-hero.service{background-image:linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.45)),url('assets/img/hero-service.jpg')}
.page-hero.promotion{background-image:linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.45)),url('assets/img/hero-promotion.jpg')}
.page-hero.activities{background-image:linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.45)),url('assets/img/hero-activities.jpg')}
.page-hero.contact{background-image:linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.45)),url('assets/img/hero-contact.jpg')}

/* Header & nav to more closely match screenshot */
header .navbar{border-bottom:1px solid #dedede}
header .nav-link{font-weight:800; letter-spacing:.7px; text-transform:uppercase}
header .nav-link.active{color:#000;text-decoration:underline;text-underline-offset:7px}

/* Mega menu */
.mega{min-width:720px; padding:20px 24px}
.mega h6{font-weight:800; font-size:.85rem; letter-spacing:.4px}
.mega .col{border-right:1px solid #f0f0f0}
.mega .col:last-child{border-right:none}
.mega a{font-size:.925rem}

/* Buttons look */
.btn-dark{background:#000; border-color:#000}
.btn-outline-dark{border-color:#000;color:#000}
.btn-outline-dark.active{background:#000; color:#fff}

/* Footer brown block */
.site-footer{background:var(--brand-brown)}

/* Headings thicker like mock */
h1,h2,h3,h4,h5,h6{font-family:Montserrat,Inter,system-ui,sans-serif}

.object-fit-cover {
  object-fit: cover;
}

.about-text p {
  text-indent: 2em;        /* ย่อหน้า */
  margin-bottom: 1rem;     /* เว้นระยะระหว่างย่อหน้า */
  font-size: 1.15rem;      /* ขยายตัวอักษรให้ใหญ่ขึ้น */
  line-height: 1.5;        /* ระยะบรรทัดอ่านง่าย */
  font-weight: 500;        /* หนาขึ้น ใกล้เคียง fw-bold */
  text-align: justify;     /* ขยายให้เต็มกรอบทั้งซ้ายขวา */
}
.update-thumbs img {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.update-thumbs img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* indicator ด้านล่าง */
.update-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid #000;
  margin: 0 3px;
}

.update-dots .dot.active {
  background: #000;
}
/* แถบรูป promo แบบภาพแรก */
.promo-strip {
  width: 95%;   
  margin: 2rem auto;      /* ตรงกลาง + เว้นระยะบนล่าง */
  padding: 0;

  background-image: url('/assets/images/shared/promotion-banner-20off.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 200px;       /* ปรับสูงได้ */
  
  border-radius: 12px;     /* มุมโค้ง */
  overflow: hidden;        /* ให้รูปไม่ทะลุมุมโค้ง */
  
  box-shadow: 0 4px 20px rgba(0,0,0,0.25); /* เงาสวย ๆ */

  display: block;
}


.page-hero.company {
  background-image: url('/assets/images/company/close-up-people-working-as-team.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 85vh;           /* สูงประมาณ 60% ของจอ ปรับได้ */
  display: flex;
  align-items: center;
}

/* เผื่อยังไม่มี hero-overlay ทับให้ตัวหนังสืออ่านง่าย */
.page-hero .hero-overlay {
  padding: 4rem 0;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

.hero-slide {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-kicker {
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.hero-text {
  max-width: 520px;
}


/* Background images for 6 slides (.webp) */
/* style.css อยู่ใน assets/css → ต้องถอยกลับไป 1 level ใช้ ../images/... */
.hero-1 {
  background-image: url("../images/home/home-hero-1.webp");
}
.hero-2 {
  background-image: url("../images/home/home-hero-2.webp");
}
.hero-3 {
  background-image: url("../images/home/home-hero-3.webp");
}
.hero-4 {
  background-image: url("../images/home/home-hero-4.webp");
}
.hero-5 {
  background-image: url("../images/home/home-hero-5.webp");
}
.hero-6 {
  background-image: url("../images/home/home-hero-6.webp");
}

/* === CATEGORY RIBBON WITH IMAGE BACKGROUND === */
.category-ribbon {
  background: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.cat-box img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cat-box:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.cat-box h6 {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

.cat-box:hover h6 {
  color: #007bff;
}

.page-hero.service {
  background-image: url('/assets/images/service/service-1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 85vh;           /* สูงประมาณ 60% ของจอ ปรับได้ */
  display: flex;
  align-items: center;
}

.page-hero.promo {
  background-image: url('/assets/images/promotion/promo-1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 85vh;           /* สูงประมาณ 60% ของจอ ปรับได้ */
  display: flex;
  align-items: center;
}

.page-hero.activities {
  background-image: url('/assets/images/activities/activities-1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 85vh;           /* สูงประมาณ 60% ของจอ ปรับได้ */
  display: flex;
  align-items: center;
}

  .activities img {
    max-height: 50vh;
    width: 90%;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
  }

  .page-hero.contact {
    background-image: url('/assets/images/contact/contact-1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;           /* สูงประมาณ 60% ของจอ ปรับได้ */
    display: flex;
    align-items: center;
  }



  .content-card {
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    background-color: #fff;
  }

  .pd-media img { object-fit: contain; }
.thumb { width: 96px; height: 96px; background-color:#f4f4f4; border:1px solid #eee; }
