/* Special Offers Popup Styles */
.special-offers-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.special-offers-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: white;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.special-offers-popup.active .popup-container {
    transform: scale(1) translateY(0);
}

.popup-header {
    background: linear-gradient(135deg, #b3de4f, #9bc93a);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.popup-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.popup-content {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.offer-grid {
    display: grid;
    gap: 20px;
}

.offer-item {
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.offer-item:hover {
    border-color: #b3de4f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(179, 222, 79, 0.2);
}

.offer-item.featured {
    border-color: #b3de4f;
    background: linear-gradient(45deg, rgba(179, 222, 79, 0.05), transparent);
}

.offer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(179, 222, 79, 0.1), transparent);
    transition: left 0.5s ease;
}

.offer-item:hover::before {
    left: 100%;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.offer-badge {
    background: #b3de4f;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-discount {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin-left: 10px;
}

.offer-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.offer-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.offer-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.offer-validity {
    font-size: 13px;
    color: #999;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 10px;
}

.offer-cta {
    background: #b3de4f;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.offer-cta:hover {
    background: #a1cb45;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(179, 222, 79, 0.3);
    color: #333;
    text-decoration: none;
}

.popup-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #eee;
}

.popup-footer-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.popup-newsletter {
    display: flex;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.popup-newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s ease;
}

.popup-newsletter input:focus {
    border-color: #b3de4f;
}

.popup-newsletter button {
    background: #b3de4f;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.popup-newsletter button:hover {
    background: #a1cb45;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offer-item {
    animation: slideInUp 0.6s ease forwards;
}

.offer-item:nth-child(2) {
    animation-delay: 0.1s;
}

.offer-item:nth-child(3) {
    animation-delay: 0.2s;
}

.offer-item:nth-child(4) {
    animation-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        margin: 20px;
    }
    
    .popup-header {
        padding: 20px;
    }
    
    .popup-title {
        font-size: 24px;
    }
    
    .popup-content {
        padding: 20px;
    }
    
    .offer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .offer-details {
        flex-direction: column;
        align-items: stretch;
    }
    
    .popup-newsletter {
        flex-direction: column;
    }
}

/* Special effects for limited time offers */
.offer-item.flash-sale {
    border-color: #e74c3c;
    background: linear-gradient(45deg, rgba(231, 76, 60, 0.05), transparent);
}

.offer-item.flash-sale .offer-badge {
    background: #e74c3c;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(231, 76, 60, 0.5); }
}

/* Countdown timer for flash sales */
.offer-countdown {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 3px solid #ffc107;
}

.countdown-item {
    text-align: center;
    min-width: 30px;
}

.countdown-number {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: #856404;
}

.countdown-label {
    display: block;
    font-size: 10px;
    color: #856404;
    text-transform: uppercase;
}