/* ==========================================================================
   iremixbeer.com - Unified Main CSS (Cleaned & Optimized Version)
   ========================================================================== */

/* ------------------------------------------
   1. Variables, Fonts & Base Reset
--------------------------------------------- */
:root {
  --ff-inter: "Inter", sans-serif;
  --clr-bg: #000000;
  --clr-text-main: #ffffff;
  --clr-text-sub: #a1a1a1;
  --clr-card-bg: #1a1a1a;
  --clr-card-border: #2c2c2c;
}

html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box; outline: none;
}

/* ตั้งค่าฟอนต์และพื้นหลังหลัก */
body {
  font-family: "Prompt", sans-serif;
  background-color: #f5f5f7; /* ใช้สีเทาอ่อนแบบ Apple */
  color: #9a9da2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, h1, h2, h3, h4, h5, h6, p, a, span, div {
  font-family: "Prompt", sans-serif;
}

.header-area, .header-area *:not(i) {
  font-family: "Poppins", sans-serif !important;
}

::selection {
  background: #2a2a2a; color: #fff;
}

a {
  text-decoration: none !important; transition: all 0.3s ease;
}

h1, h2, .font-weight-bold {
  font-size: clamp(1.8rem, calc(7vw + 1rem), 3rem); color: #101111;
}

h3, h4, .font-weight-semi-bold {
  font-weight: 600 !important;
}

