/*
 * AGRICRIS Family Group — Cos (Editorial)
 * PHP: page-cos.php  |  JS: niciunul dedicat (logica cos in main-scripts.js)
 * Design: editorial warm-cream (afg-), consistent cu page-despre-noi.php.
 * Self-contained: redeclara tokenii --c-* scopat pe #afg-cart (home.css NU se
 * incarca aici). Stilizeaza elementele WooCommerce randate INAUNTRUL wrapper-ului
 * (#afg-cart .woocommerce, .cart_totals, table.cart, .coupon, .button etc.)
 * fara a inlocui markup-ul generat de shortcode.
 * ========================================================================== */

/* ==========================================================================
   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 .woocommerce-breadcrumb,
body.afg-light-page .ast-single-post .post-thumb { display: none !important; }

/* ==========================================================================
   TOKENI + BAZA (scopate pe wrapper)
   ========================================================================== */
#afg-cart {
    --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-cart *, #afg-cart *::before, #afg-cart *::after { box-sizing: border-box; }

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

/* ==========================================================================
   TIPOGRAFIE COMUNA (clonata din sistemul home / despre-noi)
   ========================================================================== */
#afg-cart .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-cart .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-cart .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-cart .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-cart .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-cart .afg-display--light { color: #FAF6F1; }
#afg-cart .afg-mark {
    color: var(--c-flame-700);
    font-weight: 400;
    position: relative;
    white-space: nowrap;
}
#afg-cart .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-cart .afg-mark--light { color: var(--c-amber-400); }
#afg-cart .afg-mark--light::after { background: rgba(245, 158, 11, 0.28); }

#afg-cart .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-cart .afg-prose strong { color: var(--c-ink-900); font-weight: 600; }
#afg-cart .afg-prose--center { margin-left: auto; margin-right: auto; text-align: center; }
#afg-cart .afg-prose--light {
    color: rgba(253, 248, 243, 0.95);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

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

#afg-cart .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-cart .afg-signature__line { width: 40px; height: 1px; background: var(--c-ink-300); }

#afg-cart .afg-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-amber-400); }

/* ==========================================================================
   BUTOANE (sistem afg)
   ========================================================================== */
#afg-cart .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-cart .afg-btn--solid {
    background: var(--c-ink-900);
    color: var(--c-cream-50);
    border-color: var(--c-ink-900);
}
#afg-cart .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-cart .afg-btn--ghost {
    background: transparent;
    color: #FAF6F1;
    border-color: rgba(250, 246, 241, 0.4);
}
#afg-cart .afg-btn--ghost:hover {
    background: rgba(250, 246, 241, 0.12);
    border-color: #FAF6F1;
}
#afg-cart .afg-btn--dark-ghost {
    background: transparent;
    color: var(--c-ink-900);
    border-color: var(--c-ink-300);
}
#afg-cart .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-cart .afg-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--t-smooth), transform 0.9s var(--t-smooth);
}
#afg-cart .afg-reveal.is-visible { opacity: 1; transform: translateY(0); }
#afg-cart .afg-reveal--delay { transition-delay: 0.15s; }
#afg-cart .afg-reveal--delay-2 { transition-delay: 0.3s; }
#afg-cart .afg-reveal--delay-3 { transition-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
    #afg-cart .afg-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   1. HERO / INTRO BAND
   ========================================================================== */
#afg-cart .afg-cart-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 52vh;
    overflow: hidden;
    color: #FAF6F1;
    isolation: isolate;
}
#afg-cart .afg-cart-hero__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #2D1810, #7C2D12); }
#afg-cart .afg-cart-hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.05) contrast(1.05) brightness(0.9);
    animation: afgCartZoom 18s ease-out forwards;
}
@keyframes afgCartZoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
#afg-cart .afg-cart-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-cart .afg-cart-hero__inner {
    position: relative;
    z-index: 1;
    padding: clamp(150px, 18vh, 210px) 32px clamp(60px, 9vh, 100px);
}
#afg-cart .afg-cart-hero__title {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
    max-width: 16ch;
    color: #FAF6F1;
    text-shadow: 0 2px 24px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.7);
}
#afg-cart .afg-cart-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-cart .afg-cart-hero__lead {
    font-size: clamp(1.02rem, 1.4vw, 1.22rem);
    line-height: 1.65;
    color: rgba(253,248,243,0.96);
    max-width: 52ch;
    margin-bottom: 26px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.6);
}
#afg-cart .afg-cart-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--f-mono);
    font-size: 0.76rem;
    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);
}

