/* Collections Page Styles */

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Hero Section */
.collection-hero {
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 245, 255, 0.85) 100%),
        radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.15) 0%, transparent 300px),
        radial-gradient(circle at 80% 70%, rgba(107, 107, 255, 0.12) 0%, transparent 300px);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.03);
}

.collection-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/pattern-bg.svg');
    background-repeat: repeat;
    background-size: 250px;
    opacity: 0.08;
    z-index: 1;
    animation: subtle-float 25s infinite alternate ease-in-out;
}

.collection-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: gentle-float 20s infinite alternate ease-in-out;
}

@keyframes subtle-float {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-15px) translateY(-15px); }
}

@keyframes gentle-float {
    0% { transform: translateY(0) scale(1); opacity: 0.08; }
    100% { transform: translateY(20px) scale(1.05); opacity: 0.12; }
}

.collection-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.collection-hero .hero-content {
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 80px 20px;
    box-sizing: border-box;
}

.collection-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
}

.collection-hero h1 span {
    color: var(--primary-color);
    font-size: 3rem;
}

.collection-hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* Collection-specific hero backgrounds */
.men-collection-hero {
    background-color: #e8f4f8;
}

.women-collection-hero {
    background-color: #f8e8f4;
}

.kids-collection-hero {
    background-color: #f4f8e8;
}

.wedding-collection-hero {
    background-color: #f8f4e8;
}

/* Collection Grid */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 2%;
}

.collection-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.collection-img {
    height: 250px;
    overflow: hidden;
}

.collection-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover .collection-img img {
    transform: scale(1.1);
}

.collection-content {
    padding: 20px;
    text-align: center;
}

.collection-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

@media (max-width: 480px) {
    .collection-content h3 {
        font-size: 13px;
        white-space: normal;
        overflow: visible;
    }
}

.collection-content p {
    color: #666;
    margin-bottom: 20px;
}

/* Related Collections */
.related-collections {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.collection-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.collection-link {
    display: block;
    width: 220px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.collection-link:hover {
    transform: translateY(-10px);
}

.collection-link-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.collection-link-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-link:hover .collection-link-img img {
    transform: scale(1.1);
}

.collection-link h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

@media (max-width: 480px) {
    .collection-link h3 {
        font-size: 13px;
        white-space: normal;
        overflow: visible;
    }
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 50px 0;
}

.no-products p {
    font-size: 1.2rem;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .collection-hero h1 {
        font-size: 2rem;
        white-space: normal;
        overflow: visible;
    }
    
    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .collection-link {
        width: 180px;
    }
    
    .collection-link-img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .collection-hero h1 {
        font-size: 3rem;
        white-space: normal;
        overflow: visible;
        width: 100%;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-links {
        gap: 20px;
    }
    
    .collection-link {
        width: 150px;
    }
    
    .collection-link-img {
        width: 150px;
        height: 150px;
    }
}