/*
 * AGRICRIS Family Group — Magazin / Archive Products (Editorial)
 * PHP: archive-product.php  |  JS: assets/js/archive-product.js
 * Design: editorial warm-cream (afg-), consistent cu front-page.php / despre-noi.php.
 * Self-contained: redeclara tokenii --c-* scopat pe #afg-shop (home.css nu se
 * incarca aici), astfel pagina nu depinde de body.home si nu polueaza global.
 * Incarcat pe: is_shop(), is_product_category(), is_product_tag().
 * ========================================================================== */

/* ==========================================================================
   RESET ASTRA + FUNDAL CREAM (clasa pusa pe body din template)
   ========================================================================== */
body.afg-light-page .site,
body.afg-light-page .site-content,
body.afg-light-page .ast-container,
body.afg-light-page #primary,
body.afg-light-page #content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: #FAF6F1 !important;
}
body.afg-light-page .ast-container { display: block !important; }
body.afg-light-page { background: #FAF6F1 !important; }
body.afg-light-page .ast-post-title,
body.afg-light-page .entry-header,
body.afg-light-page .ast-single-post .post-thumb { display: none !important; }

/* Ascunde structura WooCommerce default — pastram doar wrapper-ul nostru */
body.afg-light-page .ast-woocommerce-container > *:not(#afg-shop),
body.afg-light-page .woocommerce-breadcrumb,
body.afg-light-page .woocommerce-products-header,
body.afg-light-page .woocommerce-result-count,
body.afg-light-page .woocommerce-ordering,
body.afg-light-page ul.products {
    display: none !important;
}

/* ==========================================================================
   TOKENI + BAZA (scopate pe wrapper)
   ========================================================================== */
#afg-shop {
    --c-cream-50: #FDFBF7;
    --c-cream-100: #FAF6F1;
    --c-cream-200: #F1E9DC;
    --c-cream-300: #E8DCC8;
    --c-ink-900: #1F1812;
    --c-ink-700: #3D2C1F;
    --c-ink-500: #6E5A47;
    --c-ink-300: #A89684;
    --c-forest-700: #2D5016;
    --c-flame-900: #7C2D12;
    --c-flame-700: #9A3412;
    --c-flame-500: #C2410C;
    --c-amber-500: #D97706;
    --c-amber-400: #F59E0B;

    --f-display: 'Outfit', 'Times New Roman', serif;
    --f-text: 'Outfit', system-ui, sans-serif;
    --f-mono: 'JetBrains Mono', monospace;

    --r-md: 12px;
    --r-lg: 20px;

    --shadow-sm: 0 2px 6px rgba(31, 24, 18, 0.04), 0 1px 2px rgba(31, 24, 18, 0.06);
    --shadow-md: 0 10px 30px rgba(31, 24, 18, 0.08), 0 2px 6px rgba(31, 24, 18, 0.06);
    --shadow-lg: 0 30px 60px rgba(31, 24, 18, 0.18), 0 10px 20px rgba(31, 24, 18, 0.1);

    --t-fast: 0.25s ease;
    --t-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: var(--f-text);
    color: var(--c-ink-900);
    background: var(--c-cream-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: block;
}
#afg-shop *, #afg-shop *::before, #afg-shop *::after { box-sizing: border-box; }

#afg-shop .afg-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* ==========================================================================
   TIPOGRAFIE COMUNA (clonata din sistemul home)
   ========================================================================== */
#afg-shop .afg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-flame-700);
    padding: 8px 16px;
    border: 1px solid var(--c-cream-300);
    border-radius: 100px;
    background: var(--c-cream-50);
    margin-bottom: 28px;
}
#afg-shop .afg-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-flame-500);
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}
#afg-shop .afg-eyebrow--light {
    color: var(--c-amber-400);
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#afg-shop .afg-eyebrow--light::before {
    background: var(--c-amber-400);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25), 0 0 12px rgba(245, 158, 11, 0.6);
}

