/* Category Page Improvements */

/* Page Header Breadcrumb Styling */
.page-header .agriox-breadcrumb li span {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.page-header .agriox-breadcrumb li a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-header .agriox-breadcrumb li a:hover {
    color: #ffffff !important;
}

/* Page Header Title */
.page-header__title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 700;
    margin-bottom: 15px;
}

/* Category Description Styling */
.category-description {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 40px 30px;
    margin-bottom: 60px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.category-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--agriox-primary, #4CAF50) 0%, #45a049 100%);
}

.category-description .lead {
    font-size: 18px;
    line-height: 1.7;
    color: #2c3e50;
    margin: 0;
    font-weight: 400;
    text-align: center;
    padding-top: 0;
}

/* Shop Page Section Spacing */
.shop-page {
    padding-top: 80px;
    padding-bottom: 100px;
}

/* Product Cards Grid Spacing */
.shop-page .row {
    --bs-gutter-y: 50px; /* Increased vertical spacing between cards */
    --bs-gutter-x: 30px;
    margin-top: 40px; /* Add top spacing for the grid */
}

/* Product Card Container Improvements */
.shop-page .col-xl-4,
.shop-page .col-lg-6,
.shop-page .col-md-6 {
    margin-bottom: 40px; /* Additional bottom spacing */
    display: flex;
}

.shop-page .col-xl-4 .shop-one__item,
.shop-page .col-lg-6 .shop-one__item,
.shop-page .col-md-6 .shop-one__item {
    width: 100%;
    margin-bottom: 0;
}

/* Enhanced Product Card Spacing */
.shop-one__item {
    margin-bottom: 30px;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-one__item:hover {
    transform: translateY(-12px);
}

/* Paragraph Styling Improvements */
.shop-one__content p,
.shop-one__text {
    padding-top: 8px !important;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

/* Price Section Spacing */
.shop-one__price {
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Button Box Spacing */
.shop-one__btn-box {
    margin-top: auto;
    padding-top: 15px;
}

/* No Products Found Section */
.text-center.py-5 {
    padding: 80px 0 !important;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 40px 0;
}

.text-center.py-5 h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.text-center.py-5 p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    padding-top: 0 !important;
}

/* Pagination Spacing */
.shop-page__pagination {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .shop-page .row {
        --bs-gutter-y: 40px;
        margin-top: 30px;
    }
    
    .category-description {
        padding: 30px 20px;
        margin-bottom: 40px !important;
    }
    
    .category-description .lead {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .shop-page {
        padding-top: 60px;
        padding-bottom: 80px;
    }
    
    .shop-page .row {
        --bs-gutter-y: 30px;
        --bs-gutter-x: 20px;
        margin-top: 20px;
    }
    
    .shop-page .col-xl-4,
    .shop-page .col-lg-6,
    .shop-page .col-md-6 {
        margin-bottom: 30px;
    }
    
    .category-description {
        padding: 25px 15px;
        margin-bottom: 30px !important;
    }
    
    .category-description .lead {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .shop-page .row {
        --bs-gutter-y: 25px;
        --bs-gutter-x: 15px;
    }
    
    .shop-page .col-xl-4,
    .shop-page .col-lg-6,
    .shop-page .col-md-6 {
        margin-bottom: 25px;
    }
}

/* Enhanced Visual Hierarchy */
.shop-page .container > .row:first-of-type {
    margin-bottom: 20px;
}

.shop-page .container > .row:last-of-type {
    margin-top: 40px;
}

/* Loading State for Better UX */
.shop-one__item.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth Animations */
.shop-one__item,
.category-description,
.shop-page__pagination {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation for Cards */
.shop-one__item:nth-child(1) { animation-delay: 0.1s; }
.shop-one__item:nth-child(2) { animation-delay: 0.2s; }
.shop-one__item:nth-child(3) { animation-delay: 0.3s; }
.shop-one__item:nth-child(4) { animation-delay: 0.4s; }
.shop-one__item:nth-child(5) { animation-delay: 0.5s; }
.shop-one__item:nth-child(6) { animation-delay: 0.6s; }