/* ==========================================================================
   2. CART BODY (banda cream care contine cart-ul WooCommerce)
   ========================================================================== */
#afg-cart .afg-cart-body {
    padding: 90px 0 130px;
    background: var(--c-cream-100);
}
#afg-cart .afg-cart-shell { width: 100%; }

/* ==========================================================================
   3. WOOCOMMERCE — LAYOUT GENERAL (form produse + sumar)
   ========================================================================== */
#afg-cart .woocommerce {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}
#afg-cart .woocommerce::before,
#afg-cart .woocommerce::after { display: none !important; }

#afg-cart .woocommerce-cart-form,
#afg-cart .cart-collaterals {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    min-width: 0;
}

@media (min-width: 992px) {
    #afg-cart .woocommerce {
        display: grid !important;
        grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr) !important;
        column-gap: 32px;
        row-gap: 28px;
        align-items: start;
    }
    #afg-cart .woocommerce-cart-form { grid-column: 1; }
    #afg-cart .cart-collaterals { grid-column: 2; align-self: start; }
}

/* Cos gol: WooCommerce nu genereaza grid-ul standard (lipsesc .cart_item) */
#afg-cart .woocommerce:not(:has(tr.cart_item)) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    max-width: 760px !important;
    margin: 0 auto !important;
}

/* ==========================================================================
   4. NOTIFICARI WOOCOMMERCE
   ========================================================================== */
#afg-cart .woocommerce-notices-wrapper { width: 100%; margin-bottom: 28px; }
#afg-cart .woocommerce-message,
#afg-cart .woocommerce-error,
#afg-cart .woocommerce-info {
    background: var(--c-cream-50) !important;
    color: var(--c-ink-700) !important;
    border: 1px solid var(--c-cream-300) !important;
    border-left: 4px solid var(--c-flame-500) !important;
    padding: 16px 22px !important;
    border-radius: var(--r-md) !important;
    box-shadow: var(--shadow-sm) !important;
    font-size: 0.98rem !important;
    list-style: none !important;
}
#afg-cart .woocommerce-error { border-left-color: #B91C1C !important; }
#afg-cart .woocommerce-message .button,
#afg-cart .woocommerce-info .button {
    background: var(--c-ink-900) !important;
    color: var(--c-cream-50) !important;
    border: 1.5px solid var(--c-ink-900) !important;
    border-radius: 100px !important;
    padding: 8px 20px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all var(--t-smooth) !important;
}
#afg-cart .woocommerce-message .button:hover,
#afg-cart .woocommerce-info .button:hover {
    background: var(--c-flame-700) !important;
    border-color: var(--c-flame-700) !important;
}

/* ==========================================================================
   5. TABELUL CU PRODUSE (CART TABLE) — card editorial
   ========================================================================== */
#afg-cart table.cart,
#afg-cart table.shop_table {
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 14px !important;
    margin: 0 !important;
    width: 100% !important;
    background: transparent !important;
    table-layout: fixed !important;
}

/* Reset fundaluri zebra puse de Astra */
#afg-cart table.shop_table thead,
#afg-cart table.shop_table thead tr,
#afg-cart table.shop_table tbody tr:nth-child(2n),
#afg-cart table.shop_table tbody tr:nth-child(odd) {
    background-color: transparent !important;
    background: transparent !important;
}

#afg-cart table.shop_table thead th {
    background: transparent !important;
    color: var(--c-ink-500) !important;
    font-family: var(--f-mono) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 0 22px 8px !important;
    text-align: left !important;
}

/* Randul produs = card cream */
#afg-cart table.shop_table tbody tr.cart_item {
    background: var(--c-cream-50) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform var(--t-smooth), box-shadow var(--t-smooth) !important;
}
#afg-cart table.shop_table tbody tr.cart_item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}
#afg-cart table.shop_table tbody td {
    border: none !important;
    border-top: 1px solid var(--c-cream-300) !important;
    border-bottom: 1px solid var(--c-cream-300) !important;
    padding: 20px 22px !important;
    color: var(--c-ink-700) !important;
    vertical-align: middle !important;
}
#afg-cart table.shop_table tr.cart_item td:first-child {
    border-left: 1px solid var(--c-cream-300) !important;
    border-top-left-radius: var(--r-md) !important;
    border-bottom-left-radius: var(--r-md) !important;
}
#afg-cart table.shop_table tr.cart_item td:last-child {
    border-right: 1px solid var(--c-cream-300) !important;
    border-top-right-radius: var(--r-md) !important;
    border-bottom-right-radius: var(--r-md) !important;
}