/* ------------------------------------------
   2. Search Overlay
--------------------------------------------- */
#searchOverlay.irx-search-overlay {
  position: fixed !important; top: 0 !important; left: 0 !important;
  width: 100vw !important; height: 100vh !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  z-index: 9999999 !important;
  transform: translateX(100%) !important; 
  opacity: 0 !important; 
  visibility: hidden !important; /* 💡 ใช้ visibility แทน display: none เพื่อให้สไลด์ได้ */
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease, visibility 0.4s ease !important;
}
#searchOverlay.irx-search-overlay.active { 
  transform: translateX(0) !important;
  opacity: 1 !important; 
  visibility: visible !important; 
}
.irx-search-container {
  padding: 10vh 20px !important; max-width: 600px !important;
  margin: 0 auto !important; text-align: left !important;
}
.irx-search-container *:not(i), .irx-search-container input {
  color: #111 !important; font-family: var(--ff-inter) !important;
}
.irx-search-input-box {
  background: #f5f5f7 !important; border: 1px solid #ddd !important; border-radius: 12px !important;
}
.irx-close-search { color: #111 !important; cursor: pointer; }

/* ------------------------------------------
   3. Header & Footer
--------------------------------------------- */
footer {
  padding: 60px 0px 30px 0px; background-color: #151515; color: #fff;
}
footer .logo { margin-bottom: 20px; }
footer ul { padding: 0; margin: 0; list-style: none; }
footer ul li { display: block; margin-bottom: 10px; }
footer ul li a { font-size: 14px; color: #fff; transition: all 0.3s; text-decoration: none; }
footer ul li a:hover { color: #aaa; text-decoration: none; }
footer h4 { letter-spacing: 0.5px; font-size: 16px; color: #fff; font-weight: 700; margin-bottom: 20px; }
footer .under-footer { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; }
footer .under-footer ul { margin-top: 20px; padding: 0; }
footer .under-footer ul li { display: inline-block; margin: 0px 10px; }
footer .under-footer ul li a { font-size: 22px; color: #fff; }
footer .under-footer p { color: #fff; font-size: 14px; font-weight: 300; margin: 0; }
footer .under-footer a { color: #ffcc00; }
footer .under-footer a:hover { color: #fff; }

/* ------------------------------------------
   4. Hero Slider (Apple Style Carousel)
--------------------------------------------- */
.hero-dark-section, .collection-section {
  font-family: "Montserrat", sans-serif; -webkit-font-smoothing: antialiased;
}
.hero-slider-section {
  margin-top: 80px; margin-bottom: -30px; width: 100%;
}
.apple-carousel {
  border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); width: 100%;
}
#appleStyleCarousel { cursor: grab; }
#appleStyleCarousel:active { cursor: grabbing; }
.apple-carousel .carousel-item img { height: 500px; width: 100%; object-fit: cover; }
.apple-carousel .carousel-item::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 70%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%); pointer-events: none;
}
.apple-carousel .carousel-caption { bottom: 40px; z-index: 2; padding: 0 20px; }
.apple-carousel .carousel-caption h2 {
  font-weight: 700; font-size: 28px; color: #fff !important; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.apple-carousel .carousel-caption .badge { font-size: 14px; padding: 6px 12px; margin-bottom: 15px; }

/* 💡 Fix 1: เลื่อนจุดไข่ปลาขึ้นมาหน้าสุดและปรับขนาดให้กดง่าย */
.apple-carousel .carousel-indicators { bottom: 15px; margin: 0; z-index: 99 !important; }
.apple-carousel .carousel-indicators li {
  width: 10px; height: 10px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.4);
  border: none; margin: 0 8px; transition: all 0.3s ease; position: relative; cursor: pointer;
}
.apple-carousel .carousel-indicators .active { background-color: #fff; transform: scale(1.2); }
.apple-carousel .carousel-indicators .active::after {
  content: ""; position: absolute; top: -4px; bottom: -4px; left: -4px; right: -4px; border: 0.5px solid #ffffff; border-radius: 50%;
}

/* 💡 Fix 2: ดันปุ่มลูกศรขึ้นมาหน้าสุด */
.carousel-control-prev, .carousel-control-next {
  display: flex !important; opacity: 0.8 !important; width: 15%; z-index: 99 !important; transition: all 0.3s ease; cursor: pointer;
}
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1 !important; background: rgba(0, 0, 0, 0.2); }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 35px; height: 35px; filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5)); }
.apple-carousel .carousel-control-prev, .apple-carousel .carousel-control-next {
  width: 50px; height: 50px; background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(5px);
  border-radius: 50%; top: 50%; transform: translateY(-50%); margin: 0 20px; opacity: 0; transition: opacity 0.3s ease;
}
.apple-carousel:hover .carousel-control-prev, .apple-carousel:hover .carousel-control-next { opacity: 1; }
.apple-carousel .carousel-control-prev-icon, .apple-carousel .carousel-control-next-icon { width: 20px; height: 20px; }

/* ------------------------------------------
   5. News Cards & Grid Layout
--------------------------------------------- */
.container-port {
  max-width: 1300px; margin: 0 auto; margin-top: 10px; text-align: center; padding: 20px;
}
.container-port .heading { font-size: 40px; margin-bottom: 10px; color: #334; }
.container-port .box-container-port, #news-container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; width: 100%;
}
#news-container > a { display: block; text-decoration: none !important; height: 100%; }

.container-port .box, #news-container .box {
  display: flex; flex-direction: column; text-align: left;
  background-color: #ffffff; border: 1px solid #eee; border-radius: 20px;
  overflow: hidden; height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.container-port .box:hover, #news-container .box:hover {
  transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.container-port .box .image, #news-container .box .image {
  width: 100%; height: 250px; overflow: hidden; border-radius: 19px 19px 0 0; flex-shrink: 0;
}
.container-port .box .image img, #news-container .box .image img {
  height: 100%; width: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.container-port .box:hover .image img, #news-container .box:hover .image img { transform: scale(1.05); }
.container-port .box .boxtext, #news-container .box .boxtext {
  display: flex; flex-direction: column; flex-grow: 1; padding: 20px;
}
.container-port .box .headingtext, #news-container .box .boxtext .headingtext {
  font-size: 16px; color: #111; font-weight: 600; line-height: 1.5; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: normal;
}

/* Datebox Unified Reset */
.datebox, .date-box, #news-container .box .boxtext .datebox {
  width: 100% !important; background: transparent !important; padding: 0 !important;
  border-radius: 0 !important; margin-top: auto !important; margin-bottom: 0 !important; margin-left: 0 !important;
  display: block !important; text-align: left !important;
}
.datebox p, .datebox span, .date-box p, .date-box span, #news-container .box .boxtext .datebox p, .date-info p {
  background: transparent !important; color: #888888 !important; font-size: 13px !important;
  font-weight: 400 !important; text-align: left !important; margin: 0 !important; padding: 0 !important;
  letter-spacing: 0.5px !important; text-transform: uppercase; line-height: normal !important;
}

