/* ==========================================================================
   main.css — Global Layout, Typography, Utilities
   CSS custom properties are output by class-enqueue-assets.php in <head>.
   ========================================================================== */

/* ==========================================================================
   Google Fonts are loaded by class-enqueue-assets.php::google_fonts()
   ========================================================================== */

/* ==========================================================================
   0. Global CSS Reset & Viewport Overflow Protection
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100%;
    overflow-x: clip;
    min-height: 100vh;
}

/* Top-level page container containment */
#page,
.site,
.site-main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

/* Media element fluid responsiveness */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    max-width: 100%;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ==========================================================================
   1. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-neutral-dark);
    margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
    max-width: 70ch;
}

strong, b { font-weight: 600; }

small { font-size: 0.875rem; color: var(--color-text-muted); }

blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text-muted);
}

/* ==========================================================================
   2. Container & Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--wide-width);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3.5vw, var(--container-pad));
    box-sizing: border-box;
}

.layout--full {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

.layout--sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 1024px) {
    .layout--sidebar {
        grid-template-columns: 1fr 280px;
    }
}

/* ==========================================================================
   3. Section Patterns
   ========================================================================== */

.section {
    padding-block: var(--space-3xl);
}

.section--alt {
    background-color: #EFF7EE;
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-neutral-dark);
    margin-bottom: 0;
}

.section__subtitle {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    margin-top: var(--space-xs);
    margin-bottom: 0;
}

