/*
 * File: CSS/collections.css
 * Purpose: Styles specific to the collections page.
 */

/* 1. HERO SECTION */
.hero-section {
    min-height: 50vh;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

/* 2. FILTER BAR */
.bg-cream-light {
    background-color: rgba(247, 243, 234, 0.8);
    backdrop-filter: blur(5px);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.filter-group-main,
.filter-group-actions,
.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-weight: 500;
    color: var(--color-forest);
}

.btn-filter {
    background-color: transparent;
    border: 1px solid var(--color-dark-green);
    color: var(--color-dark-green);
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 0.25rem 1rem;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background-color: rgba(37, 62, 28, 0.1);
}

.btn-filter.active {
    background-color: var(--color-dark-green);
    color: white;
}

.filter-bar .form-select {
    width: auto;
    min-width: 200px;
    border-radius: 20px;
    border-color: var(--color-dark-green);
    color: var(--color-dark-green);
}

.btn-compare {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    border: 1px solid var(--color-dark-green);
    color: var(--color-dark-green);
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-compare:hover {
    background-color: var(--color-dark-green);
    color: white;
}

/* 3. PRODUCT CARD */
.product-card {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f3f3f3;
}

.product-image-slider {
    width: 100%;
    height: 25rem;
    overflow: hidden;
    background: #f3f3f3;
    line-height: 0;
    cursor: pointer;
}

.product-image-slider .slick-list,
.product-image-slider .slick-track,
.product-image-slider .slick-slide,
.product-image-slider .slick-slide > div {
    height: 100%;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f3f3f3;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.08);
}

.product-card-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 3;
}

.product-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.5rem;
    color: var(--color-forest);
    margin-bottom: 0.5rem;
}

.product-card-notes {
    color: var(--color-charcoal-75);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-card-info {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-garden);
}

.product-card-weight {
    font-size: 0.9rem;
    color: var(--color-charcoal-75);
}

/* 4. CARD ACTIONS */
.product-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    transform: translateY(20px);
    z-index: 2;
}

.product-card:hover .product-card-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.action-btn {
    height: 45px;
    width: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--color-charcoal);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.action-btn:hover {
    transform: scale(1.1);
    background-color: var(--color-forest);
    color: white;
}

.product-card:hover .action-btn:nth-child(1) {
    transition-delay: 0.1s;
}

.product-card:hover .action-btn:nth-child(2) {
    transition-delay: 0.2s;
}

.product-card:hover .action-btn:nth-child(3) {
    transition-delay: 0.3s;
}

.product-card:hover .action-btn:nth-child(4) {
    transition-delay: 0.4s;
}