/* ==========================================================================
   Yithma Auction Layout — auction-layout.css v1.0.3
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;600;700;900&display=swap');

:root {
    --yithma-gold:       #c9a227;
    --yithma-gold-light: #f0c040;
    --yithma-gold-bg:    #fffaf0;
    --yithma-green:      #27ae60;
    --yithma-border:     #e0e0e0;
    --yithma-text:       #1a1a1a;
    --yithma-muted:      #777;
    --yithma-card-bg:    #ffffff;
    --yithma-radius:     12px;
    --yithma-shadow:     0 2px 16px rgba(0,0,0,.06);
    --yithma-font:       'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
}

/* ==========================================================================
   BACK NAV
   ========================================================================== */
.yithma-back-nav {
    direction: rtl;
    padding: 12px 0 6px;
}
.yithma-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    color: var(--yithma-text);
    text-decoration: none;
    font-family: var(--yithma-font);
    font-weight: 600;
    transition: color .2s;
}
.yithma-back-link:hover { color: var(--yithma-gold); }

/* ==========================================================================
   OUTER WRAPPER
   ========================================================================== */
.yithma-single-product {
    direction: rtl;
    font-family: var(--yithma-font);
    color: var(--yithma-text);
    margin-top: 16px;
}

/* ==========================================================================
   TWO-COLUMN GRID
   Right col (image) = wider, Left col (auction) = fixed 400px
   In RTL: right col appears on the RIGHT visually (order:2),
           left col appears on the LEFT visually (order:1)
   ========================================================================== */
.yithma-two-column {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 28px;
    align-items: start;
    direction: rtl;
}

/* Left col = auction panel — visually on the LEFT */
.yithma-col--left  { order: 1; }

/* Right col = image+details — visually on the RIGHT */
.yithma-col--right { order: 2; }

/* ==========================================================================
   FEATURED IMAGE
   ========================================================================== */
.yithma-featured-image {
    border-radius: var(--yithma-radius);
    overflow: hidden;
    background: #f4f4f4;
    border: 1px solid var(--yithma-border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}
.yithma-featured-image img.yithma-main-img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   PRODUCT DETAILS CARD (title + badge + vehicle grid)
   ========================================================================== */
.yithma-product-details-card {
    background: var(--yithma-card-bg);
    border: 1px solid var(--yithma-border);
    border-radius: var(--yithma-radius);
    padding: 18px 20px;
    margin-top: 16px;
    box-shadow: var(--yithma-shadow);
}
.yithma-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.yithma-product-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: var(--yithma-text) !important;
    font-family: var(--yithma-font) !important;
    flex: 1;
}
.yithma-live-badge {
    background: var(--yithma-green);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    animation: yithma-pulse 2s infinite;
    white-space: nowrap;
    font-family: var(--yithma-font);
}
@keyframes yithma-pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: .65; }
}

/* ==========================================================================
   VEHICLE GRID
   ========================================================================== */
.yithma-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--yithma-border);
    border-radius: 8px;
    overflow: hidden;
}
.yithma-vehicle-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 10px;
    background: #fafafa;
    gap: 8px;
    border-left: 1px solid var(--yithma-border);
}
.yithma-vehicle-cell:last-child { border-left: none; }

.yithma-vehicle-icon {
    font-size: 1.2rem;
    opacity: .7;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    line-height: 1;
}
.yithma-vehicle-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.yithma-vehicle-label {
    font-size: .65rem;
    color: var(--yithma-muted);
    font-weight: 600;
    line-height: 1.2;
}
.yithma-vehicle-value {
    font-size: .85rem;
    font-weight: 700;
    color: var(--yithma-text);
    line-height: 1.3;
}

/* ==========================================================================
   BID CONTAINER + HISTORY CONTAINER
   ========================================================================== */
.yithma-bid-container,
.yithma-history-container {
    background: var(--yithma-card-bg);
    border: 1px solid var(--yithma-border);
    border-radius: var(--yithma-radius);
    padding: 20px 20px;
    box-shadow: var(--yithma-shadow);
}
.yithma-history-container { margin-top: 16px; }

.yithma-section-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--yithma-text) !important;
    margin: 0 0 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid var(--yithma-border) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: var(--yithma-font) !important;
    direction: rtl !important;
}

