/* Breadcrumb Section */
.breadcrumb-section {
    background: white;
    padding: 24px 0;
    border-bottom: 1px solid #e8e9ea;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.breadcrumb a,
.breadcrumb .separator,
.breadcrumb .current {
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.breadcrumb a {
    color: #02a863;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #017a52;
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #d0d0d0;
    margin: 0 10px;
    font-weight: 600;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

/* Shop Section */
.shop-section {
    background: white;
    padding: 60px 0;
    min-height: 600px;
}

.shop-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar */
.shop-sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e8e9ea;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-widget {
    margin-bottom: 28px;
}

.filter-widget:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list li:last-child {
    margin-bottom: 0;
}

.filter-link {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.filter-link:before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.filter-link:hover {
    color: #02a863;
    background: #f0f8f4;
}

.filter-link.active {
    color: #02a863;
    font-weight: 600;
}

.filter-link.active:before {
    background: #02a863;
    width: 7px;
    height: 7px;
}

/* Price Filter */
.price-filter {
    margin-top: 16px;
}

.price-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #02a863 0%, #02a863 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(2, 168, 99, 0.3);
    transition: all 0.3s ease;
}

.price-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.price-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #02a863 0%, #02a863 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(2, 168, 99, 0.3);
    transition: all 0.3s ease;
}

.price-display {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

/* Products Wrapper */
.products-wrapper {
    display: flex;
    flex-direction: column;
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.toolbar-left {
    flex: 1;
    min-width: 200px;
}

.product-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-right label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sort-select:hover,
.sort-select:focus {
    border-color: #02a863;
    outline: none;
    box-shadow: 0 2px 6px rgba(2, 168, 99, 0.1);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.shop-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.shop-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #02a863;
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f8f4 0%, #e8f5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image i {
    font-size: 60px;
    color: #02a863;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.shop-product-card:hover .product-image i {
    transform: scale(1.15);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #02a863 0%, #02a863 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(2, 168, 99, 0.3);
}

.product-badge.hot {
    background: linear-gradient(135deg, #ff5733 0%, #ff5733 100%);
    box-shadow: 0 2px 8px rgba(255, 87, 51, 0.3);
}

.price-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #02a863 0%, #02a863 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(2, 168, 99, 0.3);
}

.product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.product-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    line-height: 1.5;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.stars i {
    color: #ffc107;
    font-size: 11px;
}

.rating-count {
    font-size: 11px;
    color: #999;
}

.product-footer {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-small {
    flex: 1;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-small {
    background: #f0f0f0;
    color: #333;
}

.btn-small:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.btn-small.btn-secondary {
    background: linear-gradient(135deg, #02a863 0%, #02a863 100%);
    color: white;
}

.btn-small.btn-secondary:hover {
    background: linear-gradient(135deg, #017a52 0%, #02a863 100%);
    box-shadow: 0 4px 10px rgba(2, 168, 99, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 40px;
    border-top: 1px solid #e8e9ea;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: #02a863;
    color: #02a863;
    background: #f0f8f4;
}

.page-link.active {
    background: linear-gradient(135deg, #02a863 0%, #02a863 100%);
    color: white;
    border-color: #02a863;
}

.page-link.prev,
.page-link.next {
    width: auto;
    padding: 8px 16px;
    gap: 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .shop-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .shop-sidebar {
        position: static;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 18px;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-image {
        height: 150px;
    }

    .product-image i {
        font-size: 45px;
    }

    .product-info {
        padding: 14px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .shop-toolbar {
        padding: 14px;
    }

    .product-count {
        font-size: 12px;
    }

    .toolbar-right {
        gap: 8px;
    }

    .toolbar-right label {
        font-size: 12px;
    }

    .sort-select {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-footer {
        gap: 6px;
    }

    .btn-small {
        padding: 8px 10px;
        font-size: 11px;
    }

    .pagination {
        gap: 6px;
    }

    .page-link {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}
