/* ===========================
   1. RESET & BASE STYLES
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.7;
}

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

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: 0.3s;
    font-family: 'Prompt', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===========================
   2. HEADER & NAVIGATION
=========================== */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 8%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    z-index: 999;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo a {
    color: #222222;
}

.logo span {
    color: #ff5f97;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    font-size: 15.5px;
    font-weight: 500;
    color: #444444;
    transition: 0.25s ease;
    position: relative;
    text-decoration: none;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #ff5f97;
    transition: 0.25s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: #ff5f97;
}

nav a.active {
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search-capsule {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #ffe1ed;
    border-radius: 40px;
    padding: 3px 4px 3px 16px;
    box-shadow: 0 2px 8px rgba(255, 106, 162, 0.08);
    transition: 0.3s ease;
}

.header-search-capsule:focus-within {
    border-color: #ff5f97;
    box-shadow: 0 3px 12px rgba(255, 95, 151, 0.2);
}

.header-search-capsule input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Prompt', sans-serif;
    font-size: 13.5px;
    color: #444444;
    width: 135px;
}

.header-search-capsule input::placeholder {
    color: #aaaaaa;
}

.header-search-capsule button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff5f97;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12.5px;
    transition: 0.2s ease;
}

.header-search-capsule button:hover {
    background: #f14481;
    transform: scale(1.05);
}

#cartBtn {
    position: relative;
    display: flex;
    align-items: center;
    color: #333333;
    font-size: 21px;
    text-decoration: none;
    transition: 0.2s ease;
}

#cartBtn:hover {
    color: #ff5f97;
}

#cartCount {
    position: absolute;
    top: -7px;
    right: -10px;
    background: #ff5f97;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid #ffffff;
}

/* =========================================================
   3. GLOBAL FULL-BANNER HERO (ALL PAGES)
========================================================= */
.hero,
.product-hero,
.about-hero,
.review-hero,
.contact-hero {
    width: 100% !important;
    min-height: calc(100vh - 75px) !important;
    padding: 80px 8% !important;
    background-image: url('../images/cushion-glow-hero.webp') !important;
    background-size: cover !important;
    background-position: center right !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    overflow: hidden !important;
}

.hero-image,
.hero::before,
.hero::after,
.product-hero::before,
.product-hero::after,
.about-hero::before,
.about-hero::after,
.review-hero::before,
.review-hero::after,
.contact-hero::before,
.contact-hero::after {
    display: none !important;
}

.hero-content-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
}

.hero-text {
    max-width: 680px;
    width: 100%;
    text-align: left;
    z-index: 2;
    background: transparent;
    padding: 0;
}

.hero-subtitle-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff5f97;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-subtitle-badge .dash {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: #ff5f97;
}

.hero-subtitle-badge .heart {
    font-size: 20px;
}

.hero-text h1 {
    font-size: 54px;
    line-height: 1.25;
    color: #1a1a1a;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 22px;
    text-align: left;
}

.hero-text h1 .highlight {
    color: #ff5f97;
}

.hero-text h2 {
    font-size: 20px;
    line-height: 1.5;
    color: #ff5f97;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: left;
}

.hero-text p {
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 28px;
    text-align: left;
}

.hero-text strong {
    color: #1a1a1a;
    font-weight: 700;
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
}

.buy,
.more,
.btn-back,
.btn-contact {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 165px;
    height: 52px;
    padding: 0 30px;
    border-radius: 35px;
    font-size: 16.5px;
    font-weight: 600;
    transition: 0.3s;
}

.buy::after,
.more::after {
    content: " →";
    margin-left: 8px;
}

.buy,
.btn-back {
    background: #ff5f97;
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 95, 151, 0.35);
}

.buy:hover,
.btn-back:hover {
    background: #f14481;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 95, 151, 0.4);
}

.more,
.btn-contact {
    background: #fff;
    color: #ff5f97;
    border: 2px solid #ff7da9;
}