/* ==========================================================================
   CURRENT PRICE
   ========================================================================== */
.yithma-current-price {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--yithma-gold);
    line-height: 1.1;
    margin: 4px 0 6px;
    font-family: var(--yithma-font);
    direction: rtl;
}
.yithma-currency {
    font-size: 1rem;
    font-weight: 600;
    margin-right: 4px;
}
.yithma-next-min {
    text-align: center;
    font-size: .82rem;
    color: var(--yithma-muted);
    margin: 0 0 14px;
    font-family: var(--yithma-font);
    direction: rtl;
}
.yithma-next-min strong { color: var(--yithma-text); }

/* ==========================================================================
   COUNTDOWN
   ========================================================================== */
.yithma-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f8f8f8;
    border: 1px solid var(--yithma-border);
    border-radius: 8px;
    padding: 12px 8px;
    margin-bottom: 16px;
    direction: ltr;
}
.yithma-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 42px;
}
.yithma-countdown-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--yithma-text);
    line-height: 1;
    font-family: 'Courier New', monospace;
}
.yithma-countdown-label {
    font-size: .62rem;
    color: var(--yithma-muted);
    margin-top: 3px;
    font-family: var(--yithma-font);
}
.yithma-countdown-sep {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--yithma-muted);
    align-self: flex-start;
    line-height: 1.2;
}
.yithma-countdown--ended .yithma-countdown-value { color: #e74c3c; }

/* ==========================================================================
   YITH FORM WRAPPER — show ONLY input + bid button, hide everything else
   Real HTML structure inside .yithma-yith-form-wrap:
     form.cart
       └── .yith-wcact-main-auction-product  ← HIDE entire block
       └── #yith-wcact-form-bid              ← SHOW only this
             └── .ywcact-your-bid-header     ← hide
             └── .ywcact-currency-symbol     ← hide
             └── .quantity > input           ← SHOW
             └── button.auction_bid          ← SHOW
   ========================================================================== */

/* Hide everything in the form wrap except the bid form div */
.yithma-yith-form-wrap .yith-wcact-main-auction-product { display: none !important; }
.yithma-yith-form-wrap .woocommerce-breadcrumb          { display: none !important; }
.yithma-yith-form-wrap .single-product-category         { display: none !important; }
.yithma-yith-form-wrap .ast-shipping-text               { display: none !important; }
.yithma-yith-form-wrap .ast-stock-detail                { display: none !important; }

/* Show and style the bid form div — max specificity to override YITH */
div.yithma-yith-form-wrap div#yith-wcact-form-bid,
div.yithma-yith-form-wrap div[id="yith-wcact-form-bid"],
#yith-wcact-form-bid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    direction: rtl !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

/* Show input and button explicitly */
div.yithma-yith-form-wrap #yith-wcact-form-bid .quantity,
div.yithma-yith-form-wrap #yith-wcact-form-bid input,
div.yithma-yith-form-wrap #yith-wcact-form-bid button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hide "Your bid:" header and currency symbol */
div.yithma-yith-form-wrap #yith-wcact-form-bid .ywcact-your-bid-header { display: none !important; }
div.yithma-yith-form-wrap #yith-wcact-form-bid .ywcact-currency-symbol  { display: none !important; }

/* Bid form container — full width column layout */
.yithma-yith-form-wrap form.cart,
.yithma-yith-form-wrap #yith-wcact-form-bid {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* quantity wrapper inside bid form — force visible and full width */
.yithma-yith-form-wrap #yith-wcact-form-bid .quantity {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* Input field — full width */
.yithma-yith-form-wrap #_actual_bid,
.yithma-yith-form-wrap input.ywcact-bid-input,
.yithma-yith-form-wrap input[name="ywcact_bid_quantity"] {
    display: block !important;
    width: 100% !important;
    padding: 11px 14px !important;
    border: 2px solid var(--yithma-border) !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-family: var(--yithma-font) !important;
    direction: rtl !important;
    text-align: right !important;
    box-sizing: border-box !important;
    background: #fff !important;
    transition: border-color .2s !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
}
.yithma-yith-form-wrap #_actual_bid:focus,
.yithma-yith-form-wrap input.ywcact-bid-input:focus {
    border-color: var(--yithma-gold) !important;
}

/* Bid button — full width */
.yithma-yith-form-wrap button.auction_bid {
    display: block !important;
    width: 100% !important;
    padding: 13px 20px !important;
    background: var(--yithma-gold) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: var(--yithma-font) !important;
    cursor: pointer !important;
    transition: background .2s !important;
    text-align: center !important;
    box-shadow: none !important;
    margin: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    float: none !important;
}
.yithma-yith-form-wrap button.auction_bid:hover {
    background: #b8901f !important;
    color: #fff !important;
}

/* Login notice */
.yithma-login-notice {
    text-align: center;
    padding: 12px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    font-size: .88rem;
    font-family: var(--yithma-font);
    direction: rtl;
}
.yithma-login-notice a {
    color: var(--yithma-gold);
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================================
   BID HISTORY
   ========================================================================== */
.yithma-history-title {
    cursor: pointer;
    user-select: none;
}
.yithma-bid-count {
    color: var(--yithma-muted);
    font-weight: 400;
    font-size: .9rem;
}
.yithma-history-toggle {
    margin-right: auto;
    background: none;
    border: 1px solid var(--yithma-border);
    border-radius: 6px;
    width: 26px; height: 26px;
    cursor: pointer;
    font-size: .85rem;
    color: var(--yithma-muted);
    transition: transform .2s;
    line-height: 1;
    padding: 0;
}
.yithma-history-toggle[aria-expanded="false"] { transform: rotate(180deg); }

.yithma-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
}
.yithma-history-list.collapsed { display: none; }

.yithma-bid-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7f7f7;
    border: 1px solid var(--yithma-border);
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--yithma-font);
    direction: rtl;
}
.yithma-bid-row--top {
    background: var(--yithma-gold-bg);
    border-color: var(--yithma-gold-light);
    font-weight: 700;
}
.yithma-top-badge {
    background: var(--yithma-gold);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.yithma-bid-amount {
    color: var(--yithma-gold);
    font-weight: 700;
    font-size: .95rem;
}
.yithma-bid-time {
    color: var(--yithma-muted);
    font-size: .75rem;
    direction: ltr;
}
.yithma-no-bids {
    text-align: center;
    color: var(--yithma-muted);
    font-size: .88rem;
    padding: 20px 0;
    margin: 0;
    font-family: var(--yithma-font);
}

/* ==========================================================================
   HIDE YITH BIDS TAB AT BOTTOM
   ========================================================================== */
.woocommerce-tabs li.bids_tab,
.woocommerce-tabs #tab-bids,
.woocommerce-tabs .bids_tab {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
    .yithma-two-column {
        grid-template-columns: 1fr;
    }
    /* On mobile: image first (top), auction panel second (bottom) */
    .yithma-col--right { order: 1; }
    .yithma-col--left  { order: 2; }

    .yithma-vehicle-grid { grid-template-columns: repeat(2, 1fr); }
    .yithma-vehicle-cell:nth-child(2) { border-left: none; }
    .yithma-vehicle-cell:nth-child(3) { border-top: 1px solid var(--yithma-border); }
    .yithma-vehicle-cell:nth-child(4) { border-top: 1px solid var(--yithma-border); border-left: none; }
}
@media (max-width: 520px) {
    .yithma-current-price { font-size: 2rem; }
    .yithma-countdown-value { font-size: 1.2rem; }
    .yithma-countdown-unit { min-width: 36px; }
    .yithma-vehicle-cell { padding: 10px 8px; }
}

/* ==========================================================================
   CUSTOM BID INPUT + BUTTON (proxies to YITH's hidden form)
   ========================================================================== */
.yithma-custom-bid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    direction: rtl;
    margin-top: 4px;
}

