/* =========================
   Reset / Base
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

    --page-bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f5f5f3;
    --text: #101010;
    --muted: #6d6e73;
    --line: #dedfe3;
    --accent: #17653d;
    --nav-bg: rgba(255, 255, 255, .68);
    --footer-bg: #1c1b1b;
}

html.theme-dark {
    --page-bg: #090909;
    --surface: #111111;
    --surface-soft: #181818;
    --text: #f7f7f7;
    --muted: #a7a7aa;
    --line: #111111;
    --accent: #68a67f;
    --nav-bg: rgba(34, 34, 34, .68);
    --footer-bg: #181818;
}

body {
    margin: 0;
    padding: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: 'Prompt', 'Noto Sans Thai', 'Share Tech', sans-serif;
}

/* =========================
   Navbar
========================= */
.main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 80px);
    max-width: 1120px;

    background: var(--nav-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 999px;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.50);

    z-index: 999;

    animation: navDrop .55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes navDrop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-14px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.main-nav {
    height: 64px;
    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    cursor: pointer;
    transition: transform .25s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo svg {
    width: 26px;
    height: 26px;
    fill: #111827;
    transition: transform .25s ease;
}

.logo:hover svg {
    transform: rotate(-8deg) scale(1.06);
}

.logo span {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
     font-family: 'Orbitron', sans-serif;
}

/* Menu Capsule */
.nav-menu {
    position: relative;

    display: flex;
    align-items: center;
    list-style: none;

    background: rgba(244, 245, 249, 0.50);
    padding: 5px;
    border-radius: 999px;
    gap: 4px;

    overflow: hidden;
    isolation: isolate;

    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, 0.06),
        0 8px 22px rgba(15, 23, 42, 0.05);
}

/* กล่องขาวที่วิ่งตามเมนู */
.nav-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);

    width: 0;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    z-index: 1;
    pointer-events: none;

    transition:
        left .32s cubic-bezier(0.22, 1, 0.36, 1),
        width .32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity .2s ease;
}


.nav-menu a {
    position: relative;
    z-index: 2;

    display: block;
    text-decoration: none;

    color: #555568;
    font-size: 13px;
    font-weight: 650;

    padding: 8px 18px;
    border-radius: 999px;

    transition:
        color .22s ease,
        transform .22s ease,
        font-weight .22s ease;
}

.nav-menu a:hover {
    color: #111827;
    transform: translateY(-1px);
}

.nav-menu a.active {
    color: #111827;
    font-weight: 800;
}

/* Login Button */
.btn-login {
    display: inline-block;
    text-decoration: none;

    background: #0d0d0d;
    color: #ffffff;

    font-size: 18px;
    font-weight: 600;

    padding: 10px 26px;
    border-radius: 999px;
    border: 1px solid rgba(28, 27, 27, 0.18);

    box-shadow: 0 8px 18px rgba(28, 27, 27, 0.16);

    transition:
        transform .22s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow .22s ease,
        filter .22s ease;
}

.btn-login:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 26px rgba(28, 27, 27, 0.25);
    filter: brightness(1.08);
}

.btn-login:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(28, 27, 27, 0.26);
    filter: brightness(.96);
}

/* Nav Actions (ปุ่มเข้าสู่ระบบ + ปุ่มเมนูมือถือ) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ปุ่มแฮมเบอร์เกอร์ (แสดงเฉพาะมือถือ) */
.mobile-menu-btn {
    display: none;

    width: 40px;
    height: 40px;

    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 999px;

    background: rgba(17, 24, 39, 0.06);
    color: #111827;

    font-size: 19px;
    cursor: pointer;

    transition: .25s;
}

.mobile-menu-btn:hover {
    background: rgba(17, 24, 39, 0.12);
}

.mobile-menu-btn:active {
    transform: scale(.92);
}

/* =========================
   Hero
========================= */
.hero-section {
    width: 100%;
    height: 100vh;
    min-height: 680px;

    overflow: hidden;
    position: relative;

    background-image: url("../images/main.png");
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    padding: 140px 11% 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.64),
        rgba(0, 0, 0, 0.24),
        rgba(255, 255, 255, 0.04)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-bottom: 5px;

    max-width: 800px;
    color: white;
}

.hero-content h1 {
    font-size: 46px;
    line-height: 1.75;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 18px;
    color: rgb(255, 255, 255);
    margin-bottom: 18px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-primary-btn,
.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;
    border-radius: 999px;

    padding: 13px 22px;

    font-size: 18px;
    font-weight: 400;

    transition: .30s;
}

.hero-primary-btn {
    background: #1c1b1b;
    color: white;
}

.hero-primary-btn:hover {
    background: #2a2929;
    transform: translateY(-2px);
}

.hero-secondary-btn {
    background: white;
    color: #111827;
}

.hero-secondary-btn:hover {
    transform: translateY(-2px);
}

.hero-stats-bar {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    background: #ffffff;
    padding: 34px 30px 30px;

    border: none;
    border-radius: 0;
    box-shadow: none;
}
.stats-heading {
    grid-column: 1 / -1;

    text-align: center;

    margin-bottom: 8px;

    color: #111111;

    font-size: 64px;
    font-weight: 700;

    letter-spacing: -2px;
}

/* สถิติแต่ละช่อง */
.hero-stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 10px 20px;
}

/* เส้นแบ่ง */
.hero-stat-item:first-child::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;

    width: 1px;
    height: 60%;

    background: rgba(55, 92, 70, 0.15);
}

.hero-stat-item:last-child::after {
    display: none;
}

/* ตัวเลข */
.hero-stat-item strong {
    display: block;
    color: #1c1b1b;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

/* ข้อความด้านล่าง */
.hero-stat-item > span {
    color: #3f4a44;
    font-size: 13px;
    font-weight: 500;
}

.stats-title {
    position: relative;
    z-index: 2;

    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #111827;

    margin-bottom: 16px;
}

.stats-row {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 16px 18px;
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(229, 231, 235, 0.75);

    transition: .28s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-row:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.stats-row strong {
    display: block;
    font-size: 30px;
    font-weight: 900;
    color: #111827;
    line-height: 1.2;
}

.stats-row span {
    display: block;
    margin-top: 6px;

    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}

/* ตัวเลข */
#farm-count {
    display: inline;
    margin-top: 0;

    font-size: 34px;
    font-weight: 900;
    color: #111827;
}

/* loading */
.hero-stats-card.loading .stats-row {
    opacity: .65;
    animation: statPulse 1s infinite ease-in-out;
}

@keyframes statPulse {
    0%, 100% {
        transform: scale(1);
        opacity: .7;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

/* Responsive */
@media(max-width: 900px) {
    .hero-stats-card {
        position: relative;
        right: auto;
        bottom: auto;

        width: 100%;
        margin-top: 32px;
    }
}

@media(max-width: 560px) {
    .hero-stats-card {
        padding: 20px;
        border-radius: 26px;
    }

    .stats-title {
        font-size: 20px;
    }

    .stats-row strong {
        font-size: 26px;
    }

    #farm-count {
        font-size: 30px;
    }
}
/* =========================
   Breed Cards
========================= */
.breed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.breed-card {
    position: relative;
    height: 235px;

    border-radius: 28px;
    overflow: hidden;

    cursor: pointer;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    transition: .28s;
}

.breed-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
}

.breed-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breed-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.74),
        rgba(0, 0, 0, 0.08)
    );
}

.breed-info {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;

    color: white;
}

.breed-info h3 {
    font-size: 20px;
    font-weight: 800;
}

.breed-info p {
    font-size: 13px;
    opacity: .88;
    margin-top: 4px;
}

/* =========================
   Chicken Cards
========================= */
.chicken-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.chicken-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;

    overflow: hidden;
    transition: .25s;
}

.chicken-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.chicken-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.chicken-body {
    padding: 14px;
}

.chicken-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
}

.chicken-top h3 {
    font-size: 16px;
    font-weight: 800;
}

.price {
    color: #1c1b1b;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.chicken-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin: 10px 0 12px;
}

.chicken-meta span {
    background: #f3f4f6;
    color: #4b5563;

    padding: 5px 9px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
}

.farm-name {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.detail-btn {
    width: 100%;
    border: none;
    background: #111827;
    color: white;

    padding: 10px 0;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: .25s;
}

.detail-btn:hover {
    background: #000000;
}

/* =========================
   Farm Section
========================= */
.farm-section {
    position: relative;
    z-index: 1;

    margin-top: 48px;
    margin-bottom: 48px;

    padding: 80px 0;

    background: var(--page-bg);
    color: var(--text);
    overflow: hidden;
}

.farm-section .section-header h2 {
    color: var(--text);
}

.farm-section .section-header p {
    color: var(--muted);
}

.farm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.farm-card {
    background: var(--surface);
    border-radius: 34px;
    padding: 34px;

    text-align: center;
    transition: .25s;

}

.farm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.farm-logo {
    width: 70px;
    height: 70px;

    border-radius: 999px;
    object-fit: cover;

    margin: 0 auto 12px;
    border: 4px solid #d1fae5;
}

.farm-card h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text);
}

