/* Container Grid Layout */
.dokan-el-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Individual Product Card */
.dokan-el-product-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dokan-el-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Top Visual Area (Image and Badges) */
.dokan-el-card-top {
    position: relative;
    background-color: #fbf5e6; /* Base soft cream tone as seen in screenshot */
    padding: 25px 20px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card varying backgrounds based on design variants from Screenshot_74 */
.dokan-el-product-grid .dokan-el-product-card:nth-child(4n+2) .dokan-el-card-top {
    background-color: #fbf5e6;
}
.dokan-el-product-grid .dokan-el-product-card:nth-child(4n+4) .dokan-el-card-top {
    background-color: #f3effa; /* Soft purple hue for the 4th item */
}

/* Country Badge (e.g., NG, GH) */
.dokan-el-badge-country {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffffff;
    color: #111111;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
}

/* "★ TOP" Badge */
.dokan-el-badge-top {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1e142e; /* Dark navy/purple badge */
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Product Image Wrapper & Image */
.dokan-el-product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dokan-el-product-image img {
    max-height: 110px;
    width: auto;
    object-fit: contain;
}

/* Bottom Content Area */
.dokan-el-card-bottom {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Category/Tag Text */
.dokan-el-product-cat {
    font-size: 10px;
    font-weight: 700;
    color: #f05435; /* Orange/coral accent text */
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: inline-block;
}

/* Product Title */
.dokan-el-product-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

/* Vendor Store & Country Info */
.dokan-el-vendor-info {
    font-size: 13px;
    color: #7a7a7a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dokan-el-separator {
    color: #b5b5b5;
}

/* Footer Section (Price + Button) */
.dokan-el-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* WooCommerce Price Styling */
.dokan-el-product-price {
    font-size: 22px;
    font-weight: 800;
    color: #111111;
}

.dokan-el-product-price del {
    font-size: 14px;
    color: #999;
    margin-right: 6px;
    font-weight: 400;
}

.dokan-el-product-price ins {
    text-decoration: none;
}

/* + Add Button Custom Styling */
.dokan-el-add-to-cart-btn {
    background-color: #008264; /* Deep emerald green */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 85px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.dokan-el-add-to-cart-btn:hover {
    background-color: #006b52;
}

.dokan-el-add-to-cart-btn:active {
    transform: scale(0.97);
}

.dokan-el-add-to-cart-btn:disabled {
    background-color: #a0d1c5;
    cursor: not-allowed;
}

/* Loader Styles inside Button */
.dokan-el-add-to-cart-btn .btn-loader {
    font-size: 14px;
}


















/* Dokan Country Filter Tabs Styling */
.dokan-el-country-tabs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.dokan-el-country-tab {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    min-width: 120px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dokan-el-country-tab:hover,
.dokan-el-country-tab.active {
    background: #1e1b4b;
    color: #ffffff;
    border-color: #1e1b4b;
}

.country-tab-code {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.country-tab-name {
    font-size: 14px;
    font-weight: 600;
}

.dokan-el-country-tab.active .country-tab-count {
    color: #f59e0b;
}

.country-tab-count {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}











/* Product Grid Grid Layout Fix */
.dokan-el-product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 20px !important;
    align-items: start;
}

/* Single Product Card Standard Width Fix */
.dokan-el-product-card {
    width: 100% !important;
    max-width: 300px !important; /* স্ট্যান্ডার্ড রেগুলার কার্ড সাইজ */
    margin: 0 auto; /* ১টি কার্ড থাকলে সেন্টারে রাখবে (ইচ্ছা হলে এটি বাদ দিতে পারেন) */
    box-sizing: border-box;
}

/* Container Responsiveness */
.dokan-el-product-grid-container {
    width: 100%;
}