/* 0. Base & Reset Styles */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: 'Sarabun', sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
  font-family: 'Sarabun', sans-serif;
  background-color: #f9fafb;
  color: #374151;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
    margin: 0;
    padding: 0;
}

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
  color: inherit;
  text-decoration: inherit;
}

/* 1. Layout & Container */

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; 
    padding-right: 1.5rem; 
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}
@media (min-width: 768px) {
    .container { max-width: 768px; }
}
@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}
@media (min-width: 1536px) {
    .container { max-width: 1536px; }
}

/* 2. Header & Navigation */

.site-header {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease-in-out;
}

.site-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-branding .custom-logo {
    height: 48px;
    width: auto;
}

.site-branding .site-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.025em;
}

.desktop-nav-wrapper {
    display: none;
}
@media (min-width: 768px) {
    .desktop-nav-wrapper {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.main-navigation ul.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-navigation a.nav-link {
    color: #4b5563;
    transition: color 0.2s ease-in-out;
}

.main-navigation a.nav-link:hover {
    color: #309EFB;
}

.mobile-menu-toggle {
    display: block;
}
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle button {
    background: none;
    cursor: pointer;
}

/* --- Mobile Menu Panel (Full-Screen Overlay Style) --- */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    z-index: 40; 

    /* Appearance & Animation */
    background-color: rgba(255, 255, 255, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    /* Center the links inside */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-panel.is-active {
    opacity: 1;
    visibility: visible;
}

/* Style for the links inside the overlay */
.mobile-menu-panel a {
    color: #1f2937;
    font-size: 1.5rem; 
    font-weight: 600;
    padding: 0.5rem 1rem;
}

/* Style for the button inside the overlay */
.mobile-menu-panel .btn {
    margin-top: 1.5rem;
    padding: 0.75rem 2.5rem;
    font-size: 1.125rem;
}

body.no-scroll {
    overflow: hidden;
}

.site-main {
    padding-top: 6rem; 
}

/* 3. Footer */

.site-footer {
    background-color: #1f2937;
    color: #ffffff;
}

.site-footer .container {
    padding-top: 2rem;    
    padding-bottom: 2rem; 
}

.footer-widgets {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .footer-widgets { grid-template-columns: repeat(4, 1fr); }
}

.footer-widget h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-widget p,
.footer-widget ul {
    color: #9ca3af;
}
.footer-widget ul:not(.social-links) {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-widget ul a:hover {
    color: #ffffff;
}
.footer-widget .contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-widget .contact-list li {
    display: flex;
    align-items: flex-start;
}
.footer-widget .contact-list .feather {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid #4b5563;
    text-align: center;
    color: #6b7280;
    font-size: 16px;
}

/* Footer Social Links (Minimalist Icon Style) */
.social-links {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem; 
}

.social-links a {
    color: #9ca3af; 
    display: inline-block;
    transition: color 0.2s ease-in-out;
}

.social-links a svg {
    width: 38px;  
    height: 38px;
    display: block;
    fill: currentColor; 
}

/* --- Social Links Hover Effects --- */
.social-links a:hover[aria-label="Facebook"] {
    color: #1877F2; 
}
.social-links a:hover[aria-label="Line"] {
    color: #06C755; 
}
.social-links a:hover[aria-label="TikTok"] {
    color: #000000; 
}

/* 4. Reusable Components (Buttons, etc.) */

.btn {
    display: inline-block;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}
.btn-yellow {
    background-color: #FFE52C;
    color: #1f2937;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.btn-yellow:hover {
    background-color: #FBBF24;
}
.btn-white {
    background-color: #ffffff;
    color: #1E3A8A;
}
.btn-white:hover {
    background-color: #f3f4f6;
}
.btn-blue-dark {
    background-color: #1E3A8A;
    color: #ffffff;
}
.btn-blue-dark:hover {
    background-color: #1e40af;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #374151;
}
@media (min-width: 768px) {
    .section-title { font-size: 2.25rem; }
}
.section-subtitle {
    color: #6b7280;
    margin-top: 0.5rem;
}
.desktop-nav-wrapper .btn {
    padding: 0.5rem 1.25rem;
}

/* 5. Standard Page & Content Typography */

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
}

.entry-content {
    line-height: 1.7;
    font-size: 1rem;
    color: #374151;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-weight: bold;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 1em;
    color: #111827;
}

.entry-content h1 { font-size: 2.25rem; }
.entry-content h2 { font-size: 1.875rem; }
.entry-content h3 { font-size: 1.5rem; }

.entry-content strong {
    font-weight: bold;
}

.entry-content a {
    color: #309EFB;
    text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.entry-content ul { list-style-type: disc; }
.entry-content ol { list-style-type: decimal; }

.entry-content li {
    margin-bottom: 0.5em;
}

/* 6. Homepage Sections */

.hero-section {
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    padding-top: 6rem;
    padding-bottom: 6rem;
}
@media (min-width: 768px) {
    .hero-overlay {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}
.hero-content {
    text-align: center;
    color: #ffffff;
}
.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}
@media (min-width: 768px) {
    .hero-title { font-size: 3.75rem; }
}
.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
    .hero-subtitle { font-size: 1.25rem; }
}
.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.hero-buttons .btn {
    width: 100%;
    font-size: 1.125rem;
}
@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    .hero-buttons .btn {
        width: auto;
    }
}

.features-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: #f3f4f6;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.feature-item .icon-wrapper {
    background-color: #309EFB;
    color: #ffffff;
    border-radius: 9999px;
    height: 4rem;
    width: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}
.feature-item .icon-wrapper .feather {
    height: 2rem;
    width: 2rem;
}
.feature-item h3 {
    font-weight: 600;
    font-size: 1.125rem;
    color: #374151;
}
.feature-item p {
    color: #6b7280;
    font-size: 0.875rem;
}

.services-section { 
    padding-top: 5rem; 
    padding-bottom: 5rem;
    background-color: #ffffff; 
}
.services-heading {
    text-align: center;
    margin-bottom: 3rem;
}
.services-heading .services-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #374151;
}
.services-heading .services-subtitle {
    color: #6b7280;
    margin-top: 0.5rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}
