/* ========================================
   SMARTDEALRADAR / THESMARTWATCHRADAR - COMPLETE CSS
   ======================================== */

:root {
    --primary: #8B5CF6;
    --primary-dark: #6D28D9;
    --primary-light: #A78BFA;
    --white: #ffffff;
    --dark: #1a1a2e;
    --gray: #6b7280;
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    background: #FAF5FF;
    color: var(--dark);
}

/* ========================================
   HEADER
   ======================================== */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #fff;
}

.navbar-top {
    background: linear-gradient(135deg, #A78BFA, #7C3AED);
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    border-bottom: 3px solid rgba(139, 92, 246, 0.25);
    position: relative;
    z-index: 1060;
}

.navbar-top .navbar-brand img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

/* ----- SEARCH BAR ----- */
.search-bar-top {
    border-radius: 50px;
    padding: 10px 20px;
    padding-right: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s;
    width: 100%;
    max-width: 500px;
}

.search-bar-top::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-bar-top:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    outline: none;
    color: #fff;
}

.search-btn-top {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    padding: 8px 15px;
}

.search-btn-top:hover {
    color: #fff;
}

/* ----- BUTTONS ----- */
.btn-business {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 600;
    transition: all 0.3s;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-business:hover {
    background: #fff;
    color: #6D28D9;
    border-color: #fff;
}

.btn-login {
    background: #fff;
    border: 2px solid #fff;
    color: #6D28D9;
    font-weight: 600;
    transition: all 0.3s;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-login:hover {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-top {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.navbar-toggler-top .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-top .dropdown-menu {
    z-index: 1070 !important;
    position: absolute !important;
}

/* ========================================
   MENU BAR
   ======================================== */
.menu-bar {
    background: #fff;
    border-top: 2px solid rgba(139, 92, 246, 0.15);
    border-bottom: 2px solid #f0e6ff;
    padding: 6px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1049;
}

.menu-bar .menu-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    transition: all 0.25s;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
}

.menu-btn i {
    color: #8B5CF6;
    font-size: 1rem;
}

.menu-btn:hover {
    background: #F3E8FF;
    color: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

.menu-btn.dropdown-toggle::after {
    margin-left: 6px;
}

.menu-link-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    transition: all 0.25s;
    font-size: 0.95rem;
    background: transparent;
    border: 1px solid transparent;
    position: relative;
}

.menu-link-btn::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #8B5CF6, #C084FC);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.menu-link-btn:hover {
    background: #F3E8FF;
    color: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.12);
}

.menu-link-btn:hover::before {
    width: 60%;
}

.menu-link-btn i {
    margin-right: 6px;
    color: #8B5CF6;
}

.menu-link-btn.active {
    background: #F3E8FF;
    color: #6D28D9;
}

/* ========================================
   DROPDOWN MENU
   ======================================== */
.dropdown-menu-custom {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 8px;
    min-width: 220px;
    margin-top: 8px;
    background: #fff;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu-custom .dropdown-item {
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 500;
    color: #1a1a2e;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu-custom .dropdown-item:hover {
    background: #F3E8FF;
    color: #6D28D9;
    transform: translateX(4px);
}

.dropdown-menu-custom .dropdown-item i {
    color: #8B5CF6;
    width: 20px;
    text-align: center;
}

.dropdown-menu-custom .dropdown-divider {
    margin: 6px 12px;
    border-color: #f0e6ff;
}

.dropdown-menu-custom .dropdown-header {
    color: #8B5CF6;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 18px 4px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    border: 1px solid #f0e6ff !important;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.04);
    transition: all 0.3s ease;
}
.product-card:hover {
    border-color: #8B5CF6;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.08);
    transform: translateY(-4px);
}

/* ===== DISCOUNT TEXT (Bold, Left Aligned) ===== */
.discount-text {
    font-size: 1rem;
    font-weight: 800 !important;
    color: #EF4444;
    letter-spacing: 0.3px;
    white-space: nowrap;
    margin-left: 2px;
}

/* ===== SHOP NOW BUTTON (Width Slightly Reduced) ===== */
.product-card .btn-shop {
    font-size: 1rem;
    padding: 6px 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #fff;
    border: none;
    border-radius: 50px;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
    line-height: 1.4;
}
.product-card .btn-shop:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* ===== PRODUCT TITLE ===== */
.product-card .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .product-title a {
    color: #1a1a2e;
    text-decoration: none;
}
.product-card .product-title a:hover {
    color: #8B5CF6;
}

/* ===== PRICE ===== */
.product-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5B21B6;
}