.more:hover,
.btn-contact:hover {
    background: #fff0f6;
    transform: translateY(-2px);
}

.product-hero .btn-group,
.about-hero .btn-group,
.review-hero .btn-group,
.contact-hero .btn-group {
    display: none;
}

.product-hero .hero-text p,
.about-hero .hero-text p,
.review-hero .hero-text p,
.contact-hero .hero-text p {
    margin-bottom: 0;
}

.hero-trust-badges {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding-top: 18px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #ffcadf;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff5f97;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 95, 151, 0.12);
}

.badge-text strong {
    font-size: 14.5px;
    color: #222222;
    display: block;
    font-weight: 700;
    line-height: 1.3;
}

.badge-text span {
    font-size: 13.5px;
    color: #666666;
    display: block;
    line-height: 1.3;
}

/* ===========================
   4. CONTENT SECTIONS
=========================== */
section {
    padding: 80px 8%;
}

section h2 {
    text-align: center;
    font-size: 34px;
    color: #222;
    margin-bottom: 40px;
}

section h3 {
    color: #333;
    margin-bottom: 15px;
}

section p {
    color: #666;
}

/* Search Section */
.search {
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
    text-align: center;
    padding: 40px 20px;
    background: #fff5fa;
    border-radius: 25px;
}

.search h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 25px;
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.search-box input {
    flex: 1;
    height: 50px;
    padding: 0 20px;
    font-size: 16px;
    font-family: 'Prompt', sans-serif;
    border: 2px solid #ffd0e2;
    border-radius: 30px;
    outline: none;
    background: #fff;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: #ff6aa2;
    box-shadow: 0 0 10px rgba(255, 106, 162, 0.25);
}

.search-box button {
    height: 50px;
    padding: 0 30px;
    background: #ff6aa2;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
}

.search-box button:hover {
    background: #ff4d91;
    transform: translateY(-2px);
}

/* Feature & Category */
.feature-box,
.category-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.category {
    background: #fff8fc;
}

.card,
.category-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.card:hover,
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card i,
.category-card i {
    font-size: 45px;
    color: #ff6aa2;
    margin-bottom: 20px;
}

.card img {
    width: 160px;
    margin: 0 auto 20px;
    border-radius: 15px;
}

.card h3,
.category-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.card p,
.category-card p {
    font-size: 16px;
    color: #666;
}

/* Products */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.product-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #222;
}

.product-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
}

.product-card strong {
    color: #ff6aa2;
}

.product-card p:last-of-type {
    flex: 1;
}

.product-card button {
    margin-top: auto;
    width: 100%;
    padding: 14px;
    background: #ff6aa2;
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
}

.product-card button:hover {
    background: #ff4f93;
}

/* Reviews */
.review-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.review-card:hover {
    transform: translateY(-8px);
}

/* SEO Articles */
.seo-article {
    background: #fff6fb;
    border-radius: 20px;
}

.article-box {
    max-width: 1000px;
    margin: auto;
}

.article-box p {
    margin-bottom: 20px;
    font-size: 17px;
    text-align: justify;
    color: #555;
}

.seo {
    background: #fff;
}

.seo-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.seo-card {
    display: block;
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.seo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(255, 106, 162, 0.2);
}

.seo-card h3 {
    color: #222;
    font-size: 20px;
    margin-bottom: 12px;
}

.seo-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
}

.read-more {
    color: #ff6aa2;
    font-weight: 600;
}