.farm-card p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 16px;
}

.farm-stats {
    display: flex;
    justify-content: center;
    gap: 18px;

    margin-bottom: 18px;
}

.farm-stats div strong {
    display: block;
    color: var(--text);
    font-size: 24px;
}

.farm-stats div span {
    font-size: 12px;
    color: var(--muted);
}

.farm-btn {
    width: 100%;
    border: none;
    background: #ecfdf5;
    color: #000000;

    border-radius: 999px;
    padding: 10px 0;

    font-weight: 800;
    cursor: pointer;
    transition: .25s;
}

.farm-btn:hover {
    background: #1c1b1b;
    color: white;
}

/* =========================
   Footer
========================= */
.main-footer {
    background: var(--footer-bg);
    color: white;

    padding: 46px 0 26px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    font-family: 'Share Tech', sans-serif;
}

.footer-logo img {
    width: 42px;
    height: 42px;
    border-radius: 999px;
}

.footer-about p,
.footer-contact p {
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.8;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-links a {
    display: block;
    color: #d1d5db;

    font-size: 13px;
    text-decoration: none;

    margin-bottom: 9px;
}

.footer-links a:hover {
    color: #23242490;
}

/* =========================
   Search Section
========================= */
.search-section {
    max-width: 1080px;
    margin: 20px auto 0;
    padding: 0 24px;

    position: relative;
    z-index: 20;
}

.search-card {
    position: relative;

    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 30px;

    padding: 14px;

    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr auto;
    gap: 12px;

    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);

    transition: .35s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 30px 75px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* ช่องค้นหา */
.search-input-group {
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);

    color: #6b7280;
    font-size: 18px;

    transition: .25s;
}

.search-input-group input {
    width: 100%;
    height: 50px;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.94);
    color: #111827;

    padding: 0 18px 0 48px;

    font-size: 14px;
    font-weight: 500;

    outline: none;
    transition: .25s;
}

.search-input-group input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.search-input-group:focus-within i {
    color: #9ca3af;
    transform: translateY(-50%) scale(1.08);
}

.search-input-group input:focus {
    border-color: #9ca3af;
    background: #ffffff;
    box-shadow:
        0 0 0 2px #9ca3af(4, 120, 87, 0.12);
}

/* Select */
.search-card select {
    width: 100%;
    height: 50px;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.94);
    color: #374151;

    padding: 0 42px 0 18px;

    font-size: 14px;
    font-weight: 600;

    outline: none;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, #6b7280 50%),
        linear-gradient(135deg, #6b7280 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 21px,
        calc(100% - 14px) 21px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;

    transition: .25s;
}

.search-card select:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.search-card select:focus {
    border-color: #9ca3af;
    background-color: #ffffff;
    box-shadow:
        0 0 0 2px #9BA3A8(4, 120, 87, 0.12);
}

/* ปุ่มค้นหา */
#search-btn {
    height: 50px;

    border: none;
    border-radius: 999px;

    background: linear-gradient(135deg, #1c1b1b, #1c1b1b);
    color: white;

    padding: 0 32px;

    font-size: 16px;
    font-weight: 500;

    cursor: pointer;
    white-space: nowrap;


    transition:
        transform .22s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow .22s ease,
        filter .22s ease;
}

#search-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 32px #1c1b1b(4, 120, 87, 0.30);
    filter: brightness(1.05);
}

#search-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 7px 16px #1c1b1b(4, 120, 87, 0.22);
}

/* =========================
   Premium Highlight Carousel
========================= */
.highlight-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-btn {
    width: 42px;
    height: 42px;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.92);
    color: #111827;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    cursor: pointer;

    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);

    transition:
        transform .22s ease,
        background .22s ease,
        color .22s ease,
        box-shadow .22s ease;
}

.carousel-btn:hover {
    background: #111827;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.carousel-btn:active {
    transform: scale(.94);
}

.premium-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.premium-track {
    display: flex;
    gap: 18px;

    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    padding: 8px 4px 22px;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.premium-track::-webkit-scrollbar {
    display: none;
}

/* ใช้กับ card ที่ JS สร้าง */
.premium-track .breed-card {
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: 240px;

    scroll-snap-align: start;
}

/* เงาจางด้านซ้าย-ขวา */
.premium-carousel::before,
.premium-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 22px;

    width: 44px;
    z-index: 3;
    pointer-events: none;
}

.premium-carousel::before {
    left: 0;
    background: linear-gradient(
        to right,
        rgba(248, 250, 252, .95),
        transparent
    );
}

.premium-carousel::after {
    right: 0;
    background: linear-gradient(
        to left,
        rgba(248, 250, 252, .95),
        transparent
    );
}

/* Responsive */
@media (max-width: 900px) {
    .premium-track .breed-card {
        flex-basis: calc((100% - 18px) / 2);
        min-width: 260px;
    }
}

@media (max-width: 560px) {
    .hero-stats-bar {
        width: calc(100% - 30px);
        grid-template-columns: repeat(2, 1fr);
        padding: 16px 10px;
    }

    .hero-stat-item {
        padding: 12px 8px;
    }

    .hero-stat-item strong {
        font-size: 23px;
    }
}

/* =========================
   Section Layout ทั่วไป
========================= */
.section-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

#breed-section,
#market-section,
#farm-section,
#about-section,
#steps-section,
#contact-section {
    scroll-margin-top: 90px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.section-header h2 {
    margin-top: 40px;
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    font-family: 'Share Tech', 'Noto Sans Thai', 'Share Tech',;
}

.section-header.row-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 28px;
}

.section-header.center {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 40px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #1c1b1b;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;

    transition: gap .25s ease, color .25s ease;
}

.view-all-link:hover {
    gap: 10px;
    color: #1c1b1b;
}

/* =========================
   ทำความรู้จักกับ Super Kaichon
========================= */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
}

.about-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;

    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    padding: 28px 26px;

    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;

    transition: .28s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card:focus-visible {
    border-color: #1c1b1b;
    box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.16);
}

.about-card:hover {
    transform: translateY(-6px);
    border-color: rgba(4, 120, 87, 0.35);
    box-shadow: 0 22px 48px rgba(4, 120, 87, 0.14);
}

.about-card:active {
    transform: translateY(-2px) scale(.99);
}

.about-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;
    background: #ecfdf5;
    color: #1c1b1b;

    font-size: 24px;
    margin-bottom: 18px;

    transition: .28s ease;
}

.about-card:hover .about-icon {
    background: #1c1b1b;
    color: white;
    transform: rotate(-6deg) scale(1.06);
}

.about-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: auto;
    color: #1c1b1b;
    font-size: 13px;
    font-weight: 700;

    transition: gap .25s ease;
}

.about-card:hover .about-more {
    gap: 10px;
}

/* =========================
   Popup Modal
========================= */
body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1240;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px;

    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    position: relative;

    width: 100%;
    max-width: 1240px;

    background: white;
    border-radius: 20px;
    padding: 40px 32px 32px;

    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.35);

    transform: translateY(24px) scale(.96);
    opacity: 0;
    transition: transform .32s cubic-bezier(0.22, 1, 0.36, 1), opacity .3s ease;
}

.modal-overlay.show .modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 999px;

    background: #f3f4f6;
    color: #4b5563;

    cursor: pointer;
    transition: .22s ease;
}

.modal-close:hover {
    background: #1c1b1b;
    color: white;
    transform: rotate(90deg);
}

.modal-icon {
    width: 94px;
    height: 92px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: #ecfdf5;
    color: #1c1b1b;

    font-size: 48px;
    margin-bottom: 18px;
}

.modal-box h3 {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.modal-box p {
    font-size: 14px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 26px;
}

.modal-btn {
    width: 100%;
    border: none;
    border-radius: 999px;

    background: #111827;
    color: white;

    padding: 13px 0;

    font-size: 18px;
    font-weight: 400;
    cursor: pointer;

    transition: .25s;
}

.modal-btn:hover {
    background: #1c1b1b;
}

/* =========================
   ขั้นตอนการใช้งาน
========================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step-card {
    position: relative;

    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    padding: 30px 22px 26px;

    text-align: center;
    transition: .28s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(4, 120, 87, 0.35);
    box-shadow: 0 22px 48px rgba(4, 120, 87, 0.14);
}

.step-number {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;

    border-radius: 999px;
    background: linear-gradient(135deg, #1c1b1b, #1c1b1b);
    color: white;

    font-size: 18px;
    font-weight: 900;

    box-shadow: 0 10px 22px rgba(4, 120, 87, 0.28);
}

.step-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
}

/* เส้นเชื่อมระหว่างขั้นตอน (จอกว้าง) */
@media (min-width: 901px) {
    .step-card:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 42px;
        left: calc(100% - 4px);

        width: calc(22px + 8px);
        height: 2px;

        background: repeating-linear-gradient(
            to right,
            #a7f3d0 0 6px,
            transparent 6px 12px
        );
    }
}