/* ===== CUSTOM BADGE ===== */
.custom-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #fff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== EXPIRY INFO ===== */
.expiry-info {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
    display: inline-block;
    margin: 4px auto 2px auto;
    line-height: 1.5;
    min-height: 18px;
    background: #EF4444;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}
.expiry-info.expired {
    background: #9CA3AF;
    color: #fff;
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.2);
}
.expiry-info .countdown-text {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
}

/* ========================================
   BADGE – TOP LEFT (FULL TEXT, NO CUT)
   ======================================== */
.custom-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #fff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    display: inline-block;
    white-space: nowrap;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
}

/* Best Deal - Green */
.badge-best {
    background: #22C55E !important;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4) !important;
}

/* Hot Deal - Red/Orange */
.badge-hot {
    background: linear-gradient(135deg, #F59E0B, #EF4444) !important;
}

/* ========================================
   PRODUCT CARD
   ======================================== */
.product-card {
    border: 1px solid #f0e6ff !important;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.04);
    transition: all 0.3s ease;
    height: 100%;
}
.product-card:hover {
    border-color: #8B5CF6;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.08);
    transform: translateY(-4px);
}

/* ===== PRODUCT IMAGE ===== */
.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* ===== PRODUCT TITLE ===== */
.product-card .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .product-title a {
    color: #1a1a2e;
    text-decoration: none;
}
.product-card .product-title a:hover {
    color: #8B5CF6;
}

/* ===== PRICE ===== */
.product-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5B21B6;
}

/* ===== DISCOUNT TEXT ===== */
.discount-text {
    font-size: 1rem;
    font-weight: 800 !important;
    color: #EF4444;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ===== SHOP NOW BUTTON ===== */
.product-card .btn-shop {
    font-size: 1rem;
    padding: 6px 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #fff;
    border: none;
    border-radius: 50px;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 90px;
    text-align: center;
    line-height: 1.4;
}
.product-card .btn-shop:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* ===== CARD BODY ===== */
.product-card .card-body {
    padding: 15px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ===== EXPIRY INFO ===== */
.expiry-info {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 50px;
    display: inline-block;
    margin: 4px auto 2px auto;
    line-height: 1.5;
    min-height: 20px;
    background: #EF4444;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}
.expiry-info.expired {
    background: #9CA3AF;
    color: #fff;
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.2);
}
.expiry-info .countdown-text {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
}

/* ===== DEAL STATUS BADGE ===== */
.deal-status-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 2px auto;
    line-height: 1.5;
}
.deal-status-badge.active { background: #10B981; color: #fff; }
.deal-status-badge.limited-time-offers { background: #F59E0B; color: #fff; }
.deal-status-badge.expired { background: #9CA3AF; color: #fff; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .product-card .btn-shop {
        min-width: 75px;
        padding: 5px 12px;
        font-size: 0.9rem;
    }
    .discount-text {
        font-size: 0.9rem;
    }
    .product-card .product-title {
        font-size: 0.9rem;
        min-height: 42px;
    }
    .product-card .card-img-top {
        height: 180px;
    }
}

@media (max-width: 992px) {
    .product-card .btn-shop {
        min-width: 65px;
        padding: 4px 10px;
        font-size: 0.85rem;
    }
    .discount-text {
        font-size: 0.85rem;
    }
    .product-card .card-img-top {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .product-card .btn-shop {
        min-width: 55px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    .discount-text {
        font-size: 0.8rem;
    }
    .product-card .card-img-top {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .custom-badge {
        font-size: 0.6rem;
        padding: 3px 10px;
        top: 6px;
        left: 6px;
    }
    .product-card .btn-shop {
        min-width: 50px;
        padding: 3px 8px;
        font-size: 0.75rem;
    }
    .discount-text {
        font-size: 0.75rem;
    }
    .product-card .card-img-top {
        height: 130px;
    }
}

/* ========================================
   BANNER SLIDER
   ======================================== */
.banner-slider .carousel-item img {
    height: 420px;
    object-fit: cover;
    border-radius: 25px;
}

@media (max-width: 768px) {
    .banner-slider .carousel-item img {
        height: 200px;
    }
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
    font-weight: 700;
    color: #5B21B6;
    font-size: 2.2rem;
    position: relative;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title i {
    font-size: 1.6rem;
}

.section-header {
    position: relative;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.2rem;
    }
}

/* ========================================
   BORDER CARDS
   ======================================== */
.border-card {
    background: #fff;
    border: 2px solid #f0e6ff;
    border-radius: 24px;
    padding: 30px 25px;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.06);
    transition: all 0.3s ease;
}

.border-card:hover {
    box-shadow: 0 12px 45px rgba(139, 92, 246, 0.1);
}

/* ========================================
   FOOTER
   ======================================== */
.footer-custom {
    background: #1a1a2e;
    color: #ddd;
    padding: 50px 0 30px;
    border-top: 3px solid rgba(139, 92, 246, 0.15);
}

.footer-custom a {
    color: #aaa;
    text-decoration: none;
}

.footer-custom a:hover {
    color: var(--primary-light);
}

.footer-custom .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    margin-right: 8px;
    transition: all 0.3s;
}

.footer-custom .social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ========================================
   BLOGS
   ======================================== */
.blog-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0e6ff;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.1);
}

.blog-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blog-card .card-body {
    padding: 20px;
}

.blog-card .card-title {
    color: #1a1a2e;
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
}

/* ========================================
   BRANDS
   ======================================== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.brands-grid .brand-item {
    padding: 18px 12px;
    min-height: 90px;
    background: #faf5ff;
    border-radius: 16px;
    border: 1px solid #f0e6ff;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brands-grid .brand-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.12);
    border-color: #8B5CF6;
}

.brands-grid .brand-item img {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
}

.brands-grid .brand-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #8B5CF6;
}

.brands-grid .brand-placeholder i {
    font-size: 2.2rem;
}

.brands-grid .brand-placeholder span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a2e;
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    .brands-grid .brand-item {
        padding: 12px 8px;
        min-height: 70px;
    }
    .brands-grid .brand-item img {
        max-height: 40px;
        max-width: 80px;
    }
}

@media (max-width: 576px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
    .brands-grid .brand-item {
        padding: 8px 4px;
        min-height: 55px;
    }
    .brands-grid .brand-item img {
        max-height: 30px;
        max-width: 60px;
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary-custom {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    border: none;
    color: #fff;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    color: #fff;
}

.btn-shop-now {
    padding: 15px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: #fff;
    transition: all 0.3s;
}

.btn-shop-now:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    color: #fff;
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: #fff;
}

/* ========================================
   FORMS
   ======================================== */
.form-control:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15) !important;
}

