/* ============================================================================
   FILE: assets/css/category.css - Category Page Specific Styles
   ============================================================================ */

/* Main content */
#main-content {
    padding: 0;
    margin: 0;
}

/* Products Container */
.products-container {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px 40px;
}

.product-count {
    text-align: left;
    font-size: 14px;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    min-height: 400px;
}

.product-card {
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.product-image.secondary {
    opacity: 0;
}

.product-image-container:hover .product-image.primary {
    opacity: 0;
}

.product-image-container:hover .product-image.secondary {
    opacity: 1;
}

/* Single image - no hover effect */
.product-image-container.single-image:hover .product-image.primary {
    opacity: 1;
}

.product-info {
    padding: 0 10px;
}

.product-title {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.product-color {
    font-size: 12px;
    color: #999;
    text-transform: capitalize;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 15px;
    color: #666;
    font-weight: 400;
}

.new-arrival-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    z-index: 2;
    border-radius: 2px;
}

/* No products message */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 300;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    background: none;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #333;
    color: #333;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-number {
    background: none;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 4px;
    min-width: 45px;
}

.pagination-number.active {
    background: #333;
    color: white;
    border-color: #333;
}

.pagination-number:hover:not(.active) {
    border-color: #333;
    color: #333;
}

.pagination-dots {
    color: #666;
    padding: 0 5px;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .product-image-container {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .products-container {
        padding: 0 15px 30px;
        margin-top: 15px;
    }

    .product-count {
        margin-bottom: 20px;
        font-size: 13px;
    }

    /* 2 columns on mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .product-image-container {
        height: 220px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .product-title {
        font-size: 13px;
        margin-bottom: 6px;
        letter-spacing: 0.5px;
    }

    .product-color {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .product-price {
        font-size: 13px;
        font-weight: 500;
    }

    .new-arrival-badge {
        top: 8px;
        left: 8px;
        padding: 4px 7px;
        font-size: 8px;
    }

    .pagination {
        margin-top: 30px;
        gap: 8px;
        padding: 15px 0;
    }

    .pagination-btn,
    .pagination-number {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 35px;
    }

    /* Disable hover effects on mobile */
    .product-card:hover {
        transform: none;
    }

    .product-image-container:hover .product-image.primary {
        opacity: 1;
    }

    .product-image-container:hover .product-image.secondary {
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .products-container {
        padding: 0 10px 25px;
    }

    .products-grid {
        gap: 12px;
    }

    .product-image-container {
        height: 180px;
        margin-bottom: 8px;
    }

    .product-info {
        padding: 0 5px;
    }

    .product-title {
        font-size: 12px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .product-color {
        font-size: 10px;
        margin-bottom: 4px;
    }

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

    .pagination {
        margin-top: 25px;
        gap: 6px;
    }

    .pagination-btn,
    .pagination-number {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 30px;
    }

    .no-products {
        padding: 40px 15px;
    }

    .no-products h3 {
        font-size: 20px;
    }
}

@media (max-width: 320px) {
    .products-grid {
        gap: 10px;
    }

    .product-image-container {
        height: 160px;
    }

    .product-title {
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .product-price {
        font-size: 11px;
    }
}


/* ============================================================================
   Mobile Swipe Dots - ADD THIS TO YOUR EXISTING category.css
   ============================================================================ */

/* Mobile dots for image swiping */
.mobile-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 10px;
    border-radius: 15px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show dots on mobile when product card is active */
@media (max-width: 768px) {
    .product-image-container:active .mobile-dots,
    .product-image-container .mobile-dots {
        opacity: 1;
    }
    
    .mobile-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
        display: block;
    }
    
    .mobile-dot.active {
        background: white;
        transform: scale(1.3);
    }
    
    /* Ensure images are positioned for opacity changes */
    .product-image-container .product-image {
        transition: opacity 0.3s ease;
    }
    
    /* Disable hover effects on mobile completely */
    .product-image-container:hover .product-image.primary {
        opacity: 1 !important;
    }
    
    .product-image-container:hover .product-image.secondary {
        opacity: 0 !important;
    }
}

@media (max-width: 480px) {
    .mobile-dots {
        bottom: 8px;
        padding: 4px 8px;
        gap: 4px;
    }
    
    .mobile-dot {
        width: 5px;
        height: 5px;
    }
}
/* Sold Out Badge*/
.sold-out-badge {
    position: absolute;
    top: 12px;
    left: 12px;        /* Same position as NEW badge */
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    z-index: 2;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .sold-out-badge {
        top: 8px;
        left: 8px;
        padding: 4px 7px;
        font-size: 8px;
    }
}