#load-more {
  margin-top: 30px !important; margin-bottom: 30px !important; display: inline-block;
  padding: 13px 30px; border: 1px solid #334; color: #334; font-size: 16px;
  background-color: #fff; cursor: pointer; border-radius: 9px; transition: all 0.2s;
}
#load-more:hover { background-color: #2a2a2a; border-color: #2a2a2a; color: #fff; }

/* ------------------------------------------
   6. News Article Page (Single Post)
--------------------------------------------- */
.containernews, .containernews-fluid, .containernews-lg {
  width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; margin-top: 120px;
}
.rownews { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.rownews > [class*="col-"] { position: relative; width: 100%; padding-right: 15px; padding-left: 15px; }

.news-paper { width: 75%; margin: 0 auto; background: transparent !important; }
.news-paper .bg-white { background-color: transparent !important; border: none !important; box-shadow: none !important; }

/* Article Typography */
.news-paper p { font-size: 18px !important; line-height: 1.8 !important; color: #222222 !important; margin-bottom: 20px; }
.irx-news-p { text-indent: 2.5em; line-height: 1.8 !important; margin: 1rem 0 1.5rem 0 !important; text-align: justify !important; }
.irx-news-img { object-fit: cover; border-radius: 8px; margin-bottom: 15px; }

.section-title {
  margin-bottom: 15px; padding: 15px; display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid #dee2e6; border-left: 5px solid #ffcc00; 
}
.section-title h4 { margin: 0; font-size: 18px; font-weight: 700; text-transform: uppercase; color: #111; }

.recommended-section {
  text-align: center; margin-top: 50px; margin-bottom: 20px; width: 100%; border-top: 1px solid #eaeaea; padding-top: 40px;
}

/* ------------------------------------------
   7. Shop The Look
--------------------------------------------- */
.shop-the-look { border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea; padding: 35px 0 15px 0; margin: 40px 0; }
.product-card { text-align: center; text-decoration: none !important; display: flex; flex-direction: column; height: 100%; color: #333; transition: transform 0.3s ease; }
.product-card:hover { transform: translateY(-5px); color: #000; }
.product-img-wrapper {
  background-color: #f9f9f9; border-radius: 8px; padding: 15px; margin-bottom: 15px;
  height: 220px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.product-img-wrapper img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-brand { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; font-weight: 600; }
.product-name {
  font-size: 14px; font-weight: 600; margin-bottom: 12px; line-height: 1.5; height: 42px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
}
.product-price { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 12px; margin-top: auto; }
.btn-shop-wrapper { margin-top: auto; margin-bottom: 5px; }
.btn-shop {
  display: inline-block; background-color: #111; color: #fff; font-size: 11px; font-weight: 600;
  padding: 8px 24px; border-radius: 30px; text-transform: uppercase; letter-spacing: 0.5px; transition: background-color 0.3s, box-shadow 0.3s;
}
.product-card:hover .btn-shop { background-color: #333; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); color: #fff; }

/* ------------------------------------------
   8. Contact Profile (Minimalist Apple)
--------------------------------------------- */
body.irx-contact-body { background-color: var(--clr-bg); color: var(--clr-text-main); font-family: var(--ff-inter); text-align: center; display: flex !important; flex-direction: column !important; align-items: center !important; min-height: 100vh; }
.irx-contact-wrapper { width: 100%; max-width: 580px; padding: 40px 20px; flex-grow: 1; }
.irx-user-image { width: 95px; height: 95px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; border: 1px solid var(--clr-card-border); }
.irx-user-name { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.5px; }
.irx-user-subtext { font-size: 0.9rem; color: var(--clr-text-sub); margin-bottom: 30px; }
.irx-flex-section { display: flex; align-items: center; margin-bottom: 40px; }
.irx-vertical-title { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--ff-inter); font-size: 2rem; font-weight: 700; color: #888; margin-right: 20px; letter-spacing: 2px; }
.irx-cards-container { flex-grow: 1; display: flex; flex-direction: column; width: 100%; }
.irx-contact-card { display: flex; justify-content: space-between; align-items: center; background-color: var(--clr-card-bg); border: 1px solid var(--clr-card-border); border-radius: 14px; padding: 16px 22px; margin-bottom: 12px; width: 100%; text-decoration: none !important; color: inherit; }
.irx-contact-card:hover { background-color: #252525; transform: scale(1.02); }
.irx-card-left { display: flex; align-items: center; }
.irx-card-icon { font-size: 1.2rem; color: var(--clr-text-sub); width: 28px; margin-right: 15px; }
.irx-contact-card span { font-size: 0.95rem; font-weight: 500; color: var(--clr-text-main); }
.irx-follower-count { font-size: 0.85rem; color: #888; }
.irx-contact-card.irx-work-card { justify-content: flex-start !important; }

/* ------------------------------------------
   9. Utilities (Buttons, Preloader, Ads)
--------------------------------------------- */
/* Share Buttons */
.irx-share-btn {
  background-color: #111 !important; color: #fff !important; border-radius: 50% !important;
  width: 38px !important; height: 38px !important; display: inline-flex !important;
  align-items: center !important; justify-content: center !important; padding: 0 !important; margin-right: 8px;
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); transition: transform 0.2s ease, background-color 0.2s;
}
.irx-share-btn:hover { transform: scale(1.1); background-color: #555 !important; }

/* Back to Top */
.irx-back-to-top, .back-to-top, .scrolltotop {
  position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px;
  z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.4s ease; text-decoration: none !important;
  border-radius: 50%; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); display: flex; justify-content: center; align-items: center; overflow: hidden; background-color: transparent !important;
}
.irx-back-to-top img, .back-to-top img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.irx-back-to-top:hover, .back-to-top:hover { transform: translateY(-3px); opacity: 0.9; }
.irx-back-to-top.show, .back-to-top.show { opacity: 1; visibility: visible; }

/* Ad Popup */
.irx-ad-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px);
  z-index: 9999999; display: flex; justify-content: center; align-items: center; opacity: 1; transition: opacity 0.4s ease;
}
.irx-ad-box {
  position: relative; width: 90%; max-width: 500px; background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); text-align: center; transform: translateY(0); transition: transform 0.4s ease;
}
.irx-ad-box img { width: 100%; height: auto; border-radius: 8px; cursor: pointer; transition: transform 0.2s ease; }
.irx-ad-box img:hover { transform: scale(1.02); }
.irx-ad-close-btn {
  position: absolute; top: -15px; right: -15px; width: 36px; height: 36px; background: #111; color: #fff; border-radius: 50%;
  font-size: 24px; font-family: 'Poppins', sans-serif; display: flex; justify-content: center; align-items: center; cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); border: 2px solid #fff; transition: transform 0.2s ease, background 0.2s;
}
.irx-ad-close-btn:hover { transform: scale(1.1); background: #ff1725; }

/* Preloader */
#preloader { background-color: #2a2a2a; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99999; }
#preloader .jumper { position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto; width: 50px; height: 50px; }
#preloader .jumper > div {
  background-color: #fff; border-radius: 100%; position: absolute; width: 50px; height: 50px; animation: jumper 1s 0s linear infinite; opacity: 0;
}
#preloader .jumper > div:nth-child(2) { animation-delay: 0.33333s; }
#preloader .jumper > div:nth-child(3) { animation-delay: 0.66666s; }
@keyframes jumper { 0% { opacity: 0; transform: scale(0); } 5% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }

/* ------------------------------------------
   10. Media Queries (Responsive Master Block)
--------------------------------------------- */

@media (min-width: 768px) {
  .containernews { max-width: 720px; }
}

@media (min-width: 992px) {
  .containernews { max-width: 960px; }
  .col-lg-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
  .col-lg-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1200px) {
  .containernews { max-width: 1140px; }
}

@media (max-width: 992px) {
  .news-paper { width: 90%; }
}

/* --- THE BIG 768px MOBILE BLOCK --- */
@media (max-width: 768px) {
  /* Hero Slider */
  .hero-slider-section { margin-top: 80px; }
  .apple-carousel .carousel-item img { height: 350px; }
  .apple-carousel .carousel-caption h2 { font-size: 18px; margin-bottom: 25px; } /* ขยับข้อความหลบจุดไข่ปลา */
  
  /* 💡 Fix 3: เปิดปุ่มลูกศรบนมือถือ */
  .apple-carousel .carousel-control-prev, .apple-carousel .carousel-control-next { 
    display: flex !important; 
    opacity: 1 !important; 
    width: 35px !important; 
    height: 35px !important; 
    margin: 0 10px;
    background: rgba(0, 0, 0, 0.4) !important;
  }
  .apple-carousel .carousel-control-prev-icon, .apple-carousel .carousel-control-next-icon { 
    width: 15px !important; 
    height: 15px !important; 
  }
  
  /* Article Container */
  .containernews { padding-left: 20px !important; padding-right: 20px !important; }
  .news-paper { width: 100% !important; padding: 0 !important; }
  
  /* Article Text */
  .news-paper p, .news-content p, .post-content p {
    font-size: 14px !important; line-height: 1.5 !important; letter-spacing: 0.2px !important;
    text-align: left !important; color: #333333 !important; margin-bottom: 20px !important;
  }
  .irx-news-p {
    text-align: left !important; text-indent: 1.5em; line-height: 1.5 !important; font-size: 14px !important;
  }
  .news-paper h1, .news-paper h2, .news-paper h3, .news-paper .font-weight-bold {
    font-size: 22px !important; line-height: 1.3 !important; letter-spacing: -0.3px !important;
    text-align: left !important; margin-bottom: 15px !important; color: #111111 !important;
  }

  /* News Grid & Cards */
  .container-port .box-container-port, #news-container { grid-template-columns: 1fr; gap: 20px; }
  #news-container .box { flex-direction: column; }
  #news-container .box .image { height: 200px; }
  #news-container .box .boxtext { padding: 15px; }

  /* Shop The Look */
  .product-img-wrapper { height: 160px; }
  .product-name { font-size: 13px; height: 39px; }
  .product-price { font-size: 14px; }
  .btn-shop { padding: 6px 18px; font-size: 10px; }

  /* Utilities */
  .irx-back-to-top, .back-to-top, .scrolltotop { width: 40px; height: 40px; }
}

@media (max-width: 600px) {
  /* Contact Profile */
  .irx-flex-section { flex-direction: column; align-items: stretch; }
  .irx-vertical-title {
    writing-mode: horizontal-tb; transform: none; font-size: 1rem; margin-right: 0; margin-bottom: 15px; text-align: center;
  }
  .container-port { padding: 10px; margin-top: 30px; }
}

@media (max-width: 450px) {
  .container-port .box .image { height: 200px; }
  .container-port .heading { font-size: 25px; }
}

/* ========================================== */
/* 17. Dark Mode (Night Mode) Styles */
/* ========================================== */

/* ทำให้การเปลี่ยนสีนุ่มนวล (Smooth Transition) */
body, .bg-white, .box, header, footer, p, h1, h2, h3, h4, h5, h6 {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease !important;
}

/* ------------------- โหมดมืด ------------------- */
body.dark-theme {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* เปลี่ยนสีกล่องและพื้นหลังขาวให้เป็นสีเทาเข้ม */
body.dark-theme .bg-white,
body.dark-theme .box,
body.dark-theme .irx-ad-box,
body.dark-theme .product-img-wrapper {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

/* เปลี่ยนสีตัวอักษรหัวข้อและเนื้อหาให้สว่างขึ้น */
body.dark-theme h1, 
body.dark-theme h2, 
body.dark-theme h3, 
body.dark-theme h4, 
body.dark-theme .headingtext, 
body.dark-theme .text-dark,
body.dark-theme .news-paper p,
body.dark-theme .irx-news-p,
body.dark-theme .product-name,
body.dark-theme .product-price {
    color: #f5f5f5 !important;
}

/* เปลี่ยนสีกรอบเมนูและเส้นคั่นต่างๆ */
body.dark-theme .section-title {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}
body.dark-theme .shop-the-look {
    border-color: #333 !important;
}

/* เปลี่ยนปุ่มกดที่เคยเป็นสีขาวให้กลืนกับโหมดมืด */
body.dark-theme #load-more {
    background-color: #2a2a2a !important;
    color: #fff !important;
    border-color: #444 !important;
}
/* ========================================== */
/* บังคับกล่องเนื้อหาข่าวให้โปร่งใส 100% (ทะลุโหมดมืด/สว่าง) */
/* ========================================== */
body .news-paper,
body .news-paper .bg-white, 
body .news-paper .border,
body.dark-theme .news-paper .bg-white,
body.dark-theme .news-paper .border {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* ========================================== */
/* แก้ไขรูปสินค้า (Shop The Look) ให้สีสด คมชัด 100% */
/* ========================================== */

/* 1. ยกเลิกการจาง (Opacity) และการละลายภาพ (Blend Mode) ทั้งหมด */
.shop-the-look .product-card,
.shop-the-look .product-img-wrapper,
.shop-the-look .product-img-wrapper img {
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    filter: none !important; 
}

/* 2. บังคับพื้นหลังกล่องใส่รูปให้เป็น "สีขาวล้วน" (เพื่อให้รูปสินค้าเด้งและสว่างที่สุด) */
body:not(.dark-theme) .shop-the-look .product-img-wrapper {
    background-color: #ffffff !important;
    border: 1px solid #eaeaea !important;
}
/* ========================================== */
/* 1. แก้ไขรูปสินค้า (Shop The Look) ให้สีสด คมชัด 100% */
/* ========================================== */
.product-img-wrapper, 
.product-img-wrapper img, 
.product-card img {
    opacity: 1 !important;
    mix-blend-mode: normal !important; /* ปิดเอฟเฟกต์ภาพเบลอ/ละลาย */
    filter: none !important;
    -webkit-filter: none !important;
}

/* บังคับพื้นหลังกล่องสินค้าให้เป็นสีขาว เพื่อให้รูปเด้งขึ้นมา */
body:not(.dark-theme) .product-img-wrapper {
    background-color: #ffffff !important;
    border: 1px solid #eaeaea !important;
}

/* ========================================== */
/* 2. บังคับพื้นหลังเนื้อหาข่าวให้โปร่งใส (ไม่กระทบความกว้าง) */
/* ========================================== */
.news-paper .bg-white, 
.news-paper .border,
body.dark-theme .news-paper .bg-white,
body.dark-theme .news-paper .border {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ========================================== */
/* 3. ปุ่มแชร์: พื้นขาว โลโก้ดำ */
/* ========================================== */
.irx-share-btn {
    background-color: #ffffff !important; 
    color: #111111 !important; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important; 
}
.irx-share-btn:hover {
    background-color: #f0f0f0 !important; 
}
/* ========================================== */
/* 20. แก้ไขใหญ่: ย้ายกล่องปุ่ม + เพิ่มความมนของรูปสินค้า */
/* ========================================== */

/* A. แก้ไขรูปสินค้า: ลบเส้นขอบปุ่ม + เพิ่มความมนของรูปอย่างมาก */
body:not(.dark-theme) .product-img-wrapper {
    background-color: #ffffff !important;
    border: none !important; /* 💡 ลบเส้นขอบที่เป็นปุ่มออกจากรูปภาพ */
    box-shadow: none !important;
    /* เพิ่มความมนของรูปสินค้าให้ดูนุ่มนวลกว่าเดิม */
    border-radius: 24px !important; 
}
.product-img-wrapper img {
    border-radius: 20px !important; /* ให้รูปภาพด้านในโค้งตาม */
}


/* B. แก้ไขตัวปุ่ม BUY NOW: สั่งให้มีเส้นขอบและพื้นขาวตรงนี้ */
.btn-shop {
    display: inline-block !important; /* บังคับให้เป็นบล็อก */
    /* 💡 ย้ายสไตล์ปุ่มมาไว้ตรงนี้ทั้งหมด */
    background-color: #ffffff !important; /* พื้นขาว */
    color: #111111 !important; /* ตัวหนังสือดำ */
    border: 1px solid #eaeaea !important; /* เส้นขอบเทา */
    border-radius: 30px !important; /* ทรงแคปซูลโค้งมนล้วน */
    padding: 10px 24px !important; /* เพิ่มพื้นที่กด */
    text-transform: uppercase !important; /* ตัวพิมพ์ใหญ่ */
    letter-spacing: 0.5px !important;
    text-decoration: none !important; /* ลบเส้นใต้ */
    margin-top: 15px !important; /* เพิ่มระยะห่างจากชื่อสินค้า */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important; /* เงาบางๆ ให้ดูลอย */
}

/* รองรับ hover: เมื่อเอาม้าส์ชี้ ให้ปุ่มเข้มขึ้นเหมือนเดิม */
.product-card:hover .btn-shop {
    background-color: #333333 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}


/* C. รองรับ Night Mode ให้ปุ่มอ่านง่าย */
body.dark-theme .btn-shop {
    background-color: #2a2a2a !important; /* พื้นหลังปุ่มโหมดมืด */
    color: #f5f5f5 !important; /* ตัวหนังสือสว่าง */
    border-color: #444 !important; /* เส้นขอบจางๆ */
}
/* ========================================== */
/* 21. ลบกล่องครอบรูปสินค้า (ให้ภาพลอยเนียนๆ กับพื้นหลัง) */
/* ========================================== */
.shop-the-look .product-img-wrapper,
body:not(.dark-theme) .product-img-wrapper,
body.dark-theme .product-img-wrapper {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
footer .under-footer {
    border-top: none !important;
}
/* ========================================== */
/* จัด Footer ให้อยู่กึ่งกลางแบบสมบูรณ์ 100% */
/* ========================================== */
footer .under-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

footer .under-footer .logo {
    margin-bottom: 20px !important;
}

footer .under-footer ul {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin-top: 20px !important;
}
/* ========================================== */
/* รีเซ็ตระยะห่างปุ่มโหมดมืด เพื่อให้กึ่งกลางเป๊ะบนมือถือ */
/* ========================================== */
@media (max-width: 992px) {
    a[onclick*="toggleTheme"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 10px !important; /* เพิ่มระยะห่างบน ให้ไม่ชิดแว่นขยายเกินไป */
        margin-bottom: 15px !important; /* เพิ่มระยะห่างล่าง ให้ไม่ชิด TH | EN เกินไป */
        display: inline-block !important; /* บังคับให้อยู่กึ่งกลางตามกล่องแม่ */
    }
}
/* ========================================== */
/* ขยายรูปสินค้าให้กว้างเต็มพื้นที่ (ตามกรอบสีแดง) */
/* ========================================== */
.shop-the-look .product-img-wrapper {
    padding: 0 !important; /* 💡 ลบพื้นที่ว่างด้านข้างออกทั้งหมดเพื่อให้รูปขยายได้เต็มที่ */
    width: 100% !important;
    height: 250px !important; /* ปรับความสูงกล่องให้สมดุลกับความกว้างที่เพิ่มขึ้น */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
}

.shop-the-look .product-img-wrapper img {
    width: 100% !important; /* 💡 บังคับให้รูปกว้างเต็ม 100% ของกรอบ */
    height: 100% !important; /* บังคับให้รูปสูงเต็มกรอบ */
    object-fit: cover !important; /* 💡 สำคัญ: ทำให้รูปเต็มกล่องโดยไม่เสียสัดส่วน */
    border-radius: 20px !important; /* เพิ่มความมนให้เข้ากับดีไซน์เว็บ */
    max-width: none !important;
    max-height: none !important;
}
/* ========================================== */
/* จัดระเบียบกล่องฝัง Instagram */
/* ========================================== */
.ig-embed-container {
    max-width: 500px; /* จำกัดความกว้างไม่ให้ใหญ่เกินไปจนล้นหน้าจอ */
    margin: 30px auto; /* จัดให้อยู่กึ่งกลาง และเว้นระยะบนล่าง */
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    /* ใส่เงาบางๆ ให้กล่องดูลอยขึ้นมา */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    transition: box-shadow 0.3s ease;
}

body.dark-theme .ig-embed-container {
    box-shadow: 0 4px 15px rgba(255,255,255,0.05); /* เปลี่ยนสีเงาตอนเปิดโหมดมืด */
}
/* ========================================== */
/* แก้ปัญหาปุ่มพระจันทร์หล่น / ตกขอบเวลาย่อจอคอม */
/* ========================================== */

/* 1. บังคับให้อยู่กึ่งกลางบรรทัดเสมอในหน้าจอคอมและแท็บเล็ต */
@media (min-width: 769px) {
    a[onclick*="toggleTheme"], 
    a[onclick*="openSearch"] {
        margin-top: 0 !important; /* ลบตัวการที่ดันปุ่มให้ตกขอบ */
        margin-bottom: 0 !important;
        vertical-align: middle !important; /* จัดให้อยู่กึ่งกลางแนวตั้ง */
        display: inline-flex !important;
        align-items: center !important;
    }
}

/* 2. ให้ระยะห่างเว้นบน-ล่าง ทำงานเฉพาะในมือถือ (หน้าจอเล็กกว่า 768px) เท่านั้น */
@media (max-width: 768px) {
    a[onclick*="toggleTheme"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        display: inline-flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
}