/* --- UPDATED COMPLETE PRODUCTS.CSS --- */

.featured-section-title h3 {
    font-size: 1.50vw;
    color: #2d2a2a;
    font-weight: 600;
    line-height: 1.4;
}

.featured-section-title .title-sm {
    font-size: 20px;
    color: #6a6a6a;
    font-weight: 500;
    margin-left: 0px;
}

.featured-section-view-more {
    float: right;
    font-size: 14px;
}

.centered-featured-section-view-more {
    float: none !important;
}

.product-image-container {
    width: 100%; 
    height: 230px;
    margin: auto;
    position: relative;
    vertical-align: middle;
    line-height: 230px;
    display: flex; 
    align-items: center;
    justify-content: center;
    padding: 10px; /* Thodi padding taaki image edges se na chipke */
}

.product-grid {
    font-family: Raleway, sans-serif;
    text-align: center;
    padding: 0 0 85px; 
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin: 0; 
    background: #fff; 
    transition: all 0.3s ease;
    width: 100%; 
}

/* PC par hover effect */
.product-grid:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-grid .product-image {
    position: relative;
    transition: all 0.3s ease 0s;
    width: 100%;
    margin: auto;
}

.product-grid .rating-sm {
    font-size: 14px !important;
}

.product-grid .product-image img {
    max-width: 100%; 
    max-height: 100%;
    object-fit: contain;
}

.product-grid .swiper-slide img {
    width: 100%;
}

.product-grid .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-grid .pic-1 {
    opacity: 1;
    transition: all 0.3s ease-out 0s;
}

.product-grid:hover .pic-1 {
    opacity: 1;
}

.product-grid .pic-2 {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease-out 0s;
    width: 100%;
}

.product-grid:hover .pic-2 {
    opacity: 1;
}

.product-grid .social {
    width: 150px;
    padding: 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    transform: translateY(-50%) translateX(-50%);
    position: absolute;
    top: 60%;
    left: 50%;
    z-index: 3;
    transition: all 0.3s ease 0s;
}

.product-grid:hover .social {
    opacity: 1;
    top: 50%;
}

.product-grid .social li {
    display: inline-block;
}

.product-grid .social li a {
    color: #fff;
    background-color: #333;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
    height: 40px;
    width: 40px;
    margin: 0 2px;
    display: block;
    position: relative;
    transition: all 0.3s ease-in-out;
    border-radius: 50%;
}

.product-grid .social li a:hover {
    color: var(--font-color) !important;
    background-color: var(--secondary-color);
}

.product-grid .social li a:after,
.product-grid .social li a:before {
    content: attr(data-tip);
    color: #fff;
    background-color: #000;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 20px;
    padding: 1px 5px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-50%);
    position: absolute;
    left: 50%;
    top: -30px;
}

.product-grid .social li a:after {
    content: '';
    height: 15px;
    width: 15px;
    border-radius: 0;
    transform: translateX(-50%) rotate(45deg);
    top: -20px;
    z-index: -1;
}

.product-grid .social li a:hover:after,
.product-grid .social li a:hover:before {
    opacity: 1;
}

.product-grid .product-discount-label,
.product-grid .product-new-label {
    color: #fff;
    background-color: #6c191a;
    font-size: 12px;
    text-transform: uppercase;
    padding: 2px 7px;
    display: block;
    position: absolute;
    top: 10px;
    left: 0;
    z-index: 2;
}

.product-grid .product-discount-label {
    background-color: #000000;
    left: 0;
    top: 38px;
}

.product-wishlist {
    right: 0;
    top: 10px;
    position: absolute;
    z-index: 2;
}

.product-grid .rating {
    color: #ffd200;
    font-size: 12px;
    padding: 12px 0 20px;
    margin: 0;
    list-style: none;
    position: relative;
    z-index: 0;
}

.product-grid .rating li.disable {
    color: rgba(0, 0, 0, 0.2);
}

.product-grid .product-content {
    background-color: #fff;
    text-align: center;
    padding: 0px 5px 5px;
    margin: 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    z-index: 1;
    transition: all 0.3s;
}

.product-grid:hover .product-content {
    bottom: 8px;
}

.product-grid .title {
    font-size: 15px; /* Thoda chota kiya taaki mobile par fit ho sake */
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    margin: auto;
    transition: all 0.3s ease 0s;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
    margin-top: 6px;
    white-space: nowrap;
}

.title a {
    color: #031838;
    text-decoration: none;
}

.product-grid .title a:hover,
.product-grid:hover .title a {
    color: #0a78cc;
}

.product-grid .price {
    color: #333;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
    text-align: center;
    transition: all 0.3s;
    padding-top: 8px;
    padding-bottom: 8px;
}

.list-view-price {
    color: #333;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 0px;
    transition: all 0.3s;
}

.product-grid .price span,
.striped-price {
    color: red;
    font-size: 13px;
    font-weight: 400;
    text-decoration: line-through;
    margin-left: 3px;
    display: inline-block;
}