/* Latimi coloane */
#afg-cart table.cart td.product-thumbnail { width: 96px; }
#afg-cart table.cart td.product-remove { width: 52px; text-align: center !important; }
#afg-cart table.cart th.product-name { width: 40%; }
#afg-cart table.cart td.product-name {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

/* Poza produs */
#afg-cart table.cart img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover !important;
    border-radius: var(--r-md) !important;
    border: 1px solid var(--c-cream-300) !important;
}

/* Nume produs */
#afg-cart table.cart td.product-name a {
    color: var(--c-ink-900) !important;
    font-family: var(--f-display) !important;
    font-weight: 400 !important;
    font-size: 1.18rem !important;
    text-decoration: none !important;
    transition: color var(--t-fast) !important;
}
#afg-cart table.cart td.product-name a:hover { color: var(--c-flame-700) !important; }

/* Detalii configurare (item meta din carucior) */
#afg-cart table.cart td.product-name .variation,
#afg-cart table.cart td.product-name dl.variation {
    font-size: 0.86rem !important;
    color: var(--c-ink-500) !important;
    margin-top: 8px !important;
    line-height: 1.5 !important;
}
#afg-cart table.cart td.product-name dl.variation dt { font-weight: 600 !important; color: var(--c-ink-700) !important; }

/* Preturi */
#afg-cart table.cart td.product-price,
#afg-cart table.cart td.product-subtotal {
    font-family: var(--f-mono) !important;
    font-weight: 600 !important;
    color: var(--c-flame-700) !important;
    white-space: nowrap !important;
    text-align: right !important;
}

/* Cantitate */
#afg-cart .quantity input.qty,
#afg-cart table.cart input[type="number"] {
    background: #fff !important;
    color: var(--c-ink-900) !important;
    border: 1px solid var(--c-cream-300) !important;
    border-radius: var(--r-md) !important;
    padding: 10px 12px !important;
    width: 72px !important;
    text-align: center !important;
    font-family: var(--f-mono) !important;
    outline: none !important;
    transition: border-color var(--t-fast) !important;
}
#afg-cart .quantity input.qty:focus,
#afg-cart table.cart input:focus,
#afg-cart .coupon input.input-text:focus {
    border-color: var(--c-flame-500) !important;
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12) !important;
}

/* Buton X (stergere produs) */
#afg-cart a.remove {
    color: var(--c-flame-700) !important;
    background: rgba(154, 52, 18, 0.08) !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 28px !important;
    font-size: 1.1rem !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    margin: 0 auto !important;
    transition: all var(--t-fast) !important;
}
#afg-cart a.remove:hover {
    background: var(--c-flame-700) !important;
    color: #fff !important;
}

/* ==========================================================================
   6. ACTIONS — CUPON + UPDATE COS
   ========================================================================== */
#afg-cart table.cart td.actions {
    background: transparent !important;
    border: none !important;
    padding: 24px 0 0 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}
#afg-cart .actions .coupon {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}
#afg-cart .coupon input.input-text {
    background: #fff !important;
    color: var(--c-ink-900) !important;
    border: 1px solid var(--c-cream-300) !important;
    border-radius: 100px !important;
    padding: 0 20px !important;
    height: 48px !important;
    min-width: 230px !important;
    outline: none !important;
    font-family: var(--f-text) !important;
}
#afg-cart .coupon input::placeholder { color: var(--c-ink-300) !important; }