.section__link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.section__link:hover { color: var(--color-primary-dark); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary */
.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn--primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* Accent (amber) */
.btn--accent {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn--accent:hover {
    background-color: #E65100;
    border-color: #E65100;
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* Outline */
.btn--outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn--outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Outline small */
.btn--outline-sm {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 0.4rem 0.875rem;
    font-size: 0.875rem;
}

/* Outline white (on dark backgrounds) */
.btn--outline-white {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

/* Ghost */
.btn--ghost {
    background-color: transparent;
    color: var(--color-text-muted);
    border-color: transparent;
}
.btn--ghost:hover {
    color: var(--color-primary);
    background-color: rgba(46,125,50,0.05);
}

/* Disabled */
.btn--disabled, .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Sizes */
.btn--sm  { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--lg  { padding: 1rem 2rem; font-size: 1.125rem; border-radius: var(--radius-lg); }
.btn--xl  { padding: 1.125rem 2.5rem; font-size: 1.25rem; border-radius: var(--radius-lg); }

/* ==========================================================================
   5. Badges
   ========================================================================== */

.freshness-badge,
.organic-badge,
.sourcing-badge,
.sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    line-height: 1;
}

.freshness-badge.badge--today   { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.freshness-badge.badge--fresh   { background: #F1F8E9; color: #33691E; border: 1px solid #C5E1A5; }
.freshness-badge.badge--ok      { background: #FFF8E1; color: #E65100; border: 1px solid #FFE082; }

.organic-badge.badge--organic        { background: #E8F5E9; color: #1B5E20; }
.organic-badge.badge--pesticide-free { background: #F3E5F5; color: #4A148C; }
.organic-badge.badge--conventional   { background: #F5F5F5; color: #616161; }

.sale-badge {
    background: var(--color-accent);
    color: #fff;
}

/* ==========================================================================
   6. Page Header
   ========================================================================== */

.page-header {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 60%, #388E3C 100%);
    color: #fff;
    padding-block: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.page-header .breadcrumb { margin-bottom: var(--space-sm); }
.page-header .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-header .breadcrumb a:hover { color: #fff; }
.page-header .breadcrumb__sep { color: rgba(255,255,255,0.5); margin-inline: var(--space-xs); }
.page-header .breadcrumb__item--current { color: rgba(255,255,255,0.7); }

.page-header__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
}

.page-header__subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    margin-top: var(--space-sm);
    margin-bottom: 0;
}

/* ==========================================================================
   7. Breadcrumb
   ========================================================================== */

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    align-items: center;
    font-size: 0.875rem;
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: var(--space-xs); }
.breadcrumb__sep  { color: var(--color-neutral-mid); }

/* ==========================================================================
   8. Category Grid (front-page)
   ========================================================================== */

/* ==========================================================================
   Section Headers & Badges (Modular Storefront)
   ========================================================================== */

.section-title-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.section-title-wrap__left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 680px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    width: fit-content;
    margin-bottom: 4px;
}

.section-badge--featured { background: #FEF3C7; color: #92400E; }
.section-badge--sale     { background: #FEE2E2; color: #991B1B; }
.section-badge--latest   { background: #DCFCE7; color: #166534; }
.section-badge--trending { background: #FFEDD5; color: #9A3412; }
.section-badge--category { background: #E0F2FE; color: #075985; }
.section-badge--contact  { background: #F3E8FF; color: #6B21A8; }

.section-title-main {
    font-size: clamp(1.5rem, 3.5vw, 2.125rem);
    font-weight: 800;
    color: var(--color-neutral-dark);
    margin: 0;
    line-height: 1.25;
}

.section-title-sub {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Static Announcement & Perks Strip
   ========================================================================== */

.section-static-banner {
    padding-block: var(--space-lg);
    background: #F8FAF9;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.announcement-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: center;
}

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

@media (min-width: 1024px) {
    .announcement-strip {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-lg);
    }
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.announcement-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border: 1px solid rgba(46,125,50,0.1);
}

.announcement-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.announcement-text strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-neutral-dark);
    font-family: var(--font-heading);
}

.announcement-text span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.announcement-divider {
    display: none;
    width: 1px;
    height: 36px;
    background: rgba(0,0,0,0.08);
}

@media (min-width: 1024px) {
    .announcement-divider { display: block; }
}

/* ==========================================================================
   Category Grid
   ========================================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
}

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

.category-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: var(--space-md);
    gap: var(--space-md);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    border-color: rgba(46,125,50,0.25);
}

.category-card__media {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: #F0FDF4;
    border: 1px solid rgba(46,125,50,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-card__emoji {
    font-size: 1.75rem;
    line-height: 1;
}

.category-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-card__media img { transform: scale(1.1); }

.category-card__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.category-card__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--color-neutral-dark);
    line-height: 1.3;
}

.category-card:hover .category-card__name {
    color: var(--color-primary);
}

.category-card__count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Landing Section 1 (front-page top banner)
   ========================================================================== */

.landing-1 {
    /*
     * The artwork is sized by height, and only the right 41% of the 1920x1080
     * canvas is opaque, so the visible circle is ~0.73x the band. The old
     * clamp(210px, 48vw, 300px) sat on its 210px floor at every width below
     * 437px, which left the circle ~146px wide on a 360px phone and the bottom
     * half of the section as empty green.
     */
    --landing-1-band: clamp(300px, 85vw, 380px);
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #14501A 0%, #1B5E20 45%, #2E7D32 100%);
    color: #fff;
}

/*
 * On phones the copy sits on top of the artwork, so the circle is faded out
 * underneath the text instead of the text being pushed below it. Below 768px
 * the description spans 96% of the section width, so the disc and the copy
 * share almost the same pixels — these stops are tuned against the actual
 * artwork, not eyeballed. See the mobile text block further down.
 */
.landing-1::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(100deg,
        rgba(20, 80, 26, 0.98) 0%,
        rgba(20, 80, 26, 0.96) 45%,
        rgba(20, 80, 26, 0.9) 68%,
        rgba(20, 80, 26, 0.62) 86%,
        rgba(20, 80, 26, 0.05) 100%);
}

.landing-1__inner {
    position: relative;
    z-index: 2;
    padding-block: clamp(2.5rem, 7vw, 5rem);
}

.landing-1__content {
    max-width: 620px;
}

.landing-1__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.landing-1__title {
    margin-bottom: var(--space-md);
    color: #fff;
    /* The previous 5.2vw term only cleared the 1.875rem floor above 577px, so
       every phone width rendered the same 30px heading. */
    font-size: clamp(1.625rem, 1.15rem + 2.6vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    text-wrap: balance;
}

.landing-1__highlight {
    display: inline-block;
    color: var(--color-accent-light);
}

.landing-1__desc {
    max-width: 54ch;
    margin-bottom: var(--space-xl);
    /* Computed against the section gradient under the real desc box: 0.75 is the
       lowest alpha still clearing 4.5:1 at every desktop width (worst 4.63 at
       1024px; 0.70 fails at 768/1024/1440). */
    color: rgba(255, 255, 255, 0.75);
    /* 1.6vw never reached the 1.125rem ceiling on a phone either — pinned to
       the 15px floor, which is below comfortable reading size. */
    font-size: clamp(1rem, 0.94rem + 0.24vw, 1.125rem);
    line-height: 1.7;
}

/*
 * auto-fit + minmax rather than a wrapping flex row: grid items are blockified
 * and stretch to their track, so the pair is always equal width — side by side
 * when two 220px tracks fit, otherwise one full-width button per row. The old
 * flex row left them ragged (229px vs 203px, left-aligned) at every width below
 * 540px and again at 768px, where .landing-1__content narrows to clear the
 * produce circle and they wrapped a second time.
 */
.landing-1__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: clamp(0.75rem, 2.5vw, 1rem);
}

/*
 * .btn--lg is a fixed 1.125rem / 2rem, which measured the same 229x54 at 320px
 * as at 1024px. Higher specificity than .btn--lg, so no !important needed.
 * white-space:normal overrides .btn's nowrap to keep a long label inside the
 * track instead of overflowing it.
 */
.landing-1__actions .btn {
    padding-inline: clamp(1rem, 4.5vw, 2rem);
    font-size: clamp(1rem, 0.93rem + 0.55vw, 1.125rem);
    white-space: normal;
}

/*
 * Only exists below 768px, where .landing-1::after is active and the produce
 * disc sits behind the copy. The description's translucent white costs real
 * contrast over the bright artwork, so it goes full-strength here, and the
 * shadow is what carries the few percent of glyph area the scrim alone cannot
 * lift to 4.5:1. Desktop keeps the translucent color and no shadow — there is
 * no overlap there.
 */
@media (max-width: 767.98px) {
    .landing-1__title,
    .landing-1__desc {
        text-shadow: 0 1px 2px rgba(8, 40, 12, 0.55), 0 0 16px rgba(8, 40, 12, 0.45);
    }

    .landing-1__desc {
        color: #fff;
    }
}

/*
 * Background layer: anchored to the section rather than the container so the
 * circle's cut edge lands flush with the viewport, and pinned to the top so it
 * reads as the banner artwork. Only the right 41% of the canvas is opaque, so
 * sizing by height paints a band roughly 0.73 x that height wide — which is
 * what the copy widths below have to clear.
 */
.landing-1__media {
    position: absolute;
    top: 0;
    right: -3%;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.landing-1__media img {
    display: block;
    width: auto;
    height: 100%;
    max-height: var(--landing-1-band);
    /* The global `img { max-width: 100% }` reset caps this at the media box,
       which is narrower than the height-derived width, so the 1.78:1 canvas
       was being squeezed into an ellipse. .landing-1 clips it with
       overflow:hidden, so the bleed cannot reach the viewport edge. */
    max-width: none;
}

@media (min-width: 768px) {
    .landing-1 {
        --landing-1-band: clamp(300px, 42vw, 420px);
    }

    /* Copy and circle own one side each, so nothing needs dimming. */
    .landing-1::after {
        content: none;
    }

    .landing-1__media {
        right: 0;
    }

    .landing-1__content {
        max-width: min(620px, calc(100% - 330px));
    }
}

@media (min-width: 1024px) {
    .landing-1 {
        --landing-1-band: clamp(440px, 46vh, 480px);
    }

    .landing-1__content {
        max-width: 620px;
    }
}

@media (min-width: 1280px) {
    /* Roomy enough for the circle to own the full height of the band. */
    .landing-1 {
        --landing-1-band: 100%;
    }
}

/* ==========================================================================
   Promotional Visual Image Banners
   ========================================================================== */

.promo-banners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

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

.promo-banner {
    position: relative;
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl) var(--space-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.promo-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.promo-banner--greens {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: #fff;
}

.promo-banner--fruits {
    background: linear-gradient(135deg, #C2410C 0%, #EA580C 100%);
    color: #fff;
}

.promo-banner--meat {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    color: #fff;
}

.promo-banner__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promo-banner__badge {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    width: fit-content;
}

.promo-banner__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.promo-banner__desc {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.45;
    margin: 0 0 var(--space-sm) 0;
}

.promo-banner .btn {
    width: fit-content;
}

.promo-banner__deco {
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 6rem;
    opacity: 0.2;
    pointer-events: none;
    user-select: none;
    transform: rotate(-10deg);
}

/* ── Services banner variants (B2B / Kalimati / Wholesale CTAs) ── */
.promo-banner--service-b2b {
    background: linear-gradient(135deg, #14532D 0%, #16A34A 100%);
    color: #fff;
}

.promo-banner--service-kalimati {
    background: linear-gradient(135deg, #7C2D12 0%, #EA580C 100%);
    color: #fff;
}

.promo-banner--service-wholesale {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    color: #fff;
}

/* ==========================================================================
   Kalimati Daily Market Prices (rendered by the kalimati-daily-prices plugin)
   ========================================================================== */

.section-badge--rates { background: #DCFCE7; color: #166534; }

.kalimati-prices-card {
    background: #FFFFFF;
    border: 1px solid rgba(46, 125, 50, 0.15);
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    padding: var(--space-xl);
}

.kalimati-prices-card .kalimati-prices-wrapper {
    margin: 0;
}

/* The section header already names this block, so drop the widget's own title. */
.kalimati-prices-card .kalimati-prices-header {
    display: none;
}

.kalimati-prices-card .kalimati-table-container {
    border-color: rgba(0, 0, 0, 0.08);
    max-height: 520px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.kalimati-prices-card .kalimati-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

@media (max-width: 600px) {
    .kalimati-prices-card {
        padding: var(--space-md);
    }

    .kalimati-prices-card .kalimati-table-container {
        max-height: none;
        overflow-y: visible;
        border: 0;
    }

    /* Inline rows: name + unit + average on line 1, min/max range on line 2. */
    .kalimati-prices-card .kalimati-table thead {
        display: none;
    }

    .kalimati-prices-card .kalimati-table tbody tr {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 2px 12px;
        margin-bottom: 0;
        padding: 9px 4px;
        border: 0;
        border-bottom: 1px solid #E5E7EB;
        border-radius: 0;
    }

    .kalimati-prices-card .kalimati-table tbody tr:last-child {
        border-bottom: 0;
    }

    .kalimati-prices-card .kalimati-table tbody td {
        display: flex;
        align-items: baseline;
        flex: 0 0 auto;
        width: auto;
        gap: 4px;
        padding: 0;
        border: 0;
        text-align: left;
        white-space: nowrap;
    }

    .kalimati-prices-card .kalimati-table tbody td::before {
        color: #94A3B8;
        content: attr(data-label) " ";
        display: inline;
        font-size: 0.6875rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .kalimati-prices-card .kalimati-table td[data-label="Minimum Price"]::before { content: "Min"; }
    .kalimati-prices-card .kalimati-table td[data-label="Maximum Price"]::before { content: "Max"; }
    .kalimati-prices-card .kalimati-table td[data-label="Average Price"]::before { content: "Avg"; }

    .kalimati-prices-card .kalimati-table tbody td.kalimati-number,
    .kalimati-prices-card .kalimati-table .kalimati-currency {
        display: none;
    }

    .kalimati-prices-card .kalimati-table tbody td.kalimati-commodity {
        background: none;
        color: var(--color-text);
        flex: 0 1 auto;
        font-size: 0.875rem;
        font-weight: 700;
        min-width: 0;
        padding: 0;
    }

    .kalimati-prices-card .kalimati-table tbody td.kalimati-commodity::before {
        display: none;
    }

    .kalimati-prices-card .kalimati-table tbody td[data-label="Unit"] {
        color: #94A3B8;
        font-size: 0.75rem;
    }

    .kalimati-prices-card .kalimati-table tbody td[data-label="Unit"]::before {
        display: none;
    }

    .kalimati-prices-card .kalimati-table tbody td.kalimati-price {
        font-size: 0.8125rem;
    }

    .kalimati-prices-card .kalimati-table tbody td.kalimati-price[data-label="Minimum Price"] {
        order: 3;
    }

    .kalimati-prices-card .kalimati-table tbody td.kalimati-price[data-label="Maximum Price"] {
        order: 4;
    }

    .kalimati-prices-card .kalimati-table tbody td.kalimati-price::before {
        color: #94A3B8;
    }

    .kalimati-prices-card .kalimati-table tbody td.kalimati-average {
        font-size: 0.875rem;
        margin-left: auto;
        order: 2;
    }
}

/* ==========================================================================
   Home Contact & Delivery Checker Section
   ========================================================================== */

.home-contact-card {
    background: #FFFFFF;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(46, 125, 50, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    padding: var(--space-2xl);
}

.home-contact-card__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (min-width: 1024px) {
    .home-contact-card__grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.home-contact-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--color-neutral-dark);
    margin: 4px 0 var(--space-sm) 0;
    line-height: 1.25;
}

.home-contact-desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.contact-channels-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-channel-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-channel-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: #F0FDF4;
    border: 1px solid rgba(46, 125, 50, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-channel-item strong {
    display: block;
    font-size: 0.875rem;
    color: var(--color-neutral-dark);
    margin-bottom: 2px;
}

.contact-channel-item a,
.contact-channel-item span {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-channel-item a:hover {
    text-decoration: underline;
}

.home-contact-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.checker-box {
    background: #F8FAF9;
    border: 1px solid rgba(46, 125, 50, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.pickup-highlight-banner {
    padding: var(--space-md);
    background: #FEFCE8;
    border: 1px solid #FEF08A;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    color: #854D0E;
}

.pickup-highlight-banner strong {
    display: block;
    margin-bottom: 2px;
}

.pickup-highlight-banner p { margin: 0; }

/* ==========================================================================
   9. Wholesale CTA Banner (front-page)
   ========================================================================== */

.section--wholesale-cta {
    background: linear-gradient(135deg, #1A1A2E 0%, #1B5E20 100%);
    color: #fff;
}

.wholesale-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 768px) {
    .wholesale-cta { grid-template-columns: 1fr auto; }
}

.wholesale-cta__eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: var(--space-sm);
}

.wholesale-cta__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #fff;
    margin-bottom: var(--space-md);
}

.wholesale-cta__desc {
    color: rgba(255,255,255,0.75);
    font-size: 1.0625rem;
    margin-bottom: var(--space-xl);
    max-width: 52ch;
}

.wholesale-cta__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

.wholesale-cta__stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.stat__number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-accent-light);
    line-height: 1;
}

.stat__label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
    text-align: center;
}

/* ==========================================================================
   10. Blog & Post Styles
   ========================================================================== */

/* Blog Archive & Grid */
.blog-grid,
.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

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

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

.blog-card,
.post-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    display: flex;
    flex-direction: column;
}

.blog-card:hover,
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(46, 125, 50, 0.25);
}

.blog-card__media,
.post-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f4f6;
}

.blog-card__img,
.post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__img,
.post-card:hover .post-card__thumb img {
    transform: scale(1.05);
}

.blog-card__category {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: rgba(27, 94, 32, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.blog-card__body,
.post-card__body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.blog-card__meta,
.post-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.blog-card__read-time {
    background: #F0FDF4;
    color: var(--color-primary-dark);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.blog-card__title,
.post-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.blog-card__title a,
.post-card__title a {
    color: var(--color-neutral-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-card__title a:hover,
.post-card__title a:hover {
    color: var(--color-primary);
}

.blog-card__excerpt p,
.post-card__excerpt p {
    font-size: 0.875rem;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 0;
}

.blog-card__footer {
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-neutral-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.blog-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card__avatar {
    border-radius: var(--radius-full);
    width: 28px;
    height: 28px;
    object-fit: cover;
}

.blog-card__author-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-neutral-dark);
}

.blog-card__read-more {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.blog-card__read-more:hover {
    color: var(--color-primary-dark);
    transform: translateX(3px);
}

/* Single Blog Layout */
.blog-single-main {
    padding-block: var(--space-2xl);
}

.blog-single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (min-width: 1024px) {
    .blog-single-layout {
        grid-template-columns: 1fr 340px;
    }
}

.single-entry {
    background: #fff;
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

@media (max-width: 640px) {
    .single-entry {
        padding: var(--space-lg);
    }
}

.single-entry__cat-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.single-entry__cat-pill {
    background: #F0FDF4;
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 1px solid rgba(46, 125, 50, 0.15);
    transition: all var(--transition-fast);
}

.single-entry__cat-pill:hover {
    background: var(--color-primary);
    color: #fff;
}

.single-entry__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-neutral-dark);
    margin-bottom: var(--space-lg);
}

.single-entry__meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-neutral-light);
    margin-bottom: var(--space-xl);
}

.single-entry__author-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.single-entry__avatar {
    border-radius: var(--radius-full);
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 2px solid var(--color-primary-light);
}

.single-entry__author-name {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-neutral-dark);
}

.single-entry__meta-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-entry__dot {
    color: var(--color-neutral-light);
}

/* Social Share */
.single-entry__share {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-entry__share-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-btn--fb { background: #1877F2; color: #fff; }
.share-btn--tw { background: #000000; color: #fff; }
.share-btn--wa { background: #25D366; color: #fff; }

.single-entry__featured-media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-2xl);
}

.single-entry__featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.single-entry__body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.single-entry__body h2,
.single-entry__body h3 {
    color: var(--color-neutral-dark);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.single-entry__body p {
    margin-bottom: var(--space-lg);
}

.single-entry__body ul,
.single-entry__body ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.single-entry__body blockquote {
    border-left: 4px solid var(--color-primary);
    background: #F0FDF4;
    padding: var(--space-md) var(--space-lg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    margin-block: var(--space-xl);
}

.single-entry__footer {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-neutral-light);
}

.single-entry__tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.tags-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.single-entry__tags a {
    display: inline-block;
    padding: 3px 10px;
    background: #F3F4F6;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: #4B5563;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.single-entry__tags a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Author Box */
.single-entry__author-box {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    background: #F8FAF9;
    border: 1px solid rgba(46, 125, 50, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.author-box__avatar {
    border-radius: var(--radius-full);
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

.author-box__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-neutral-dark);
    margin: 0 0 4px 0;
}

.author-box__bio {
    font-size: 0.875rem;
    color: #4B5563;
    line-height: 1.5;
    margin: 0;
}

/* Navigation between articles */
.single-entry__navigation {
    margin-top: var(--space-2xl);
}

.single-entry__navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .single-entry__navigation .nav-links {
        grid-template-columns: 1fr 1fr;
    }
}

.single-entry__navigation .nav-previous,
.single-entry__navigation .nav-next {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-neutral-light);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all var(--transition-base);
}

.single-entry__navigation .nav-previous:hover,
.single-entry__navigation .nav-next:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.nav-direction {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.nav-item-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-neutral-dark);
}

/* Blog Sidebar Widgets */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.sidebar-widget__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-neutral-dark);
    margin: 0 0 var(--space-md) 0;
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary-light);
}

.sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.sidebar-cat-list li a {
    color: #4B5563;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sidebar-cat-list li a:hover {
    color: var(--color-primary);
    font-weight: 600;
}

/* ==========================================================================
   11. 404 Error Page
   ========================================================================== */

.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: var(--space-4xl);
}

.error-404__content {
    text-align: center;
    max-width: 520px;
}

.error-404__icon { font-size: 5rem; margin-bottom: var(--space-lg); display: block; }
.error-404__title { font-size: 2.5rem; color: var(--color-neutral-dark); margin-bottom: var(--space-md); }
.error-404__message { color: var(--color-text-muted); font-size: 1.0625rem; margin-bottom: var(--space-xl); }
.error-404__actions { display: flex; gap: var(--space-md); justify-content: center; margin-bottom: var(--space-xl); flex-wrap: wrap; }
.error-404__search { margin-top: var(--space-xl); }

/* ==========================================================================
   12. No Results
   ========================================================================== */

.no-results {
    text-align: center;
    padding-block: var(--space-4xl);
}

.no-results__icon  { font-size: 4rem; display: block; margin-bottom: var(--space-lg); }
.no-results__title { font-size: 1.75rem; margin-bottom: var(--space-md); }

/* ==========================================================================
   13. Widget Styles
   ========================================================================== */

.widget { margin-bottom: var(--space-xl); }
.widget__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 2px solid var(--color-primary); color: var(--color-neutral-dark); }

/* ==========================================================================
   14. Sidebar
   ========================================================================== */

.sidebar { 
    order: -1;
}

@media (min-width: 1024px) {
    .sidebar { order: 0; }
}

/* ==========================================================================
   15. Search Form
   ========================================================================== */

.search-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--color-neutral-light);
    transition: border-color var(--transition-fast);
}

.search-form:focus-within { border-color: var(--color-primary); }

.search-field {
    flex: 1;
    padding: 0.625rem 1rem;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    background: #fff;
    color: var(--color-text);
}

.search-submit {
    padding: 0.625rem 1.25rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: background-color var(--transition-fast);
}

.search-submit:hover { background: var(--color-primary-dark); }

/* ==========================================================================
   16. Utilities
   ========================================================================== */

.visually-hidden,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.mt-0        { margin-top: 0; }

/* ==========================================================================
   17. WordPress Core Classes
   ========================================================================== */

.alignleft  { float: left; margin: 0 var(--space-lg) var(--space-lg) 0; }
.alignright { float: right; margin: 0 0 var(--space-lg) var(--space-lg); }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption  { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--color-text-muted); text-align: center; margin-top: var(--space-xs); }

/* ==========================================================================
   Enhanced Product Cards
   ========================================================================== */

.product-card--enhanced {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

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

/* Product Image & Media */
.product-card__media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-surface);
}

.product-card__image-wrap {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-card__image--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #999;
}

.placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.placeholder-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Badge System */
.product-card__badges {
    position: absolute;
    left: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-card__badges--top {
    top: 8px;
}

.product-card__badges--bottom {
    bottom: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.badge__icon {
    font-size: 0.875rem;
}

.badge__text {
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Badge Variants */
.badge--freshness {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.badge--freshness.freshness--today {
    background: rgba(56, 142, 60, 0.95);
}

.badge--freshness.freshness--fresh {
    background: rgba(76, 175, 80, 0.9);
}

.badge--freshness.freshness--good {
    background: rgba(255, 152, 0, 0.9);
}

.badge--sale {
    background: rgba(244, 67, 54, 0.95);
    color: white;
}

.badge--organic {
    background: rgba(139, 195, 74, 0.9);
    color: white;
}

.badge--pesticide-free {
    background: rgba(103, 58, 183, 0.9);
    color: white;
}

.badge--stock {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.badge--out-of-stock {
    background: rgba(158, 158, 158, 0.9);
    color: white;
}

.badge--low-stock {
    background: rgba(255, 152, 0, 0.9);
    color: white;
}

/* Hover Overlay */
.product-card__quick-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: white;
    color: var(--color-primary);
    transform: scale(1.1);
}

/* Product Body */
.product-card__body {
    padding: 16px;
}

.product-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
}

.meta-icon {
    font-size: 0.875rem;
}

.meta-text {
    font-weight: 500;
}

.product-card__title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.product-card__title-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-card__title-link:hover {
    color: var(--color-primary);
}

/* Rating */
.product-card__rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.rating-stars {
    display: flex;
    align-items: center;
}

.rating-count {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.rating-placeholder {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-style: italic;
}

/* Price Section */
.product-card__price-section {
    margin-bottom: 12px;
}

.product-card__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.product-card__price .price del {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 400;
    margin-right: 6px;
}

.product-card__wholesale-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 500;
}

.wholesale-icon {
    font-size: 0.875rem;
}

/* MOQ Display */
.product-card__moq {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #E65100;
    margin-bottom: 12px;
}

.moq-icon {
    font-size: 0.875rem;
}

/* Mobile Actions */
.product-card__mobile-actions {
    display: block;
}

@media (min-width: 768px) {
    .product-card__mobile-actions {
        display: none;
    }
}

/* Products Grid Layout */
.products--home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

@media (min-width: 1280px) {
    .products--home-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

/* WooCommerce Integration */
.woocommerce .products .product-card--enhanced .button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.woocommerce .products .product-card--enhanced .button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.woocommerce .products .product-card--enhanced .added_to_cart {
    background: var(--color-success);
    margin-left: 8px;
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* Product card loading state */
.product-card--enhanced.loading {
    opacity: 0.7;
    pointer-events: none;
}

.product-card--enhanced.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}