/* =========================================
   Mandesh Bazar Theme - Ultra Modern UI
   ========================================= */
:root {
    --mbb-gradient-start: #ff9a44;
    --mbb-gradient-end: #fc6076;
    --mbb-brand-orange: #ff5722;
    --mbb-text-main: #222222;
    --mbb-bg-light: #ffffff;
    --mbb-card-bg: linear-gradient(145deg, #ffffff, #fff5eb); /* Faint Orange BG */
    --mbb-border-color: #ffe0cc; /* Light Orange Border */
    --mbb-shadow-hover: rgba(255, 87, 34, 0.3);
    --mbb-glow: 0 0 15px rgba(255, 154, 68, 0.2);
}

/* =========================================
   1. Container - Main Wrapper (Updated Borders)
   ========================================= */
.mbb-multi-grid-wrap {
    background: #fff;
    padding: 30px 20px;
    margin: 20px auto 35px auto;
    border-radius: 25px;
    /* चारी बाजूंना हलकी बॉर्डर आणि ग्लो */
    border: 2px solid var(--mbb-border-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* वरची डिझाइन पट्टी (Top Bar) */
.mbb-multi-grid-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--mbb-gradient-start), var(--mbb-gradient-end));
}

/* =========================================
   2. Section Title (Live Effect & Bold)
   ========================================= */
.mbb-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 900; /* Extra Bold */
    margin: 0 0 40px 0;
    padding-bottom: 10px;
    position: relative;
    display: block;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mbb-brand-orange);
    
    /* Text Shine Animation */
    background: linear-gradient(to right, #ff5722 0%, #ff9a44 50%, #ff5722 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.mbb-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--mbb-gradient-start);
    margin: 12px auto 0;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--mbb-gradient-start);
}

/* =========================================
   3. Grid Layout
   ========================================= */
.mbb-grid-container {
    display: grid;
    grid-template-columns: repeat(var(--mbb-desk), 1fr);
    gap: 25px;
    justify-items: center;
}

/* =========================================
   4. Grid Item (Live Floating Cards)
   ========================================= */
.mbb-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    width: 100%;
    cursor: pointer;
    
    /* Faint Orange Background */
    background: var(--mbb-card-bg);
    
    padding: 15px;
    border-radius: 20px;
    
    /* Border matching UI */
    border: 1px solid var(--mbb-border-color);
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    min-width: 0; 
    box-sizing: border-box;
    
    /* Floating Animation (Live Feel) */
    animation: floatCard 6s ease-in-out infinite;
}

/* थोडेसे वर-खाली होणारे ऍनिमेशन */
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.mbb-grid-item:hover {
    transform: translateY(-10px) scale(1.02); /* Hover वर जास्त वर येईल */
    border-color: var(--mbb-brand-orange);
    box-shadow: 0 20px 40px var(--mbb-shadow-hover);
    background: #fff; /* Hover केल्यावर ब्राईट दिसेल */
}

/* =========================================
   5. Image Holder & Badge
   ========================================= */
.mbb-img-holder {
    width: 100%;
    max-width: 90px;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 0;
}

.mbb-img-holder.is-round { 
    border-radius: 50%; 
    border: 4px solid #fff;
    box-shadow: var(--mbb-glow); /* Glowing Shadow */
}
.mbb-img-holder.is-square { 
    border-radius: 18px; 
    box-shadow: var(--mbb-glow);
}

.mbb-grid-item:hover .mbb-img-holder {
    transform: scale(1.08) rotate(3deg); /* Hover वर थोडे फिरले जाईल */
    box-shadow: 0 10px 20px rgba(255, 154, 68, 0.4);
}

.mbb-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit; 
    transition: filter 0.3s;
}

/* --- Discount Badge (Pulse Animation) --- */
.mbb-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: linear-gradient(135deg, #ff3333, #ff8c00);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #fff; /* White border for contrast */
    animation: mbb-badge-pulse 2s infinite;
}

@keyframes mbb-badge-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.6); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(255, 51, 51, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
}

/* =========================================
   6. Category Name text
   ========================================= */
.mbb-name {
    font-size: var(--mbb-fs, 100%) !important;
    font-weight: 800; /* More Bold */
    color: #444;
    text-align: center;
    line-height: 1.3;
    padding: 0 2px;
    transition: color 0.3s;
    margin-top: 5px;
    word-wrap: break-word;
    word-break: break-word; 
    width: 100%;
}

.mbb-grid-item:hover .mbb-name {
    color: var(--mbb-brand-orange);
}

/* =========================================
   MOBILE Responsive
   ========================================= */
@media (max-width: 768px) {
    .mbb-grid-container {
        grid-template-columns: repeat(var(--mbb-mob), 1fr);
        gap: 10px; /* मोबाईलवर थोडी मोकळी जागा */
    }
    
    .mbb-multi-grid-wrap {
        padding: 20px 10px; 
        margin-bottom: 25px;
        border-radius: 20px;
        border-width: 1px;
    }
    
    .mbb-section-title {
        font-size: 22px; 
        margin-bottom: 25px;
    }

    .mbb-grid-item {
        padding: 10px 5px; 
        border-radius: 12px;
        /* मोबाईलवर ऍनिमेशन कमी केले जेणेकरून स्क्रोलिंग स्मूथ चालेल */
        animation: none; 
    }
    
    .mbb-grid-item:hover {
        transform: translateY(-3px);
    }
    
    .mbb-img-holder {
        max-width: 60px; 
        margin-bottom: 8px;
        border-width: 3px;
    }

    .mbb-name {
        font-size: calc(var(--mbb-fs, 100%) - 15%) !important;
        font-weight: 700;
        line-height: 1.2;
    }

    .mbb-badge {
        font-size: 9px;
        padding: 2px 6px;
        right: -6px;
        top: -4px;
        border-width: 1px;
    }
}