/* =========================================================
   MARKETPLACE
   Global Stylesheet (marketplace.css)
========================================================= */

/* =========================================================
   1. CSS VARIABLES
========================================================= */
:root {
    --motion-fast: 160ms;
    --motion-normal: 220ms;
    --motion-slow: 320ms;
    --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   2. RESET / BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

.sr-only,
#marketplace-load-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #f6f7f9;
    color: #111827;
    font-family: "Prompt", "Noto Sans Thai", sans-serif;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   3. NAVBAR / HEADER
========================================================= */
.main-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 1000;

    width: calc(100% - 48px);
    max-width: 1240px;

    transform: translateX(-50%);

    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;

    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
    transition: all 0.3s ease;
}

.main-nav {
    position: relative;

    min-height: 68px;
    padding: 0 18px 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    font-family: "Orbitron", sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;

    list-style: none;

    background: rgba(243, 244, 246, 0.85);
    border-radius: 999px;
    padding: 5px;
}

.nav-menu a {
    display: block;
    padding: 9px 17px;

    border-radius: 999px;

    color: #5b6472;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition:
        color 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease;
}

.nav-menu a:hover {
    color: #111827;
    transform: translateY(-1px);
}

.nav-menu a.active {
    color: #111827;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.icon-btn {
    position: relative;

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 999px;

    background: #ffffff;
    color: #111827;

    cursor: pointer;

    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
}

.icon-btn:hover {
    transform: translateY(-2px);
    background: #111827;
    color: #ffffff;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #ffffff;
    border-radius: 999px;

    background: #ef4444;
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
}

.user-profile {
    height: 48px;
    padding: 4px 12px 4px 5px;

    display: flex;
    align-items: center;
    gap: 9px;

    border: none;
    border-radius: 999px;

    background: #ffffff;
    color: #111827;
    cursor: pointer;

    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.user-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: #111827;
    color: #ffffff;
    overflow: hidden;
}

.user-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.user-info {
    text-align: left;
}

.user-info strong,
.user-info small {
    display: block;
}

.user-info strong {
    font-size: 12px;
    font-weight: 700;
}

.user-info small {
    margin-top: 1px;
    color: #6b7280;
    font-size: 10px;
}

.profile-arrow {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.user-profile.open .profile-arrow {
    transform: rotate(180deg);
}

.mobile-menu-btn {
    display: none;

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 999px;

    background: #111827;
    color: #ffffff;

    font-size: 20px;
    cursor: pointer;
}

/* =========================================================
   4. PROFILE DROPDOWN
========================================================= */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;

    width: 220px;
    padding: 9px;

    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-radius: 22px;

    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);

    transition:
        opacity var(--motion-normal, 220ms) ease,
        visibility var(--motion-normal, 220ms) ease,
        transform var(--motion-normal, 220ms) var(--motion-ease, ease);
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 11px 13px;
    border-radius: 14px;

    color: #374151;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: 0.22s ease;
}

.profile-dropdown a:hover {
    background: #f3f4f6;
    color: #111827;
    transform: translateX(3px);
}

.dropdown-divider {
    height: 1px;
    margin: 7px 4px;
    background: #e5e7eb;
}

.profile-dropdown .logout-link {
    color: #dc2626;
}

/* =========================================================
   5. MAIN LAYOUT
========================================================= */
.marketplace-main {
    width: min(1240px, calc(100% - 48px));
    max-width: 1240px;
    margin: 0 auto;
    padding: 112px 0 80px;
}

/* =========================================================
   6. MARKET HERO / BANNER
========================================================= */
.market-hero {
    position: relative;
    height: 260px;
    min-height: 0;
    padding: 36px 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    border-radius: 30px;
    overflow: hidden;

    background-color: #315735;
    background-image: url("./assets/market-hero.png") !important;
    background-size: cover;
    background-position: center 54%;
    background-repeat: no-repeat;

    color: #ffffff;
    box-shadow: 0 20px 42px rgba(26, 45, 33, 0.12);
}

.market-hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(8, 17, 12, 0.78) 0%,
        rgba(8, 17, 12, 0.42) 47%,
        rgba(8, 17, 12, 0.08) 100%
    );

    pointer-events: none;
}

.market-hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.market-hero-content h1 {
    margin-bottom: 4px;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
}

