/* ==========================================================
   CATEGORY SHOWCASE SECTION
   ========================================================== */

.category-showcase {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    background: #fff;
    align-items: stretch;
    height: 720px;   /* 👈 650px se 720px kar diya - image + content dono ki height barh jayegi */
    overflow: hidden;
}
/* ============ LEFT: MODEL IMAGE ============ */
.showcase-image-side {
    flex: 0 0 38%;
    max-width: 38%;
    height: 100%;          /* 👈 explicitly height set ki */
    overflow: hidden;
    position: relative;    /* 👈 add kiya */
}

.showcase-image-side img {
    position: absolute;    /* 👈 absolute positioning - guaranteed containment */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============ RIGHT: CONTENT SIDE ============ */
.showcase-content-side {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;          /* 👈 explicitly height set ki */
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;      /* 👈 safety */
}

.showcase-header {
    margin-bottom: 30px;
}

.showcase-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 46px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.showcase-header p {
    font-size: 17px;
    color: #666;
    margin: 0;
}

/* ============ PRODUCTS CAROUSEL WRAPPER ============ */
.showcase-products-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 25px;
}

/* ============ PRODUCTS TRACK (Horizontal Scroll) ============ */
.showcase-products-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    -ms-overflow-style: none;
    scrollbar-width: none;
}

.showcase-products-track::-webkit-scrollbar {
    display: none;
}

/* ============ INDIVIDUAL PRODUCT CARD ============ */
.product-card {
    flex: 0 0 260px !important;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    scroll-snap-align: start;
}

.product-image-box {
    position: relative;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 18px;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 👈 contain se cover kar diya */
    object-position: center;
    display: block;
    /* padding hata di - koi padding: 20px nahi rahega */
}

/* Add to Cart Circular Button */
.add-to-cart-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #333;
    transform: scale(1.08);
    color: #fff;
}

.add-to-cart-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Product Name */
.product-name {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    text-decoration: none;
}

.product-name:hover {
    text-decoration: underline;
}

/* Price + Rating Row */
.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.product-price ins {
    text-decoration: none;
}

.product-price del {
    opacity: 0.5;
    font-weight: 400;
    font-size: 14px;
    margin-right: 5px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #f2b90c;
    flex-shrink: 0;
}

.product-rating .rating-count {
    margin-left: 6px;
    font-size: 14px;
    color: #666;
}

/* ============ PROGRESS BAR + ARROWS ============ */
.showcase-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 25px;
    width: 100%;
}

.showcase-progress-track {
    flex: 1 1 auto;
    height: 2px;
    background: #e0e0e0;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.showcase-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 25%;
    background: #1a1a1a;
    transition: width 0.2s ease;
}

.showcase-arrows {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.showcase-prev,
.showcase-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.showcase-prev:hover,
.showcase-next:hover {
    background: #f2f2f2;
}

.showcase-prev:disabled,
.showcase-next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */

/* ---------- Tablet ---------- */
@media (max-width: 992px) {

    .category-showcase {
        min-height: 500px;
    }

    .showcase-header h2 {
        font-size: 34px;
    }

    .showcase-content-side {
        padding: 40px 30px;
    }

    .product-card {
        flex: 0 0 220px !important;
        width: 220px;
        min-width: 220px;
        max-width: 220px;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {

    .category-showcase {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    /* Image upar - height barhai gayi */
    .showcase-image-side {
        flex: none;
        max-width: 100%;
        width: 100%;
        height: 380px;   /* 👈 280px se barha ke 380px kar diya */
    }

    /* Right padding hata di, sirf left rakhi */
    .showcase-content-side {
        height: auto;
        overflow: visible;
        padding: 30px 0 25px 20px;   /* 👈 top right bottom left - right ab 0 hai */
        justify-content: flex-start;
    }

    /* Heading aur subtext ko apna right padding do (bleed nahi honi chahiye) */
    .showcase-header {
        margin-bottom: 22px;
        padding-right: 20px;
    }

    .showcase-header h2 {
        font-size: 28px;
    }

    .showcase-header p {
        font-size: 15px;
    }

    /* Products wrapper - ab full width tak bleed karega */
    .showcase-products-wrapper {
        margin-bottom: 20px;
        overflow: visible;
        width: 100%;
    }

    .showcase-products-track {
        gap: 16px;
        padding-right: 20px;   /* 👈 sirf scroll ke END pe safe spacing, peek ko block nahi karega */
    }

    .product-card {
        flex: 0 0 82% !important;
        width: 82%;
        min-width: 82%;
        max-width: 82%;
    }

    .product-name {
        font-size: 17px;
    }

    .product-price {
        font-size: 17px;
    }

    /* Nav ko bhi apna right padding do */
    .showcase-nav {
        margin-top: 20px;
        gap: 20px;
        padding-right: 20px;
    }

    .showcase-arrows {
        display: flex;
    }

    .showcase-prev,
    .showcase-next {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 480px) {

    .product-card {
        flex: 0 0 85% !important;
        width: 85%;
        min-width: 85%;
        max-width: 85%;
    }

    .showcase-header h2 {
        font-size: 24px;
    }

    .showcase-image-side {
        height: 340px;   /* 👈 chhoti screens ke liye thoda kam */
    }
}