/* Products Page Styles */

.products-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.products-hero {
    background: #ff9600;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.products-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide number input arrows for Firefox */
.qty-input[type=number] {
    -moz-appearance: textfield;
}

.products-section {
    padding: 60px 0;
}

.form-check-input:checked {
    background-color: #ff9600;
    border-color: #ff9600;
}

.filters-sidebar {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.filter-group h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.category-filters .form-check {
    margin-bottom: 10px;
}


.category-filters .form-check-label {
    cursor: pointer;
    font-size: 14px;
}

.price-range input {
    font-size: 14px;
}

.results-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.view-options .btn {
    margin-left: 5px;
}

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

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    max-height: 350px;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

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

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #667eea;
}

.product-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-price {
    margin-bottom: 15px;
}

.price {
    font-size: 1.3rem;
}

.product-actions {
    text-align: center;
    margin-top: auto;
}

.no-products {
    background: white;
    border-radius: 15px;
    padding: 60px 20px;
}

.pagination-wrapper {
    text-align: center;
}

.pagination .page-link {
    color: #667eea;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
}

/* Product Detail Page Styles */

.product-detail-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.breadcrumb-section {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.product-detail-section {
    padding: 60px 0;
}

.product-gallery {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-image-container {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail-item:hover {
    border-color: #667eea;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.product-info {
    background: white;
    border-radius: 15px;
    padding: 30px;
    height: fit-content;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.product-category {
    margin-bottom: 20px;
}

.product-price {
    margin-bottom: 20px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #41b672;
}

.product-stock {
    margin-bottom: 25px;
}

.stock-available {
    color: #28a745;
    font-weight: 600;
}

.stock-unavailable {
    color: #dc3545;
    font-weight: 600;
}

.product-description {
    margin-bottom: 30px;
}

.product-description h5 {
    color: #333;
    margin-bottom: 15px;
}

.product-actions {
    margin-bottom: 30px;
}

.product-meta {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #666;
}

.meta-item i {
    margin-right: 10px;
    color: #667eea;
}

.product-tabs-section {
    padding: 60px 0;
}

.product-tabs {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 600;
    padding: 15px 25px;
}

.nav-tabs .nav-link.active {
    color: #667eea;
    background: white;
    border-bottom: 3px solid #667eea;
}

.tab-content-body {
    padding: 30px;
}

.specifications-list .spec-item {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.specifications-list .spec-item:last-child {
    border-bottom: none;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
}

.related-products-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-weight: 700;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.related-product-card .product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.related-product-card .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-product-card:hover .product-overlay {
    opacity: 1;
}

.related-product-card .product-info {
    padding: 20px;
    box-shadow: none;
    background: transparent;
}

.related-product-card .product-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.related-product-card .product-title a {
    color: #333;
    text-decoration: none;
}

.related-product-card .product-title a:hover {
    color: #667eea;
}

.related-product-card .product-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.related-product-card .product-price .price {
    font-size: 1.2rem;
}

/* Category Page Styles */

.category-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.category-hero {
    background: #ff9600;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.category-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-stats {
    margin-top: 30px;
}

.stat-item {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    margin: 0 10px;
    font-weight: 600;
}

.stat-item i {
    margin-right: 8px;
}

/* Responsive Styles */

@media (max-width: 768px) {

    .products-hero h1,
    .category-hero h1 {
        font-size: 2rem;
    }

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

    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .product-title {
        font-size: 2rem;
    }

    .main-image {
        height: 300px;
    }

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