/* =========================
   About Image Cards
========================= */
.about-section {
    padding: 90px 0;
    background: var(--page-bg);
    color: var(--text);
}

.about-section .section-header h2 {
    color: var(--text);
}

.about-section .section-header p {
    color: var(--muted);
}

.about-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 15px;
}

.about-image-card {
    position: relative;

    width: 100%;
    aspect-ratio: 2 / 3;

    border: none;
    border-radius: 30px;

    padding: 0;
    overflow: hidden;

    background: #000000;
    cursor: pointer;

    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);

    transition:
        transform .32s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow .32s ease,
        filter .32s ease;
}

.about-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;

    transition:
        transform .55s cubic-bezier(0.22, 1, 0.36, 1),
        filter .35s ease;
}

.about-image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.26);
}

.about-image-card:hover img {
    transform: scale(1.045);
    filter: brightness(1.06);
}

.about-image-card:active {
    transform: translateY(-4px) scale(.98);
}

/* วงกลม + มุมขวาล่าง */
.about-plus {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 3;

    width: 48px;
    height: 48px;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #000000;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);

    transition:
        transform .28s ease,
        background .28s ease,
        color .28s ease;
}

.about-image-card:hover .about-plus {
    transform: rotate(90deg) scale(1.08);
    background: #ffffff;
}

/* แสงเงาบาง ๆ ตอน hover */
.about-image-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 45%,
        transparent 70%
    );

    transform: translateX(-120%);
    transition: transform .7s ease;
    pointer-events: none;
}

.about-image-card:hover::after {
    transform: translateX(120%);
}

/* Responsive */
@media(max-width: 900px) {
    .about-image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media(max-width: 560px) {
    .about-section {
        padding: 36px 0 40px;
    }

    .about-section .section-header {
        text-align: center;
        margin-bottom: 20px;
    }

    .about-section .section-header h2 {
        font-size: 22px;
        font-weight: 800;
        text-align: center;
        margin: 0;
    }

    .about-section .section-header p {
        font-size: 13px;
        color: var(--muted);
        text-align: center;
        max-width: 320px;
        margin: 6px auto 0;
    }

    .about-image-grid {
        display: flex;
        gap: 16px;

        overflow-x: auto;
        scroll-snap-type: x mandatory;

        padding: 4px 4px 18px;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .about-image-grid::-webkit-scrollbar {
        display: none;
    }

    .about-image-card {
        flex: 0 0 82%;
        border-radius: 28px;
        scroll-snap-align: start;
    }

    .about-plus {
        width: 44px;
        height: 44px;
        right: 18px;
        bottom: 18px;
        font-size: 24px;
    }
}
/* =========================
   About Modal
========================= */
.about-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;

    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    opacity: 0;
    pointer-events: none;

    transition: opacity .28s ease;
}

.about-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.about-modal-box {
    position: relative;

    width: 100%;
    max-width: 620px;
    max-height: 88vh;
    overflow-y: auto;

    background: rgba(255, 255, 255, 0.96);
    border-radius: 34px;
    padding: 34px;

    box-shadow:
        0 35px 90px rgba(15, 23, 42, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    transform: translateY(18px) scale(.96);
    opacity: 0;

    transition:
        transform .32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity .32s ease;
}

.about-modal-overlay.show .about-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.about-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 999px;

    background: #f3f4f6;
    color: #111827;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: .22s ease;
}

.about-modal-close:hover {
    background: #111827;
    color: #ffffff;
    transform: rotate(90deg);
}

.about-modal-icon {
    width: 64px;
    height: 64px;

    border-radius: 22px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);

    color: #1c1b1b;
    font-size: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
}

.about-modal-box h2 {
    font-size: 26px;
    font-weight: 900;
    color: #111827;

    margin-bottom: 8px;
}

.about-modal-image {
    width: 100%;
    height: 220px;
    object-fit: cover;

    border-radius: 24px;
    margin: 18px 0;

    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.13);
}

.about-modal-desc p {
    font-size: 14px;
    line-height: 1.9;
    color: #4b5563;

    margin-bottom: 12px;
}

.about-modal-desc p:last-child {
    margin-bottom: 0;
}

.about-modal-btn {
    width: 100%;
    margin-top: 24px;

    border: none;
    border-radius: 999px;

    background: linear-gradient(135deg, #1c1b1b, #1c1b1b);
    color: #ffffff;

    padding: 13px 20px;

    font-size: 16px;
    font-weight: 400;

    cursor: pointer;


    transition:
        transform .22s ease,
        box-shadow .22s ease,
        filter .22s ease;
}


.about-modal-btn:active {
    transform: scale(.98);
}

body.modal-open {
    overflow: hidden;
}

/* Responsive */
@media(max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        min-height: auto;
    }
}

@media(max-width: 560px) {
    .about-section {
        padding: 64px 0;
    }

    .about-modal-overlay {
        padding: 16px;
    }

    .about-modal-box {
        padding: 28px 22px;
        border-radius: 28px;
    }

    .about-modal-box h2 {
        font-size: 22px;
    }

    .about-modal-image {
        height: 170px;
        border-radius: 20px;
    }

    .about-modal-desc p {
        font-size: 13px;
    }
}

/* =========================
   Responsive Tablet / Mobile
========================= */
@media(max-width: 900px) {
    .main-header {
        top: 14px;
        width: calc(100% - 24px);
        border-radius: 999px;
    }

    .main-nav {
        height: 64px;
        padding: 0 18px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.open {
        background: #111827;
        color: white;
    }

    /* เมนูหลักกลายเป็นดรอปดาวน์บนมือถือ */
    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;

        overflow: visible;

        display: none;
        flex-direction: column;
        align-items: stretch;

        width: 220px;
        gap: 2px;

        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        border-radius: 22px;
        padding: 10px;

        box-shadow:
            0 18px 45px rgba(15, 23, 42, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);

        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .22s ease, transform .22s ease;
    }

    .nav-menu.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu .nav-indicator {
        display: none;
    }

    .nav-menu a {
        text-align: center;
        padding: 12px 16px;
        border-radius: 14px;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(17, 24, 39, 0.06);
    }

    .logo span {
        font-size: 16px;
        white-space: nowrap;
    }

    .logo svg {
        width: 24px;
        height: 24px;
    }

    .btn-login {
        padding: 9px 18px;
        font-size: 13px;
        white-space: nowrap;
    }

    .hero-section {
        min-height: 70vh;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 120px 6% 60px;
        background-position: center;
    }

    .hero-content {
        width: 100%;
        max-width: 520px;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 32px;
        font-weight: 800;
        line-height: 1.35;
        margin-bottom: 14px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        white-space: nowrap;
    }

    .hero-content p {
        max-width: 480px;
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 22px;
        color: rgba(255, 255, 255, 0.95);
    }

    .hero-buttons {
        width: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .hero-primary-btn,
    .hero-secondary-btn {
        width: auto;
        display: inline-flex;
        justify-content: center;
        padding: 12px 28px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 999px;
    }

    .hero-stats-card {
        position: relative;
        right: auto;
        bottom: auto;

        width: 100%;
        max-width: 360px;

        margin-top: 26px;
        padding: 20px;

        border-radius: 28px;
    }

    .stats-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .stats-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;

        padding: 18px;
        border-radius: 24px;
    }

    .stats-row strong {
        font-size: 28px;
        line-height: 1.2;
    }

    #farm-count {
        font-size: 34px;
    }

    .stats-row span {
        font-size: 13px;
        line-height: 1.5;
    }

    .search-section {
        margin: 24px auto 0;
    }

    .search-card {
        grid-template-columns: 1fr;
    }

    .breed-grid,
    .chicken-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .farm-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .farm-card {
        padding: 22px 14px 18px;
        border-radius: 22px;
    }

    .farm-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .farm-card h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .farm-card p {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .farm-stats {
        gap: 8px;
        margin-bottom: 14px;
    }

    .farm-stats div {
        padding: 8px 6px;
    }

    .farm-stats div strong {
        font-size: 17px;
    }

    .farm-stats div span {
        font-size: 11px;
    }

    .farm-btn {
        font-size: 13.5px;
        padding: 9px 0;
    }

    .footer-container {
        grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
        gap: 24px;
        align-items: start;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #breed-section,
    #market-section,
    #about-section,
    #steps-section {
        padding-top: 52px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .modal-box {
        padding: 34px 24px 26px;
    }
}

/* =========================
   iPhone / Small Mobile
========================= */
/* =========================
   Mobile: ซ่อนกล่องสมาชิก + ลดขนาดฟอนต์
========================= */
@media (max-width: 560px) {

    /* Header บนมือถือ: โลโก้แถวเดียว ไม่ wrap ไม่เบียด */
    .main-header {
        top: 10px;
        width: calc(100% - 20px);
    }

    .main-nav {
        height: 56px;
        padding: 0 14px;
    }

    .logo {
        min-width: 0;
        flex-shrink: 1;
        gap: 6px;
    }

    .logo svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .logo span {
        font-size: 15px;
        font-weight: 800;
        letter-spacing: -0.3px;
        white-space: nowrap;
    }

    .nav-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .btn-login {
        padding: 7px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    /* ซ่อนกล่องสมาชิกในระบบบนมือถือ */
    .hero-stats-card {
        display: none;
    }

    /* ปรับ Hero ให้พอดีกับมือถือ — กึ่งกลางสมดุล */
    .hero-section {
        min-height: 100svh;
        height: auto;
        padding: 100px 20px 60px;
        background-position: center 35%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.58) 0%,
            rgba(0, 0, 0, 0.42) 50%,
            rgba(0, 0, 0, 0.68) 100%
        );
    }

    .hero-content {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 30px;
        line-height: 1.35;
        max-width: 320px;
        margin: 0 auto 12px;
        text-align: center;
        word-break: keep-all;
    }

    .hero-content p {
        font-size: 14px;
        line-height: 1.7;
        max-width: 300px;
        margin: 0 auto 22px;
        text-align: center;
        color: rgba(255, 255, 255, 0.92);
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-primary-btn,
    .hero-secondary-btn {
        width: min(100%, 280px);
        justify-content: center;
        font-size: 15px;
        font-weight: 600;
        padding: 12px 24px;
        border-radius: 999px;
        margin: 0 auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 24px 20px;
    }
}

/* =========================
   Market Chicken Carousel
========================= */
.market-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-slide-btn {
    width: 42px;
    height: 42px;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    background: #ffffff;
    color: #111827;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    cursor: pointer;

    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);

    transition:
        transform .22s ease,
        background .22s ease,
        color .22s ease,
        box-shadow .22s ease;
}

