/* anwbd/css/featured-products.css (Final Updated Version) */

/* --- মূল কন্টেইনার এবং টাইটেল --- */
.anewbd-featured-products-wrapper {
    margin: 0;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #f3f7ff;
    text-align: center;
}

.anewbd-featured-products-wrapper h4 {
    display: inline-block;
    margin-bottom: 20px;
    padding: 12px 30px;
    color: #101828;
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    border: 1px solid #ffffff;
    font-weight: 600;
    animation: zoom-in-out 3s ease-in-out infinite;
}

@keyframes zoom-in-out {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* --- পণ্যের তালিকা --- */
.anewbd-featured-products-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 8px;
}

.anewbd-fp-item {
    display: flex;
    flex-wrap: wrap; /* *** পরিবর্তন: flex-wrap যোগ করা হয়েছে *** */
    align-items: center;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s;
    margin-bottom: 12px;
}

.anewbd-fp-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #c5def7;
}

.anewbd-fp-link-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-basis: 100%; /* *** পরিবর্তন: পুরো প্রস্থ দেওয়া হয়েছে *** */
    margin-bottom: 10px; /* বাটন থেকে দূরত্ব */
}

.anewbd-fp-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    margin-right: 12px;
}

.anewbd-fp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.anewbd-fp-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
}

.anewbd-fp-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
}

.anewbd-fp-price del { color: #95a5a6; opacity: 0.8; margin-right: 8px; }
.anewbd-fp-price ins { color: #c0392b; font-weight: 700; text-decoration: none; }

/* --- বাটন সেকশন (মূল পরিবর্তন এখানে) --- */
.anewbd-fp-buttons.custom-buttons-wrapper {
    display: flex;
    flex-direction: row; /* *** পরিবর্তন: কলামের পরিবর্তে রো করা হয়েছে *** */
    gap: 8px;
    align-items: stretch;
    flex-basis: 100%; /* *** পরিবর্তন: পুরো প্রস্থ দেওয়া হয়েছে *** */
}

.anewbd-fp-buttons.custom-buttons-wrapper .button {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    padding: 8px 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    flex: 1; /* *** নতুন: বাটনগুলো সমান জায়গা নেবে *** */
    box-sizing: border-box;
}

.anewbd-featured-products-wrapper .anewbd-fp-buttons .quick-buy-button {
    background: #101828 !important;
    color: #ffffff !important;
}

.anewbd-featured-products-wrapper .anewbd-fp-buttons .add_to_cart_button {
    background-color: #e0190a !important;
    color: #ffffff !important;
}

.anewbd-featured-products-wrapper .anewbd-fp-buttons .button.product_type_variable {
    background-color: #f39c12 !important;
}

/* --- Quick Buy Button Pulsating Light Effect --- */
.anewbd-featured-products-wrapper .anewbd-fp-buttons .quick-buy-button {
    position: relative;
    gap: 8px;
}

.anewbd-featured-products-wrapper .anewbd-fp-buttons .quick-buy-button::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #000000;
    animation: sharpPulse 2s infinite ease-in-out;
}

.anewbd-featured-products-wrapper .anewbd-fp-buttons .quick-buy-button:hover::before {
    background-color: #ff4757;
}

@keyframes sharpPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.1); opacity: 0.5; }
}