.add-to-cart {
    color: var(--font-color) !important;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 15px;
    background: #0e7dd1;
    border: none;
    cursor: pointer;
    width: 90%; /* Button ko card ke according fix kiya */
    margin-bottom: 5px;
}

/* add-fav styling */
.product-image-swiper .add-fav,
.product-style-1 .add-fav,
.product-style-2 .add-fav {
    background-color: #fff;
    z-index: 2;
    top: 0;
    right: 0;
    position: absolute;
    overflow: hidden;
    border-bottom-left-radius: 58px 58px;
}

.product-image-swiper .add-fav>button,
.product-style-1 .add-fav>button,
.product-style-2 .add-fav>button {
    color: #adadad;
    font-size: 0.9rem;
    padding-left: 11px;
    padding-right: 6px;
    background: white;
    border: none;
}

/* product-style-default */
.product-style-default .product-image {
    height: 220px;
}

.product-style-default .product-image .product-image-container {
    height: 180px;
}

/* product-style-1 */
.product-style-1 {
    margin: auto;
    padding-bottom: 60px !important;
}

.product-style-1 .product-grid {
    margin-top: 5px !important;
}

.product-style-1 .col-4 {
    padding: 0px;
}

.product-style-1 .product-image {
    height: 140px;
}

.product-style-1 .product-image-container {
    width: 100%;
    height: 125px;
    margin: auto;
    position: relative;
    line-height: 145px;
}

.style-3-product-right-lg .product-grid {
    height: 100%;
    top: 35px;
    border: 1px solid rgb(14 125 209);
}

/* product-style-2 */
.product-style-2 {
    background-color: transparent !important;
    box-shadow: none;
}

.product-style-2 .product-grid {
    background-color: #fff !important;
    width: 100%;
}

.product-style-2 .product-image {
    height: 220px;
}


/* --- VIEW MORE CUTTING & ALIGNMENT FINAL FIX --- */
@media only screen and (max-width: 767px) {

    .featured-section-title {
        padding: 0 15px !important;
        /* Side se thodi jagah banai */
        overflow: visible !important;
        /* Bahar nikalne par kaatega nahi */
    }

    .featured-section-title .row {
        margin: 0 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        /* Items ko ek hi line mein rakhega */
        width: 100% !important;
    }

    /* Left Block: Title aur Subtitle */
    .featured-section-title .col-md-6 {
        flex: 1 !important;
        /* Baaki bachi saari jagah Title lega */
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        /* Left se barabar */
        text-align: left !important;
    }

    /* Right Block: View More */
    .featured-section-title .col-md-2 {
        flex: 0 0 auto !important;
        /* Jitna bada text utni width */
        width: auto !important;
        padding: 0 !important;
        margin-top: 0 !important;
        /* Extra gap hataya */
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    .featured-section-view-more {
        font-size: 11px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        color: #0e7dd1 !important;
        white-space: nowrap !important;
        /* Text ko ek line mein rakhega */
        padding-right: 5px !important;
        /* Right side se safe distance */
        margin-right: 0 !important;
        display: inline-block !important;
    }

    .featured-section-title h3.section-title {
        font-size: 15px !important;
        margin: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* Agar screen bahut choti ho toh ... dikhega */
    }

    .featured-section-title .title-sm {
        font-size: 12px !important;
        margin-top: 2px !important;
        text-align: left !important;
    }
}

/* --- MOBILE & TABLET OPTIMIZATION (SIDE GAPS FIX) --- */

@media only screen and (max-width: 767px) {
    /* Main container and row gaps removing */
    .container, .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -2px !important; /* Gutter kam karne ke liye */
        margin-right: -2px !important;
    }
    
    /* 2 products per row covering full width */
    .col-6, .col-sm-6, .col-xs-6, 
    .product-style-1 .col-4, 
    .product-style-2 div[class^="col"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding: 2px !important; /* Cards ke beech ka gap minimal kiya */
    }

    .product-grid {
        margin-bottom: 5px; /* Vertical gap kam kiya */
        padding-bottom: 65px; 
        border-radius: 4px;
    }

    .product-image-container {
        height: 180px !important; /* Mobile par image area bada kiya */
    }

    .product-grid .title {
        font-size: 13px !important;
        margin-top: 4px;
    }

    .product-grid .price {
        font-size: 14px !important;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    /* Fixed VW issue for Mobile Headings */
    .featured-section-title h3 {
        font-size: 18px !important;
    }
    
    /* Mobile par add to cart button ko hamesha center aur fit rakhega */
    .add-to-cart {
        padding: 4px 5px;
        font-size: 11px;
    }
}

@media only screen and (max-width: 990px) {
    .product-grid {
        margin-bottom: 15px;
    }
}

/* dark mode styling */
.darkmode--activated .price {
    color: #ffffff;
}

.darkmode--activated .product-grid {
    border: 1px solid #1d1c1c;
    background-color: #131313 !important;
}

.darkmode--activated .product-content,
.darkmode--activated .title a {
    background-color: #131313;
    color: #fff;
}