.market-slide-btn:hover {
    background: #111827;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.market-slide-btn:active {
    transform: scale(.94);
}

.market-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.chicken-slider-track {
    display: flex;
    gap: 18px;

    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    padding: 8px 4px 24px;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chicken-slider-track::-webkit-scrollbar {
    display: none;
}

/* ทำให้ card เลื่อนแนวนอน */
.chicken-slider-track .chicken-card {
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: 260px;

    scroll-snap-align: start;
}

/* เพิ่มความพรีเมียมให้ Card เดิม */
.chicken-card {
    border-radius: 28px;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);

    box-shadow: 0 12px 30px #1c1b1b(15, 23, 42, 0.08);

    transition:
        transform .28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow .28s ease,
        border-color .28s ease;
}

.chicken-card:hover {
    transform: translateY(-8px);
    border-color: #1c1b1b(4, 120, 87, 0.26);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.chicken-img {
    width: 100%;
    height: 210px;
    object-fit: cover;

    transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1);
}

.chicken-card:hover .chicken-img {
    transform: scale(1.06);
}

.chicken-body {
    padding: 16px;
}

.detail-btn {
    transition:
        transform .22s ease,
        background .22s ease,
        box-shadow .22s ease;
}

.detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px #1c1b1b(4, 120, 87, 0.22);
}

/* เงาจางซ้ายขวา */


/* Responsive */
@media(max-width: 900px) {
    .market-header-actions {
        align-items: center;
    }

    .chicken-slider-track .chicken-card {
        flex: 0 0 calc((100% - 32px) / 3);
        min-width: 0;
    }
}

@media(max-width: 560px) {
    .row-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 6px;
        margin-bottom: 14px;
    }

    .section-header.row-header h2 {
        font-size: 22px;
        font-weight: 800;
        text-align: center;
        margin: 0;
    }

    .market-header-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .market-slide-btn {
        display: none !important;
    }

    #market-section .view-all-link {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        font-size: 13px;
        font-weight: 600;
        color: var(--muted);
        padding: 2px 0;
        text-decoration: none;
    }

    #market-section .view-all-link:hover {
        color: var(--text);
    }

    .chicken-slider-track {
        gap: 10px;
        padding: 4px 2px 14px;
    }

    .chicken-slider-track .chicken-card {
        flex: 0 0 calc((100% - 10px) / 2);
        min-width: calc((100% - 10px) / 2);
        max-width: calc((100% - 10px) / 2);
        scroll-snap-align: start;
    }

    .market-carousel::before,
    .market-carousel::after {
        display: none;
    }
}

/* =========================
   Market Carousel Pagination Dots
========================= */
.market-pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    margin-bottom: 24px;
}

.market-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #999999;
    border: none;
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
    padding: 0;
}

.market-dot.active {
    width: 18px;
    height: 7px;
    background: #111111;
}

html.theme-dark .market-dot {
    background: #606060;
}

html.theme-dark .market-dot.active {
    background: #ffffff;
}

/* =========================
   Market Product Style — 4 Cards
========================= */

#market-section {
    max-width: 1500px;
    margin-top: 0;
}

#chicken-card-container {
    display: flex;
    gap: 20px;

    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    padding: 4px 4px 34px;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

#chicken-card-container::-webkit-scrollbar {
    display: none;
}

/* Desktop = 4 ใบ */
#chicken-card-container .chicken-card {
    flex: 0 0 calc((100% - 60px) / 4);

    /* สำคัญ: เอา 390px ออก */
    min-width: 0;

    scroll-snap-align: start;

    background: #ffffff;
    border: none;
    box-shadow: none;
    overflow: visible;
    border-radius: 0;

    transition: transform .28s ease;
}

#chicken-card-container .chicken-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
}

/* รูปใหญ่ด้านบน (ปรับลดขนาดลงประมาณ 15%) */
#chicken-card-container .chicken-img {
    width: 100%;
    height: 425px;

    object-fit: cover;
    display: block;

    border-radius: 28px;
    background: #ffffff;

    box-shadow: none;

    transition:
        transform .45s cubic-bezier(0.22, 1, 0.36, 1),
        filter .35s ease;
}

#chicken-card-container .chicken-card:hover .chicken-img {
    transform: scale(1.015);
    filter: brightness(1.03);
}

/* เนื้อหาด้านล่างแบบ Apple */
#chicken-card-container .chicken-body {
    padding: 18px 12px 0;
    text-align: center;
}

#chicken-card-container .chicken-top {
    display: block;
}

#chicken-card-container .chicken-top h3 {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
}

#chicken-card-container .price {
    display: block;

    font-size: 18px;
    font-weight: 600;
    color: #111827;

    margin-top: 12px;
}

/* meta ให้เป็นข้อความกลาง */
#chicken-card-container .chicken-meta {
    justify-content: center;
    gap: 8px;
    margin: 10px 0 8px;
}

#chicken-card-container .chicken-meta span {
    background: transparent;
    padding: 0;

    font-size: 14.5px;
    font-weight: 500;
    color: #111827;
}

#chicken-card-container .chicken-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 8px;
    color: #9ca3af;
}

#chicken-card-container .farm-name {
    font-size: 14.5px;
    color: #111827;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* ปุ่มแบบ Apple */
#chicken-card-container .detail-btn {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 999px;

    background: #1c1b1b;
    color: white;

    padding: 9px 24px;

    font-size: 15px;
    font-weight: 500;

    cursor: pointer;

    transition:
        transform .22s ease,
        background .22s ease,
        box-shadow .22s ease;
}

#chicken-card-container .detail-btn:hover {
    background: #1c1b1b;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px #1c1b1b(0, 113, 227, 0.25);
}

#chicken-card-container .detail-btn:active {
    transform: scale(.97);
}

/* Responsive Tablet: แสดงไก่ 3 ตัวในแถวนี้ */
@media(max-width: 1100px) {
    #chicken-card-container .chicken-card {
        flex: 0 0 calc((100% - 32px) / 3);
        min-width: 0;
    }

    #chicken-card-container .chicken-img {
        height: 290px;
        border-radius: 22px;
    }

    #chicken-card-container .chicken-body {
        padding: 14px 8px 0;
    }

    #chicken-card-container .chicken-top h3 {
        font-size: 21px;
        margin-bottom: 6px;
    }

    #chicken-card-container .price {
        font-size: 16px;
        margin-top: 6px;
    }

    #chicken-card-container .chicken-meta {
        gap: 6px;
        margin: 8px 0 6px;
    }

    #chicken-card-container .chicken-meta span {
        font-size: 12.5px;
    }

    #chicken-card-container .farm-name {
        font-size: 12.5px;
        margin-bottom: 12px;
    }

    #chicken-card-container .detail-btn {
        padding: 7px 18px;
        font-size: 13.5px;
    }
}