.market-hero-content p {
    margin: 0;
    font-size: 15px;
}

.market-action-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* =========================================================
   7. SEARCH & FILTER TOOLBAR
========================================================= */
.search-section {
    position: relative;
    z-index: 50;
    margin-top: 16px;
}

.search-card {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) repeat(4, max-content);
    align-items: center;
    gap: clamp(18px, 2.4vw, 34px);

    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* กรอบแคปซูลครอบช่องค้นหาและปุ่มค้นหา */
.search-box-group {
    min-width: 0;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 5px 6px 5px 18px;

    background: #eef2f6;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-box-group:focus-within {
    background: #eef2f6;
    border-color: #cbd5e1;
    box-shadow: none;
}

.search-box-group .search-input-group {
    height: 100%;
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box-group .search-lead-icon {
    color: #64748b;
    font-size: 16px;
    flex-shrink: 0;
    pointer-events: none;
}

.search-box-group .search-input-group input {
    width: 100%;
    height: 100%;
    padding: 0;

    background: transparent;
    color: #172019;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;

    font-size: 14px;
    font-weight: 500;
}

.search-box-group .search-input-group input::placeholder {
    color: #64748b;
    opacity: 1;
}

.search-box-group .search-input-group input:focus {
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: none;
}

/* ปุ่มค้นหาแบบวงกลม */
#search-btn,
#farm-search-btn,
.search-circle-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;

    display: grid;
    place-items: center;

    background: #17653D;
    color: #ffffff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(23, 101, 61, 0.2);

    cursor: pointer;
    flex-shrink: 0;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

#search-btn span,
#farm-search-btn span,
.search-circle-button span {
    display: none;
}

#search-btn i,
#farm-search-btn i,
.search-circle-button i {
    font-size: 15px;
}

#search-btn:hover,
#farm-search-btn:hover,
.search-circle-button:hover {
    background: #10492D;
    transform: scale(1.04);
    box-shadow: 0 4px 10px rgba(16, 73, 45, 0.28);
}

#search-btn:active,
#farm-search-btn:active,
.search-circle-button:active {
    transform: scale(0.96);
}

/* Custom Dropdown Filters */
.search-card > .custom-dropdown {
    width: auto;
    min-width: 0;
}

.search-card > .custom-dropdown .custom-dropdown-toggle {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    padding: 7px 0;

    background: transparent !important;
    color: #172019;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;

    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.search-card > .custom-dropdown .custom-dropdown-toggle:hover,
.search-card > .custom-dropdown .custom-dropdown-toggle:focus,
.search-card > .custom-dropdown .custom-dropdown-toggle:focus-visible,
.search-card > .custom-dropdown .custom-dropdown-toggle[aria-expanded="true"] {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
    color: #17653D !important;
}

.search-card > .custom-dropdown .custom-dropdown-chevron {
    position: static;
    margin: 0;
    font-size: 12px;
    color: #66736C;
    transition: transform 0.2s ease, color 0.18s ease;
}

.search-card > .custom-dropdown .custom-dropdown-toggle:hover .custom-dropdown-chevron,
.search-card > .custom-dropdown .custom-dropdown-toggle:focus-visible .custom-dropdown-chevron,
.search-card > .custom-dropdown .custom-dropdown-toggle[aria-expanded="true"] .custom-dropdown-chevron {
    color: #17653D;
}

.search-card > .custom-dropdown .custom-dropdown-menu {
    min-width: 180px !important;
    width: max-content !important;
    max-width: min(280px, 92vw) !important;
    left: 0 !important;
    right: auto !important;
    z-index: 1000 !important;
}

.search-card > .custom-dropdown:last-of-type .custom-dropdown-menu {
    left: auto !important;
    right: 0 !important;
}

.sort-dropdown {
    position: relative !important;
    width: auto !important;
    min-width: 0 !important;
}

.sort-dropdown .custom-dropdown-menu {
    min-width: 150px !important;
    width: max-content !important;
    max-height: 400px !important;
    left: 0 !important;
    right: auto !important;
    z-index: 1000 !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16), 0 2px 10px rgba(15, 23, 42, 0.08) !important;
}

.custom-dropdown-option {
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

/* Sort Bar */
.sort-bar {
    position: relative;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.sort-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-bar span {
    font-size: 14px;
    font-weight: 600;
    color: #172019;
}

.sort-bar .custom-dropdown-toggle {
    min-height: 36px;
    padding: 0 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #17653D;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.18s ease;
}

.sort-bar .custom-dropdown-toggle:hover {
    color: #10492D;
}

.sort-bar .custom-dropdown-toggle .custom-dropdown-chevron {
    color: #66736C;
}

.sort-bar .custom-dropdown-toggle:hover .custom-dropdown-chevron {
    color: #17653D;
}

.sort-chip {
    padding: 9px 18px;
    border: none;
    border-radius: 999px;
    background: #eef2f7;
    cursor: pointer;
    transition: 0.25s;
    font-size: 14px;
    font-weight: 600;
}

.sort-chip.active {
    background: #17653D;
    color: white;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #cd0000;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    animation: pulseBadge 220ms ease 1;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.owner-filter-section {
    margin-top: 24px;
}

/* =========================================================
   8. MARKET SECTION HEADER
========================================================= */
.market-section {
    position: relative;
    z-index: 1;
    margin-top: 28px;
}

.section-header {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.section-header p {
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

.reset-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 16px;

    border: 1px solid #E3E9E5;
    border-radius: 999px;

    background: #ffffff;
    color: #66736C;

    font-size: 12.5px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.reset-filter-btn:hover {
    background: #EEF6F1;
    color: #17653D;
    border-color: #17653D;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(23, 101, 61, 0.08);
}

/* =========================================================
   9. CHICKEN GRID & CARDS
========================================================= */
.chicken-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.chicken-card {
    position: relative;
    min-width: 0;
    min-height: 440px;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.chicken-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.chicken-image-wrapper {
    position: relative;
    height: 270px;
    overflow: hidden;
    background: #f1f5f9;
}

.chicken-detail-link {
    display: block;
    height: 100%;
}

.chicken-title-link {
    color: inherit;
    text-decoration: none;
}

.chicken-title-link:hover {
    text-decoration: underline;
    color: #15803d;
}

.chicken-img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center 20%;

    transition: transform 0.25s ease;
}

.chicken-card:hover .chicken-img {
    transform: scale(1.03);
}

.chicken-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;

    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 3px 8px;
    border-radius: 999px;

    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;

    font-size: 11px;
    font-weight: 400;
    z-index: 2;
}

.reserve-countdown-badge {
    position: absolute;
    top: 10px;
    right: 10px;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 4px 10px;
    border-radius: 999px;

    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 3;
    transition: all 0.2s ease;
}

.reserve-countdown-badge i {
    font-size: 12px;
}

.reserve-countdown-badge.is-delivering {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.reserve-countdown-badge.is-awaiting {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.reserve-countdown-badge.is-expired {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.chicken-body {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 14px 16px 16px;
    gap: 8px;
}

/* 1. Name + Status Row */
.chicken-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 24px;
}

.chicken-name {
    margin: 0;
    flex: 1;
    min-width: 0;

    font-size: 15px;
    font-weight: 700;
    color: #0f172a;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chicken-status-tag {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 0;
    background: transparent;
    border: none;

    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
}

.chicken-status-tag.in-progress {
    background: transparent;
    color: #d97706;
    border: none;
}

.chicken-status-tag.awaiting-review {
    background: transparent;
    color: #2563eb;
    border: none;
}

.chicken-status-tag.delivering {
    background: transparent;
    color: #0284c7;
    border: none;
}

.chicken-status-tag.locked {
    background: transparent;
    color: #dc2626;
    border: none;
}

.chicken-status-tag i {
    font-size: 12px;
}

/* 2. Price Row */
.chicken-price-row {
    display: flex;
    align-items: baseline;
    margin-top: -2px;
}

.price {
    color: #15803d;
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.price.no-price {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

/* 3. Metadata Chips (Breed / Age / Gender) */
.chicken-meta {
    margin: 2px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chicken-meta span {
    padding: 3px 8px;
    border-radius: 6px;

    background: #f1f5f9;
    color: #475569;

    font-size: 11px;
    font-weight: 500;
}

.db-chicken-details {
    margin: -4px 0 13px;
    padding: 11px 12px;
    color: #5f6b78;
    background: #f4f8f6;
    border: 1px solid #e0e9e5;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.55;
}

.db-chicken-details[hidden] {
    display: none;
}

.db-chicken-details p {
    margin: 0;
}

.db-chicken-details p + p {
    margin-top: 4px;
}

/* =========================================================
   10. FARM INFORMATION BLOCK
========================================================= */
.farm-profile-card {
    position: relative;
    width: 100%;

    min-height: 52px;
    margin: 4px 0 8px;
    padding: 8px 12px;

    display: flex;
    align-items: center;
    gap: 10px;

    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;

    background: #f8fafc;
    color: #0f172a;
    text-align: left;
    cursor: pointer;

    box-shadow: none;

    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.farm-profile-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: none;
    box-shadow: none;
}

.farm-profile-image {
    position: relative;
    z-index: 1;

    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    border: 1px solid #e2e8f0;
    border-radius: 50%;

    background: #ffffff;
    object-fit: cover;
}

.farm-profile-info {
    position: relative;
    z-index: 1;

    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
}

.farm-profile-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.farm-rating {
    display: flex;
    align-items: center;
    gap: 4px;

    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
}

.farm-rating i {
    color: #15803d;
    font-size: 11px;
}

.farm-profile-arrow {
    position: relative;
    z-index: 1;

    width: 20px;
    height: 20px;
    flex: 0 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    background: transparent;
    font-size: 13px;

    transition: color 0.18s ease;
}

.farm-profile-card:hover .farm-profile-arrow {
    color: #0f172a;
}

/* =========================================================
   11. CARD ACTION BUTTONS
========================================================= */
.card-action-row {
    margin-top: auto;
    padding-top: 4px;

    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Action #1: ดูรายละเอียด (Primary Button) */
.action-btn-detail {
    flex: 1;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: none;
    border-radius: 10px;

    background: #15803d;
    color: #ffffff;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;

    box-shadow: 0 1px 3px rgba(21, 128, 61, 0.2);

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.action-btn-detail:hover {
    background: #166534;
    color: #ffffff;
    transform: translateY(-1px);
}

.action-btn-detail.disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Action #2 & #3: Icon Buttons (38x38px) */
.action-btn-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    font-size: 15px;
    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

/* Case A: ผู้ใช้ทั่วไป -> ปุ่มรถเข็น */
.action-btn-icon.action-cart {
    background: #fff7ed;
    color: #ea580c;
    border-color: #ffedd5;
}

.action-btn-icon.action-cart:hover {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
    transform: translateY(-1px);
}

/* Case B: เจ้าของประกาศ -> ไอคอนโปรไฟล์ */
.action-btn-icon.action-owner {
    background: #f0fdf4;
    color: #15803d;
    border-color: #dcfce7;
}

.action-btn-icon.action-owner:hover {
    background: #15803d;
    color: #ffffff;
    border-color: #15803d;
    transform: translateY(-1px);
}

/* Action #3: แชต */
.action-btn-icon.action-chat {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.action-btn-icon.action-chat:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-1px);
}

/* Action State: ผู้ซื้อจองแล้ว -> จ่ายเงินต่อ */
.action-btn-icon.action-pay {
    background: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}

.action-btn-icon.action-pay:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-1px);
}

/* Action State: รายการถูกจองโดยผู้อื่น -> ล็อก */
.action-btn-icon.action-locked {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* =========================================================
   12. EMPTY, ERROR & LOADING STATES
========================================================= */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: #eef1f5;
    color: #6b7280;

    font-size: 26px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
}

.empty-state p {
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

.empty-state button,
#empty-reset-btn {
    margin-top: 16px;
    padding: 9px 20px;

    border: 1px solid #e2e8f0;
    border-radius: 999px;

    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.empty-state button:hover,
#empty-reset-btn:hover {
    background: #f1f5f9;
}

/* UI Error State */
.ui-error-state,
.marketplace-error-state {
    min-height: 260px;
    margin-top: 12px;
    padding: 36px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.marketplace-error-state > i {
    font-size: 24px;
    color: #111827;
    margin-bottom: 12px;
}

.marketplace-error-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.marketplace-error-state p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 16px;
}

.marketplace-error-state .reset-filter-btn {
    padding: 8px 22px;
    font-size: 13px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Skeletons */
.chicken-card-skeleton {
    pointer-events: none;
}

.chicken-card-skeleton:hover {
    transform: none;
    border-color: #e7e9ed;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.chicken-skeleton-image {
    height: 270px;
    min-height: 270px;
    border-radius: 0;
}

.chicken-skeleton-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 15px;
}

.chicken-skeleton-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.chicken-skeleton-farm {
    width: 100%;
    height: 52px;
    margin-top: auto;
    border-radius: 12px;
}

/* =========================================================
   13. PAGINATION
========================================================= */
.pagination {
    margin-top: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pagination button {
    height: 42px;

    border: 1px solid #e2e5e9;
    border-radius: 13px;

    background: #ffffff;
    color: #4b5563;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #111827;
    color: #111827;
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.pagination-nav {
    min-width: 100px;
    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.pagination-page {
    min-width: 42px;
    padding: 0 10px;
}

.pagination-page.active {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

/* =========================================================
   14. FOOTER
========================================================= */
.main-footer {
    background: #111827;
    color: #ffffff;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-container strong {
    font-family: "Orbitron", sans-serif;
    font-size: 15px;
}

.footer-container p {
    margin-top: 5px;
    color: #9ca3af;
    font-size: 11px;
}

.contact-link,
.contact-link:visited,
.contact-link:link {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: #ffffff;
    opacity: 0.8;
    text-decoration: underline;
}

/* =========================================================
   15. REVEAL & INTERACTION UTILITIES
========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transform-origin: center top;
    will-change: opacity, transform;

    transition:
        opacity var(--motion-normal, 220ms) ease,
        transform var(--motion-normal, 220ms) var(--motion-ease, ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.chicken-card.reveal.show:hover {
    transform: translateY(-4px);
}

.marketplace-main button:active:not(:disabled),
.main-header button:active:not(:disabled) {
    transform: scale(0.97);
}

/* =========================================================
   16. MOBILE BOTTOM NAVIGATION (รองรับเมนูด้านล่าง)
========================================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.mobile-bottom-nav-inner {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-around;
}

.mobile-bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #6b7280;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    flex: 1;
    height: 100%;
    transition: color 0.15s ease;
}

.mobile-bottom-tab i {
    font-size: 19px;
    line-height: 1;
}

.mobile-bottom-tab.active {
    color: #111827;
    font-weight: 700;
}

/* =========================================================
   17. RESPONSIVE — TABLET (≤ 1100px)
========================================================= */
@media (max-width: 1100px) {
    .marketplace-main {
        width: 100%;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;

        padding: 10px;

        flex-direction: column;
        align-items: stretch;

        border-radius: 22px;

        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu a {
        text-align: center;
        border-radius: 14px;
    }

    .search-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 20px;
    }

    .search-box-group {
        grid-column: 1 / -1;
    }

    .search-card > .custom-dropdown .custom-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 10px 4px;
    }

    .chicken-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   18. RESPONSIVE — MOBILE & COMPACT DEVICES (≤ 768px)
   ปรับให้เหมือนกรอบสีเขียว (Full topbar, 4-pill filters in 1 row)
========================================================= */
@media (max-width: 768px) {
    /* --- 1. Top Navbar: ปรับให้เต็มขอบบน ไม่ลอยตัดขอบข้าง --- */
    .main-header {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
    }

    .main-nav {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        grid-template-rows: auto auto !important;
        padding: 8px 12px 8px !important;
        gap: 6px !important;
        min-height: auto !important;
    }

    .logo {
        grid-column: 1 !important;
        grid-row: 1 !important;
        align-self: center !important;
    }

    .logo span {
        font-size: 15px !important;
        font-weight: 800 !important;
    }

    .nav-actions {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-self: end !important;
        gap: 6px !important;
    }

    .nav-menu {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        display: flex !important;
        position: static !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 2px auto 0 !important;
        padding: 3px !important;
        gap: 2px !important;
        background: rgba(243, 244, 246, 0.95) !important;
        border-radius: 999px !important;
        box-shadow: none !important;
        width: fit-content !important;
    }

    .nav-menu li {
        list-style: none !important;
    }

    .nav-menu a {
        display: block !important;
        padding: 5px 12px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        border-radius: 999px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .nav-actions .icon-btn,
    .icon-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        border-radius: 50% !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
        font-size: 15px !important;
    }

    .user-profile {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .user-avatar {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
    }

    .user-info,
    .profile-arrow,
    .mobile-menu-btn {
        display: none !important;
    }

    /* --- 2. Main Content Spacing --- */
    .marketplace-main {
        padding: 104px 12px 80px !important;
        width: 100% !important;
    }

    /* --- 3. Hero Banner บนมือถือ --- */
    .market-hero {
        display: flex !important;
        height: 120px !important;
        min-height: 120px !important;
        max-height: 140px !important;
        padding: 16px 18px !important;
        border-radius: 18px !important;
        margin-top: 4px !important;
        margin-bottom: 10px !important;
        background-color: #315735 !important;
        background-image: url("./assets/market-hero.png") !important;
        background-size: cover !important;
        background-position: center 54% !important;
        background-repeat: no-repeat !important;
        box-shadow: 0 8px 24px rgba(26, 45, 33, 0.12) !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .market-hero-overlay {
        border-radius: 18px !important;
        background: linear-gradient(
            90deg,
            rgba(8, 17, 12, 0.78) 0%,
            rgba(8, 17, 12, 0.42) 60%,
            rgba(8, 17, 12, 0.12) 100%
        ) !important;
    }

    .market-hero-content {
        max-width: 100% !important;
    }

    .market-hero-content h1 {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
        color: #ffffff !important;
        font-weight: 800 !important;
    }

    .market-hero-content p {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
        color: rgba(255, 255, 255, 0.92) !important;
        margin: 0 !important;
    }

    /* --- 4. Search & Filters: ช่องค้นหาแคปซูล + 4 ฟิลเตอร์เรียงแถวแนวนอน --- */
    .search-section {
        margin-top: 4px !important;
    }

    .search-card {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }

    /* กล่องค้นหาครอบเต็มความกว้าง */
    .search-box-group {
        grid-column: 1 / -1 !important;
        height: 44px !important;
        background: #eef2f6 !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 999px !important;
        padding: 3px 5px 3px 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
    }

    .search-box-group:focus-within {
        background: #eef2f6 !important;
        border-color: #cbd5e1 !important;
        box-shadow: none !important;
    }

    .search-box-group .search-lead-icon {
        font-size: 14px !important;
        color: #64748b !important;
    }

    .search-box-group .search-input-group {
        gap: 8px !important;
    }

    .search-box-group .search-input-group input {
        padding: 0 !important;
        font-size: 13px !important;
        color: #172019 !important;
    }

    .search-box-group .search-input-group input::placeholder {
        color: #64748b !important;
    }

    #search-btn,
    #farm-search-btn,
    .search-circle-button {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        background: #17653D !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 6px rgba(23, 101, 61, 0.2) !important;
    }

    #search-btn i,
    #farm-search-btn i,
    .search-circle-button i {
        font-size: 13.5px !important;
    }

    #search-btn:hover,
    #farm-search-btn:hover,
    .search-circle-button:hover {
        background: #10492D !important;
    }

    /* 4 ฟิลเตอร์เป็นปุ่มแคปซูลเรียงใน 1 แถวแบบภาพสีเขียว */
    .search-card > .custom-dropdown {
        width: 100% !important;
        min-width: 0 !important;
    }

    .search-card > .custom-dropdown .custom-dropdown-toggle {
        width: 100% !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 4px !important;
        background: #ffffff !important;
        border: 1px solid #E3E9E5 !important;
        border-radius: 999px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        color: #172019 !important;
        transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease !important;
    }

    .search-card > .custom-dropdown .custom-dropdown-toggle:hover,
    .search-card > .custom-dropdown .custom-dropdown-toggle:focus-visible,
    .search-card > .custom-dropdown .custom-dropdown-toggle[aria-expanded="true"] {
        background: #EEF6F1 !important;
        border-color: #17653D !important;
        color: #17653D !important;
    }

    .search-card > .custom-dropdown .custom-dropdown-toggle .custom-dropdown-label {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .search-card > .custom-dropdown .custom-dropdown-chevron {
        font-size: 9px !important;
        flex-shrink: 0 !important;
        color: #66736C !important;
    }

    .search-card > .custom-dropdown .custom-dropdown-toggle:hover .custom-dropdown-chevron,
    .search-card > .custom-dropdown .custom-dropdown-toggle:focus-visible .custom-dropdown-chevron,
    .search-card > .custom-dropdown .custom-dropdown-toggle[aria-expanded="true"] .custom-dropdown-chevron {
        color: #17653D !important;
    }

    /* Sort Bar: แถวเดียวกับปุ่มล้างตัวกรอง */
    .sort-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-top: 10px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .sort-bar-left {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .sort-bar span {
        font-size: 12.5px !important;
        color: #172019 !important;
        font-weight: 600 !important;
    }

    .sort-bar .custom-dropdown-toggle {
        font-size: 12.5px !important;
        min-height: 32px !important;
        height: 32px !important;
        padding: 0 2px !important;
        color: #17653D !important;
        font-weight: 700 !important;
    }

    .sort-bar .custom-dropdown-toggle .custom-dropdown-chevron {
        color: #66736C !important;
    }

    /* ปุ่มล้างตัวกรองขนาดเล็ก อยู่แถวเดียวกับเรียงตาม */
    .reset-filter-btn {
        padding: 4px 10px !important;
        font-size: 11px !important;
        height: 28px !important;
        gap: 4px !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        border: 1px solid #E3E9E5 !important;
        color: #66736C !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
        margin: 0 !important;
        font-weight: 600 !important;
        transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease !important;
    }

    .reset-filter-btn:hover {
        background: #EEF6F1 !important;
        border-color: #17653D !important;
        color: #17653D !important;
    }

    .reset-filter-btn i {
        font-size: 10.5px !important;
    }

    /* Section Header */
    .market-section {
        margin-top: 16px !important;
    }

    .section-header {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .section-header h2 {
        font-size: 20px !important;
    }

    .section-header p {
        font-size: 12px !important;
        margin-top: 2px !important;
    }

    /* --- 5. Chicken Grid: 2 คอลัมน์บนมือถือ สวยงาม สัดส่วนพอดี --- */
    .chicken-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .chicken-card {
        min-height: auto !important;
        border-radius: 12px !important;
    }

    .chicken-image-wrapper {
        height: 240px !important;
    }

    @media (max-width: 480px) {
        .chicken-image-wrapper {
            height: 170px !important;
        }
    }

    .chicken-badge {
        max-width: calc(100% - 16px) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 10px !important;
        padding: 2px 6px !important;
    }

    .chicken-body {
        padding: 10px 8px 12px !important;
        gap: 4px !important;
    }

    .chicken-name-row {
        gap: 4px !important;
    }

    .chicken-name {
        font-size: 13px !important;
    }

    .chicken-status-tag {
        font-size: 9px !important;
        gap: 2.5px !important;
    }

    .chicken-status-tag i {
        font-size: 9.5px !important;
    }

    .price {
        font-size: 14px !important;
    }

    .chicken-meta span {
        padding: 2px 5px !important;
        font-size: 9.5px !important;
    }

    .farm-profile-card {
        min-height: 40px !important;
        padding: 3px 6px !important;
        margin: 4px 0 6px !important;
        gap: 6px !important;
    }

    .farm-profile-image {
        width: 26px !important;
        height: 26px !important;
        flex: 0 0 26px !important;
    }

    .farm-profile-name {
        font-size: 11px !important;
    }

    .card-action-row {
        gap: 5px !important;
    }

    /* ปุ่มดูรายละเอียด: ซ่อนไอคอน และไม่ตัดบรรทัด */
    .action-btn-detail {
        height: 32px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        padding: 0 4px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1 !important;
    }

    .action-btn-detail i {
        display: none !important;
    }

    .action-btn-icon {
        width: 32px !important;
        height: 32px !important;
        flex: 0 0 32px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    /* Pagination */
    .pagination {
        gap: 6px !important;
        margin-top: 28px !important;
    }

    .pagination-nav {
        min-width: 40px !important;
        height: 38px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    .pagination-page {
        min-width: 38px !important;
        height: 38px !important;
        font-size: 12px !important;
    }
}

/* Extra small screens (≤ 380px) */
@media (max-width: 380px) {
    .search-card {
        gap: 6px !important;
    }

    .search-card > .custom-dropdown .custom-dropdown-toggle {
        font-size: 10.5px !important;
        padding: 0 4px !important;
    }

    .chicken-grid {
        gap: 8px !important;
    }
}

/* =========================================================
   19. ACCESSIBILITY & REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}