:root {
    --primary-color: #2e2bb1; /* Your preferred button color */
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --navbar-color: #000000; /* Black navbar */
    --footer-color: #791291; /* Purple footer */
    --border-radius: 8px;
}

/* Store Header - Mobile Optimized */
.store-header-card {
    border: none;
    border-radius: var(--border-radius);
    background: #ffffff;
    border-left: 4px solid var(--primary-color);
}

.store-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.store-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.store-description {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Coupon Cards */
.coupon-card {
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    background: #ffffff;
}

.coupon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 43, 177, 0.15) !important;
    border-color: var(--primary-color);
}

.coupon-store-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
}

.coupon-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.2;
}

.coupon-description {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

/* Buttons - Using your preferred color #2e2bb1 */
.reveal-btn, .get-deal-btn {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.reveal-btn {
    background: linear-gradient(135deg, var(--primary-color), #4a46d4);
    border: none;
    color: white;
}

.reveal-btn:hover {
    background: linear-gradient(135deg, #25219c, var(--primary-color));
    transform: scale(1.02);
    color: white;
}

.get-deal-btn {
    background: linear-gradient(135deg, var(--primary-color), #4a46d4);
    border: none;
    color: white;
}

.get-deal-btn:hover {
    background: linear-gradient(135deg, #25219c, var(--primary-color));
    transform: scale(1.02);
    color: white;
}

/* Code Section */
.coupon-code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background: #f8f9fa;
    border: 1px dashed var(--primary-color);
    font-size: 0.8rem;
}

.copy-btn {
    border-radius: 0 4px 4px 0;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.copy-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.copy-success {
    font-size: 0.7rem;
}

/* Related Stores */
.related-store-card {
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.related-store-card:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.related-store-card:hover .store-name {
    color: white !important;
}

.store-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

/* Social Share */
.social-share .btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Active State for Filter Buttons */
.btn-outline-dark.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 8px;
    }

    .store-header-card .d-flex {
        align-items: flex-start;
    }

    .store-logo {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }

    .store-title {
        font-size: 1.1rem;
    }

    .store-description {
        font-size: 0.8rem;
    }

    /* 3 coupons per row on mobile */
    .coupon-item {
        flex: 0 0 calc(33.333% - 0.5rem);
        max-width: calc(33.333% - 0.5rem);
        padding: 0 4px;
    }

    .coupon-card {
        margin-bottom: 8px;
        padding: 8px;
    }

    .coupon-store-img {
        width: 40px;
        height: 40px;
    }

    .coupon-title {
        font-size: 0.8rem;
    }

    .coupon-description {
        font-size: 0.75rem;
    }

    .reveal-btn, .get-deal-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    .card-body {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .coupon-item {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }

    .store-header-card .d-flex {
        flex-direction: row;
        text-align: left;
    }

    .store-logo {
        margin-right: 12px !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 400px) {
    .coupon-item {
        flex: 0 0 calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
    }

    .store-logo {
        width: 45px;
        height: 45px;
    }

    .store-title {
        font-size: 1rem;
    }
}

/* Loading Animation */
.coupon-card {
    animation: fadeInUp 0.5s ease;
}

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

/* Ensure good contrast */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}
