/* Shared Sold Out badge — all ecommerce themes */
.ecom-sold-out-badge,
.sold-out-badge,
.pd-sold-out-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 4px;
    background: #b42318;
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(180, 35, 24, 0.25);
    pointer-events: none;
}

.pd-sold-out-label,
.ecom-sold-out-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 4px;
    background: #fef3f2;
    color: #b42318;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid #fecdca;
}

.pd-btn-order,
.ecom-order-btn {
    background: #d4af37 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
}

.pd-btn-order:hover,
.ecom-order-btn:hover {
    background: #c4a030 !important;
    color: #fff !important;
}

/* Ensure image wrappers can host the absolute badge */
.card-image-wrap,
.product-image-new,
.bd-product-img,
.rb-pc-img-wrap,
.mg-product-img,
.vr-product-img,
.kr-product-image,
.zil-card-image,
.sh-product-img-wrap,
.pd-main-image,
.bd-pdp-gallery-main,
.ecom-sold-out-host {
    position: relative;
}

/* Keep product action buttons on one row — equal height */
.pd-actions,
.bd-pdp-actions,
.product-actions,
.vr-pdp-actions-new,
.vr-pd-actions,
.mg-pd-actions,
.zil-pd-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 12px;
    width: 100%;
}

.pd-actions > *,
.bd-pdp-actions > *,
.product-actions > *,
.vr-pdp-actions-new > *,
.vr-pd-actions > *,
.mg-pd-actions > *,
.zil-pd-actions > * {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    line-height: 1 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Cart / Order / Wishlist — equal width; WhatsApp slightly smaller */
.pd-actions > *:not(.pd-btn-whatsapp),
.bd-pdp-actions > *:not(.pd-btn-whatsapp),
.product-actions > *:not(.pd-btn-whatsapp),
.vr-pdp-actions-new > *:not(.pd-btn-whatsapp),
.vr-pd-actions > *:not(.pd-btn-whatsapp),
.mg-pd-actions > *:not(.pd-btn-whatsapp),
.zil-pd-actions > *:not(.pd-btn-whatsapp) {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    white-space: nowrap !important;
}

.pd-actions .pd-btn-whatsapp,
.bd-pdp-actions .pd-btn-whatsapp,
.product-actions .pd-btn-whatsapp,
.vr-pdp-actions-new .pd-btn-whatsapp,
.vr-pd-actions .pd-btn-whatsapp,
.mg-pd-actions .pd-btn-whatsapp,
.zil-pd-actions .pd-btn-whatsapp {
    flex: 0.7 1 0 !important;
    min-width: 56px !important;
    max-width: none !important;
    width: auto !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

/* Space between icon and label on CTAs */
.pd-actions > *:not(.pd-btn-whatsapp),
.bd-pdp-actions > *:not(.pd-btn-whatsapp),
.product-actions > *:not(.pd-btn-whatsapp),
.vr-pdp-actions-new > *:not(.pd-btn-whatsapp),
.vr-pd-actions > *:not(.pd-btn-whatsapp),
.mg-pd-actions > *:not(.pd-btn-whatsapp),
.zil-pd-actions > *:not(.pd-btn-whatsapp) {
    gap: 0 !important;
}

.pd-actions > * > i,
.bd-pdp-actions > * > i,
.product-actions > * > i,
.vr-pdp-actions-new > * > i,
.vr-pd-actions > * > i,
.mg-pd-actions > * > i,
.zil-pd-actions > * > i,
.pd-btn-cart > i,
.pd-btn-order > i,
.pd-btn-wishlist > i,
.vr-btn-cart-gold > i,
.vr-btn-wish-gold > i,
.ecom-order-btn > i {
    margin-right: 10px !important;
    margin-left: 0 !important;
    flex-shrink: 0;
}
