/* Custom Campaigns Page Styling */
.campaigns-page {
    background-color: #F9F9FB;
    font-family: 'Inter', sans-serif;
    color: #111827;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.campaigns-hero {
    padding: 60px 20px 40px;
    background: linear-gradient(to bottom, #ffffff, #F9F9FB);
}

.campaigns-heading {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111827;
    margin-bottom: 8px;
}

.campaigns-subtitle {
    font-size: 16px;
    color: #6B7280;
    font-weight: 500;
}

/* Sticky Filter Bar */
.campaigns-filter-bar {
    position: sticky;
    top: 0;
    /*z-index: 100;*/
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #E5E7EB;
    padding: 16px 0;
    margin-bottom: 32px;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-group {
    display: flex;
    gap: 12px;
}

.filter-chip {
    background: none;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #F3F4F6;
}

.filter-chip.active {
    background: #D4AF37;
    color: #ffffff;
    border-color: #D4AF37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.golden-select {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 8px 32px 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background-color: #ffffff;
    transition: border-color 0.2s;
}

.golden-select:focus {
    border-color: #D4AF37;
    outline: none;
}

/* Grid System */
.campaigns-grid-section {
    padding: 0 0 60px;
}

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .campaigns-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .campaigns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .campaigns-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.campaign-product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #F3F4F6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.campaign-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #F9FAFB;
}

.image-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.secondary-img {
    opacity: 0;
}

.card-image-wrapper:hover .double-image .primary-img {
    opacity: 0;
}

.card-image-wrapper:hover .double-image .secondary-img {
    opacity: 1;
    transform: scale(1.05);
}

/* Golden Badge */
.discount-badge-gold {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.3);
    z-index: 2;
}

.bundle-badge {
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
}

.card-action-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.campaign-product-card:hover .card-action-overlay {
    opacity: 1;
    transform: translateX(0);
}

.btn-quick-wishlist {
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quick-wishlist:hover {
    color: #EF4444;
}

/* Card Body */
.card-body {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.price-block {
    margin-bottom: 16px;
    flex-grow: 1;
}

.price-old {
    font-size: 13px;
    color: #9CA3AF;
    text-decoration: line-through;
    margin-right: 6px;
}

.price-new {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.golden-text {
    color: #B8860B; /* Subtle soft gold */
}

.price-regular {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.action-block {
    margin-top: auto;
}

.btn-campaign-action {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.campaign-product-card:hover .btn-campaign-action {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

/* Skeletons */
.skeleton-card {
    background: #ffffff;
    border-radius: 12px;
    padding-bottom: 20px;
}

.skeleton-img {
    padding-top: 100%;
    background: #E5E7EB;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    animation: pulseBg 1.5s infinite;
}

.skeleton-text {
    height: 16px;
    background: #E5E7EB;
    border-radius: 4px;
    margin: 16px 16px 8px;
    animation: pulseBg 1.5s infinite;
}

.st-title { width: 70%; }
.st-price { width: 40%; }

@keyframes pulseBg {
    0% { background: #E5E7EB; }
    50% { background: #D1D5DB; }
    100% { background: #E5E7EB; }
}

/* Loading Info */
.loading-more {
    text-align: center;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #6B7280;
    font-weight: 500;
}

.gold-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    color: #D4AF37;
    margin-bottom: 20px;
    opacity: 0.8;
}

.empty-state h3 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 8px;
}

.empty-state p {
    color: #6B7280;
    margin-bottom: 24px;
}

.golden-btn {
    background: #D4AF37;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.golden-btn:hover {
    background: #B8860B;
    color: #ffffff;
}

/* Newsletter */
.campaigns-newsletter {
    background: #ffffff;
    padding: 60px 20px;
    border-top: 1px solid #E5E7EB;
}

.newsletter-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: #F9FAFB;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #f1f1f1;
}

.newsletter-card h3 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 8px;
    font-weight: 700;
}

.newsletter-card p {
    color: #6B7280;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.newsletter-form input {
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    outline: none;
    font-family: inherit;
}

.newsletter-form input:focus {
    border-color: #D4AF37;
}

@media(max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input {
        max-width: 100%;
    }
}
