/* Category Page Styles */

/* Breadcrumb */
.breadcrumb-section {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1400px) {
    .breadcrumb-container {
        max-width: 90%;
        padding: 0 40px;
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-link {
    color: #DF7B0C;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-link:hover {
    color: #c6680a;
}

.breadcrumb-link i {
    font-size: 13px;
}

.breadcrumb-separator {
    color: #999;
    font-size: 12px;
    margin: 0 3px;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #6f1613, #9f1e19);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: slideStripes 20s linear infinite;
}

@keyframes slideStripes {
    0% { transform: translateX(0); }
    100% { transform: translateX(50px); }
}

.category-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1400px) {
    .category-container {
        max-width: 90%;
        padding: 0 40px;
    }
}

.category-info {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.category-title {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.category-title i {
    color: #DF7B0C;
    font-size: 0.8em;
}

.category-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.category-meta {
    font-size: 1em;
    opacity: 0.8;
}

.product-count {
    background: rgba(223, 123, 12, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(223, 123, 12, 0.5);
}

/* Products Section */
.products-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    min-height: 60vh;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.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);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    z-index: 2;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
    z-index: 2;
}

.stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.product-info {
    padding: 20px;
}

.product-name {
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-name a {
    color: #6f1613;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #DF7B0C;
}

.product-description {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price,
.sale-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #DF7B0C;
}

.original-price {
    font-size: 1em;
    color: #999;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.view-btn {
    flex: 1;
    background: linear-gradient(135deg, #DF7B0C, #c6680a);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-btn:hover {
    background: linear-gradient(135deg, #c6680a, #DF7B0C);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(223, 123, 12, 0.3);
}

.quick-add-btn {
    background: transparent;
    border: 2px solid #DF7B0C;
    color: #DF7B0C;
    width: 45px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.quick-add-btn:hover {
    background: #DF7B0C;
    color: white;
    transform: translateY(-2px);
}

/* Empty Category */
.empty-category {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4em;
    color: #DF7B0C;
    margin-bottom: 30px;
}

.empty-category h3 {
    font-size: 2em;
    color: #6f1613;
    margin-bottom: 15px;
    font-weight: 700;
}

.empty-category p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.back-home-btn {
    background: linear-gradient(135deg, #DF7B0C, #c6680a);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-home-btn:hover {
    background: linear-gradient(135deg, #c6680a, #DF7B0C);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 123, 12, 0.3);
}

/* Active category highlighting */
.dropdown-content a.active,
.dept-link.active {
    background-color: #DF7B0C !important;
    color: white !important;
}

.dropdown-content a.active i {
    color: white !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .category-title {
        font-size: 2.5em;
    }
    
    .category-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .category-header {
        padding: 40px 0;
    }
    
    .category-container {
        padding: 0 15px;
    }
    
    .category-title {
        font-size: 2em;
        flex-direction: column;
        gap: 10px;
    }
    
    .category-description {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    .products-section {
        padding: 40px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name a {
        font-size: 1em;
    }
    
    .empty-category {
        padding: 60px 15px;
    }
    
    .empty-icon {
        font-size: 3em;
        margin-bottom: 20px;
    }
    
    .empty-category h3 {
        font-size: 1.8em;
        margin-bottom: 12px;
    }
    
    .empty-category p {
        font-size: 1em;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 1.8em;
    }
    
    .category-description {
        font-size: 0.95em;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name a {
        font-size: 0.95em;
    }
    
    .product-description {
        font-size: 0.85em;
        margin-bottom: 12px;
    }
    
    .product-price {
        margin-bottom: 12px;
    }
    
    .current-price,
    .sale-price {
        font-size: 1.1em;
    }
    
    .view-btn {
        padding: 8px 16px;
        font-size: 0.85em;
    }
    
    .quick-add-btn {
        width: 40px;
        height: 35px;
        font-size: 14px;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1920px) {
    .category-container {
        max-width: 85%;
        padding: 0 60px;
    }
    
    .category-title {
        font-size: 3.5em;
    }
    
    .category-description {
        font-size: 1.3em;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 40px;
    }
    
    .product-image {
        height: 280px;
    }
}

@media (min-width: 2560px) {
    .category-container {
        max-width: 80%;
    }
    
    .category-title {
        font-size: 4em;
    }
    
    .category-description {
        font-size: 1.4em;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 45px;
    }
    
    .product-image {
        height: 320px;
    }
}