#afg-shop .afg-display {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--c-ink-900);
    margin-bottom: 24px;
}
#afg-shop .afg-display--light { color: #FAF6F1; }
#afg-shop .afg-mark {
    color: var(--c-flame-700);
    font-weight: 400;
    position: relative;
    white-space: nowrap;
}
#afg-shop .afg-mark::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 0.35em;
    background: rgba(217, 119, 6, 0.18);
    z-index: -1;
}
#afg-shop .afg-mark--light { color: var(--c-amber-400); }
#afg-shop .afg-mark--light::after { background: rgba(245, 158, 11, 0.28); }

#afg-shop .afg-prose {
    font-size: 1.08rem;
    line-height: 1.78;
    color: var(--c-ink-700);
    margin-bottom: 18px;
    max-width: 58ch;
    font-weight: 400;
}
#afg-shop .afg-prose strong { color: var(--c-ink-900); font-weight: 600; }
#afg-shop .afg-prose--center { margin-left: auto; margin-right: auto; text-align: center; }
#afg-shop .afg-prose--light {
    color: rgba(253, 248, 243, 0.95);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

#afg-shop .afg-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 72px;
}

#afg-shop .afg-signature {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-ink-500);
}
#afg-shop .afg-signature__line { width: 40px; height: 1px; background: var(--c-ink-300); }

/* ==========================================================================
   BUTOANE
   ========================================================================== */
#afg-shop .afg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-family: var(--f-text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 100px;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--t-smooth);
    letter-spacing: 0.01em;
}
#afg-shop .afg-btn--solid {
    background: var(--c-ink-900);
    color: var(--c-cream-50);
    border-color: var(--c-ink-900);
}
#afg-shop .afg-btn--solid:hover {
    background: var(--c-flame-700);
    border-color: var(--c-flame-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(154, 52, 18, 0.25);
}
#afg-shop .afg-btn--ghost {
    background: transparent;
    color: #FAF6F1;
    border-color: rgba(250, 246, 241, 0.4);
}
#afg-shop .afg-btn--ghost:hover {
    background: rgba(250, 246, 241, 0.12);
    border-color: #FAF6F1;
}
#afg-shop .afg-btn--dark-ghost {
    background: transparent;
    color: var(--c-ink-900);
    border-color: var(--c-ink-300);
}
#afg-shop .afg-btn--dark-ghost:hover {
    background: var(--c-ink-900);
    color: var(--c-cream-50);
    border-color: var(--c-ink-900);
    transform: translateY(-2px);
}

/* ==========================================================================
   REVEAL
   ========================================================================== */
#afg-shop .afg-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--t-smooth), transform 0.9s var(--t-smooth);
}
#afg-shop .afg-reveal.is-visible { opacity: 1; transform: translateY(0); }
#afg-shop .afg-reveal--delay { transition-delay: 0.15s; }
#afg-shop .afg-reveal--delay-2 { transition-delay: 0.3s; }
#afg-shop .afg-reveal--delay-3 { transition-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
    #afg-shop .afg-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   1. HERO MAGAZIN
   ========================================================================== */
#afg-shop .afg-shop-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 62vh;
    overflow: hidden;
    color: #FAF6F1;
    isolation: isolate;
}
#afg-shop .afg-shop-hero__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #2D1810, #7C2D12); }
#afg-shop .afg-shop-hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.05) contrast(1.05) brightness(0.9);
    animation: afgShopZoom 18s ease-out forwards;
}
@keyframes afgShopZoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
#afg-shop .afg-shop-hero__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(105deg, rgba(8,4,2,0.85) 0%, rgba(8,4,2,0.5) 45%, rgba(8,4,2,0.3) 75%, rgba(8,4,2,0.5) 100%),
        linear-gradient(180deg, rgba(8,4,2,0.55) 0%, rgba(8,4,2,0) 30%, rgba(8,4,2,0) 55%, rgba(8,4,2,0.9) 100%),
        radial-gradient(ellipse at 22% 65%, rgba(194,65,12,0.18) 0%, transparent 55%);
}
#afg-shop .afg-shop-hero__inner {
    position: relative;
    z-index: 1;
    padding: clamp(170px, 20vh, 230px) 32px clamp(70px, 10vh, 110px);
}
#afg-shop .afg-shop-hero__title {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    max-width: 18ch;
    color: #FAF6F1;
    text-shadow: 0 2px 24px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.7);
}
#afg-shop .afg-shop-hero__title em {
    font-style: italic;
    font-weight: 300;
    color: var(--c-amber-400);
    text-shadow: 0 2px 24px rgba(0,0,0,0.85), 0 0 30px rgba(245,158,11,0.45);
}
#afg-shop .afg-shop-hero__lead {
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
    line-height: 1.65;
    color: rgba(253,248,243,0.96);
    max-width: 60ch;
    margin-bottom: 26px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.6);
}
#afg-shop .afg-shop-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(250,246,241,0.9);
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
#afg-shop .afg-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-amber-400); }

