/* =========================================
   Products List Page Styles
   ========================================= */

/* =========================================
   1. Banner
   ========================================= */
.products-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--header-height, 80px);
}
.Tag{
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 99;
	background: #fff;
	padding:5px 10px ;
	border-radius: 5px;
	font-size: 13px;
	color: #0f5132;
}
.products-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.banner-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumb-sep {
    margin: 0 10px;
    opacity: 0.6;
}

/* =========================================
   2. Main Layout: Sidebar + Content
   ========================================= */
.products-layout {
    padding-top: 60px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* =========================================
   3. Sidebar
   ========================================= */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-box {
    background: var(--white);
    padding:  0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1.2rem;
    color: #fff;
	text-align: center;
    border-bottom: 2px solid var(--gray-medium);
    padding: 15px;
    margin-bottom: 20px;
	background: #0f5132;
	border-radius: 10px 10px 0 0;
}
.Href{
	border-radius: 10px;
	margin-top: 15px;
}
.cat-list {
    list-style: none;

}

.cat-item {
    margin-bottom: 15px; 
}
.cat-item.open .cat-main{
    margin-bottom: 15px; 
}
.cat-main {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f5132;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    transition: 0.2s; background: #abc2b7;
}

.cat-main:hover {
  
}

.cat-arrow {
    transition: transform 0.3s;
    display: flex;
    align-items: center;
}

.cat-item.open .cat-arrow {
    transform: rotate(180deg);
}

.sub-cat-list {
    list-style: none;
    padding: 15px;
	padding-bottom: 0;
   /* max-height: 0;
    overflow: hidden; */
    transition: max-height 0.35s ease;
}

.cat-item.open .sub-cat-list {
    max-height: 500px;
}

.sub-cat-list a {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666666;
    text-decoration: none;
    padding: 4px 0;
    transition: 0.2s;
}

.sub-cat-list a:hover,
.sub-cat-list a.active {
    color: var(--primary);
}

/* =========================================
   4. Mobile Category Bar
   ========================================= */
.mobile-category-bar {
    display: none;
    margin-bottom: 20px;
}

.mobile-category-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.mobile-category-toggle svg:first-child {
    color: var(--primary);
}

.dropdown-chevron {
    margin-left: auto;
    transition: transform 0.3s;
}

.mobile-category-bar.open .dropdown-chevron {
    transform: rotate(180deg);
}

.mobile-category-bar.open .mobile-category-toggle {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

.mobile-category-panel {
    display: none;
    margin-top: 8px;
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.mobile-category-bar.open .mobile-category-panel {
    display: block;
}

.mobile-cat-list {
    list-style: none;
}

.mobile-cat-head {
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.mobile-cat-head::after {
    content: '+';
    font-size: 1.1rem;
    color: var(--text-light);
    transition: transform 0.3s;
}

.mobile-cat-item.open .mobile-cat-head::after {
    content: '−';
}

.mobile-cat-head:hover {
    background: var(--gray-light);
}

.mobile-sub-list {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--gray-light);
}

.mobile-cat-item.open .mobile-sub-list {
    max-height: 400px;
}

.mobile-sub-list a {
    display: block;
    padding: 8px 16px 8px 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.2s;
}

.mobile-sub-list a:hover,
.mobile-sub-list a.active {
    color: var(--primary);
    background: rgba(15, 81, 50, 0.05);
}

/* =========================================
   5. Filter Bar
   ========================================= */
.filter-bar {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.search-box {
    display: flex;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--8primary);
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

.search-box input {
    padding: 8px 12px;
    border: none;
    outline: none;
    width: 200px;
    font-size: 0.9rem;
    background: transparent;
}

.search-btn {
    background: var(--gray-medium);
    padding: 0 15px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.search-btn:hover {
    background: var(--primary);
}

.search-btn:hover svg {
    stroke: var(--white);
}

.search-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-light);
    transition: stroke 0.2s;
}

/* =========================================
   6. Product Grid
   ========================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-medium);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
	position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-img-box {
    position: relative;
    overflow: hidden;
}

.card-img-box img {
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-box img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-features {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.feature-tag {
    font-size: 0.8rem;
    color: var(--primary);
    background: rgba(15, 81, 50, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--gray-medium);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.card-footer:hover {
    gap: 10px;
}

.footer-arrow {
    font-size: 1.2rem;
    line-height: 1;
}
.cat-main{
	display: flex;
	justify-content: space-between;
}

/* =========================================
   Responsive - Tablet (≤1024px)
   ========================================= */
@media (max-width: 1024px) {
    /* Banner */
    .products-banner { height: 260px; }
    .banner-content h1 { font-size: 2rem; }

    /* Layout: hide sidebar, show mobile category */
    .products-layout {
        grid-template-columns: 1fr;
        padding-top: 40px;
        padding-bottom: 60px;
    }
    .sidebar { display: none; }
    .mobile-category-bar { display: block; }

    /* Grid */
    .product-grid { grid-template-columns: repeat(3, 1fr); }

    /* Search */
    .search-box input { width: 160px; }
}

/* =========================================
   Responsive - Mobile (≤768px)
   ========================================= */
@media (max-width: 768px) {
    /* Banner */
    .products-banner { height: 220px; }
    .banner-content h1 { font-size: 1.75rem; }
    .banner-content p { font-size: 1rem; }
    .breadcrumbs { font-size: 0.8rem; }

    /* Layout */
    .products-layout { padding-top: 30px; padding-bottom: 40px; gap: 20px; }

    /* Filter */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 5px;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .search-box input { width: 100%; flex: 1; }

    /* Grid: 2 cols */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Card */
    .card-body { padding: 15px; }
    .card-title { font-size: 1rem; }
    .card-desc { font-size: 0.85rem; margin-bottom: 10px; }
    .feature-tag { font-size: 0.75rem; padding: 3px 6px; }
    .card-footer { font-size: 0.85rem; padding-top: 8px; }

    /* Mobile category */
    .mobile-category-toggle { padding: 10px 14px; font-size: 0.9rem; }
}

/* =========================================
   Responsive - Small Mobile (≤480px)
   ========================================= */
@media (max-width: 480px) {
    /* Banner */
    .products-banner { height: 200px; }
    .banner-content h1 { font-size: 1.5rem; margin-bottom: 8px; }
    .banner-content p { font-size: 0.9rem; }

    /* Layout */
    .products-layout { padding-top: 20px; padding-bottom: 30px; }

    /* Filter */
    .filter-bar { padding: 12px; gap: 10px; }
    .filter-tabs { gap: 6px; }
    .btn-sm { padding: 6px 14px; font-size: 0.8rem; }

    /* Grid: 2 cols (keep, cards smaller) */
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    /* Card */
    .card-body { padding: 10px; }
    .card-title { font-size: 0.9rem; margin-bottom: 5px; }
    .card-desc {
        font-size: 0.8rem;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }
    .card-features { gap: 6px; margin-bottom: 8px; }
    .feature-tag { font-size: 0.7rem; padding: 2px 5px; gap: 3px; }
    .card-footer { font-size: 0.8rem; }

    /* Mobile category */
    .mobile-category-toggle { padding: 10px 12px; font-size: 0.85rem; }
    .mobile-cat-head { padding: 10px 14px; font-size: 0.9rem; }
    .mobile-sub-list a { padding: 7px 14px 7px 24px; font-size: 0.85rem; }
}