/* --- Desktop Styles (As it is) --- */
.icons { 
    display: flex; 
    gap: 12px; /* Desktop par sahi gap */
    align-items: center; 
}

.icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 5px; /* Desktop margin */
    cursor: pointer;
}

.icon-wrap i {
    font-size: 18px;
    color: #333;
}

.cart-count, .wishlist-count {
    position: absolute;
    background: #e63946;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    top: -2px;
    right: -2px;
    border: 1px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 5;
    line-height: 1;
}

/* --- Mobile Responsive Code (Adjusted for tighter spacing) --- */
@media (max-width: 480px) {
    .icons {
        gap: 1px !important; /* Mobile par icons ke beech ka gap kam kar diya */
    }

    .icon-wrap {
        width: 25px;
        height: 25px;
        margin: 0 !important; /* Mobile par extra margin zero kar diya */
    }

    .icon-wrap i {
        font-size: 16px;
    }

    .cart-count, .wishlist-count {
        width: 13px;
        height: 13px;
        font-size: 8px;
        top: -3px;
        right: 0px;
    }
}


















/* Slider & Card Fixes */
.trending-card-item { min-width: calc(25% - 15px); flex-shrink: 0; position: relative; }

/* Image Display Fix */
.product-img-container {
    width: 100%;
    height: 250px; /* Aap apne hisab se height set kar sakte hain */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Isse image kategi nahi */
}

/* Button Hover Logic (Common for Add to Cart & OOS) */
.add-cart-btn {
    position: absolute;
    bottom: -10px; /* Initially hidden below */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .add-cart-btn {
    opacity: 1;
    visibility: visible;
    bottom: 15px; /* Hover par upar aayega */
}

/* Out of Stock Button Style */
.add-cart-btn.oos-btn {
    background-color: #444 !important;
    color: #fff !important;
    cursor: not-allowed !important;
}

@media (max-width: 768px) {
    #trendingTrackBox { gap: 10px !important; }
    .trending-card-item { min-width: calc(50% - 5px) !important; }
    .product-img-container { height: 180px; }
}











/* Header Container */
.trending-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; 
    /* Banner se gap dene ke liye margin-top */
    margin-top: 50px; 
    margin-bottom: 25px;
    padding: 0 20px; 
}

/* Heading Styling: Bada aur Bold */
.main-trending-title {
    font-size: 2.0 rem; /* Pehle se aur bada size */
    font-weight: 600; /* Maximum Bold */
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    color: #1a1a1a;
    letter-spacing: 3px;
    line-height: 1.2;
}

/* Slider Arrows Alignment */
.trending-header .slider-arrows {
    position: absolute;
    right: 30px;
    display: flex;
    gap: 12px;
}

/* Mobile View adjustments */
@media (max-width: 768px) {
    .trending-header {
        margin-top: 40px; /* Mobile par thoda kam gap */
        flex-direction: column;
        gap: 20px;
    }
    .main-trending-title {
        font-size: 2rem; /* Mobile ke liye readable bada size */
    }
    .trending-header .slider-arrows {
        position: static; /* Mobile par arrows center mein aa jayenge */
    }
}








 

#trendingTrackBox {
    touch-action: pan-y; /* Vertical scroll allow karega, horizontal swipe hum control karenge */
    will-change: transform; /* Smooth performance ke liye */
    display: flex;
    transition: transform 0.4s ease-out;
}
















/* Grid Layout System */
.product-grid {
    display: flex;
    flex-wrap: wrap; /* Isse products niche aayenge */
    gap: 20px;
    padding: 10px 0;
}

/* Desktop: 4 items per row */
.grid-item {
    width: calc(25% - 15px); 
    flex-shrink: 0;
}

/* Mobile: 2 items per row */
@media (max-width: 768px) {
    .product-grid {
        gap: 10px; /* Mobile par gap kam */
    }
    .grid-item {
        width: calc(50% - 5px); /* 2 products per row */
    }
    /* Add to Cart hidden in previous CSS will apply here too */
}

/* View All Button Styling */
.view-all-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.3s;
}

.view-all-btn:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    color: #fff;
}

/* Baki Design purane CSS se hi lega jo upar diya gaya tha */











/* Same CSS as Trending but targeting Best Sellers items */
.best-card-item { min-width: calc(25% - 15px); flex-shrink: 0; position: relative; }

/* Reuse the same classes from the Trending section to keep CSS clean */
@media (max-width: 768px) {
    #bestTrackBox { gap: 10px !important; }
    .best-card-item { min-width: calc(50% - 5px) !important; }
}

























/* Best Sellers Slider Fixes */
.best-card-item { min-width: calc(25% - 15px); flex-shrink: 0; position: relative; }

#bestTrackBox {
    display: flex;
    transition: transform 0.4s ease-out;
    touch-action: pan-y; /* Vertical scroll allowed, horizontal handled by JS */
    will-change: transform;
}

@media (max-width: 768px) {
    #bestTrackBox { gap: 10px !important; }
    .best-card-item { min-width: calc(50% - 5px) !important; }
}
</style>

<style>
/* Aapka baaki CSS waisa hi rahega... */

/* Ye ensure karega ki container ke bahar kuch na dikhe */
.main-wrapper {
    display: flex !important;
    flex-direction: column;
}

/* Agar koi invisible duplicate video render ho rahi hai to use hide karne ke liye */
video:not(:first-of-type) {
    display: none !important;
}

/* Force hidden overflow to prevent ghost elements */
body {
    overflow-x: hidden;
}

















.main-wrapper {
    padding: 20px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-responsive-container {
    width: 100%;
    max-width: 1400px; /* Desktop par bada dikhega */
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-responsive-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Mobile Specific Fix --- */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 10px; /* Mobile sides gap */
    }

    .video-responsive-container {
        /* Height ko kam kar diya hai taaki video balance dikhe */
        height: 300px; 
        width: 100%;
    }

    .video-responsive-container video {
        height: 100%;
        width: 100%;
        /* Isse video center se fit hogi aur sides kam katengi */
        object-fit: cover; 
        object-position: center;
    }
}








.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  
  /* Right side par shift karne ke liye */
  bottom: 100px;
  right: 20px; 
  
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}