/* Responsive Mobile */
@media(max-width: 560px) {
    #market-section {
        margin-top: 24px;
    }

    #market-section .section-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-bottom: 14px;
        width: 100%;
    }

    #market-section .section-header > div {
        width: 100%;
        text-align: center;
    }

    #market-section .section-header h2 {
        font-size: 22px;
        font-weight: 800;
        text-align: center;
        margin: 0 auto;
        color: var(--text);
    }

    #chicken-card-container {
        gap: 10px;
        padding-bottom: 8px;
    }

    #chicken-card-container .chicken-card {
        flex: 0 0 calc((100% - 10px) / 2);
        min-width: calc((100% - 10px) / 2);
        max-width: calc((100% - 10px) / 2);
        scroll-snap-align: start;
        border-radius: 18px;
        background: var(--surface);
        border: 1px solid var(--line);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #chicken-card-container .chicken-img {
        width: 100%;
        aspect-ratio: 4 / 3;
        height: auto;
        max-height: 130px;
        object-fit: cover;
        border-radius: 16px 16px 10px 10px;
        background-color: var(--surface-soft);
        display: block;
    }

    #chicken-card-container .chicken-body {
        padding: 8px 6px 10px;
        text-align: center;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    #chicken-card-container .chicken-top {
        display: block;
    }

    #chicken-card-container .chicken-top h3 {
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 2px;
        line-height: 1.35;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--text);
    }

    #chicken-card-container .price {
        display: block;
        font-size: 13px;
        font-weight: 800;
        color: var(--text);
        margin-top: 2px;
        margin-bottom: 2px;
    }

    #chicken-card-container .chicken-meta {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
        margin: 2px 0 4px;
    }

    /* ซ่อนข้อมูลรอง (อายุ) บน mobile ให้เหลือสายพันธุ์และเพศอย่างกระชับ */
    #chicken-card-container .chicken-meta span:nth-child(2) {
        display: none;
    }

    #chicken-card-container .chicken-meta span {
        font-size: 10px;
        font-weight: 500;
        line-height: 1;
        color: var(--muted);
        background: transparent;
        padding: 0;
    }

    #chicken-card-container .chicken-meta span:first-child::after {
        content: "•";
        margin-left: 4px;
        color: var(--muted);
    }

    #chicken-card-container .chicken-meta span:last-child::after {
        display: none;
    }

    #chicken-card-container .farm-name {
        font-size: 11px;
        color: var(--muted);
        margin-bottom: 6px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
    }

    #chicken-card-container .farm-name i {
        font-size: 10px;
    }

    #chicken-card-container .chicken-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin-top: auto;
        padding-top: 4px;
    }

    #chicken-card-container .detail-btn {
        flex: 1;
        min-width: 0;
        min-height: 30px;
        padding: 6px 4px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        border-radius: 999px;
        background: #1c1b1b;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #chicken-card-container .buy-link-btn {
        flex: 1;
        min-width: 0;
        font-size: 11px;
        font-weight: 600;
        min-height: 30px;
        padding: 6px 4px;
        white-space: nowrap;
        color: var(--text);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        background: var(--surface-soft);
        border-radius: 999px;
    }

    #chicken-card-container .buy-link-btn i {
        font-size: 9px;
    }
}

.chicken-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 18px;
}

.buy-link-btn {
    border: none;
    background: transparent;
    color: #1c1b1b;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.buy-link-btn:hover {
    text-decoration: underline;
}

/* =========================
   Farm Mobile Carousel
   Desktop = Grid เดิม
   Mobile = เลื่อนทีละหน้า
========================= */

/* ป้องกันการ์ดล้นขอบ */
.farm-section {
    overflow: hidden;
}

/* ปิด pseudo decoration เดิม เพื่อคงพื้นผิวตาม theme ของทั้งหน้า */
.farm-section::before,
.farm-section::after {
    display: none;
    content: none;
}

/* เฉพาะมือถือ */
@media (max-width: 560px) {
    .farm-section {
        margin-top: 32px;
        margin-bottom: 32px;
        padding: 32px 0 16px;
        min-height: auto;
    }

    .farm-section .section-container {
        padding: 0 20px;
    }

    .farm-section .section-header {
        text-align: center;
        margin-bottom: 16px;
    }

    .farm-section .section-header h2 {
        font-size: 22px;
        font-weight: 800;
        text-align: center;
        margin: 0;
    }

    .farm-section .section-header p {
        display: none !important;
    }

    /* เปลี่ยนจาก Grid เป็นเลื่อนแนวนอน */
    #farm-card-container {
        display: flex;
        grid-template-columns: none;

        gap: 16px;

        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;

        padding: 4px 0 22px;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #farm-card-container::-webkit-scrollbar {
        display: none;
    }

    /* 1 การ์ด = 1 หน้า */
    #farm-card-container .farm-card {
        flex: 0 0 88%;
        min-width: 88%;

        scroll-snap-align: start;
        scroll-snap-stop: always;

        border-radius: 30px;
        padding: 26px 22px;

        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    }

    #farm-card-container .farm-logo {
        width: 82px;
        height: 82px;
    }

    #farm-card-container .farm-card h3 {
        font-size: 20px;
    }

    #farm-card-container .farm-card p {
        font-size: 14px;
    }

    #farm-card-container .farm-btn,
    .farm-btn {
        width: auto;
        min-height: 32px;
        padding: 7px 16px;
        font-size: 11px;
        line-height: 1;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        border-radius: 999px;
    }
}

/* =========================
   Mobile Search Icon Mode
========================= */
@media (max-width: 560px) {

    .search-section {
        margin: 22px auto 0;
        padding: 0 20px;
        display: flex;
        justify-content: flex-end;
    }

    .search-card {
        width: 52px;
        height: 52px;

        padding: 0;
        border-radius: 999px;

        display: flex;
        align-items: center;
        justify-content: center;

        overflow: hidden;

        transition:
            width .35s cubic-bezier(0.22, 1, 0.36, 1),
            height .35s cubic-bezier(0.22, 1, 0.36, 1),
            padding .35s ease,
            border-radius .35s ease;
    }

    /* ซ่อน input กับ select ตอนยังไม่กด */
    .search-card .search-input-group,
    .search-card select {
        display: none;
    }

    /* เหลือแค่ปุ่มแว่นขยาย */
    #search-btn {
        width: 52px;
        height: 52px;

        padding: 0;
        border-radius: 999px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 0;
    }

    #search-btn i {
        font-size: 20px;
        margin: 0;
    }

    /* ตอนกดแล้ว Search ขยายออกมา */
    .search-section.search-open {
        justify-content: center;
    }

    .search-section.search-open .search-card {
        width: 100%;
        height: auto;

        padding: 12px;
        border-radius: 24px;

        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .search-section.search-open .search-input-group,
    .search-section.search-open .search-card select {
        display: block;
    }

    .search-section.search-open #search-btn {
        width: 100%;
        height: 46px;

        font-size: 13px;
        gap: 6px;
    }

    .search-section.search-open #search-btn i {
        font-size: 16px;
    }
}
/* =========================
   Scroll Reveal Animation System
   (ใช้กับ Intersection Observer ใน home.js)
========================= */

/* สถานะเริ่มต้น: ซ่อนตัวและเลื่อนลงเล็กน้อย */
.reveal {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity .7s cubic-bezier(0.22, 1, 0.36, 1),
        transform .7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);

    will-change: opacity, transform;
}

