/* Collection Dropdown Specific Styles */
.collection-dropdown {
    position: absolute;
    display: none;
    left: 50% !important;
    right: auto !important;
    width: 90vw !important;
    max-width: 1200px !important;
    min-width: 80vw !important;
    padding: 1.5rem !important;
    margin: 0 !important;
    margin-top: 8px !important;
    background: #111;
    border: 1px solid #ffd700;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px) !important;
    transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1);
    box-sizing: border-box;
}

/* Show dropdown on hover */
.custom-dropdown.show > .collection-dropdown {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) !important;
}

.collection-grid {
    margin: -0.5rem;
    width: 100%;
}

.collection-grid .row {
    margin: 0;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
    width: 100%;
}

.collection-card {
    padding: 0.5rem;
    text-decoration: none;
    color: #fff;
    display: block;
}

.collection-card-inner {
    background: #1a1a1a;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.collection-card:hover .collection-card-inner {
    transform: translateY(-2px);
    border-color: #ffd700;
    background: #222;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

.collection-image-wrap {
    position: relative;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    background: #1a1a1a;
    overflow: hidden;
}

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

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

.collection-title {
    padding: 0.75rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffd700;
    text-align: center;
    line-height: 1.4;
    white-space: normal;
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .collection-dropdown {
        width: 600px;
    }
}

@media (max-width: 767.98px) {
    .collection-dropdown {
        width: calc(100vw - 2rem);
        position: static;
        transform: none;
        margin: 0.5rem 1rem;
    }
    
    .collection-grid {
        margin: -0.25rem;
    }
    
    .collection-card {
        padding: 0.25rem;
    }

    /* Show dropdown on click for mobile */
    .custom-nav-item:hover .collection-dropdown {
        position: static;
        transform: none;
    }
}

/* Responsive styles */
@media (min-width: 992px) {
    .collection-dropdown {
        margin-top: 8px !important;
    }
}

@media (max-width: 991.98px) {
    .collection-dropdown {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        transform: none !important;
        margin: 0.5rem 0 !important;
        left: 0 !important;
    }
    
    .collection-grid {
        margin: -0.25rem;
    }
    
    .collection-card {
        padding: 0.25rem;
    }

    .collection-grid .row {
        flex-wrap: wrap !important;
    }

    .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
