/* ============================================
   Category Products Section - Bogura Bazar Theme
============================================ */

.catagory-product-section {
    margin: 60px 0;
}

.cat-prod-wrapper {
    margin-bottom: 50px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.cat-prod-row {
    display: flex;
    flex-wrap: wrap;
}

/* ========== বাম পাশের ক্যাটাগরি ব্যানার ========== */
.cat-prod-left {
    width: 25%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.cat-banner-card {
    display: block;
    height: 100%;
    text-decoration: none;
}

.cat-banner-img {
    position: relative;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
}

.cat-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.cat-banner-card:hover .cat-banner-img img {
    transform: scale(1.05);
}

.cat-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(58, 148, 6, 0.3), transparent);
}

.cat-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.45);
    display: inline-block;
    padding: 0 15px;
    border-radius: 8px;
}

.cat-count {
    font-size: 14px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cat-btn {
    display: inline-block;
    background: #00A65A;
    color: white;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.cat-btn:hover {
    background: #008D4C;
    transform: translateX(5px);
}

/* ব্যানার প্লেসহোল্ডার */
.cat-banner-placeholder {
    background: linear-gradient(135deg, #00A65A, #008D4C);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.cat-icon-large {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 15px;
}

/* ========== ডান পাশের প্রোডাক্টস গ্রিড ========== */
.cat-prod-right {
    width: 75%;
    padding: 24px;
}

.cat-prod-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #00A65A;
    flex-wrap: wrap;
    gap: 12px;
}

.cat-prod-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: rgba(2, 128, 50, 0.5);
    border-radius: 5px;
    padding: 1px;
}

.cat-icon-default {
    font-size: 30px;
    color: #00A65A;
}

.cat-prod-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #00A65A;
}

.cat-prod-view-all {
    color: #00A65A;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.cat-prod-view-all:hover {
    color: #008D4C;
    transform: translateX(3px);
}

/* প্রোডাক্ট গ্রিড */
.cat-prod-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.cat-prod-item {
    list-style: none;
}

.cat-prod-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.cat-prod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cat-prod-img-wrapper {
    position: relative;
    background: #f8f9fa;
    height: 140px;
    overflow: hidden;
}

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

.cat-prod-card:hover .cat-prod-img {
    transform: scale(1.08);
}

.cat-prod-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
}

.cat-prod-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e1e2e;
    margin: 10px 0 5px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
    padding: 0 8px;
}

.cat-prod-price {
    text-align: center;
    margin-bottom: 8px;
}

.cat-prod-current {
    font-size: 14px;
    font-weight: 700;
    color: #00A65A;
}

.cat-prod-old {
    font-size: 13px;
    color: #ff0000;
    text-decoration: line-through;
    margin-left: 5px;
}

.cat-prod-weight {
    text-align: center;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-prod-weight span {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 5px;
}

.cat-prod-weight i {
    font-size: 10px;
    color: #00A65A;
}

.cat-prod-cart {
    width: 100%;
    background: #00A65A;
    border: none;
    border-radius: 0 0 10px 10px;
    padding: 6px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.cat-prod-cart:hover {
    background: #008D4C;
}

.cat-prod-cart.out-of-stock {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

.cat-prod-cart.out-of-stock:hover {
    background: #e5e7eb !important;
}

.cat-prod-empty {
    grid-column: span 5;
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

/* লোড মোর বাটন */
.cat-prod-loadmore {
    text-align: center;
    margin-top: 24px;
    display: none;
}

.cat-loadmore-btn {
    background: #00A65A;
    border: 1px solid #e5e7eb;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cat-loadmore-btn:hover {
    background: #d4540a;
}

/* ========== রেস্পন্সিভ ========== */
@media (max-width: 1200px) {
    .cat-prod-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .cat-prod-empty {
        grid-column: span 4;
    }
}

@media (max-width: 992px) {
    .cat-prod-left, .cat-prod-right {
        width: 100%;
    }
    .cat-banner-img, .cat-banner-placeholder {
        min-height: 300px;
    }
    .cat-name {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .cat-prod-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cat-prod-empty {
        grid-column: span 3;
    }
    .cat-prod-title {
        font-size: 18px;
    }
    .cat-prod-view-all {
        display: none;
    }
    .cat-prod-header {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    .cat-prod-header-left {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    .cat-icon, .cat-icon-default {
        display: none;
    }
    .cat-prod-loadmore {
        display: block;
    }
}

@media (max-width: 576px) {
    .cat-prod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .cat-prod-empty {
        grid-column: span 2;
    }
    .cat-prod-right {
        padding: 16px;
    }
    .cat-prod-title {
        font-size: 16px;
    }
}

/* ========== ক্যাটাগরি প্রোডাক্ট লিংক ========== */
.cat-prod-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
    cursor: pointer;
}

.cat-prod-link:hover {
    text-decoration: none;
    color: inherit;
}

.cat-prod-link:hover .cat-prod-img {
    transform: scale(1.05);
}

.cat-prod-link:hover .cat-prod-name {
    color: #00A65A;
}

/* ========== ক্যাটাগরি প্রোডাক্ট কার্ড ========== */
.cat-prod-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cat-prod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #00A65A;
}

/* ========== ইমেজ র‍্যাপার ========== */
.cat-prod-img-wrapper {
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
    flex-shrink: 0;
}

.cat-prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

/* ========== ব্যাজ ========== */
.cat-prod-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* ========== ইনফো ========== */
.cat-prod-info {
    padding: 12px;
    flex: 1;
}

.cat-prod-name {
    font-size: 13px;
    font-weight: 500;
    color: #1e1e2e;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
    min-height: 36px;
    line-height: 1.3;
}

.cat-prod-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.cat-prod-current {
    font-size: 16px;
    font-weight: 700;
    color: #00A65A;
}

.cat-prod-old {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

.cat-prod-weight span {
    font-size: 12px;
    color: #6c757d;
}

/* ========== কার্ট বাটন ========== */
.cat-prod-cart {
    width          : 100%;
    padding        : 8px 12px;
    background     : #00A65A;
    color          : white;
    border         : none;
    border-radius: 0 0 12px 12px;
    font-size      : 12px;
    font-weight    : 500;
    cursor         : pointer;
    transition     : all 0.3s;
    display        : flex;
    align-items    : center;
    justify-content: center;
    gap            : 6px;
    flex-shrink    : 0;
    margin-top     : auto;
    position       : relative;
    z-index        : 2;
}

.cat-prod-cart:hover {
    background: #008D4C;
    transform: translateY(-2px);
}