@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}
.service-card {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}
.services-grid .service-card:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    transform: translateY(-0.5rem);
}
.service-card .icon-wrapper {
    background-color: #dbeafe;
    color: #309EFB;
    border-radius: 9999px;
    height: 4rem;
    width: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.service-card .icon-wrapper svg {
    height: 2rem;
    width: 2rem;
}
.service-card .service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #111827;
}
.service-card .service-description {
    color: #6b7280;
}

.brands-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #f3f4f6;
}
.brands-section-container {
    text-align: center;
}
.brands-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
}
.brands-subtitle {
    color: #6b7280; 
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.brands-logo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem 2rem;
}
.brands-logo-container img {
    height: 3rem;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease-in-out;
}
.brands-logo-container img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* 7. Common Sections (Quote Form) */

.quote-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #1E3A8A;
    color: #ffffff;
}
.quote-heading {
    text-align: center;
}
.quote-heading h2 { 
    font-size: 2.25rem;
    font-weight: 700;
}
.quote-heading p { 
    margin-top: 1rem;
    font-size: 1.125rem; 
    color: #bfdbfe; 
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}
.quote-form-wrapper {
    margin-top: 2.5rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    color: #4b5563;
    text-align: left;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
.quote-form-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1.5rem;
}
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.quote-form .form-grid {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .quote-form .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    font-size: 16px;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: #FFE52C;
    box-shadow: 0 0 0 2px #FFE52C;
}
.quote-form .form-submit-wrapper {
    text-align: center;
}
.quote-form .btn-submit {
    width: 100%;
    padding: 0.75rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 0.5rem;
    cursor: pointer;
    background-color: #FFE52C;
    color: #1f2937;
    transition: background-color 0.2s ease-in-out;
}
.quote-form .btn-submit:hover {
    background-color: #FBBF24;
}
@media (min-width: 768px) {
    .quote-form .btn-submit {
        width: auto;
    }
}
.quote-form input::placeholder,
.quote-form textarea::placeholder,
.quote-form select {
    font-size: 16px;
    color: #9ca3af;
}
.quote-form select {
    font-size: 16px;
    color: #1f2937;
}

