/* ==========================================================================
   MN LightHouse – WordPress / Elementor / WooCommerce layer
   (main.css holds the original site design)
   ========================================================================== */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto;
  top: 8px; left: 8px; z-index: 1000;
  padding: 10px 16px;
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

body { overflow-x: clip; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Header extras */
.nav-cart { position: relative; display: inline-flex !important; align-items: center; }
.nav-cart svg { width: 24px; height: 24px; }
.nav-cart-count {
  position: absolute; top: -4px; right: -10px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.footer-item a { text-decoration: underline; }

/* Banner titles (tags may be h1 or h2) */
.page-hero .page-hero-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.3; margin-bottom: 14px; color: #fff; }
.page-hero .page-hero-title span { color: #FF9A4D; }
.hero .hero-title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  padding-left: 18px;
  border-left: 6px solid var(--orange);
}
.hero .hero-title span { color: var(--orange); }
.hero p.hero-subtitle { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; color: var(--orange); margin: 6px 0 22px; line-height: 1.4; }

/* Product detail: small banner with breadcrumb + H1 */
.page-hero.pd-hero { min-height: 230px; }
.pd-hero .page-hero-inner { padding: 34px 0 38px; max-width: 900px; }
.pd-hero .page-hero-title { font-size: clamp(24px, 3vw, 38px); margin: 10px 0 10px; }
.pd-hero-crumb { padding: 0; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.pd-hero-crumb a { color: rgba(255, 255, 255, .85); }
.pd-hero-crumb a:hover { color: #FF9A4D; }
.pd-hero-crumb strong { color: #fff; }
.page-hero p.pd-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; opacity: 1; color: rgba(255, 255, 255, .8); }
.pd-hero-meta strong { color: #FFC24D; font-weight: 500; }
.pd-info .pd-name { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; color: var(--navy); line-height: 1.35; margin: 10px 0 8px; }
@media (max-width: 600px) {
  .page-hero.pd-hero { min-height: 190px; }
  .pd-hero .page-hero-inner { padding: 26px 0 30px; }
  .pd-hero-crumb strong, .pd-hero-crumb span:last-of-type { display: none; }
}

/* White banner (about page + home slides) */
.hero { min-height: 500px; }
.hero .hero-content { max-width: 1220px; }
.hero .hero-content > * { max-width: 560px; }
.hero .hero-title, .hero p.hero-subtitle { max-width: 640px; }
.hero p.hero-text { font-size: 16.5px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { padding: 13px 26px; font-size: 15.5px; }
.hero-actions .btn-line-lg { padding: 13px 24px !important; border-radius: 8px; font-weight: 500; box-shadow: 0 6px 16px rgba(6, 199, 85, .3); }

.hero-slider .slide-hero { display: block; }
.hero-slider .slide-hero .hero { min-height: 580px; }
.hero-slider .slide-hero .hero-content { padding: 70px 0 80px; }
.slide-hero .hero-stripe { left: 55%; }
.slide-hero .hero .hero-title { font-size: clamp(30px, 3.3vw, 46px); }
.slide-hero .hero-content > p, .slide-hero .hero-actions { max-width: 520px; }
.slide-hero .hero-content > * { opacity: 0; transform: translateY(18px); transition: opacity .7s .25s, transform .7s .25s; }
.slide-hero.is-active .hero-content > * { opacity: 1; transform: none; }
.slide-hero.is-active .hero-content > :nth-child(2) { transition-delay: .35s; }
.slide-hero.is-active .hero-content > :nth-child(3) { transition-delay: .45s; }
.slide-hero.is-active .hero-content > :nth-child(4) { transition-delay: .55s; }
.hero-slider:has(.slide-hero) .slide-dots button { background: rgba(26, 35, 64, .25); box-shadow: none; }
.hero-slider:has(.slide-hero) .slide-dots button.is-active { background: var(--orange); }

@media (max-width: 1024px) {
  .hero { min-height: 460px; }
  .hero-slider .slide-hero .hero { min-height: 520px; }
  .slide-hero .hero-stripe { left: 72%; }
}
@media (max-width: 600px) {
  .hero { min-height: 420px; }
  .hero-slider .slide-hero .hero { min-height: 540px; align-items: flex-start; }
  .hero-slider .slide-hero .hero-content { padding: 40px 0 60px; }
  .hero-slider .slide-hero .hero-bg { background-position: 70% center; }
  .slide-hero .hero-stripe { left: auto; right: -40px; width: 50px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .slide-hero .hero-content > * { transition: none; opacity: 1; transform: none; }
}

/* Pagination as links */
.pagination a,
.pagination span.is-active {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 6px;
  border-radius: 21px;
  background: #E9EAEE;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  transition: background .2s, color .2s;
}
.pagination a:hover { background: var(--orange-soft); color: var(--orange); }
.pagination span.is-active { background: var(--orange); color: #fff; }
.pagination a.page-step { display: inline-flex; gap: 4px; padding: 0 20px; }
.pagination a.page-step i { display: none; font-style: normal; font-size: 18px; }
@media (max-width: 600px) {
  .pagination a, .pagination span.is-active { min-width: 34px; height: 34px; font-size: 14px; }
  .pagination a.page-step { padding: 0; }
  .pagination a.page-step i { display: inline; }
  .pagination a.page-step span { display: none; }
}

.pager-mini a,
.pager-mini .is-disabled {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid #D8DAE0;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  color: var(--navy);
  transition: all .2s;
}
.pager-mini a:hover { border-color: var(--orange); color: var(--orange); }
.pager-mini .is-disabled { opacity: .4; }

/* WooCommerce sort dropdown styled like the static design */
.woocommerce-ordering { display: flex; align-items: center; gap: 10px; margin: 0 !important; font-size: 14px; font-weight: 400; white-space: nowrap; }
.woocommerce-ordering::before { content: "เรียงตาม :"; }
.woocommerce-ordering select {
  font: inherit;
  font-size: 14px;
  padding: 9px 30px 9px 12px;
  border: 1px solid #D8DAE0;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.woocommerce-ordering select:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 107, 29, .15); }
@media (max-width: 600px) { .woocommerce-ordering select { flex: 1; } }

.mn-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity .5s ease, visibility .5s ease;
}
.mn-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.mn-loader-inner { display: grid; justify-items: center; gap: 22px; }
.mn-loader img { width: 150px; height: auto; animation: mn-loader-pulse 1.6s ease-in-out infinite; }
.mn-loader-bar { position: relative; width: 140px; height: 4px; overflow: hidden; border-radius: 4px; background: #F1F2F5; }
.mn-loader-bar i { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, #FF8A3D, var(--orange)); animation: mn-loader-slide 1.1s ease-in-out infinite; }
.mn-loader.is-done .mn-loader-inner { transform: scale(.94); transition: transform .5s ease; }
html.mn-loading, html.mn-loading body { overflow: hidden; }
@keyframes mn-loader-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .85; } }
@keyframes mn-loader-slide { 0% { left: -40%; } 100% { left: 100%; } }
@media (max-width: 600px) { .mn-loader img { width: 120px; } }
@media (prefers-reduced-motion: reduce) {
  .mn-loader img, .mn-loader-bar i { animation: none; }
  .mn-loader-bar i { left: 0; width: 100%; }
}

.pd-tabs { overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tabs button { flex-shrink: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pd-tabs button.is-active::after { bottom: 0; }
.pd-tabs button:focus-visible { outline: 2px solid rgba(242, 107, 29, .5); outline-offset: -2px; }
[data-tabs] { scroll-margin-top: 110px; }

.shop-main { position: relative; transition: opacity .2s; }
.shop-main.is-loading { opacity: .45; pointer-events: none; }
.shop-main.is-loading::after {
  content: "";
  position: absolute;
  top: 120px;
  left: 50%;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  border: 3px solid rgba(242, 107, 29, .25);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: mn-spin .7s linear infinite;
}
@keyframes mn-spin { to { transform: rotate(360deg); } }

button.btn { border: 0; font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
button.btn:focus { outline: 0; }
button.btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(242, 107, 29, .3); }
.filters .btn-block { padding: 12px 16px; font-size: 15px; font-weight: 600; }

.filter-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-reset svg { width: 15px; height: 15px; flex-shrink: 0; }
.filter-reset:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters .filter-group:last-of-type { border-bottom: 0; }

/* Prices & cart */
.shop-price, .prod-price { margin: -4px 0 12px; font-weight: 600; color: var(--orange-dark); }
.prod-price { margin: -6px 0 12px; }
.pd-price { margin: -4px 0 18px; font-size: 26px; font-weight: 700; color: var(--orange-dark); }
.pd-price del, .shop-price del, .prod-price del { color: var(--muted); font-weight: 400; font-size: .75em; margin-right: 6px; }
.pd-price ins, .shop-price ins, .prod-price ins { text-decoration: none; }
.price-ask { font-size: 15px; font-weight: 500; color: var(--muted); }
.pd-cart { margin-bottom: 14px; }
.pd-cart form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pd-cart .quantity input { width: 80px; height: 46px; border: 1px solid #D8DAE0; border-radius: 10px; font: inherit; text-align: center; }
.pd-cart .single_add_to_cart_button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.wc-block-components-button:not(.is-link) {
  padding: 12px 26px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #FF8A3D, var(--orange)) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  cursor: pointer;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { filter: brightness(1.06); }
.quote-split a.added { filter: saturate(.6); }
.quote-split a.loading { opacity: .7; }
.quote-split .added_to_cart { display: none !important; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--orange) !important; font-family: inherit; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--orange) !important; }
.shop-main > .woocommerce-notices-wrapper:empty { display: none; }

/* Blog chips rendered as links */
.chips a {
  padding: 7px 18px;
  border: 1px solid #D8DAE0;
  border-radius: 30px;
  background: #fff;
  font-size: 14px;
  color: var(--text);
  transition: all .2s;
}
.chips a:hover { border-color: var(--orange); color: var(--orange); }
.chips a.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.post-featured-img img, .post-card-img img { display: block; }
.post-card-img:empty, .post-featured-img:empty { background: linear-gradient(135deg, #FFE2CC, #FFF3EA); min-height: 180px; }

/* Rich text (classic pages, articles, product descriptions) */
.entry-content > * + * { margin-top: 14px; }
.entry-content h2 { font-size: 22px; font-weight: 600; color: var(--navy); margin-top: 30px; padding-left: 14px; border-left: 4px solid var(--orange); }
.entry-content h3 { font-size: 19px; font-weight: 600; color: var(--navy); margin-top: 24px; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content li + li { margin-top: 4px; }
.entry-content a { color: var(--orange); text-decoration: underline; }
.entry-content img { height: auto; border-radius: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.entry-content th, .entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content thead th { background: var(--orange); color: #fff; }
.entry-content blockquote { padding: 20px 24px; background: var(--orange-soft); border-left: 5px solid var(--orange); border-radius: 10px; font-weight: 500; color: var(--orange-dark); }
.entry-content .wp-block-table { overflow-x: auto; }
.page-content { background: #fff; }
.page-content .entry-content { max-width: 900px; }
.page-content .woocommerce, .page-content .wp-block-woocommerce-cart, .page-content .wp-block-woocommerce-checkout { max-width: none; }
.page-content .container.entry-content:has(.woocommerce, .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) { max-width: 1180px; }
.pd-short p + p { margin-top: 8px; }

/* Contact form */
.mn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-bottom: 14px; padding: 12px 16px; border-radius: 8px; background: #FDECEC; color: #B3261E; font-size: 14px; }
.contact-form-box .form-success { margin-bottom: 14px; }
.contact-form-box .section-title { margin-bottom: 16px; }

.notfound { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ==========================================================================
   Elementor helpers – add these in Advanced › CSS Classes
   ========================================================================== */
.elementor-widget-text-editor { font-size: 15.5px; }
.elementor-widget-text-editor p + p { margin-top: 12px; }
.elementor-widget-text-editor ul, .elementor-widget-text-editor ol { padding-left: 22px; }

/* Image with rounded corners + shadow (About page photos) */
.mn-img-frame img,
.mn-img-frame .elementor-widget-container img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.mn-img-frame.mn-wide img { aspect-ratio: 16 / 9; }
.mn-img-frame { overflow: hidden; border-radius: var(--radius); }
.mn-img-frame:hover img { transform: scale(1.04); }

/* Map image with caption (Service page) */
.mn-map-figure img { width: 100%; max-width: 340px; margin-inline: auto; }
.mn-map-figure figcaption, .mn-map-figure .widget-image-caption { margin-top: 10px; font-weight: 500; color: var(--navy); text-align: center; }

/* Orange buttons for the native Button widget */
.mn-btn .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FF8A3D, var(--orange));
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(242, 107, 29, .35);
  transition: background .2s, transform .2s;
}
.mn-btn .elementor-button:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }

/* Pull contact cards up over the banner */
.mn-overlap { margin-top: -50px !important; position: relative; z-index: 2; }

/* Headings inside Elementor keep theme fonts */
.elementor-widget-heading .elementor-heading-title { font-family: inherit; color: var(--navy); }
.elementor-widget-google_maps iframe { display: block; filter: saturate(.9); }

/* Widgets render their own spacing */
.elementor-widget-mn-line-title .line-title { margin-bottom: 10px; }
.elementor-widget-mn-icon-title .section-title { margin-bottom: 0; }
.elementor-widget-mn-quote blockquote { margin-top: 6px; }
.elementor-widget-mn-check-list .check-list { margin-top: 0; }
