/* Collections Container */
.collections-container,
.collection-container {
    min-height: 100vh;
    padding-top: 72px;
}

/* Collections Header */
.collections-header,
.collection-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.collections-title,
.collection-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 10px;
}

.collections-subtitle,
.collection-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Collections Main */
.collections-main,
.collection-main {
    padding: 40px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Collection Card */
.collection-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Collection Image */
.collection-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.collection-image a {
    display: block;
    height: 100%;
}

.collection-products-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 100%;
    gap: 2px;
}

.collection-product-item {
    overflow: hidden;
}

.collection-product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-product-item.featured {
    grid-row: span 2;
}

.collection-card:hover .collection-product-item img {
    transform: scale(1.05);
}

.collection-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.02);
    color: #999;
}

.collection-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Collection Info */
.collection-info {
    padding: 20px;
}

.collection-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.collection-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.collection-name a:hover {
    color: #000;
}

.collection-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.collection-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-count {
    font-size: 0.85rem;
    color: #999;
}

.view-collection-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-collection-btn:hover {
    background: #333;
}

/* Collection Hero */
.collection-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.collection-info {
    text-align: center;
    max-width: 800px;
}

.collection-meta {
    justify-content: center;
    margin-top: 20px;
}

.collection-actions {
    display: flex;
    gap: 10px;
}

.share-btn,
.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover,
.filter-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Collection Layout */
.collection-layout {
    display: flex;
    gap: 30px;
}

/* Collection Sidebar */
.collection-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.sort-options select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
}

.price-input label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.price-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
}

.apply-filter-btn {
    width: 100%;
    padding: 10px;
    background: #000;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-filter-btn:hover {
    background: #333;
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.category-filter input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #000;
}

/* Collection Content */
.collection-content {
    flex: 1;
}

/* Collection Products Header */
.collection-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.results-count {
    color: #666;
    font-size: 0.9rem;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.view-btn.active {
    background: #000;
    color: white;
    border-color: #000;
}

/* Collection Products Grid */
.collection-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.collection-products-grid.list-view {
    grid-template-columns: 1fr;
}

/* Product Card (reusing styles from shop.css) */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    background: #000;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-badge.featured {
    background: #ff6b6b;
}

.product-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #000;
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #000;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.stars {
    display: flex;
    color: #ffc107;
    margin-right: 5px;
}

.rating-count {
    color: #666;
}

.no-rating {
    color: #999;
    font-style: italic;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #333;
}

/* No Collections/Products */
.no-collections,
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

.no-collections h3,
.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.no-collections p,
.no-products p {
    color: #666;
    margin-bottom: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    max-width: 800px;
    position: relative;
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #000;
}

.quick-view-content {
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .collection-sidebar {
        width: 240px;
    }
    
    .collection-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .collection-layout {
        flex-direction: column;
    }
    
    .collection-sidebar {
        width: 100%;
        margin-bottom: 30px;
        display: none;
    }
    
    .collection-sidebar.active {
        display: block;
    }
    
    .collection-products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .collection-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .collections-header,
    .collection-header {
        padding: 40px 0;
    }
    
    .collections-title,
    .collection-title {
        font-size: 2rem;
    }
    
    .collections-subtitle,
    .collection-description {
        font-size: 1rem;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .collection-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .collection-actions {
        width: 100%;
        justify-content: center;
    }
}