/* Shop Page Styles */
.shop-hero {
    background-image: url('../images/products.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.shop-categories {
    padding: 60px 0;
    background-color: var(--white);
}

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

.category-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    height: 200px;
}

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

.category-content {
    padding: 25px;
}

.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.category-content p {
    color: #666;
    margin-bottom: 10px;
}

.category-count {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Featured Products Slider */
.featured-products {
    padding: 60px 0;
    width: 100%;
    background-color: var(--light-color);
    overflow: hidden;
}

.featured-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.featured-slider {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.featured-slide {
    flex: 0 0 100%;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.featured-slide.active {
    opacity: 1;
}

.featured-slide .product-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.featured-slide .product-image {
    flex: 1;
    height: 400px;
    min-height: 400px;
}

.featured-slide .product-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-slide .product-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.featured-slide .product-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.featured-slide .product-price {
    margin-bottom: 25px;
}

.featured-slide .current-price {
    font-size: 1.8rem;
}

.featured-slide .original-price {
    font-size: 1.2rem;
}

.featured-slide .add-to-cart {
    padding: 15px 25px;
    font-size: 1.1rem;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.slider-nav-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev-btn {
    left: 0;
}

.slider-next-btn {
    right: 0;
}

.slider-dots-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active,
.slider-dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Product Grid Layout */
.products-grid {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(auto-fill, minmax(600px, 0.5fr));
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    animation: productFadeIn 0.5s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-card.featured-card {
    height: 90%;
    display: flex;
    flex-direction: column;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.quick-view {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    z-index: 3;
}

.product-card:hover .quick-view {
    bottom: 0;
}

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

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

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

.stars {
    color: #ffc107;
}

.review-count {
    color: #666;
    font-size: 0.9rem;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart:hover {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.add-to-cart:disabled:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
}

.shop-filters {
    padding: 60px 0;
    background-color: var(--white);
}

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

.filter-sidebar {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

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

.price-range input[type="range"] {
    width: 100%;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.style-tag {
    padding: 8px 15px;
    background-color: #eee;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.style-tag:hover,
.style-tag.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-text {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-top: 15px;
    display: block;
}

.products-container {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.products-header h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.sort-options select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

.sort-options select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    min-height: 600px;
    transition: opacity 0.3s ease;
}

.products-list.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.products-list.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced Pagination */
.pagination-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    min-width: 200px;
    padding: 20px 0 30px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
    width: 100%;
}

#currentPageInfo {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1rem;
}

#productRangeInfo {
    color: #888;
    font-size: 0.85rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 30px 0;
    flex-wrap: wrap;
    width: 100%;
}

.page-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer !important;
    transition: all 0.3s ease;
    background-color: var(--light-color);
    color: #666;
    font-weight: 500;
    border: 1px solid transparent;
    user-select: none;
}

.page-number:hover:not(.active):not(.disabled) {
    background-color: #e0e0e0;
    color: var(--secondary-color);
    border-color: #ddd;
    transform: translateY(-2px);
}

.page-number.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 600;
    border-color: var(--primary-color);
    cursor: default !important;
    pointer-events: none;
}

.page-number.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.page-dots {
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #999;
    user-select: none;
    cursor: default;
}

.pagination-btn {
    padding: 10px 20px;
    background-color: var(--light-color);
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    min-width: 120px;
    justify-content: center;
    pointer-events: auto;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn:disabled:hover {
    background-color: var(--light-color);
    border-color: #ddd;
    color: var(--dark-color);
    transform: none;
    box-shadow: none;
}

/* No Results Styling */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.no-results p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--primary-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 50px 0;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    background-color: var(--light-color);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-value {
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.remove-item:hover {
    color: #ff4444;
}

.cart-summary {
    padding: 25px;
    border-top: 1px solid #eee;
    background-color: var(--light-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.checkout-btn {
    width: 100%;
    margin-bottom: 15px;
}

.continue-btn {
    width: 100%;
}

.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    overflow-y: auto;
    padding: 20px;
}

.checkout-modal-content {
    max-width: 800px;
    margin: 50px auto;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    animation: modalFade 0.5s ease-out;
}

.close-checkout-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-checkout-modal:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.checkout-modal-body {
    padding: 50px;
}

/* Animation for product cards */
@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Stagger animation for product cards */
.product-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-slider-container {
        padding: 0 60px;
    }
    
    .slider-prev-btn {
        left: 10px;
    }
    
    .slider-next-btn {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .filter-container {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        position: static;
    }
    
    .featured-slider-container {
        padding: 0 60px;
    }
    
    .slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .featured-slide {
        padding: 10px;
    }
    
    .featured-slide .product-info {
        padding: 25px;
    }
    
    .featured-slide .product-title {
        font-size: 1.5rem;
    }
    
    .products-grid,
    .products-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pagination-btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .pagination-info {
        width: 100%;
    }
    
    .page-numbers {
        justify-content: center;
        width: 100%;
    }
    
    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .featured-slider-container {
        padding: 0 40px;
    }
    
    .slider-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .slider-dots-container {
        margin-top: 20px;
    }
    
    .products-grid,
    .products-list {
        grid-template-columns: 1fr;
    }
}

/* Dark mode styles */
body.dark-mode .category-card,
body.dark-mode .product-card,
body.dark-mode .filter-sidebar {
    background-color: #2a2a2a;
    color: #f0f0f0;
}

body.dark-mode .category-content h3,
body.dark-mode .product-title,
body.dark-mode .filter-sidebar h3,
body.dark-mode .products-header h3,
body.dark-mode .cart-header h3,
body.dark-mode .cart-item-title {
    color: #f0f0f0;
}

body.dark-mode .category-content p,
body.dark-mode .product-description {
    color: #ccc;
}

body.dark-mode .filter-group h4 {
    color: #f0f0f0;
}

body.dark-mode .style-tag {
    background-color: #444;
    color: #f0f0f0;
}

body.dark-mode .pagination {
    border-top-color: #444;
}

body.dark-mode .pagination-btn {
    background-color: #2a2a2a;
    border-color: #444;
    color: #f0f0f0;
}

body.dark-mode .page-number {
    background-color: #2a2a2a;
    color: #f0f0f0;
    border-color: #444;
}

body.dark-mode .page-number:hover:not(.active):not(.disabled) {
    background-color: #3a3a3a;
    border-color: #555;
}

body.dark-mode #currentPageInfo {
    color: #f0f0f0;
}

body.dark-mode #productRangeInfo {
    color: #aaa;
}

body.dark-mode .page-dots {
    color: #777;
}

body.dark-mode .slider-dot {
    background-color: #444;
}

body.dark-mode .slider-dot.active,
body.dark-mode .slider-dot:hover {
    background-color: var(--primary-color);
}

body.dark-mode .slider-nav-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

body.dark-mode .slider-nav-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

body.dark-mode .no-results {
    background-color: #2a2a2a;
}

body.dark-mode .no-results i {
    color: #444;
}

body.dark-mode .no-results h3 {
    color: #f0f0f0;
}

body.dark-mode .no-results p {
    color: #aaa;
}

body.dark-mode .cart-sidebar {
    background-color: #1a1a1a;
}

body.dark-mode .cart-summary {
    background-color: #2a2a2a;
}

body.dark-mode .summary-row.total {
    color: #f0f0f0;
    border-color: #444;
}

/* Category Items Display Styles */
.category-items-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.05));
    min-height: 100vh;
    animation: slideInSection 0.5s ease;
}

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

.category-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.category-items-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    text-transform: capitalize;
}

.close-category-btn {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    line-height: 1;
}

.close-category-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.category-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    animation: fadeIn 0.5s ease 0.1s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.category-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-item-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--light-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.category-item:hover .category-item-image img {
    transform: scale(1.05);
}

.category-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ddd;
    width: 100%;
    height: 100%;
}

.category-item-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-item-desc {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.category-item-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.category-item-rating .stars {
    color: #ffc107;
}

.category-item-rating .reviews {
    color: #999;
}

/* Dark Mode Styles for Category Items */
body.dark-mode .category-items-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.05));
}

body.dark-mode .category-items-header h2 {
    color: #f0f0f0;
}

body.dark-mode .close-category-btn {
    background-color: var(--primary-color);
    color: #1a1a1a;
}

body.dark-mode .close-category-btn:hover {
    background-color: #f0f0f0;
}

body.dark-mode .category-item {
    background: #2a2a2a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .category-item:hover {
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

body.dark-mode .category-item-name {
    color: #f0f0f0;
}

body.dark-mode .category-item-desc {
    color: #aaa;
}

body.dark-mode .category-item-image {
    background-color: #1a1a1a;
}