/* ==========================================================================
   PREMIUM PROMO DEAL CARD styling
   Mobile-First Design for [promo_deal_card]
   ========================================================================== */

/* --- Clean CSS Approach for Shortcode --- */
.bjaan-deal-card-wrapper {
    padding: 60px 20px 30px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.bjaan-deal-card {
    background: #FFFFFF;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 40px 20px 30px;
    width: 100%;
    max-width: 380px;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 40px -10px rgba(212, 175, 55, 0.15);
    overflow: visible;
    margin-top: 20px;
    z-index: 10;
}

.deal-promo-title {
    font-family: serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #1A1A1A;
    margin: 15px 0 20px;
    text-transform: uppercase;
}

/* ==========================================================================
   TARGETED CROWN OVERLAY (Product ID 2162)
   Pure CSS approach targeting the specific WooCommerce Product
   ========================================================================== */

/* 1. Ensure the specific product card allows overflow */
li.post-2162,
.post-2162 {
    overflow: visible !important;
    z-index: 10 !important;
}

/* 2. Add the crown via pseudo-element on the THUMBNAIL WRAPPER */
.post-2162 .astra-shop-thumbnail-wrap::after,
.post-2162 .woocommerce-loop-product__link::after {
    content: "";
    position: absolute;
    top: -37px !important;
    right: -33px !important;
    width: 85px !important;
    height: 65px !important;
    z-index: 999;
    transform: rotate(32deg);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    pointer-events: none;
    background-image: url(../img/crown-icon.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: block;
    opacity: 1;
}

/* 3. Also apply to Shortcode Layout if used manually */
.bjaan-deal-card::after {
    content: "";
    position: absolute;
    top: -37px !important;
    right: -33px !important;
    width: 85px !important;
    height: 65px !important;
    z-index: 999;
    transform: rotate(32deg);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    pointer-events: none;
    background-image: url(../img/crown-icon.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: block;
    opacity: 1;
}

/* 4. Mobile Logic to Prevent Overflow */
@media (max-width: 768px) {

    .post-2162 .astra-shop-thumbnail-wrap::after,
    .post-2162 .woocommerce-loop-product__link::after,
    .bjaan-deal-card::after {
        right: -33px !important;
        top: -37px !important;
        transform: rotate(25deg) scale(0.9);
    }
}