/* Products/Collections Page Styles - High-End Luxury Design */
body {
    background-color: var(--bg-beige);
}

.collections-main {
    padding-top: 40px;
}

.collections-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 80px 60px;
}

.page-title {
    font-size: 68px;
    font-weight: 500;
    color: var(--primary-red);
    margin-bottom: 50px;
    letter-spacing: -1.5px;
    font-family: 'Playfair Display', serif;
}

.collections-layout {
    display: flex;
    gap: 50px;
}

/* Sidebar Styling - Glassmorphic Luxury Card */
.sidebar {
    width: 270px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 35px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
    position: sticky;
    top: 110px;
    transition: var(--transition-smooth);
}

.sidebar:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 160, 89, 0.3);
}

.filter-group {
    margin-bottom: 35px;
}

.filter-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 30px 12px 0;
    border: none;
    border-bottom: 1.5px solid #dcdcdc;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-bottom-color: var(--primary-red);
}

.clear-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: none;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: var(--primary-red);
    color: white;
}
.search-input:focus {
    outline: none;
    border-bottom-color: var(--primary-red);
}
.search-input::placeholder {
    color: #999;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    user-select: none;
}

.checkbox-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 14px;
    width: 14px;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.checkbox-item:hover input ~ .checkmark {
    border-color: var(--primary-red);
}

.checkbox-item input:checked ~ .checkmark {
    background-color: transparent;
    border-color: var(--text-dark);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-item input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-item .checkmark:after {
    left: 4px;
    top: 1px;
    width: 3px;
    height: 7px;
    border: solid var(--text-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.select-wrapper {
    position: relative;
}

.custom-select {
    width: 100%;
    padding: 12px 20px 12px 0;
    border: none;
    border-bottom: 1px solid #dcdcdc;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-dark);
    appearance: none;
    cursor: pointer;
}

.custom-select:focus {
    outline: none;
    border-bottom-color: var(--primary-red);
}

.select-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #999;
    pointer-events: none;
}

/* Products Grid */
.products-area {
    flex-grow: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 14px 18px;
    box-shadow: 0 2px 12px rgba(92, 30, 40, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(92, 30, 40, 0.14), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background-color: #f5f0eb;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 10px;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: scale(0.8);
}

.product-card:hover .wishlist-btn {
    opacity: 1;
    transform: scale(1);
}

.wishlist-btn i {
    font-size: 18px;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(92, 30, 40, 0.2);
}

.wishlist-btn.active {
    opacity: 1;
    transform: scale(1);
}

.wishlist-btn.active i {
    color: var(--primary-red);
}

.wishlist-btn:hover i {
    transform: scale(1.1);
}

/* Wishlist Feedback Toast */
.wishlist-feedback {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--primary-red);
    color: #ffffff;
    padding: 16px 28px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 9999;
    box-shadow: 0 6px 24px rgba(92, 30, 40, 0.3);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.wishlist-feedback.show {
    opacity: 1;
    transform: translateX(0);
}

.brand-overlay {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--primary-red);
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 6px 18px;
    border-radius: 30px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 2px 12px rgba(92,30,40,0.15);
}

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

.product-card:hover .product-image-container img {
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--bg-beige);
    color: var(--primary-red);
    padding: 5px 12px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 2;
    border-radius: 20px;
}

.badge-unavailable {
    background-color: #666666 !important;
    color: #ffffff !important;
}

.product-details {
    padding: 0 4px;
}

.product-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 12px;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-red);
}

.product-swatch-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.swatches {
    display: flex;
    gap: 4px;
}

.swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.product-name {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 80px;
}

.pagination a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: 1.5px solid var(--primary-red);
    color: var(--primary-red) !important;
    background-color: transparent;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-arrow i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.page-arrow:hover {
    color: white !important;
    background-color: var(--primary-red);
    box-shadow: 0 6px 20px rgba(92, 30, 40, 0.25);
    transform: translateY(-2px);
}

/* Subtle micro-animations for arrows on hover */
.page-arrow:hover .fa-chevron-left {
    transform: translateX(-3px);
}

.page-arrow:hover .fa-chevron-right {
    transform: translateX(3px);
}

/* Bottom Banner */
.bottom-banner {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 60px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-text-overlay {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
}

.banner-text-overlay span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .collections-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        position: static;
    }
    
    .filter-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .collections-container {
        padding: 40px 20px 20px;
    }
    
    .page-title {
        font-size: 42px;
        margin-bottom: 40px;
    }
    
    .bottom-banner {
        height: 250px;
    }
}

/* Add to Cart button from Collection page */
.collections-add-cart-btn {
    display: block;
    width: 100%;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 12px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(92, 30, 40, 0.15);
}

.collections-add-cart-btn:hover {
    background-color: #3b1118;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(92, 30, 40, 0.25);
}

.collections-add-cart-btn:active {
    transform: translateY(0);
}

.collections-add-cart-btn:disabled {
    background-color: #eaeaea;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Toast Notification System */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(18, 18, 18, 0.95);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: #4cd137;
    font-size: 18px;
}

.toast-content {
    flex-grow: 1;
}

.toast-action {
    color: #ff7675;
    text-decoration: none;
    font-weight: 600;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.toast-action:hover {
    color: #ff7675;
    text-decoration: underline;
}

/* Clear Filters Button */
.clear-filters-btn {
    display: none;
    width: 100%;
    margin-top: 30px;
    padding: 12px 18px;
    background-color: transparent;
    color: #666;
    border: 1px dashed #bbb;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.clear-filters-btn:hover {
    background-color: var(--primary-red);
    color: var(--white, #ffffff);
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(92, 30, 40, 0.15);
}