/* Toate butoanele WooCommerce -> stil afg-btn */
#afg-cart .button,
#afg-cart button.button,
#afg-cart input.button,
#afg-cart .actions button[name="update_cart"] {
    background: transparent !important;
    color: var(--c-ink-900) !important;
    border: 1.5px solid var(--c-ink-300) !important;
    height: 48px !important;
    padding: 0 26px !important;
    border-radius: 100px !important;
    font-family: var(--f-text) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all var(--t-smooth) !important;
    float: none !important;
}
#afg-cart .button:hover:not(:disabled),
#afg-cart button.button:hover:not(:disabled),
#afg-cart .actions button[name="update_cart"]:hover:not(:disabled) {
    background: var(--c-ink-900) !important;
    color: var(--c-cream-50) !important;
    border-color: var(--c-ink-900) !important;
    transform: translateY(-2px) !important;
}
#afg-cart .button:disabled,
#afg-cart .actions button[name="update_cart"]:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}
#afg-cart .actions button[name="update_cart"] { margin-left: auto !important; }

/* ==========================================================================
   7. SUMARUL COMENZII (CART TOTALS)
   ========================================================================== */
#afg-cart .cart-collaterals { width: 100% !important; }
#afg-cart .cart_totals {
    background: var(--c-ink-900) !important;
    border: 1px solid var(--c-ink-700) !important;
    border-radius: var(--r-lg) !important;
    padding: 32px 34px !important;
    width: 100% !important;
    box-shadow: var(--shadow-lg) !important;
    float: none !important;
    position: sticky;
    top: 110px;
}
#afg-cart .cart_totals h2 {
    background: transparent !important;
    color: var(--c-cream-50) !important;
    font-family: var(--f-display) !important;
    font-weight: 400 !important;
    font-size: 1.6rem !important;
    margin: 0 0 22px !important;
    border-bottom: 1px solid rgba(250,246,241,0.12) !important;
    padding-bottom: 16px !important;
}
#afg-cart .cart_totals table {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    margin-bottom: 28px !important;
}
#afg-cart .cart_totals table tr,
#afg-cart .cart_totals table tbody,
#afg-cart .cart_totals table tr:nth-child(even),
#afg-cart .cart_totals table tr:nth-child(odd) {
    background: transparent !important;
}
#afg-cart .cart_totals th,
#afg-cart .cart_totals td {
    background: transparent !important;
    border: none !important;
    padding: 14px 0 !important;
}
#afg-cart .cart_totals th {
    font-weight: 500 !important;
    color: rgba(250,246,241,0.7) !important;
    text-align: left !important;
}
#afg-cart .cart_totals td {
    text-align: right !important;
    font-weight: 600 !important;
    font-family: var(--f-mono) !important;
    color: var(--c-cream-50) !important;
}
#afg-cart .cart_totals td .woocommerce-Price-amount,
#afg-cart .cart_totals td .amount { color: var(--c-cream-50) !important; }
#afg-cart .cart_totals tr.order-total th,
#afg-cart .cart_totals tr.order-total td {
    border-top: 1px dashed rgba(245,158,11,0.4) !important;
    font-size: 1.25rem !important;
    padding-top: 20px !important;
}
#afg-cart .cart_totals tr.order-total td,
#afg-cart .cart_totals tr.order-total td .woocommerce-Price-amount,
#afg-cart .cart_totals tr.order-total td .amount { color: var(--c-amber-400) !important; }

/* Buton Finalizare comanda (Proceed to checkout) -> flacara */
#afg-cart .wc-proceed-to-checkout { padding: 0 !important; }
#afg-cart .wc-proceed-to-checkout .checkout-button,
#afg-cart .wc-proceed-to-checkout a.button {
    background: linear-gradient(135deg, var(--c-flame-700), var(--c-amber-500)) !important;
    color: #fff !important;
    padding: 17px 24px !important;
    border-radius: 100px !important;
    border: none !important;
    font-family: var(--f-text) !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-decoration: none !important;
    transition: all var(--t-smooth) !important;
}
#afg-cart .wc-proceed-to-checkout .checkout-button:hover,
#afg-cart .wc-proceed-to-checkout a.button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 34px rgba(154, 52, 18, 0.4) !important;
}

/* ==========================================================================
   8. STARE COS GOL (EMPTY STATE)
   ========================================================================== */