/* ==========================================================================
   2. CATALOG — layout sidebar + content
   ========================================================================== */
#afg-shop .afg-shop-catalog {
    padding: 90px 0 120px;
    background: var(--c-cream-100);
}
#afg-shop .afg-shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}
@media (min-width: 992px) {
    #afg-shop .afg-shop-layout {
        grid-template-columns: 280px 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   3. SIDEBAR — cautare + filtru
   ========================================================================== */
#afg-shop .afg-shop-sidebar { position: static; }
@media (min-width: 992px) {
    #afg-shop .afg-shop-sidebar { position: sticky; top: 110px; }
}
#afg-shop .afg-shop-panel {
    background: #fff;
    border: 1px solid var(--c-cream-300);
    border-radius: var(--r-lg);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
}
#afg-shop .afg-shop-search { position: relative; margin-bottom: 28px; }
#afg-shop .afg-shop-search input {
    width: 100%;
    padding: 13px 16px 13px 46px;
    background: var(--c-cream-50);
    border: 1px solid var(--c-cream-300);
    border-radius: 100px;
    color: var(--c-ink-900);
    font-family: var(--f-text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
#afg-shop .afg-shop-search input::placeholder { color: var(--c-ink-300); }
#afg-shop .afg-shop-search input:focus {
    border-color: var(--c-flame-500);
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12);
}
#afg-shop .afg-shop-search svg {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    color: var(--c-ink-300);
    pointer-events: none;
}
#afg-shop .afg-shop-widget-title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--c-ink-900);
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 3px solid var(--c-flame-500);
}
#afg-shop .afg-shop-select-wrap { width: 100%; }

/* SELECT-uri (filtru + sortare) — aspect editorial cream */
#afg-shop #custom-shop-filter,
#afg-shop #custom-shop-sort {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background-color: var(--c-cream-50);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E5A47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    border: 1px solid var(--c-cream-300);
    color: var(--c-ink-900);
    padding: 12px 42px 12px 16px;
    border-radius: var(--r-md);
    font-family: var(--f-text);
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
#afg-shop #custom-shop-filter:focus,
#afg-shop #custom-shop-sort:focus {
    border-color: var(--c-flame-500);
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12);
}
#afg-shop #custom-shop-filter option,
#afg-shop #custom-shop-sort option {
    background: #fff;
    color: var(--c-ink-900);
}

/* ==========================================================================
   4. MAIN + TOOLBAR
   ========================================================================== */
#afg-shop .afg-shop-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}
#afg-shop .afg-shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: var(--c-cream-50);
    border: 1px solid var(--c-cream-300);
    padding: 14px 22px;
    border-radius: var(--r-md);
    gap: 14px;
}
#afg-shop .afg-shop-count {
    font-size: 0.92rem;
    color: var(--c-ink-500);
}
#afg-shop .afg-shop-count span {
    color: var(--c-flame-700);
    font-weight: 700;
    font-family: var(--f-mono);
}
#afg-shop .afg-shop-sort select { min-width: 200px; }

/* ==========================================================================
   5. GRID PRODUSE — look identic cardurilor home (.afg-product)
   ========================================================================== */
