/* Product Category Page Styles */

/* Product Category Banner */
.product-category-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.product-category-banner img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}

/* Category Layout */
.category-layout {
    display: flex;
    gap: 0;
    margin-top: 0;
}

/* Left Sidebar */
.category-sidebar {
    flex: 0 0 250px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-right: none;
}

.sidebar-section {
    border-bottom: 1px solid #333;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-title {
    background-color: #c41e3a;
    color: #fff;
    padding: 16px 15px;
    font-size: 18px;
    font-weight: bold;
}

.sidebar-menu,
.filter-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li,
.filter-menu li {
    border-bottom: 1px solid #333;
}

.sidebar-menu li:last-child,
.filter-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a,
.filter-menu a {
    display: block;
    padding: 10px 15px;
    color: #aaa;
    font-size: 16px;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.filter-menu a:hover {
    background-color: #2a2a2a;
    color: #fff;
}

.filter-menu a.active {
    background-color: #2a2a2a;
    color: #c41e3a;
}

/* Category Content */
.category-content {
    flex: 1;
    background-color: #fff;
    border: 1px solid #333;
    padding: 20px;
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.category-icon {
    color: #c41e3a;
    font-size: 16px;
}

.category-header h2 {
    color: #c41e3a;
    font-size: 16px;
    font-weight: bold;
}

/* Category Info */
.category-info {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category-info span {
    margin-right: 5px;
}

.delete-link {
    color: #999;
    cursor: pointer;
}

.delete-link:hover {
    color: #c41e3a;
}

/* Category Product List */
.category-product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-product-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    border: 1px solid #eee;
    transition: all 0.3s;
    text-decoration: none;
}

.category-product-item:hover {
    border-color: #c41e3a;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.1);
}

.category-product-item .product-image {
    flex: 0 0 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    overflow: hidden;
}

.category-product-item .product-image img {
     width: 100%;
     height: 100%;
    object-fit: cover;
}

.category-product-item .product-info {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.category-product-item .product-name {
    color: #666;
    font-size: 18px;
    font-weight: normal;
}

/* No Products Message */
.no-products {
    text-align: center;
    color: #999;
    font-size: 18px;
    padding: 40px;
}

/* List End */
.list-end {
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

/* Slide Button */
.slide-btn {
    margin-left: auto;
    background-color: #c41e3a;
    color: #fff;
    border: none;
    padding: 6px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.slide-btn:hover {
    background-color: #a01830;
}

/* Slide Modal Styles */
.slide-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.slide-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.slide-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #999;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.slide-close:hover {
    color: #c41e3a;
}

.slide-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.slide-nav {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slide-main {
    flex: 1;
    display: flex;
    gap: 30px;
}

.slide-image-wrapper {
    flex: 1;
    max-width: 400px;
}

.slide-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid #eee;
}

.slide-info {
    flex: 1;
    padding: 20px 0;
}

.slide-info h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.slide-price {
    color: #666;
    font-size: 14px;
}

.slide-price span {
    color: #c41e3a;
    font-size: 18px;
    font-weight: bold;
}

.slide-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.slide-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: border-color 0.3s;
}

.slide-thumbnail:hover,
.slide-thumbnail.active {
    border-color: #c41e3a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide-main {
        flex-direction: column;
    }
    
    .slide-image-wrapper {
        max-width: 100%;
    }
    
    .slide-nav {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