/* 8. WooCommerce - Shop Page */

.shop-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .shop-layout-wrapper {
        flex-direction: row;
    }

    .shop-sidebar {
        width: 320px;
        flex-shrink: 0;
        position: -webkit-sticky;
        position: sticky;
        top: 120px;
        align-self: flex-start;
    }

    .product-grid-area {
        flex: 1;
        min-width: 0;
    }
}

.shop-controls-header {
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-controls-header .woocommerce-result-count,
.shop-controls-header .woocommerce-ordering {
    margin: 0;
}

.shop-controls-header .woocommerce-ordering {
    margin-left: auto;
}

.woocommerce ul.products {
    display: grid;
    gap: 1.5rem;
    align-items: start;
    grid-template-columns: repeat(1, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .has-sidebar .shop-layout-wrapper .product-grid-area ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
    .no-sidebar .shop-layout-wrapper .product-grid-area ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

.woocommerce ul.products li.product {
    display: flex;
    margin: 0 !important;
    text-align: center;
}

.shop-sidebar .widget {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    margin-bottom: 2rem;
}

.shop-sidebar .widget .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.shop-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shop-sidebar .widget_product_categories ul.product-categories > li {
    line-height: 1.5;
}

.shop-sidebar .widget_product_categories ul.product-categories > li > a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shop-sidebar .widget_product_categories ul.product-categories > li > a:hover {
    color: #1E3A8A;
}

.shop-sidebar .widget .count {
    font-size: 0.875rem;
    color: #6B7280;
    background-color: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}
.shop-sidebar .widget .count::before,
.shop-sidebar .widget .count::after {
    content: "";
}

.shop-sidebar .widget_product_search .woocommerce-product-search {
    display: flex;
}
.shop-sidebar .widget_product_search input[type="search"] {
    width: 100%;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem 0 0 0.375rem;
    padding: 0.5rem 0.75rem;
}
.shop-sidebar .widget_product_search button {
    border: 1px solid #D1D5DB;
    border-left: 0;
    background-color: #F9FAFB;
    padding: 0.5rem 0.75rem;
    border-radius: 0 0.375rem 0.375rem 0;
}

/* --- Product Card Styling --- */
.product-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-image-wrapper {
    overflow: hidden;
}

.product-card-image {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.product-card:hover .product-card-image {
    transform: scale(1.05);
}

.product-card-title {
    font-size: 1.125rem; 
    font-weight: 600; 
    color: #1f2937; 
    padding: 1rem 1rem 0.5rem 1rem;
    flex-grow: 1;
}

.product-card-footer {
    padding: 0.5rem 1rem 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; 
}

.product-card .price {
    font-size: 1.25rem; 
    font-weight: 700;
    color: #1E3A8A; 
}

.product-card .btn-add-to-cart,
.product-card .add_to_cart_button {
    background-color: #1E3A8A;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem; 
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease-in-out;
}

.product-card .btn-add-to-cart:hover,
.product-card .add_to_cart_button:hover {
    background-color: #1e40af;
}

/* WooCommerce Notices (Floating Style) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    /* --- Positioning --- */
    position: fixed; 
    top: 90px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 9999; 

    /* --- Sizing & Spacing --- */
    width: auto;
    max-width: 500px; 
    padding: 1rem 1.5rem;
    
    /* --- Appearance --- */
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
    list-style: none outside;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- สไตล์สำหรับข้อความแจ้งเตือนทั่วไป (Success Message) --- */
.woocommerce-message {
    background-color: #f0f9eb;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* --- สไตล์สำหรับปุ่ม "ดูตะกร้าสินค้า" --- */
.woocommerce-message .button {
    background-color: #22c55e;
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 600;
    margin-left: 1.5rem;
    white-space: nowrap;
    transition: background-color 0.2s ease-in-out;
}

.woocommerce-message .button:hover {
    background-color: #16a34a;
}

/* 9. WooCommerce - Single Product Page */

.single-product .site-main {
    padding-top: 4rem;
}

.woocommerce-breadcrumb {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 18px; 
    font-weight: 500;   
    margin-bottom: 2rem; 
}

.single-product div.product {
    max-width: 1280px;      
    margin-left: auto;      
    margin-right: auto;     
    padding-left: 0.8rem;   
    padding-right: 0.8rem;  
    margin-top: 2rem;
    float: none !important;
}

@media (min-width: 768px) {
    .single-product div.product {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem 3rem;
    }

    .single-product .woocommerce-product-gallery,
    .single-product .summary.entry-summary {
        flex: 1 1 calc(50% - 1.5rem);
        width: auto;
    }

    .single-product .woocommerce-tabs,
    .single-product .related.products {
        flex-basis: 100%;
        width: 100%;
    }
}

.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    margin-bottom: 1.5em !important;
    border-radius: 0.5rem;
    overflow: hidden;
}

.woocommerce-product-gallery .flex-control-thumbs {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.2em !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: 80px !important;
    height: 80px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 0.375rem !important;
    border: 1px solid #ddd !important;
    cursor: pointer !important;
    transition: border-color 0.2s;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li:hover {
    border-color: #1E3A8A !important;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
    margin-top: 1em !important;
}

.single-product form.cart {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.single-product .quantity input.qty {
    width: 60px;
    text-align: center;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
}

.single-product button.single_add_to_cart_button {
    background-color: #1E3A8A;
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.single-product button.single_add_to_cart_button:hover {
    background-color: #1e40af;
}

.single-product .product_meta {
    display: flex;
    flex-direction: column;
}

.product_meta .sku_wrapper { order: 1; }
.product_meta .posted_in { order: 2; }
.product_meta .brand { order: 3; }
.product_meta .tagged_as { order: 4; }

.single-product .product_title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.single-product p.price {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 1em;
}

.single-product .woocommerce-tabs h2,
.single-product .related.products > h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0px;
}

.related.products {
    clear: both;
    margin-top: 1rem;
    margin-bottom: 4rem;
}

.related.products ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .related.products ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

.related.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 500;
}

.related.products li.product .price {
    font-size: 1.125rem;
    color: #374151;
    font-weight: 600;
}

.single-product .woocommerce-tabs ul.tabs {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 -1px 0 !important;
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.single-product .woocommerce-tabs ul.tabs li {
    background-color: #f3f4f6;
    padding: 0.75rem 1.5rem;
    margin: 0 !important;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0;
    cursor: pointer;
    position: relative;
    color: #374151;
}

.single-product .woocommerce-tabs ul.tabs li.active {
    background-color: white;
    border-color: #e5e7eb;
    z-index: 2;
}

.single-product .woocommerce-tabs ul.tabs li a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.single-product .woocommerce-tabs .panel {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    margin-top: 0;
}

/* 10. Page Templates */

.policy-content-wrapper {
    background-color: #f9fafb;
    padding: 4rem 1.5rem;
}

.policy-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border-radius: 0.5rem;
}

.policy-header {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.policy-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
}

.policy-content .entry-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2.5em;
    margin-bottom: 1em;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.5em;
}

.policy-content .entry-content p,
.policy-content .entry-content li {
    line-height: 1.8;
    color: #374151;
}

.policy-content .entry-content a {
    color: #1d4ed8;
    text-decoration: underline;
}

.policy-content .entry-content ul,
.policy-content .entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

/* 11. Animations & Utilities */

.page-content { display: none; }
.page-content.active { display: block; }

.scroll-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 12. Services Page Styles */

/* --- Page Layout & Header --- */
.services-page-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #f3f4f6; 
}

.services-page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-page-title {
    font-size: 2.25rem; 
    font-weight: 700;
    color: #1f2937; 
}

.services-page-subtitle {
    font-size: 1.125rem; 
    color: #4b5563; 
    margin-top: 0.5rem;
}

/* --- Promotions Section --- */
.promotions-section {
    margin-bottom: 5rem; 
}

.promotions-section .section-title {
    font-size: 1.875rem; 
    font-weight: 700;
    text-align: center;
    color: #1E3A8A; 
    margin-bottom: 2.5rem; 
}

.promotions-grid {
    display: grid;
    gap: 2rem; 
}

@media (min-width: 768px) {
    .promotions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.promotion-card {
    background-color: #ffffff;
    border-radius: 0.5rem; 
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    padding: 1.5rem; 
    display: flex;
    align-items: center;
    gap: 1.5rem; 
}

.promotion-card .icon-wrapper {
    border-radius: 9999px; 
    height: 6rem; 
    width: 6rem; 
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFE52C; 
}

.promotion-card .icon-wrapper svg {
    width: 3rem; 
    height: 3rem; 
    color: #1E3A8A; 
}

.promotion-title {
    font-size: 1.25rem; 
    font-weight: 700;
    color: #1f2937; 
}

.promotion-description {
    color: #4b5563; 
    margin-top: 0.25rem; 
}

/* --- Pricing Table Section --- */
.pricing-section {
    margin-bottom: 5rem; 
}

.pricing-section .section-title {
    font-size: 1.875rem; 
    font-weight: 700;
    text-align: center;
    color: #1E3A8A; 
    margin-bottom: 2.5rem; 
}

.pricing-table {
    background-color: #ffffff;
    border-radius: 0.5rem; 
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    padding: 2rem; 
}

.pricing-table-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.pricing-table-grid.header-row {
    font-weight: 700;
    color: #1f2937; 
    border-bottom: 2px solid #e5e7eb; 
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.pricing-table-grid.data-row {
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb; 
}

.pricing-table-grid.data-row:last-child {
    border-bottom: none;
}

.pricing-size {
    font-weight: 600; 
    font-size: 1.125rem; 
}

.size-subtitle {
    display: block;
    font-size: 0.875rem; 
    font-weight: 400; 
    color: #6b7280; 
}

.price-per {
    font-size: 1.125rem; 
    font-weight: 600; 
}

.price-pkg {
    font-size: 1.125rem; 
    font-weight: 700; 
    color: #1E3A8A; 
}

.price-badge {
    display: block;
    font-size: 0.75rem; 
    font-weight: 400; 
    color: #16a34a; 
}

/* --- Big Cleaning Packages Section --- */
.big-cleaning-section {
    margin-bottom: 5rem; 
}

.big-cleaning-section .section-title {
    font-size: 1.875rem; 
    font-weight: 700;
    text-align: center;
    color: #1E3A8A; 
    margin-bottom: 2.5rem; 
}

.packages-grid {
    display: grid;
    gap: 2rem; 
}

@media (min-width: 768px) {
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.package-card {
    background-color: #ffffff;
    border-radius: 0.75rem; 
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); 
    padding: 2rem; 
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative; 
}

.package-card.is-popular {
    border: 4px solid #FFE52C; 
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFE52C; 
    color: #1f2937; 
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem; 
    font-weight: 700;
}

.package-title {
    font-size: 1.5rem; 
    font-weight: 700;
    color: #1f2937; 
}

.package-subtitle {
    color: #6b7280; 
    margin-bottom: 1rem;
}

.package-image {
    border-radius: 0.375rem; 
    margin-bottom: 1.5rem;
    width: 100%;
    height: 12rem; 
    object-fit: cover;
}

.package-price {
    font-size: 2.25rem; 
    font-weight: 700;
    color: #1E3A8A; 
    margin-bottom: 1.5rem;
}

.package-price .price-prefix {
    font-size: 1.25rem; 
    font-weight: 400; 
}

.package-features {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; 
    flex-grow: 1; 
}

.package-features li {
    display: flex;
    align-items: flex-start;
    color: #4b5563; 
}

.package-features .feather {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 1.25rem; 
    height: 1.25rem; 
}

.feather.feat-green { color: #22c55e; } 
.feather.feat-yellow { color: #eab308; } 
.feather.feat-pink { color: #ec4899; } 

.package-card .btn-cta {
    margin-top: auto; 
    background-color: #FFE52C; 
    color: #1f2937; 
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}
.package-card .btn-cta:hover {
    background-color: #FBBF24; 
}

/* --- Special Services Section --- */
.special-services-section {
    margin-bottom: 5rem; 
}

.special-services-section .section-title {
    font-size: 1.875rem; 
    font-weight: 700;
    text-align: center;
    color: #1E3A8A; 
    margin-bottom: 2.5rem; 
}

.special-services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .special-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .special-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.special-service-card {
    display: block;
    background-color: #ffffff;
    border-radius: 0.5rem; 
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); 
    overflow: hidden;
    text-decoration: none;
}

.card-image-wrapper {
    overflow: hidden; 
}

.card-image {
    width: 100%;
    height: 12rem; 
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.special-service-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem; 
    text-align: center;
}

.card-title {
    font-size: 1.25rem; 
    font-weight: 600; 
    color: #1f2937; 
    margin-bottom: 0.5rem;
}

.card-price {
    font-size: 1.125rem; 
    font-weight: 700; 
    color: #1E3A8A; 
}

/* --- Industrial Services Section --- */
.industrial-services-section .section-title {
    font-size: 1.875rem; 
    font-weight: 700;
    text-align: center;
    color: #1E3A8A; 
    margin-bottom: 2.5rem; 
}

.industrial-service-item {
    background-color: #ffffff;
    border-radius: 0.5rem; 
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); 
    padding: 2rem; 
    display: grid;
    gap: 3rem; 
    align-items: center;
    margin-bottom: 3rem; 
}

.industrial-service-item:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .industrial-service-item {
        grid-template-columns: repeat(2, 1fr);
    }
}

.item-image {
    border-radius: 0.5rem; 
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-headline {
    font-size: 1.5rem; 
    font-weight: 700;
    color: #1f2d37; 
    margin-bottom: 1rem;
}

.item-paragraph {
    color: #4b5563; 
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.item-features {
    list-style-type: disc;
    list-style-position: inside;
    color: #4b5563; 
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; 
}

.btn-primary-dark {
    display: inline-block;
    background-color: #1E3A8A; 
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.btn-primary-dark:hover {
    background-color: #1e40af; 
}

/* 13. Special Service Page Template (Scoped) */

.special-service-main .special-service-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: #f3f4f6; 
}

.special-service-main .special-service-section:first-child {
    padding-top: 5rem;
}

.special-service-main .special-service-section .section-title {
    text-align: center;
    color: #1E3A8A; 
    font-size: 2.25rem; 
    font-weight: 700;
    margin-bottom: 2.5rem;
}

/* This rule now ONLY applies to cards inside .special-service-main */
.special-service-main .special-service-card {
    background-color: #ffffff;
    border-radius: 0.5rem; 
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); 
    padding: 2rem;
    display: grid;
    gap: 3rem; 
    align-items: center;
}

@media (min-width: 768px) {
    .special-service-main .special-service-card {
        grid-template-columns: repeat(2, 1fr);
    }
}

.special-service-main .special-service-card .card-image {
    border-radius: 0.5rem; 
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.special-service-main .special-service-card .card-headline {
    font-size: 1.875rem; 
    font-weight: 700;
    color: #1f2937; 
    margin-bottom: 1rem;
}

.special-service-main .special-service-card .card-paragraph {
    color: #4b5563; 
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.special-service-main .special-service-card .card-features {
    list-style-type: disc;
    list-style-position: inside;
    color: #4b5563; 
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; 
}

.special-service-main .special-service-card .btn-primary-dark {
    padding: 0.75rem 2rem; 
}

/* 14. Contact Us Page */

.contact-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #f3f4f6; 
}

.contact-container {
    max-width: 1280px; 
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.contact-page-title {
    text-align: center;
    font-size: 2.25rem; 
    font-weight: 700;
    color: #1f2937; 
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    gap: 2rem; 
}

@media (min-width: 768px) { 
    .contact-grid {
        grid-template-columns: 2fr 3fr;
        align-items: stretch;
    }
}

.contact-info-card,
.map-card {
    background-color: #ffffff;
    border-radius: 0.5rem; 
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden; 
}

.contact-info-card {
    padding: 2rem;
}

.contact-info-card .card-title {
    font-size: 1.5rem; 
    font-weight: 700;
    color: #111827; 
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb; 
    padding-bottom: 1rem;
}

.contact-info-card .card-body p {
    font-size: 1rem; 
    line-height: 1.8;
    color: #374151; 
    margin-bottom: 1rem;
}

.contact-info-card .card-body a {
    color: #1E3A8A; 
    text-decoration: underline;
}

.map-card iframe {
    display: block;
    width: 100%;
    min-height: 450px;
    border: 0;
}

/* 15. About Us Page */

.content-card-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.content-card-section:nth-child(odd) {
    background-color: #ffffff;
}

.content-card-section:nth-child(even) {
    background-color: #f3f4f6; /* bg-gray-100 */
}

.content-card {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 2rem;
    align-items: center;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) { 
    .content-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* CSS Logic to handle image on the right */
@media (min-width: 768px) {
    .content-card.image-right .content-card-image-col {
        grid-column-start: 2; 
    }
    .content-card.image-right .content-card-text-col {
        grid-column-start: 1; 
        grid-row-start: 1;    
    }
}

.content-card-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* shadow-lg */
    object-fit: cover;
}

.content-card-headline {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 1rem;
}

.content-card-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
}

.content-card-body p:last-child {
    margin-bottom: 2rem; 
}

/* New Button Style for this page */
.btn-primary-yellow {
    display: inline-block;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
    background-color: #FFE52C;
    color: #1f2937;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.btn-primary-yellow:hover {
    background-color: #FBBF24;
}

/* 16. Policy Page Template */

/* 1. Set a background color for the entire area of policy pages */
body.page-template-template-policy {
    background-color: #f3f4f6;
}

/* 2. Turn the default container into a styled "card" */
.page-template-template-policy .page-container {
    max-width: 1024px; 
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    padding: 1rem 3rem 2.5rem; 
    margin-top: 1.5rem;     
    margin-bottom: 3rem; 
}

/* 3. Fine-tune typography inside the policy card for better spacing */
.page-template-template-policy .entry-content h1,
.page-template-template-policy .entry-content h2,
.page-template-template-policy .entry-content h3 {
    margin-bottom: 1.5rem;
}

/* 17. Fluent Forms Customization */

/* --- ปรับขนาดฟอนต์ของป้ายกำกับ (Label) เช่น ชื่อ-นามสกุล, อีเมล --- */
.fluentform .ff-el-input--label label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

/* --- ปรับขนาดฟอนต์ของตัวหนังสือในช่องกรอกข้อมูลทั้งหมด --- */
.fluentform .ff-el-form-control {
    font-size: 16px;
    font-family: 'Sarabun', sans-serif !important;
}

/* --- ปรับขนาดฟอนต์ของปุ่มส่งข้อมูล --- */
.fluentform .ff-btn-submit {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
}

/* 18. Fluent Forms - Submit Button Loading State */

/* --- สไตล์ของปุ่มขณะกำลังโหลด --- */
.ff-btn-submit.is-loading {
    cursor: not-allowed; /* เปลี่ยนเคอร์เซอร์เป็นรูป "ห้าม" */
    opacity: 0.8;        /* ทำให้ปุ่มจางลงเล็กน้อย */
    
    /* จัดเรียงไอคอนกับข้อความให้อยู่ตรงกลางสวยงาม */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; /* ระยะห่างระหว่างไอคอนกับข้อความ */
}

/* --- สร้างไอคอนหมุนๆ (Spinner) --- */
.loading-spinner {
    width: 1.25em;  /* ขนาดจะปรับตามขนาดฟอนต์ของปุ่ม */
    height: 1.25em;
    border: 3px solid;
    /* ใช้สีเดียวกับสีตัวอักษรของปุ่ม และทำให้โปร่งใสบางส่วน */
    border-color: currentColor currentColor currentColor transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0.5;
}

/* --- Animation การหมุน --- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}