#afg-shop .afg-products__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
    width: 100%;
}
@media (min-width: 600px) {
    #afg-shop .afg-products__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
    #afg-shop .afg-products__grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
}

#afg-shop .afg-product {
    background: #fff;
    border: 1px solid var(--c-cream-300);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-smooth), box-shadow var(--t-smooth), border-color var(--t-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}
#afg-shop .afg-product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-flame-500);
}
#afg-shop .afg-product__media {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: var(--c-cream-200);
}
#afg-shop .afg-product__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--t-smooth), filter 0.6s var(--t-smooth);
    filter: saturate(1.05) contrast(1.04);
}
#afg-shop .afg-product:hover .afg-product__media img {
    transform: scale(1.08);
    filter: saturate(1.12) contrast(1.06);
}
#afg-shop .afg-product__body {
    padding: 28px 28px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
#afg-shop .afg-product__rank {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-flame-500);
    margin-bottom: 12px;
}
#afg-shop .afg-product__title {
    font-family: var(--f-display);
    font-size: 1.7rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--c-ink-900);
    margin-bottom: 12px;
}
#afg-shop .afg-product__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast);
}
#afg-shop .afg-product__title a:hover { color: var(--c-flame-700); }
#afg-shop .afg-product__desc {
    color: var(--c-ink-500);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#afg-shop .afg-product__footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--c-cream-300);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
#afg-shop .afg-product__price {
    font-family: var(--f-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-ink-900);
    line-height: 1.1;
}
#afg-shop .afg-product__price .woocommerce-Price-currencySymbol {
    font-size: 0.78em;
    opacity: 0.7;
}
#afg-shop .afg-product__price del { color: var(--c-ink-300); font-weight: 400; font-size: 0.85em; margin-right: 6px; }
#afg-shop .afg-product__price ins { text-decoration: none; }
#afg-shop .afg-product__price-note {
    font-size: 0.92rem;
    color: var(--c-ink-500);
    font-style: italic;
    font-family: var(--f-text);
}

/* CTA card — varianta editorial (link subliniat) + varianta cos (pill solid) */
#afg-shop .afg-product__cta {
    font-family: var(--f-text);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--c-ink-900);
    text-decoration: none;
    border-bottom: 1.5px solid var(--c-ink-900);
    padding-bottom: 3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
#afg-shop .afg-product__cta:hover {
    color: var(--c-flame-700);
    border-color: var(--c-flame-700);
    transform: translateX(4px);
}
#afg-shop .afg-product__cta--cart {
    border: 1.5px solid var(--c-ink-900);
    border-radius: 100px;
    padding: 10px 20px;
    background: var(--c-ink-900);
    color: var(--c-cream-50);
}
#afg-shop .afg-product__cta--cart:hover {
    background: var(--c-flame-700);
    border-color: var(--c-flame-700);
    color: var(--c-cream-50);
    transform: translateY(-2px);
}

/* ==========================================================================
   6. EMPTY STATE
   ========================================================================== */
#afg-shop .afg-shop-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--c-cream-50);
    border-radius: var(--r-lg);
    border: 1px dashed var(--c-ink-300);
    color: var(--c-ink-500);
    gap: 16px;
}
#afg-shop .afg-shop-empty svg {
    width: 48px; height: 48px;
    stroke: var(--c-flame-500);
    opacity: 0.6;
}
#afg-shop .afg-shop-empty p { font-size: 1rem; margin: 0; color: var(--c-ink-700); }
#afg-shop .afg-shop-empty small {
    font-size: 0.82rem;
    color: var(--c-ink-300);
    font-family: var(--f-mono);
}

/* ==========================================================================
   7. NOTICE WOOCOMMERCE
   ========================================================================== */
