/* ======================
   CARD LINK WRAPPER
====================== */
.card-link-wrapper {
    text-decoration: none !important;
    display: block;
    color: inherit;
    border-radius: 16px;
    transition: all 0.25s ease;
}

/* ======================
   CARD BASE
====================== */
.category-card {
    border-radius: 16px;
    transition: all 0.25s ease;
    height: 100%;
}

/* ======================
   HOVER EFFECT (ONLY DESKTOP)
====================== */
@media (hover: hover) and (pointer: fine) {
    .card-link-wrapper:hover {
        transform: translateY(-5px);
    }

    .card-link-wrapper:hover .category-card {
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }
}

/* ======================
   ACTIVE / TAP EFFECT (MOBILE)
====================== */
.card-link-wrapper:active {
    transform: scale(0.98);
}

/* ======================
   DISABLED STATE
====================== */
.card-link-wrapper.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.col-6, .col-md-4, .col-lg-3 {
    display: flex;
}





/* =========================
   PRODUCT CARD WRAPPER
========================= */
.product-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* hover like ecommerce */
.product-card:hover .product-box {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* disabled */
.product-card.disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* =========================
   PRODUCT BOX
========================= */
.product-box {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* =========================
   IMAGE STYLE (KEY FIX)
========================= */
.product-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f8f8;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* zoom effect like Amazon */
.product-card:hover .product-img {
    transform: scale(1.05);
}

/* =========================
   TITLE
========================= */
.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    min-height: 40px; /* keeps alignment */
}

/* =========================
   BUTTON STYLE (Daraz-like)
========================= */
.product-btn {
    background: #198754;
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 500;
}

/* disabled button */
.product-card.disabled .product-btn {
    background: #999;
}

/* =========================
   RESPONSIVE FIXES
========================= */
@media (max-width: 576px) {
    .product-img-wrapper {
        height: 150px;
    }

    .product-title {
        font-size: 13px;
    }
}





/* ======================
   MOBILE IMPROVEMENTS
====================== */
@media (max-width: 576px) {
    .card-link-wrapper {
        margin-bottom: 12px;
    }

    .category-card {
        border-radius: 12px;
    }
}

/* ======================
   TABLET IMPROVEMENTS
====================== */
@media (max-width: 992px) {
    .card-link-wrapper:hover {
        transform: none; /* disable jumpy hover on tablet */
    }
}

/* =========================
   HERO IMAGE
========================= */


.hero-img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    object-position: center;
    display: block; 
    
}



/* =========================
   DARK OVERLAY (CLEAN)
========================= */
.carousel-item {
    position: relative; 
}

.carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.55)
    );
    z-index: 1;
}

/* =========================
   CENTERED CAPTION
========================= */
.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 750px;
    padding: 0 15px;
}

/* =========================
   TYPOGRAPHY
========================= */
.hero-caption h1 {
    font-size: clamp(1.6rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
    margin-bottom: 15px;
}

.hero-caption p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #f1f1f1;
    margin-bottom: 20px;
    opacity: 0.95;
}

/* =========================
   BUTTON STYLE
========================= */
.hero-caption .btn {
    padding: 10px 22px;
    font-weight: 600;
    border-radius: 30px;
    transition: 0.3s ease;
}

.hero-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* =========================
   CAROUSEL CONTROLS
========================= */
.carousel-control-prev,
.carousel-control-next {
    z-index: 5;
}

/* =========================
   RESPONSIVE BREAKPOINTS
========================= */

/* Tablet */
@media (max-width: 992px) {
    .hero-img {
        height: 65vh; 
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-img {
        height: 40vh;
        margin: 0px 5px;
    }

    .carousel-item::before {
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.35),
            rgba(0,0,0,0.65)
        );
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-img {
        height: 35vh;
        margin : 0px 5px;
    }

    .hero-caption h1 {
        margin-bottom: 10px;
    }

    .hero-caption p {
        font-size: 0.95rem;
    }
}