/* Products Page Styles - Wedding Boutique Style */
:root {
    --gold-primary: #d4af37;
    --gold-light: #e8d5a3;
    --gold-dark: #b8960c;
    --champagne: #f7e8d4;
    --ivory: #fffdf9;
    --cream: #faf5ef;
    --dark-charcoal: #2c2c2c;
    --warm-brown: #5c4033;
    --taupe: #8b7355;
    --blush: #f5e6e8;
    --border-light: rgba(176, 141, 87, 0.15);
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page Layout */
.products-page {
    min-height: 100vh;
    background: var(--ivory);
}

/* Breadcrumb Section */
.breadcrumb-section {
    padding: 20px 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

.breadcrumb-item {
    color: var(--taupe);
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.breadcrumb-link {
    color: var(--taupe);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.breadcrumb-link:hover {
    color: var(--gold-primary);
}

.breadcrumb-link i {
    font-size: 0.8rem;
    color: var(--gold-primary);
}

.breadcrumb-current {
    color: var(--gold-primary);
    font-weight: 600;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--cream) 0%, var(--ivory) 100%);
    padding: 60px 0;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.page-header::before {
    content: '✦';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: var(--gold-light);
    opacity: 0.3;
}

.page-header::after {
    content: '✦';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--gold-light);
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--taupe);
    margin-bottom: 25px;
    font-weight: 300;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--warm-brown);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.stat-item i {
    color: var(--gold-primary);
    font-size: 0.9rem;
}

/* Active Filters */
.active-filters {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filters-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--warm-brown);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--gold-primary);
    border-radius: 2px;
}

.clear-all-filters {
    color: var(--gold-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-all-filters:hover {
    color: var(--gold-dark);
}

.filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cream);
    color: var(--warm-brown);
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.filter-tag:hover {
    background: var(--champagne);
    transform: translateY(-1px);
}

.filter-tag.search-tag {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-light);
}

.tag-icon {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gold-primary);
}

.tag-text {
    white-space: nowrap;
}

.tag-remove {
    background: none;
    border: none;
    color: var(--taupe);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    font-size: 0.8rem;
}

.tag-remove:hover {
    color: var(--gold-primary);
}

/* Page Controls */
.page-controls {
    margin: 30px 0 20px;
}

.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.results-info {
    flex: 1;
}

.results-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.count-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.count-text {
    color: var(--taupe);
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 60px auto;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gold-light);
    margin-bottom: 25px;
}

.empty-state-title {
    font-size: 1.5rem;
    color: var(--warm-brown);
    margin-bottom: 15px;
    font-weight: 600;
}

.empty-state-description {
    color: var(--taupe);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.empty-state-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.empty-state-actions .btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.empty-state-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.empty-state-actions .btn-outline-primary {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.empty-state-actions .btn-outline-primary:hover {
    background: var(--gold-primary);
    color: white;
    transform: translateY(-2px);
}

/* Products Grid */
.products-grid {
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
    border: 1px solid var(--border-light);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-light);
}

.product-card.product-unavailable {
    opacity: 0.6;
}

/* Product Image */
.product-image-container {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: var(--cream);
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-offer {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: white;
}

.badge-soldout {
    background: var(--taupe);
    color: white;
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 44, 44, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.product-card:hover .overlay-content {
    transform: translateY(0);
}

.btn-overlay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--warm-brown);
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.btn-overlay:hover {
    background: var(--gold-primary);
    color: white;
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    padding: 20px;
}

.product-category {
    margin-bottom: 8px;
}

.category-text {
    display: inline-block;
    background: var(--cream);
    color: var(--gold-primary);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    margin-bottom: 12px;
}

.title-link {
    color: var(--dark-charcoal);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.title-link:hover {
    color: var(--gold-primary);
}

/* Colors */
.product-colors {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.colors-label {
    font-size: 0.75rem;
    color: var(--taupe);
    margin-bottom: 6px;
    font-weight: 500;
}

.colors-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-dot:hover {
    transform: scale(1.15);
}

/* Availability */
.product-availability {
    margin-bottom: 15px;
}

.availability-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.availability-status.in-stock {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-dark);
}

.availability-status.out-of-stock {
    background: rgba(139, 115, 85, 0.1);
    color: var(--taupe);
}

/* Action Button */
.product-action {
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.btn-view-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-view-product:hover {
    background: var(--gold-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.btn-view-product i {
    font-size: 0.85rem;
}

/* Pagination */
.pagination-section {
    margin: 50px 0 40px;
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: white;
    color: var(--warm-brown);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.page-link:hover {
    background: var(--gold-primary);
    color: white;
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--gold-primary);
    color: white;
    border-color: var(--gold-primary);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
    background: white;
    color: var(--warm-brown);
    transform: none;
}

.page-prev, .page-next {
    min-width: 90px;
}

.page-ellipsis {
    border: none;
    background: transparent;
}

.page-ellipsis:hover {
    background: transparent;
    transform: none;
}

.page-info {
    color: var(--taupe);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .page-header {
        padding: 50px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .pagination-wrapper {
        justify-content: center;
    }
    
    .page-info {
        text-align: center;
        width: 100%;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .empty-state {
        padding: 50px 20px;
        margin: 40px 20px;
    }
    
    .empty-state-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 30px 0;
    }
    
    .page-title {
        font-size: 1.4rem;
    }
    
    .filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .clear-all-filters {
        align-self: flex-end;
    }
    
    .product-image-container {
        height: 240px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-prev, .page-next {
        min-width: 70px;
    }
}

/* Animation for product cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.1s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }
.product-card:nth-child(5) { animation-delay: 0.2s; }
.product-card:nth-child(6) { animation-delay: 0.25s; }
.product-card:nth-child(7) { animation-delay: 0.3s; }
.product-card:nth-child(8) { animation-delay: 0.35s; }
