/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    margin: 0;
    background-color: #ffffff;
    line-height: 1.6;
}
  
.container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    text-align: center;
}

/* Collections Hero Section */
.collections-hero {
    background: #fafafa;
    color: #333;
    padding: 120px 0;
    border-bottom: 1px solid #eee;
}

.collections-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.collections-hero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Categories Filter */
.categories {
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.category-btn {
    padding: 8px 20px;
    margin: 0 4px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
}

.category-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #333;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category-btn:hover {
    color: #333;
}

.category-btn.active {
    color: #333;
    font-weight: 500;
}

.category-btn.active::after {
    opacity: 1;
}

/* Collections Grid */
.collections-grid {
    padding: 40px 0;
    background: #fff;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 0;
}

.collection-card {
    background: #fff;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.image-container {
    position: relative;
    padding-top: 75%;
    background: #f5f5f5;
    overflow: hidden;
}

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

.collection-card:hover .card-image {
    transform: scale(1.03);
}

.card-content {
    padding: 16px 0;
    text-align: left;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #333;
}

.card-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-card:hover .card-overlay {
    opacity: 1;
}

.view-collection-btn {
    padding: 10px 20px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.collection-card:hover .view-collection-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid #eee;
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #333;
}

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    font-weight: 500;
    color: #333;
}

.modal p {
    font-size: 1rem;
    margin-bottom: 24px;
    color: #666;
}

.modal .btn {
    display: inline-block;
    padding: 12px 24px;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.modal .btn:hover {
    background: #444;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .collections-hero h1 {
        font-size: 2rem;
    }
    
    .collections-hero p {
        font-size: 1rem;
        padding: 0 16px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.85rem;
    }
}
