/* ==========================================================================
   Deals & Offers Page Styles - Modern Design
   Created: 2026-01-03
   ========================================================================== */

/* Modern Deals Header Styling */
.deals-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 0;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.deals-header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.deals-header-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.deals-header {
    position: relative;
    z-index: 1;
}

.deals-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-style: normal;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.deals-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 8px;
    line-height: 1.4;
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.decoration-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.8), transparent);
    border-radius: 2px;
}

.decoration-icon {
    font-size: 1.2rem;
    color: #ffd700;
    animation: deals-bounce 2s ease-in-out infinite;
}

@keyframes deals-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ==========================================================================
   MODERN DEAL CARDS
   ========================================================================== */

.deal-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.deal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
}

/* Image Container */
.deal-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.deal-card .card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.deal-card:hover .card-img-top {
    transform: scale(1.08);
}

/* Image Overlay on Hover */
.deal-card .card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.deal-card:hover .card-img-wrapper::after {
    opacity: 1;
}

/* Badges */
.deal-badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #1a1a2e;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(253, 160, 133, 0.4);
    z-index: 2;
}

.deal-badge-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4);
    z-index: 2;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Card Body */
.deal-card .card-body {
    padding: 20px;
}

.deal-card .deal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-card .deal-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Deal Meta Info */
.deal-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
}

.deal-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #495057;
}

.deal-meta-item i {
    width: 16px;
    text-align: center;
    color: #667eea;
}

.deal-meta-item.products-count {
    color: #11998e;
    font-weight: 600;
}

.deal-meta-item.products-count i {
    color: #11998e;
}

/* Deal Buttons */
.deal-buttons {
    display: flex;
    gap: 10px;
}

.btn-view-deal {
    flex: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-view-deal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-apply-deal {
    flex: 1;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.btn-apply-deal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
    color: white;
}

/* Single Button (View Deal Only) */
.deal-buttons.single-btn .btn-view-deal {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.deal-buttons.single-btn .btn-view-deal:hover {
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

/* No Image Placeholder */
.deal-no-image {
    height: 200px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-no-image i {
    font-size: 3rem;
    color: #adb5bd;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.deals-cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.deals-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.deals-cta-section h4 {
    color: white;
    font-weight: 700;
}

.deals-cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

.deals-cta-section .form-control {
    border-radius: 25px 0 0 25px;
    border: none;
    padding: 12px 20px;
}

.deals-cta-section .btn {
    border-radius: 0 25px 25px 0;
    padding: 12px 24px;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .deals-title {
        font-size: 1.3rem;
    }

    .deals-subtitle {
        font-size: 0.8rem;
    }

    .deals-header-section {
        padding: 10px 0;
    }

    .deal-card .card-img-wrapper {
        height: 180px;
    }

    .deal-buttons {
        flex-direction: column;
    }

    .btn-view-deal,
    .btn-apply-deal {
        padding: 10px 16px;
    }

    .deal-badge-discount {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}