#afg-shop .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
    width: 100%;
    order: -1;
}
#afg-shop .woocommerce-message,
#afg-shop .woocommerce-info,
#afg-shop .woocommerce-error {
    background-color: #fff !important;
    color: var(--c-ink-900) !important;
    border: 1px solid var(--c-cream-300) !important;
    border-left: 4px solid var(--c-flame-500) !important;
    padding: 1.1rem 1.4rem !important;
    border-radius: var(--r-md);
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 1.5rem !important;
    font-family: var(--f-text);
    box-shadow: var(--shadow-sm);
}
#afg-shop .woocommerce-error { border-left-color: #B91C1C !important; }
#afg-shop .woocommerce-message { border-left-color: var(--c-forest-700) !important; }
#afg-shop .woocommerce-message .button,
#afg-shop .woocommerce-info .button,
#afg-shop .woocommerce-error .button {
    background: var(--c-ink-900) !important;
    color: var(--c-cream-50) !important;
    padding: 9px 18px !important;
    border-radius: 100px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: none !important;
    margin-left: auto !important;
    order: 2 !important;
    white-space: nowrap;
    transition: background var(--t-fast) !important;
}
#afg-shop .woocommerce-message .button:hover,
#afg-shop .woocommerce-info .button:hover,
#afg-shop .woocommerce-error .button:hover {
    background: var(--c-flame-700) !important;
}

/* ==========================================================================
   8. PAGINARE WOOCOMMERCE
   ========================================================================== */
#afg-shop .afg-shop-pagination { margin-top: 8px; }
#afg-shop .woocommerce-pagination ul,
#afg-shop .afg-shop-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    border: none !important;
}
#afg-shop .woocommerce-pagination ul li { margin: 0; border: none !important; }
#afg-shop .woocommerce-pagination ul li a,
#afg-shop .woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--c-cream-300) !important;
    border-radius: 100px;
    background: #fff;
    color: var(--c-ink-700);
    font-family: var(--f-mono);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--t-fast);
}
#afg-shop .woocommerce-pagination ul li a:hover {
    background: var(--c-ink-900);
    color: var(--c-cream-50);
    border-color: var(--c-ink-900) !important;
}
#afg-shop .woocommerce-pagination ul li span.current {
    background: var(--c-flame-700);
    color: var(--c-cream-50);
    border-color: var(--c-flame-700) !important;
}

/* ==========================================================================
   9. CTA FINAL
   ========================================================================== */
#afg-shop .afg-shop-cta {
    position: relative;
    padding: 150px 0;
    color: #FAF6F1;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
#afg-shop .afg-shop-cta__bg { position: absolute; inset: 0; z-index: -1; }
#afg-shop .afg-shop-cta__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(0.95) contrast(1.05) brightness(0.8);
}
#afg-shop .afg-shop-cta__bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(120deg, rgba(15,8,4,0.92) 0%, rgba(28,58,18,0.78) 60%, rgba(15,8,4,0.88) 100%),
        radial-gradient(ellipse at 30% 70%, rgba(194,65,12,0.18) 0%, transparent 55%);
    box-shadow: inset 0 0 240px rgba(0,0,0,0.55);
}
#afg-shop .afg-shop-cta__inner { max-width: 760px; margin: 0 auto; }
#afg-shop .afg-shop-cta__inner .afg-eyebrow { margin-left: auto; margin-right: auto; }
#afg-shop .afg-shop-cta__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}

/* ==========================================================================
   10. ANIMATII FILTRARE JS (pastrate din logica veche)
   ========================================================================== */
#afg-shop .afg-product.fade-in { animation: afgFadeInProduct 0.35s ease forwards; }
#afg-shop .afg-product[style*="display: none"] { animation: none; }
@keyframes afgFadeInProduct {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    #afg-shop .afg-wrap { padding: 0 20px; }
    #afg-shop .afg-shop-catalog { padding: 70px 0 90px; }
    #afg-shop .afg-shop-cta { padding: 90px 0; }
    #afg-shop .afg-shop-sort select { width: 100%; min-width: 0; }
    #afg-shop .afg-shop-count { width: 100%; text-align: center; }
    #afg-shop .afg-shop-toolbar { justify-content: center; }
    #afg-shop .afg-product__body { padding: 24px 22px 26px; }
    #afg-shop .afg-product__title { font-size: 1.5rem; }
}