/* ========================================
   RESPONSIVE FIXES
   ======================================== */
@media (max-width: 992px) {
    .navbar-top .navbar-collapse {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 16px;
        padding: 15px;
        margin-top: 10px;
    }
    .search-bar-top {
        max-width: 100%;
    }
    .menu-bar .menu-list {
        justify-content: center;
        gap: 4px;
    }
    .menu-btn,
    .menu-link-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .navbar-top .navbar-brand img {
        height: 40px;
    }
    .menu-bar .menu-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    .menu-btn,
    .menu-link-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    .menu-link-btn::before {
        display: none;
    }
    .brands-grid .brand-item {
        padding: 12px 8px;
        min-height: 70px;
    }
}

@media (max-width: 576px) {
    .menu-bar .menu-list {
        gap: 3px;
    }
    .menu-btn,
    .menu-link-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    .menu-btn i {
        font-size: 0.8rem;
    }
}

/* ========================================
   MISC HELPERS
   ======================================== */
.hover-effect:hover {
    background: #8B5CF6 !important;
    color: #fff !important;
    border-color: #8B5CF6 !important;
}

.dropdown-item.active {
    background: #8B5CF6 !important;
    color: #fff !important;
}

.dropdown-item.active i {
    color: #fff !important;
}

.product-badge-on-image {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.product-badge-on-image .badge {
    font-size: 1.1rem !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-outline-primary,
.btn-shop-now {
    border-left: none !important;
}

.ratio-16x9 {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ========================================
   RESPONSIVE BADGES (Small Screens)
   ======================================== */
@media (max-width: 576px) {
    .custom-badge,
    .discount-badge {
        font-size: 0.55rem !important;
        padding: 3px 8px !important;
        max-width: 40% !important;
        top: 6px !important;
    }
    .custom-badge {
        left: 6px !important;
    }
    .discount-badge {
        right: 6px !important;
    }
    .expiry-badge {
        font-size: 0.55rem !important;
        padding: 3px 8px !important;
        top: 6px !important;
    }
}

@media (max-width: 400px) {
    .custom-badge,
    .discount-badge {
        font-size: 0.45rem !important;
        padding: 2px 6px !important;
        max-width: 35% !important;
        top: 4px !important;
    }
    .custom-badge {
        left: 4px !important;
    }
    .discount-badge {
        right: 4px !important;
    }
}
/* ===== DEAL STATUS BADGE ===== */
.deal-status-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 2px auto;
    line-height: 1.5;
}
.deal-status-badge.active { background: #10B981; color: #fff; }
.deal-status-badge.limited-time-offers { background: #F59E0B; color: #fff; }
.deal-status-badge.expired { background: #9CA3AF; color: #fff; }

/* Expiry Info (already hai, but ensure) */
.expiry-info {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 50px;
    display: inline-block;
    margin: 4px auto 2px auto;
    line-height: 1.5;
    min-height: 20px;
    background: #EF4444;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}
.expiry-info.expired {
    background: #9CA3AF;
    color: #fff;
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.2);
}
.expiry-info .countdown-text {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
}
/* ===== DISCOUNT TEXT (Plain, no badge) ===== */
.discount-text {
    font-size: 1rem;
    font-weight: 700;
    color: #EF4444;
    letter-spacing: 0.3px;
}

/* ===== SHOP NOW BUTTON (Larger) ===== */
.product-card .btn-shop {
    font-size: 1rem;
    padding: 8px 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #fff;
    border: none;
    border-radius: 50px;
    transition: all 0.3s;
}
.product-card .btn-shop:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* ===== EXPIRY INFO (same as before) ===== */
.expiry-info {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 50px;
    display: inline-block;
    margin: 4px auto 2px auto;
    line-height: 1.5;
    min-height: 20px;
    background: #EF4444;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}
.expiry-info.expired {
    background: #9CA3AF;
    color: #fff;
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.2);
}
.expiry-info .countdown-text {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
}

/* ===== DEAL STATUS BADGE ===== */
.deal-status-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 2px auto;
    line-height: 1.5;
}
.deal-status-badge.active { background: #10B981; color: #fff; }
.deal-status-badge.limited-time-offers { background: #F59E0B; color: #fff; }
.deal-status-badge.expired { background: #9CA3AF; color: #fff; }

/* ===== CUSTOM BADGE (Top-Left) – Full Text Show ===== */
.custom-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #fff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    /* ===== REMOVED: max-width, overflow, text-overflow ===== */
    max-width: 100%;
    white-space: nowrap;
    display: inline-block;
}
/* Best Deal special color */
.custom-badge[style*="background: #22C55E"] {
    background: #22C55E !important;
}
/* ===== PRODUCT CARD BORDER (Subtle Outline) ===== */
.product-card {
    border: 1px solid #f0e6ff !important;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.04);
    transition: all 0.3s ease;
}
.product-card:hover {
    border-color: #8B5CF6;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.08);
    transform: translateY(-4px);
}

/* ===== DISCOUNT TEXT (Bold, No Wrap) ===== */
.discount-text {
    font-size: 1rem;
    font-weight: 800 !important;
    color: #EF4444;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ===== SHOP NOW BUTTON (Larger) ===== */
.product-card .btn-shop {
    font-size: 1rem;
    padding: 8px 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #fff;
    border: none;
    border-radius: 50px;
    transition: all 0.3s;
    white-space: nowrap;
}
.product-card .btn-shop:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* ===== EXPIRY INFO (unchanged) ===== */
.expiry-info {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 50px;
    display: inline-block;
    margin: 4px auto 2px auto;
    line-height: 1.5;
    min-height: 20px;
    background: #EF4444;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}
.expiry-info.expired {
    background: #9CA3AF;
    color: #fff;
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.2);
}
.expiry-info .countdown-text {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
}

/* ===== DEAL STATUS BADGE ===== */
.deal-status-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 2px auto;
    line-height: 1.5;
}
.deal-status-badge.active { background: #10B981; color: #fff; }
.deal-status-badge.limited-time-offers { background: #F59E0B; color: #fff; }
.deal-status-badge.expired { background: #9CA3AF; color: #fff; }

/* ===== CUSTOM BADGE (top-left) ===== */
.custom-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #fff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ===== FORCE BADGE FULL TEXT – OVERRIDE ANY CLIPPING ===== */
.custom-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 20 !important;
    padding: 4px 14px !important;
    border-radius: 50px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    display: inline-block !important;
    white-space: nowrap !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    width: auto !important;
    line-height: 1.4 !important;
    background: linear-gradient(135deg, #F59E0B, #EF4444) !important;
}

/* Ensure product card doesn't clip the badge */
.product-card {
    overflow: visible !important; /* Allow badge to extend if needed */
}
.product-card .card-body {
    padding: 15px 12px 12px !important;
}
/* Keep card image area separate */
.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Rest of styles remain same */