/* เมื่อเลื่อนมาถึง viewport แล้ว (JS เพิ่ม class .show) */
.reveal.show {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* variant: เลื่อนเข้าจากขวา */
.reveal.slide-left {
    transform: translateX(48px);
}

.reveal.slide-left.show {
    transform: translateX(0);
}

/* variant: เลื่อนเข้าจากซ้าย */
.reveal.slide-right {
    transform: translateX(-48px);
}

.reveal.slide-right.show {
    transform: translateX(0);
}

/* variant: ขยายเข้าเล็กน้อย */
.reveal.scale-in {
    transform: scale(.92);
}

.reveal.scale-in.show {
    transform: scale(1);
}

/* variant: fade-up (ค่าเริ่มต้น เขียนไว้ให้ชัดเจนตามชื่อ) */
.reveal.fade-up {
    transform: translateY(40px);
}

.reveal.fade-up.show {
    transform: translateY(0);
}

/* Stagger ให้การ์ดที่ไม่ได้ Render จาก JS ทยอยโผล่ทีละใบ */
.about-image-grid .about-image-card:nth-child(1) { --reveal-delay: 0ms; }
.about-image-grid .about-image-card:nth-child(2) { --reveal-delay: 110ms; }
.about-image-grid .about-image-card:nth-child(3) { --reveal-delay: 220ms; }

.steps-grid .step-card:nth-child(1) { --reveal-delay: 0ms; }
.steps-grid .step-card:nth-child(2) { --reveal-delay: 90ms; }
.steps-grid .step-card:nth-child(3) { --reveal-delay: 180ms; }
.steps-grid .step-card:nth-child(4) { --reveal-delay: 270ms; }

/* หน้าจอเล็กมาก: ลดระยะการเคลื่อนไหวและเวลาลง ให้เบาและลื่นขึ้น */
@media (max-width: 560px) {
    .reveal {
        transform: translateY(22px);
        transition-duration: .5s;
    }

    .reveal.slide-left {
        transform: translateX(26px);
    }

    .reveal.slide-right {
        transform: translateX(-26px);
    }

    .reveal.scale-in {
        transform: scale(.96);
    }
}

/* ผู้ใช้ที่ตั้งค่าลดการเคลื่อนไหวไว้ในระบบ ให้แสดงผลทันทีแบบไม่มี Animation */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================================
   FINAL: Hero เต็มจอเหมือนเดิม + สถิติ 2 ช่องอยู่ใต้ภาพตรงกลาง
   หมายเหตุ: HTML ของ .hero-stats-bar ต้องอยู่นอก .hero-section
========================================================= */

/* ไม่เปลี่ยนขนาดหรือรูปภาพ Hero */
.hero-section {
    width: 100%;
    height: 100vh;
    min-height: 680px;
}

/* แถบพื้นหลังเต็มความกว้างใต้ภาพ */
.hero-stats-bar {
    width: min(800px, calc(100% - 40px));
    min-height: 110px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    align-items: start;

    background: #ffffff;   /* พื้นหลังขาว */

    padding: 34px 20px 28px;

    border: none;          /* ไม่เอากรอบ */
    border-radius: 0;      /* ไม่เอามุมโค้ง */
    box-shadow: none;      /* ไม่เอาเงา */
}

.stats-heading {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0 auto 16px;
    max-width: 720px;
    color: #111111;
    font-size: clamp(26px, 4.2vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.35;
    text-wrap: balance;
}

.hero-stat-item {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    text-align: center;
    padding: 8px 16px;
}

/* ไม่เอาเส้นแบ่งตรงกลาง */
.hero-stat-item:first-child::after {
    display: none;
}

/* ตัวเลข 15 / 10 */
.hero-stat-item strong {
    display: block;

    color: #111111;

    font-size: clamp(52px, 8vw, 84px);
    font-weight: 800;
    line-height: 1;

    letter-spacing: -2px;

    margin-bottom: 12px;
}

/* สมาชิกทั้งหมด / ฟาร์มในระบบ */
.hero-stat-item > span {
    color: #111111;

    font-size: clamp(14px, 2vw, 17px);
    font-weight: 600;

    line-height: 1.35;
    white-space: nowrap;
}

/* ป้องกัน CSS เก่าของ ID เข้ามาทับ */
.hero-stats-bar #member-count,
.hero-stats-bar #farm-count,
.hero-stats-bar #follower-count,
.hero-stats-bar #shop-count,
.hero-stats-bar #satisfaction-count {
    display: inline;
    margin: 0;
    color: inherit;
    font: inherit;
}

/* ช่องค้นหาอยู่ต่อจากสถิติ */
.search-section {
    margin-top: 20px;
}

/* Tablet */
@media (max-width: 900px) {
    .hero-section {
        min-height: 70vh;
        height: auto;
    }

    .hero-stats-bar {
        width: min(700px, calc(100% - 30px));
        min-height: 110px;
        padding: 24px 16px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }

    .hero-stat-item {
        width: auto;
        padding: 8px 12px;
    }

    .hero-stat-item strong {
        font-size: clamp(48px, 9vw, 68px);
        margin-bottom: 8px;
    }

    .hero-stat-item > span {
        white-space: nowrap;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .stats-heading {
        display: none !important;
    }

    .hero-stats-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        align-items: center;
        width: min(100%, 360px);
        margin: 16px auto 0;
        padding: 8px 12px;
        min-height: auto;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .hero-stat-item {
        width: 100%;
        min-height: auto;
        padding: 6px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-stat-item strong {
        margin-bottom: 4px;
        font-size: 32px;
        font-weight: 800;
        line-height: 1.1;
        color: var(--text);
    }

    .hero-stat-item > span {
        font-size: 12px;
        font-weight: 600;
        color: var(--muted);
    }

    .search-section {
        margin-top: 10px;
    }
}

/* =========================
   Developer Photos Fix
========================= */
.about-developer-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.about-developer-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.about-developer-photo {
    display: block;
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    object-fit: cover;
    object-position: center;
    border-radius: 999px;
    border: 3px solid #ffffff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
    background: #f3f4f6;
}

.about-developer-info {
    min-width: 0;
}

.about-developer-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.about-developer-info p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 640px) {
    .about-developer-list {
        grid-template-columns: 1fr;
    }
}
/* =========================
   Requested Home-only Motion & Focus
   แก้ตามคำขอ: animation เฉพาะหน้าแรก + focus input สีเทาอ่อน 2px
========================= */
/* =========================================================
   HOME PAGE — Focus + Smooth Animation
   ใช้เฉพาะหน้าแรกที่มี <body class="home-page">
========================================================= */

/* =========================================================
   1. INPUT / TEXTAREA / SELECT
   ไม่มีสีเขียว และไม่มีกรอบสี่เหลี่ยมซ้อน
========================================================= */

/* ปิดกรอบของ Browser */
.home-page input,
.home-page textarea,
.home-page select,
.home-page button {
    -webkit-tap-highlight-color: transparent;
}

/* ช่องกรอกข้อมูลทั่วไป */
.home-page input:focus,
.home-page input:focus-visible,
.home-page textarea:focus,
.home-page textarea:focus-visible {
    outline: none !important;

    border-color: #d1d5db !important;
    background-color: #ffffff !important;

    /* เงาตามขอบของช่องกรอกเท่านั้น */
    box-shadow: 0 0 0 2px rgba(209, 213, 219, 0.45) !important;
}

/* Select */
.home-page select:focus,
.home-page select:focus-visible,
.home-page .search-card select:focus,
.home-page .search-card select:focus-visible {
    outline: none !important;

    border-color: #d1d5db !important;
    background-color: #ffffff !important;

    box-shadow: 0 0 0 2px rgba(209, 213, 219, 0.45) !important;
}

/* =========================================================
   ช่องค้นหา
========================================================= */

/* กล่องแม่ห้ามสร้างกรอบสี่เหลี่ยม */
.home-page .search-input-group,
.home-page .search-input-group:focus,
.home-page .search-input-group:focus-within {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* ช่องค้นหาทรงแคปซูล */
.home-page .search-input-group input:focus,
.home-page .search-input-group input:focus-visible {
    outline: none !important;

    border-color: #d1d5db !important;
    border-radius: 999px;

    background-color: #ffffff !important;

    /* เงาตามทรงแคปซูลเท่านั้น */
    box-shadow: 0 0 0 2px rgba(209, 213, 219, 0.45) !important;
}

/* ไอคอนค้นหาตอนกด */
.home-page .search-input-group:focus-within i {
    color: #9ca3af;

    /* ไม่ขยายและไม่กระโดด */
    transform: translateY(-50%);

    transition: color 220ms ease;
}

/* =========================================================
   ป้องกัน Chrome Autofill เปลี่ยนสีช่องกรอก
========================================================= */

.home-page input:-webkit-autofill,
.home-page input:-webkit-autofill:hover,
.home-page input:-webkit-autofill:focus,
.home-page textarea:-webkit-autofill,
.home-page textarea:-webkit-autofill:hover,
.home-page textarea:-webkit-autofill:focus,
.home-page select:-webkit-autofill,
.home-page select:-webkit-autofill:hover,
.home-page select:-webkit-autofill:focus {
    -webkit-text-fill-color: #111827 !important;

    -webkit-box-shadow:
        0 0 0 1000px #ffffff inset,
        0 0 0 2px rgba(209, 213, 219, 0.45) !important;

    box-shadow:
        0 0 0 1000px #ffffff inset,
        0 0 0 2px rgba(209, 213, 219, 0.45) !important;

    caret-color: #111827;
    transition: background-color 9999s ease-in-out 0s;
}

/* =========================================================
   2. SCROLL REVEAL
   เคลื่อนไหวเฉพาะหน้าแรก
========================================================= */

.home-page .reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);

    transition:
        opacity 850ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 850ms cubic-bezier(0.22, 1, 0.36, 1);

    transition-delay: var(--reveal-delay, 0ms);

    will-change: opacity, transform;
}

/* เมื่อ JavaScript เพิ่ม class show */
.home-page .reveal.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

/* เลื่อนเข้าจากขวา */
.home-page .reveal.slide-left {
    transform: translate3d(32px, 0, 0);
}

.home-page .reveal.slide-left.show {
    transform: translate3d(0, 0, 0);
}

/* เลื่อนเข้าจากซ้าย */
.home-page .reveal.slide-right {
    transform: translate3d(-32px, 0, 0);
}

.home-page .reveal.slide-right.show {
    transform: translate3d(0, 0, 0);
}

/* ขยายเข้ามาแบบนุ่ม */
.home-page .reveal.scale-in {
    transform: translate3d(0, 14px, 0) scale(0.975);
}

.home-page .reveal.scale-in.show {
    transform: translate3d(0, 0, 0) scale(1);
}

/* =========================================================
   3. ทำให้รูปภาพเคลื่อนไหวสมูท
========================================================= */

.home-page .hero-section,
.home-page .about-image-card img,
.home-page .chicken-img,
.home-page .farm-logo,
.home-page .about-modal-image {
    transform-origin: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* รูปเกี่ยวกับระบบ */
.home-page .about-image-card img {
    transition:
        transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 500ms ease;
}

.home-page .about-image-card:hover img {
    transform: scale(1.025);
    filter: brightness(1.025);
}

/* รูปไก่ */
.home-page .chicken-img {
    transition:
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 450ms ease;
}

.home-page .chicken-card:hover .chicken-img {
    transform: scale(1.025);
    filter: brightness(1.02);
}

/* โลโก้ฟาร์ม */
.home-page .farm-logo {
    transition:
        transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-page .farm-card:hover .farm-logo {
    transform: scale(1.025);
}

/* รูปใน Modal */
.home-page .about-modal-image {
    transition:
        transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-page .about-modal-image:hover {
    transform: scale(1.015);
}

/* =========================================================
   4. ลดการเคลื่อนไหวของ Card
   ไม่ให้เด้งหรือขยายแรงเกินไป
========================================================= */

.home-page .about-image-card,
.home-page .chicken-card,
.home-page .farm-card,
.home-page .step-card,
.home-page .breed-card {
    transition:
        transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 400ms ease,
        border-color 400ms ease;
}

.home-page .about-image-card:hover,
.home-page .chicken-card:hover,
.home-page .farm-card:hover,
.home-page .step-card:hover,
.home-page .breed-card:hover {
    transform: translate3d(0, -5px, 0);
}

/* ตอนกดไม่ให้ Card ยุบแรง */
.home-page .about-image-card:active,
.home-page .chicken-card:active,
.home-page .farm-card:active,
.home-page .step-card:active,
.home-page .breed-card:active {
    transform: translate3d(0, -2px, 0) scale(0.995);
}

/* =========================================================
   5. Stagger Delay
   ให้แต่ละรายการค่อย ๆ แสดงตามลำดับ
========================================================= */

.home-page .about-image-grid .about-image-card:nth-child(1) {
    --reveal-delay: 0ms;
}

.home-page .about-image-grid .about-image-card:nth-child(2) {
    --reveal-delay: 100ms;
}

.home-page .about-image-grid .about-image-card:nth-child(3) {
    --reveal-delay: 200ms;
}

.home-page .steps-grid .step-card:nth-child(1) {
    --reveal-delay: 0ms;
}

.home-page .steps-grid .step-card:nth-child(2) {
    --reveal-delay: 80ms;
}

.home-page .steps-grid .step-card:nth-child(3) {
    --reveal-delay: 160ms;
}

.home-page .steps-grid .step-card:nth-child(4) {
    --reveal-delay: 240ms;
}

/* =========================================================
   6. Mobile
   ลดระยะการเคลื่อนที่ให้เหมาะกับมือถือ
========================================================= */

@media (max-width: 560px) {
    .home-page .reveal {
        transform: translate3d(0, 18px, 0);

        transition-duration: 650ms;
    }

    .home-page .reveal.slide-left {
        transform: translate3d(20px, 0, 0);
    }

    .home-page .reveal.slide-right {
        transform: translate3d(-20px, 0, 0);
    }

    .home-page .reveal.scale-in {
        transform: translate3d(0, 10px, 0) scale(0.985);
    }

    .home-page .reveal.show,
    .home-page .reveal.slide-left.show,
    .home-page .reveal.slide-right.show,
    .home-page .reveal.scale-in.show {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* =========================================================
   7. หน้าอื่นไม่ให้มีการเคลื่อนไหว
========================================================= */

body:not(.home-page) .reveal,
body:not(.home-page) .reveal.show,
body:not(.home-page) .reveal.slide-left,
body:not(.home-page) .reveal.slide-right,
body:not(.home-page) .reveal.scale-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
}

/* =========================================================
   8. ผู้ใช้ที่ตั้งค่าลด Animation
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.001ms !important;

        scroll-behavior: auto !important;
    }

    .home-page .reveal,
    .home-page .reveal.show,
    .home-page .reveal.slide-left,
    .home-page .reveal.slide-right,
    .home-page .reveal.scale-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================================
   HOME — Moving Logo Marquee
   เพิ่มเฉพาะ UI โลโก้วิ่งแทนพื้นที่ค้นหา/ตัวกรองเดิม
   ไม่มีวงกลม ไม่มีการ์ด ไม่มีพื้นหลังครอบโลโก้
   ========================================================= */
.logo-marquee-section {
    max-width: 1080px;
    margin: 20px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 20;
}

.home-logo-marquee {
    --home-logo-gap: 72px;
    width: 100%;
    overflow: hidden;
    padding: 16px 0 18px;
    background: transparent;
}

.home-logo-track {
    display: flex;
    align-items: center;
    gap: var(--home-logo-gap);
    width: max-content;
    will-change: transform;
    animation: homeLogoMarquee 18s linear infinite;
}

.home-logo-item {
    flex: 0 0 auto;
    width: 170px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-logo-item--wide {
    width: 238px;
}

.home-logo-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes homeLogoMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - (var(--home-logo-gap) / 2)));
    }
}

@media (max-width: 700px) {
    .logo-marquee-section {
        padding: 0 16px;
        margin: 10px auto 0;
    }

    .home-logo-marquee {
        --home-logo-gap: 36px;
        padding: 8px 0 10px;
    }

    .home-logo-track {
        animation-duration: 15s;
    }

    .home-logo-item {
        width: 100px;
        height: 60px;
    }

    .home-logo-item--wide {
        width: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-logo-track {
        animation: none;
    }

    .home-logo-marquee {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .home-logo-marquee::-webkit-scrollbar {
        display: none;
    }

}

/* =========================================================
   HOME — Scroll-triggered page theme
   สีเท่านั้น: โครงสร้างและระยะของหน้าเดิมยังคงเดิม
========================================================= */
.home-page,
.home-page .main-header,
.home-page .nav-menu,
.home-page .nav-indicator,
.home-page .mobile-menu-btn,
.home-page .hero-stats-bar,
.home-page .chicken-card,
.home-page .chicken-meta span,
.home-page .farm-section,
.home-page .farm-card,
.home-page .farm-btn,
.home-page .about-section,
.home-page .about-card,
.home-page .market-slide-btn,
.home-page .main-footer {
    transition:
        background-color .55s cubic-bezier(.2, .7, .2, 1),
        color .55s cubic-bezier(.2, .7, .2, 1),
        border-color .55s cubic-bezier(.2, .7, .2, 1);
}

.home-page {
    background: var(--page-bg);
    color: var(--text);
}

.home-page .main-header {
    background: var(--nav-bg);
    border-color: var(--line);
}

.home-page .logo span,
.home-page .logo svg,
.home-page .nav-menu a,
.home-page .nav-menu a:hover,
.home-page .nav-menu a.active,
.home-page .mobile-menu-btn {
    color: var(--text);
}

.home-page .nav-menu,
.home-page .mobile-menu-btn {
    background: var(--surface-soft);
}

.home-page .nav-indicator {
    background: var(--surface);
}

.home-page .hero-stats-bar,
.home-page .chicken-card,
.home-page .farm-card,
.home-page .about-card,
.home-page .market-slide-btn {
    background: var(--surface);
    border-color: var(--line);
}

.home-page .hero-stats-bar,
.home-page .farm-section,
.home-page .about-section {
    color: var(--text);
}

.home-page .stats-heading,
.home-page .hero-stat-item strong,
.home-page .chicken-top h3,
.home-page .price,
.home-page .farm-card h3,
.home-page .farm-stats div strong,
.home-page .about-card h3,
.home-page #market-section .section-header h2,
.home-page .farm-section .section-header h2,
.home-page .about-section .section-header h2,
.home-page .view-all-link,
.home-page .market-slide-btn {
    color: var(--text);
}

.home-page .hero-stat-item > span,
.home-page .chicken-meta span,
.home-page .farm-name,
.home-page .farm-card p,
.home-page .farm-stats div span,
.home-page .about-card p,
.home-page .farm-section .section-header p,
.home-page .about-section .section-header p {
    color: var(--muted);
}

.home-page .hero-stat-item:first-child::after {
    background: var(--line);
}

.home-page .chicken-meta span,
.home-page .farm-btn {
    background: var(--surface-soft);
}

.home-page .farm-btn {
    color: var(--text);
}


    .home-page .farm-btn:hover {
    background: #ffffff;
    color: #111111;
}

.home-page .main-footer {
    background: var(--footer-bg);
}

/* =========================================================
   MOBILE UI/UX ENHANCEMENTS (RESPONSIVE POLISH)
   สำหรับมือถือและแท็บเล็ต: Hero, Farm Card, About, Footer
========================================================= */
@media (max-width: 768px) {
    /* 1. Header & Nav Bar บนมือถือ */
    .home-page .main-header {
        top: 12px;
        width: calc(100% - 24px);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }

    .home-page .main-nav {
        height: 56px;
        padding: 0 16px;
    }

    .home-page .logo span {
        font-size: 15px;
        letter-spacing: 0.5px;
    }

    .home-page .btn-login {
        font-size: 14px;
        padding: 7px 18px;
        font-weight: 600;
    }

    .home-page .mobile-menu-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    /* 2. Hero Section บนมือถือ (ปรับสัดส่วนรูปภาพและขนาดข้อความให้ได้ฟีลลิ่งสมดุลแบบหน้าจอคอม) */
    .home-page .hero-section {
        min-height: 72vh;
        height: auto;
        padding: 95px 16px 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-position: center 22%;
        background-size: cover;
    }

    .home-page .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.42) 0%,
            rgba(0, 0, 0, 0.22) 40%,
            rgba(0, 0, 0, 0.65) 100%
        );
    }

    .home-page .hero-content {
        margin: 0 auto;
        max-width: 440px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .home-page .hero-content h1 {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
        font-size: clamp(17px, 5.2vw, 28px);
        font-weight: 800;
        line-height: 1.3;
        margin-bottom: 12px;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
        letter-spacing: -0.3px;
    }

    .home-page .hero-content h1 .hero-highlight {
        display: inline-block;
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
        background: none;
        filter: none;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
        font-weight: 800;
    }

    .home-page .hero-content p {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font-size: clamp(13px, 3.4vw, 15px);
        font-weight: 400;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.92);
        margin-bottom: 20px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
        padding: 0 8px;
    }

    .home-page .hero-content p .hero-subtext-break {
        display: block;
        color: rgba(255, 255, 255, 0.85);
    }

    .home-page .hero-buttons {
        justify-content: center;
    }

    .home-page .hero-secondary-btn {
        background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
        color: #0f172a;
        font-size: 14.5px;
        font-weight: 600;
        padding: 11px 28px;
        border-radius: 999px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 1);
        transition: all 0.2s ease;
    }

    .home-page .hero-secondary-btn:active {
        transform: scale(0.96);
    }

    /* 3. Stats Bar บนมือถือ (แบบเดียวกับคอม: เรียบง่าย สะอาดตา ตัวเลขชัดเจน พื้นหลังสีเดียวกับคอม) */
    .home-page .hero-stats-bar {
        width: min(700px, calc(100% - 30px));
        margin: 0 auto;
        border-radius: 0;
        padding: 24px 12px;
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        align-items: center;
    }

    .home-page .hero-stat-item {
        padding: 8px 10px;
    }

    .home-page .hero-stat-item strong {
        font-size: clamp(42px, 11vw, 64px);
        color: #111111;
        font-weight: 800;
        line-height: 1;
        margin-bottom: 8px;
        letter-spacing: -1px;
    }

    .home-page .hero-stat-item > span {
        font-size: 14px;
        color: #111111;
        font-weight: 600;
    }

    /* 4. Featured Farm Card บนมือถือ (ค่าเริ่มต้นเป็นสีขาว เมื่อเลื่อนลงมาและเปลี่ยนเป็นธีมมืดจะเป็นแบบการ์ดสีดำ และเลื่อนแบบ Carousel Peek ให้เห็นการ์ดถัดไปทันที) */
    .home-page .farm-section {
        padding: 40px 16px;
        overflow: hidden;
    }

    .home-page .farm-grid,
    .home-page #farm-card-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        gap: 16px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px 16px 24px !important;
        margin: 0 -16px !important;
        width: calc(100% + 32px) !important;
        max-width: none !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .home-page .farm-grid::-webkit-scrollbar,
    .home-page #farm-card-container::-webkit-scrollbar {
        display: none !important;
    }

    /* ตอนแรก: การ์ดสีขาว (Light Mode) */
    .home-page .farm-card {
        flex: 0 0 80% !important;
        min-width: 80% !important;
        max-width: 80% !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        box-sizing: border-box !important;
        /* เพิ่ม: จัดการ์ดแนวตั้ง เพื่อให้ Stats/ปุ่มลอยอยู่ล่างสุดเสมอ */
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 26px;
        padding: 26px 20px 22px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
        transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, color 0.45s ease;
    }

    .home-page .farm-logo {
        width: 76px;
        height: 76px;
        border: 3px solid #10b981;
        box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
        margin-bottom: 14px;
        transition: all 0.45s ease;
    }

    .home-page .farm-card h3 {
        font-size: 20px;
        font-weight: 800;
        color: #111827;
        margin-bottom: 8px;
        transition: color 0.45s ease;
    }

    .home-page .farm-card p {
        font-size: 13px;
        color: #6b7280;
        line-height: 1.5;
        margin-bottom: 16px;
        transition: color 0.45s ease;
        /* เพิ่ม: ตัดที่อยู่ให้แสดงแค่ 2 บรรทัด เพื่อความสูงการ์ดเท่ากัน */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-page .farm-stats {
        gap: 12px;
        margin-bottom: 20px;
        /* เพิ่ม: ดันส่วน Stats + ปุ่มลงล่างสุดของการ์ดทุกใบให้ตรงกัน */
        margin-top: auto;
    }

    .home-page .farm-stats div {
        flex: 1;
        background: #f8fafc;
        border: 1px solid #f1f5f9;
        border-radius: 16px;
        padding: 10px 8px;
        transition: all 0.45s ease;
    }

    .home-page .farm-stats div strong {
        font-size: 20px;
        font-weight: 800;
        color: #111827;
        transition: color 0.45s ease;
    }

    .home-page .farm-stats div span {
        font-size: 12px;
        color: #64748b;
        transition: color 0.45s ease;
    }

    .home-page .farm-btn {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: #ffffff !important;
        font-size: 15px;
        font-weight: 700;
        padding: 12px 0;
        border-radius: 999px;
        box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
        border: none;
        display: block;
        width: 100%;
        text-align: center;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .home-page .farm-btn:hover,
    .home-page .farm-btn:active {
        background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
        color: #ffffff !important;
        transform: translateY(-1px);
    }

    /* เมื่อเปลี่ยนเป็นธีมมืด (Dark Mode ตอน Scroll ถึงฟาร์ม) */
    html.theme-dark .home-page .farm-card {
        background: linear-gradient(180deg, #18181b 0%, #0f0f11 100%);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    }

    html.theme-dark .home-page .farm-logo {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
    }

    html.theme-dark .home-page .farm-card h3 {
        color: #ffffff;
    }

    html.theme-dark .home-page .farm-card p {
        color: #9ca3af;
    }

    html.theme-dark .home-page .farm-stats div {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.06);
    }

    html.theme-dark .home-page .farm-stats div strong {
        color: #f9fafb;
    }

    html.theme-dark .home-page .farm-stats div span {
        color: #9ca3af;
    }

    /* 5. About Section บนมือถือ */
    .home-page .about-section {
        padding: 40px 16px;
    }

    .home-page .about-section .section-header {
        margin-bottom: 24px;
        text-align: center;
    }

    .home-page .about-section .section-header h2 {
        font-size: 24px;
        font-weight: 800;
        margin-bottom: 8px;
    }

    .home-page .about-section .section-header p {
        font-size: 14px;
        color: #9ca3af;
    }

    .home-page .about-image-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 440px;
        margin: 0 auto;
    }

    .home-page .about-image-card {
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    /* 6. Footer บนมือถือ (จัดเรียงเป็นการ์ดและปุ่มสวยงาม) */
    .home-page .main-footer {
        padding: 40px 16px 30px;
        margin-top: 50px;
        background: #09090b;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .home-page .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0;
        max-width: 480px;
        margin: 0 auto;
    }

    .home-page .footer-about p {
        font-size: 13px;
        line-height: 1.6;
        color: #9ca3af;
        margin-top: 8px;
    }

    .home-page .footer-links {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 20px;
    }

    .home-page .footer-links h3,
    .home-page .footer-contact h3 {
        font-size: 15px;
        font-weight: 700;
        color: #f3f4f6;
        margin-bottom: 14px;
    }

    .home-page .footer-links a {
        display: inline-block;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 7px 16px;
        border-radius: 999px;
        margin: 0 6px 8px 0;
        font-size: 13px;
        color: #d1d5db;
        transition: all 0.2s ease;
    }

    .home-page .footer-links a:hover,
    .home-page .footer-links a:active {
        background: #10b981;
        color: #ffffff;
        border-color: #10b981;
    }

    .home-page .footer-contact {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 20px;
    }

    .home-page .footer-contact p {
        display: flex;
        align-items: center;
        gap: 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 14px;
        padding: 10px 14px;
        margin-bottom: 8px;
        font-size: 13px;
        color: #d1d5db;
    }

    .home-page .footer-contact p i {
        color: #10b981;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page,
    .home-page .main-header,
    .home-page .nav-menu,
    .home-page .nav-indicator,
    .home-page .mobile-menu-btn,
    .home-page .hero-stats-bar,
    .home-page .chicken-card,
    .home-page .chicken-meta span,
    .home-page .farm-section,
    .home-page .farm-card,
    .home-page .farm-btn,
    .home-page .about-section,
    .home-page .about-card,
    .home-page .market-slide-btn,
    .home-page .main-footer {
        transition-duration: .01ms !important;
    }
}