input.yithma-bid-input {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border: 2px solid var(--yithma-border) !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-family: var(--yithma-font) !important;
    direction: ltr !important;
    text-align: right !important;
    box-sizing: border-box !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
    transition: border-color .2s !important;
}
input.yithma-bid-input:focus {
    border-color: var(--yithma-gold) !important;
    box-shadow: 0 0 0 3px rgba(201,162,39,.15) !important;
}
input.yithma-bid-input::-webkit-outer-spin-button,
input.yithma-bid-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

button.yithma-bid-btn {
    display: block !important;
    width: 100% !important;
    padding: 13px 20px !important;
    background: var(--yithma-gold) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    font-family: var(--yithma-font) !important;
    cursor: pointer !important;
    transition: background .2s !important;
    text-align: center !important;
    box-shadow: none !important;
    margin: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
button.yithma-bid-btn:hover { background: #b8901f !important; }

.yithma-bid-msg {
    font-size: .82rem;
    font-family: var(--yithma-font);
    text-align: right;
    direction: rtl;
    min-height: 1.2em;
    color: var(--yithma-green);
}
.yithma-bid-msg--error { color: #e74c3c !important; }

/* ==========================================================================
   AUCTION SHOP LOOP CARD
   ========================================================================== */

/* ==========================================================================
   AUCTION SHOP LOOP CARD
   ========================================================================== */

/* The li container */
.woocommerce ul.products li.product.type-auction {
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 14px rgba(0,0,0,.08) !important;
    background: #fff !important;
    border: 1px solid #ebebeb !important;
    transition: transform .2s, box-shadow .2s !important;
    display: flex !important;
    flex-direction: column !important;
}
.woocommerce ul.products li.product.type-auction:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 28px rgba(0,0,0,.13) !important;
}

/* Image link */
.yithma-card__img-link {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    line-height: 0;
}
.yithma-card__img-link img,
.yithma-card__img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    transition: transform .3s !important;
}
.yithma-card__img-link:hover img { transform: scale(1.03); }

/* Hide WC's default image output — we render our own */
.woocommerce ul.products li.product.type-auction > a.woocommerce-LoopProduct-link {
    display: none !important;
}

/* Card body */
.yithma-card {
    padding: 14px 16px 16px;
    font-family: var(--yithma-font);
    direction: rtl;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Title */
.yithma-card__title-link { text-decoration: none !important; display: block; }
.yithma-card__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    font-family: var(--yithma-font) !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    direction: rtl !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.yithma-card__title-link:hover .yithma-card__title { color: var(--yithma-gold) !important; }

/* Specs */
.yithma-card__specs {
    font-size: .78rem;
    color: #999;
    margin-bottom: 10px;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Price rows */
.yithma-card__prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}
.yithma-card__price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .84rem;
    direction: rtl;
}
.yithma-card__price-label { color: #666; }
.yithma-card__price-val {
    font-weight: 700;
    color: #1a1a1a;
    direction: ltr;
    white-space: nowrap;
}
.yithma-card__price-val span { font-size: .72rem; color: #999; margin-right: 2px; }
.yithma-card__price-val--current { color: var(--yithma-gold); font-size: .95rem; }

/* Timer */
.yithma-card__timer {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    color: #555;
    background: #f6f6f6;
    border-radius: 6px;
    padding: 5px 9px;
    margin-bottom: 12px;
    direction: rtl;
    font-family: var(--yithma-font);
}
.yithma-card__timer--ended { color: #e74c3c; background: #fff0f0; }

/* CTA button */
.yithma-card__btn {
    display: block !important;
    width: 100% !important;
    padding: 11px 0 !important;
    background: var(--yithma-gold) !important;
    color: #fff !important;
    text-align: center !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: .92rem !important;
    font-family: var(--yithma-font) !important;
    text-decoration: none !important;
    transition: background .2s !important;
    box-sizing: border-box !important;
    margin-top: auto !important;
}
.yithma-card__btn:hover { background: #b8901f !important; color: #fff !important; }

/* ==========================================================================
   CUSTOM BID INPUT + BUTTON (proxies to YITH's hidden form)
   ========================================================================== */
.yithma-custom-bid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    direction: rtl;
    margin-top: 4px;
}

input.yithma-bid-input {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border: 2px solid var(--yithma-border) !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-family: var(--yithma-font) !important;
    direction: ltr !important;
    text-align: right !important;
    box-sizing: border-box !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
    transition: border-color .2s !important;
}
input.yithma-bid-input:focus {
    border-color: var(--yithma-gold) !important;
    box-shadow: 0 0 0 3px rgba(201,162,39,.15) !important;
}
input.yithma-bid-input::-webkit-outer-spin-button,
input.yithma-bid-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

button.yithma-bid-btn {
    display: block !important;
    width: 100% !important;
    padding: 13px 20px !important;
    background: var(--yithma-gold) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    font-family: var(--yithma-font) !important;
    cursor: pointer !important;
    transition: background .2s !important;
    text-align: center !important;
    box-shadow: none !important;
    margin: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
button.yithma-bid-btn:hover { background: #b8901f !important; }

.yithma-bid-msg {
    font-size: .82rem;
    font-family: var(--yithma-font);
    text-align: right;
    direction: rtl;
    min-height: 1.2em;
    color: var(--yithma-green);
}
.yithma-bid-msg--error { color: #e74c3c !important; }

/* ==========================================================================
   AUCTION SHOP LOOP CARD
   ========================================================================== */

/* ==========================================================================
   HIDE all default WooCommerce/YITH/Astra loop output we don't want
   ========================================================================== */
.woocommerce ul.products li.product.type-auction .woocommerce-loop-product__title,
.woocommerce ul.products li.product.type-auction h2.woocommerce-loop-product__title,
.woocommerce ul.products li.product.type-auction .price,
.woocommerce ul.products li.product.type-auction .star-rating,
.woocommerce ul.products li.product.type-auction .ast-shop-product-wrap,
.woocommerce ul.products li.product.type-auction .product_meta,
.woocommerce ul.products li.product.type-auction .yith-wcact-product-loop,
.woocommerce ul.products li.product.type-auction .yith-wcact-current-bid-label,
.woocommerce ul.products li.product.type-auction .yith-auction-loop-data,
.woocommerce ul.products li.product.type-auction .ywcact-auction-end-date,
.woocommerce ul.products li.product.type-auction .auction-custom-card,
.woocommerce ul.products li.product.type-auction .button:not(.yithma-card__btn),
.woocommerce ul.products li.product.type-auction p.price {
    display: none !important;
}

/* Reset WooCommerce's default li styling */
ul.products li.product.type-auction {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

ul.products li.product.type-auction a.woocommerce-LoopProduct-link {
    display: block;
}

ul.products li.product.type-auction img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

/* The card wrapper — sits below the image */
.yithma-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 16px 16px 18px;
    font-family: var(--yithma-font);
    direction: rtl;
}

/* Wrap the whole li in a card look */
ul.products li.product.type-auction {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.07) !important;
    transition: transform .2s, box-shadow .2s !important;
    background: #fff !important;
}
ul.products li.product.type-auction:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 24px rgba(0,0,0,.12) !important;
}

/* Card title */
.yithma-card__title-link {
    text-decoration: none !important;
}
.yithma-card__title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    font-family: var(--yithma-font) !important;
    padding: 0 !important;
    margin: 0 0 6px !important;
    direction: rtl !important;
    text-align: right !important;
    line-height: 1.3 !important;
}
.yithma-card__title-link:hover .yithma-card__title { color: var(--yithma-gold) !important; }

.yithma-card__specs {
    font-size: .8rem;
    color: #888;
    margin-bottom: 12px;
    direction: rtl;
}

/* Price rows */
.yithma-card__prices {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.yithma-card__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    direction: rtl;
}

.yithma-card__price-label {
    color: #666;
    font-weight: 500;
}

.yithma-card__price-val {
    font-weight: 700;
    color: #1a1a1a;
    direction: ltr;
}
.yithma-card__price-val span {
    font-size: .75rem;
    font-weight: 500;
    color: #888;
    margin-right: 2px;
}
.yithma-card__price-val--current {
    color: var(--yithma-gold);
    font-size: 1rem;
}

/* Timer */
.yithma-card__timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: #555;
    background: #f7f7f7;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 12px;
    direction: rtl;
    font-family: var(--yithma-font);
}
.yithma-card__timer--ended {
    color: #e74c3c;
    background: #fff0f0;
}

/* CTA Button */
.yithma-card__btn {
    display: block;
    width: 100%;
    padding: 11px 0;
    background: var(--yithma-gold);
    color: #fff !important;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    font-family: var(--yithma-font);
    text-decoration: none !important;
    transition: background .2s;
    box-sizing: border-box;
    direction: rtl;
}
.yithma-card__btn:hover {
    background: #b8901f;
    color: #fff !important;
}