#afg-cart .cart-empty.woocommerce-info {
    font-size: 0 !important;
    background: var(--c-cream-50) !important;
    border: 2px dashed var(--c-cream-300) !important;
    border-left: 2px dashed var(--c-cream-300) !important;
    border-radius: var(--r-lg) !important;
    padding: 64px 40px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 24px !important;
    max-width: 760px;
    box-shadow: none !important;
}
#afg-cart .cart-empty.woocommerce-info::before {
    content: '';
    width: 64px; height: 64px;
    margin-bottom: 22px;
    background: radial-gradient(circle at 30% 30%, var(--c-amber-400), var(--c-flame-700));
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(217,119,6,0.12), 0 10px 24px rgba(154,52,18,0.25);
    display: block;
}
#afg-cart .cart-empty.woocommerce-info::after {
    content: "Coșul tău e gol deocamdată. Alege-ți sortimentul de peleți și pregătește-ți iarna fără griji.";
    font-size: 1.12rem !important;
    color: var(--c-ink-500) !important;
    line-height: 1.7;
    display: block;
    max-width: 44ch;
    font-family: var(--f-text) !important;
}
#afg-cart .return-to-shop {
    text-align: center !important;
    margin: 4px auto 0 !important;
    width: 100%;
}
#afg-cart .return-to-shop .button.wc-backward {
    background: var(--c-ink-900) !important;
    color: var(--c-cream-50) !important;
    padding: 16px 40px !important;
    border-radius: 100px !important;
    font-size: 0 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    border: 1.5px solid var(--c-ink-900) !important;
    transition: all var(--t-smooth) !important;
}
#afg-cart .return-to-shop .button.wc-backward::after {
    content: "Vezi sortimentele";
    font-size: 0.98rem !important;
    font-family: var(--f-text) !important;
}
#afg-cart .return-to-shop .button.wc-backward:hover {
    background: var(--c-flame-700) !important;
    border-color: var(--c-flame-700) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(154, 52, 18, 0.25) !important;
}

/* ==========================================================================
   9. BANDA DE INCREDERE (markup propriu)
   ========================================================================== */
#afg-cart .afg-cart-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--c-cream-300);
}
#afg-cart .afg-cart-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
#afg-cart .afg-cart-trust__icon {
    flex: 0 0 auto;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--c-cream-50), var(--c-cream-200));
    border: 1.5px solid var(--c-cream-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-flame-700);
}
#afg-cart .afg-cart-trust__icon svg { width: 26px; height: 26px; }
#afg-cart .afg-cart-trust__txt { display: flex; flex-direction: column; gap: 4px; }
#afg-cart .afg-cart-trust__txt strong {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 1.12rem;
    color: var(--c-ink-900);
}
#afg-cart .afg-cart-trust__txt span { font-size: 0.92rem; color: var(--c-ink-500); line-height: 1.55; }
#afg-cart .afg-cart-trust__txt a { color: var(--c-flame-700); text-decoration: none; transition: color var(--t-fast); }
#afg-cart .afg-cart-trust__txt a:hover { color: var(--c-ink-900); text-decoration: underline; }

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    #afg-cart .woocommerce-cart-form { order: 1; }
    #afg-cart .cart-collaterals { order: 2; }
    #afg-cart .cart_totals { position: static; }
}
@media (max-width: 768px) {
    #afg-cart .afg-wrap { padding: 0 20px; }
    #afg-cart .afg-cart-body { padding: 60px 0 90px; }
    #afg-cart .afg-cart-trust { grid-template-columns: 1fr; gap: 22px; margin-top: 44px; padding-top: 36px; }

    #afg-cart table.cart td.actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    #afg-cart .actions .coupon { flex-direction: column; width: 100%; }
    #afg-cart .actions .coupon input.input-text { min-width: 0; width: 100%; }
    #afg-cart .button,
    #afg-cart .actions button[name="update_cart"] { width: 100% !important; margin-left: 0 !important; }

    #afg-cart table.shop_table_responsive tr {
        display: block !important;
        margin-bottom: 16px !important;
        background: var(--c-cream-50) !important;
        border-radius: var(--r-md) !important;
        padding: 14px !important;
        border: 1px solid var(--c-cream-300) !important;
        box-shadow: var(--shadow-sm) !important;
    }
    #afg-cart table.shop_table_responsive tr.cart_item td:first-child,
    #afg-cart table.shop_table_responsive tr.cart_item td:last-child {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    #afg-cart table.shop_table_responsive td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: right !important;
        border: none !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid var(--c-cream-300) !important;
    }
    #afg-cart table.shop_table_responsive td:last-child { border-bottom: none !important; }
    #afg-cart table.shop_table_responsive td::before {
        color: var(--c-ink-500) !important;
        font-size: 0.74rem !important;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-family: var(--f-mono) !important;
    }
}