/* Blog Page */
.article-hero {
    background: linear-gradient(135deg, #fff6fb, #ffffff);
    padding: 70px 8% 50px;
    text-align: center;
}

.article-hero h1 {
    font-size: 42px;
    color: #222;
    margin-bottom: 20px;
}

.article-hero p {
    max-width: 750px;
    margin: auto;
    font-size: 18px;
    color: #666;
}

.blog-section {
    max-width: 1200px;
    margin: auto;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.article-card {
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    border: 1px solid #ffe1ed;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: 0.35s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 106, 162, 0.18);
}

.article-card h3 {
    font-size: 22px;
    color: #222;
    margin-bottom: 15px;
}

.article-card p {
    color: #666;
    line-height: 1.8;
    flex: 1;
    margin-bottom: 25px;
}

.article-card a {
    display: block;
    background: #ff6aa2;
    color: white;
    text-align: center;
    padding: 13px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: auto;
}

.article-card a:hover {
    background: #ff4f93;
}

/* About, Contact & Map */
.about {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.about p {
    font-size: 17px;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.vision-box,
.mission-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.vision-card,
.mission-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.vision-card i,
.mission-card i {
    font-size: 45px;
    color: #ff6aa2;
    margin-bottom: 20px;
}

/* ===========================
   แก้ไขเฉพาะส่วน Contact Home
=========================== */
.contact-home {
    text-align: center !important;
    padding: 80px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.contact-home h2 {
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}

.contact-home p {
    text-align: center !important;
    max-width: 700px !important;
    margin: 0 auto 30px auto !important;
}

.contact-home .btn-group {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Prompt', sans-serif;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff6aa2;
}

.contact-form button {
    background: #ff6aa2;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
}

.contact-form button:hover {
    background: #ff4f93;
}

.contact-info {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 18px;
    color: #555;
}

.contact-info i {
    color: #ff6aa2;
    margin-right: 10px;
}

.map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ===========================
   5. FOOTER
=========================== */
footer {
    background: #222;
    color: #fff;
    padding: 60px 8% 30px;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-logo h2 {
    color: #ff6aa2;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #ddd;
    line-height: 1.8;
}

.footer-menu h3,
.footer-contact h3 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-menu ul {
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a,
.footer-contact a {
    color: #ddd;
    transition: 0.3s;
}

.footer-menu a:hover,
.footer-contact a:hover {
    color: #ff6aa2;
}

.footer-contact p {
    margin-bottom: 12px;
    color: #ddd;
}

footer hr {
    margin: 35px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright {
    text-align: center;
    color: #bbb;
    font-size: 15px;
}

/* =========================================================
   6. RESPONSIVE DESIGN
========================================================= */
@media screen and (max-width: 1024px) {
    header {
        padding: 15px 4%;
    }

    nav {
        gap: 20px;
    }

    nav a {
        font-size: 15px;
    }

    .hero,
    .product-hero,
    .about-hero,
    .review-hero,
    .contact-hero {
        padding: 50px 5% !important;
        background-position: 75% center !important;
        min-height: auto !important;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text h2 {
        font-size: 18px;
    }

    .hero-text p {
        font-size: 14.5px;
    }

    .btn-group {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .feature-box,
    .category-box,
    .product-list,
    .review-box,
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 12px;
        padding: 14px 20px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .header-right {
        width: 100%;
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 32px;
        line-height: 1.35;
    }

    .hero-text h2 {
        font-size: 18px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-group a,
    .btn-group button {
        width: 100%;
        text-align: center;
    }

    .hero-trust-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .search {
        padding: 30px 15px;
    }

    .search-box {
        flex-direction: column;
        width: 100%;
    }

    .search-box input,
    .search-box button {
        width: 100%;
    }

    .feature-box,
    .category-box,
    .product-list,
    .review-box,
    .vision-box,
    .mission-box,
    .seo-box,
    .article-grid,
    .tip-grid,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-container {
        text-align: center;
    }
}

/* ==========================================
   1. ค่าพื้นฐานทั่วไป (Base Styles)
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Sarabun', sans-serif, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

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

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* ==========================================
   2. สำหรับโทรศัพท์มือถือ (Mobile Devices)
   - หน้าจอตั้งแต่ 0px ถึง 576px
   ========================================== */
@media screen and (max-width: 576px) {
    /* จัดเลย์เอาต์หลักของ Hero ให้เรียงลงมา */
    .hero, 
    .hero-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 10px;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    /* ควบคุมขนาดรูปภาพไม่ให้ใหญ่จนกินพื้นที่ และจัดให้อยู่ด้านบน */
    .hero img, 
    .hero-content-wrapper img {
        display: block !important;
        order: 1 !important;
        max-width: 65% !important; /* ลดขนาดรูปลงมาให้พอดีตา ไม่ใหญ่เกินไป */
        height: auto !important;
        margin: 0 auto 15px auto !important;
    }

    /* จัดกลุ่มข้อความให้อยู่ด้านล่างรูปภาพ และใส่พื้นหลังขาวโปร่งแสงให้อ่านง่ายขึ้น */
    .hero-text {
        order: 2 !important;
        width: 100%;
        text-align: center;
        background: rgba(255, 255, 255, 0.85); /* พื้นหลังขาวจางๆ กันข้อความกลืนกับรูป */
        padding: 15px;
        border-radius: 12px;
        box-sizing: border-box;
    }

    /* ปรับขนาดตัวหนังสือให้กะทัดรัด สวยงามสไตล์มือถือ */
    .hero-text h1, 
    h1 {
        font-size: 1.2rem !important;
        line-height: 1.35 !important;
        margin-bottom: 10px;
    }

    .hero-text p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
}

/* ==========================================
   3. สำหรับไอแพด / แท็บเล็ต (Tablets / iPads)
   - หน้าจอตั้งแต่ 577px ถึง 768px (แนวตั้ง) 
     และขยายไปจนถึง 992px (แนวนอน)
   ========================================== */
@media screen and (min-width: 577px) and (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    /* ปรับ Grid สินค้าให้แสดง 2 คอลัมน์สวยงามบนไอแพด */
    .product-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ==========================================
   4. สำหรับโน๊ตบุ๊คและ PC ขนาดกลาง (Laptops / Small Desktops)
   - หน้าจอตั้งแต่ 993px ถึง 1200px
   ========================================== */
@media screen and (min-width: 993px) and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    /* ปรับ Grid สินค้าให้แสดง 3 คอลัมน์ */
    .product-grid, .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* ==========================================
   5. สำหรับหน้าจอคอมพิวเตอร์ PC ขนาดใหญ่ (Large Desktops)
   - หน้าจอตั้งแต่ 1201px ขึ้นไป
   ========================================== */
@media screen and (min-width: 1201px) {
    .container {
        max-width: 1140px;
    }

    /* ปรับ Grid สินค้าให้แสดง 4 คอลัมน์เต็มตา */
    .product-grid, .blog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    /* ปรับเลย์เอาต์หน้าติดต่อ (Contact) ให้เรียงเป็นแนวตั้งบนมือถือ */
    .contact-container, 
    .contact-wrapper, 
    .contact-row,
    .row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* ขยายกล่องฟอร์มกรอกข้อมูลและช่องทางติดต่อให้เต็มความกว้างจอ */
    .contact-form, 
    .contact-info, 
    col-md-6, 
    .col {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* ปรับขนาดช่องกรอกข้อมูล (Input & Textarea) ให้พอดีกับหน้าจอมือถือ ไม่ล้น */
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================
   Responsive สำหรับหน้าจอโทรศัพท์ (Mobile View)
   ========================================== */
@media screen and (max-width: 768px) {
    /* ปรับคอนเทนเนอร์หน้าติดต่อให้เรียงแนวตั้ง */
    .contact-container, 
    .contact-wrapper, 
    .contact-row,
    .row,
    form {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 10px !important;
        margin: 0 auto !important;
    }

    /* ขยายฟอร์มและกล่องข้อมูลช่องทางติดต่อให้เต็มจอ */
    .contact-form, 
    .contact-info, 
    .col-md-6, 
    .col {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-bottom: 20px !important;
    }

    /* ปรับช่องกรอกข้อมูล (Input & Textarea) ไม่ให้ล้นขอบจอ */
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================
   ปรับแต่งตารางเปรียบเทียบ (Comparison Table)
   ========================================== */
table {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

th {
    background-color: #ff69b4; /* สีชมพูเข้ากับธีมเว็บไซต์ Cushion Glow */
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 0.5px;
}

tr:hover {
    background-color: #fff0f5; /* สีชมพูอ่อนเวลาเอาเมาส์ชี้ */
}

/* สำหรับมือถือให้ตารางสามารถเลื่อนซ้าย-ขวาได้หากจอแคบเกินไป */
@media screen and (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin: 15px 10px;
        width: calc(100% - 20px);
    }
}

/* บังคับให้หน้า Contact บนมือถือแสดงผลเป็นแถวเดี่ยวเรียงลงมาตามลำดับ */
@media screen and (max-width: 768px) {
    /* ล้างค่าโครงสร้างแบบเดิมแล้วสั่งเรียงเป็นแนวตั้ง */
    .contact-container, 
    .contact-wrapper, 
    .container, 
    .row, 
    [class*="row"] {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 auto 15px auto !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }

    /* ดึงกล่องข้อมูลการติดต่อ (ฝั่งขวาเดิม) ให้ลงมาอยู่ข้างล่างสุดทันที */
    .contact-form, 
    .contact-info, 
    .col-md-6, 
    .col, 
    [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        float: none !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        padding: 0 !important;
    }

    /* ปรับช่องกรอกข้อมูลและปุ่มทั้งหมดให้เต็มความกว้างพอดีจอ */
    input, 
    textarea, 
    select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media screen and (max-width: 768px) {
    /* บังคับล้างค่า Inline Style แบบ Grid ของตัวห่อหลักในหน้า Contact */
    #contactFormSection > div,
    .contact > div {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 10px !important;
    }

    /* บังคับกล่องย่อยภายในให้ขยายเต็มความกว้างและเรียงต่อกันลงมา */
    #contactFormSection > div > div,
    .contact > div > div {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }
}

@media screen and (max-width: 768px) {
    /* ปรับขนาดกล่องฟอร์มทั้งหมดในหน้าติดต่อให้อยู่ในกรอบจอพอดี ไม่ล้น */
    section.contact,
    .contact-container,
    .contact-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* ควบคุมกล่องการ์ดภายในให้มีขนาดพอดีกับหน้าจอ มือถือไม่ให้ล้นขอบ */
    section.contact div[style*="grid"] > div,
    .contact-form,
    .contact-info {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================
   ปรับปรุง Responsive และ Performance (Mobile Fixes)
   ========================================== */
@media screen and (max-width: 768px) {
    /* ป้องกันเนื้อหาทุกส่วนล้นขอบจอโทรศัพท์ */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* จัดระเบียบหน้า Contact ให้พอดีกรอบหน้าจอเป๊ะ */
    section.contact,
    .contact-container,
    .contact-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    section.contact div[style*="grid"] > div,
    .contact-form,
    .contact-info {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
    }

    input, textarea, select, button {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* เพิ่มประสิทธิภาพการโหลดรูปภาพและป้องกันหน้ากระโดด (CLS) */
img {
    max-width: 100% !important;
    height: auto !important;
    content-visibility: auto;
}

/* --- สไตล์กลางสำหรับหน้าเนื้อหาทั้ง 5 หน้า เพื่อความสวยงาม --- */
.page-content {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2.2rem;
    color: #d81b60;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.page-content .section-desc {
    color: #777;
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 40px;
}

/* บล็อกการ์ดเนื้อหา (ใช้ร่วมกันได้ทุกหน้า) */
.policy-box, .shipping-info-card, .tracking-search-box, .faq-card, .promo-card {
    background: #ffffff;
    border: 2px solid #f8bbd0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.05);
    margin-bottom: 25px;
}