/* Black Friday Promo Modal - Modern Design */
.promo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.promo-modal-content {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(139, 69, 19, 0.8) 25%, 
        rgba(255, 69, 0, 0.8) 50%, 
        rgba(139, 69, 19, 0.8) 75%, 
        rgba(0, 0, 0, 0.9) 100%);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    color: #ffffff;
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 560px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 235, 59, 0.3);
    overflow: hidden;
}

.promo-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(255, 235, 59, 0.1), transparent);
    animation: rotateBorder 4s linear infinite;
    z-index: -1;
}

.promo-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.promo-modal-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #FFD700;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 2s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.promo-code-display {
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 42px;
    font-weight: 700;
    color: #00FF88;
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, 
        rgba(0, 255, 136, 0.1) 0%, 
        rgba(0, 255, 136, 0.05) 100%);
    border-radius: 16px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    letter-spacing: 4px;
    animation: codeGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.promo-code-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.4), transparent);
    animation: codeShine 2s ease-in-out infinite;
}

.promo-modal-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.promo-modal-button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FF6B35 100%);
    background-size: 200% 200%;
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 8px 32px rgba(255, 107, 53, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.promo-modal-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.promo-modal-button:hover {
    background-position: 200% 0;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(255, 107, 53, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.promo-modal-button:hover::before {
    left: 100%;
}

.promo-modal-button:active {
    transform: translateY(-1px) scale(1.01);
}

/* Modern Animations */
@keyframes modalFadeIn {
    0% { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    100% { 
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes modalSlideIn {
    0% { 
        transform: translateY(-80px) scale(0.85) rotateX(15deg);
        opacity: 0;
    }
    100% { 
        transform: translateY(0) scale(1) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes codeGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
        border-color: rgba(0, 255, 136, 0.3);
    }
    50% { 
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
        border-color: rgba(0, 255, 136, 0.5);
    }
}

@keyframes codeShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .promo-modal-content {
        padding: 40px 30px;
        margin: 20px;
        border-radius: 20px;
        max-width: 95%;
    }
    
    .promo-modal-title {
        font-size: 26px;
        letter-spacing: 1.5px;
        margin-bottom: 20px;
    }
    
    .promo-code-display {
        font-size: 32px;
        padding: 20px 25px;
        letter-spacing: 3px;
        margin: 25px 0;
    }
    
    .promo-modal-text {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 30px;
    }
    
    .promo-modal-button {
        padding: 16px 35px;
        font-size: 15px;
        letter-spacing: 1px;
    }

    .promo-modal-close {
        top: 15px;
        right: 20px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .promo-modal-content {
        padding: 35px 25px;
        margin: 15px;
    }
    
    .promo-modal-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .promo-code-display {
        font-size: 28px;
        padding: 18px 20px;
        letter-spacing: 2px;
    }
    
    .promo-modal-text {
        font-size: 15px;
    }
    
    .promo-modal-button {
        padding: 14px 30px;
        font-size: 14px;
    }
}

/* Tablet landscape optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .promo-modal-content {
        max-width: 520px;
        padding: 45px 35px;
    }
}

/* Black Friday bar height */
.black-friday-bar {
    height: 50px !important;
}

/* Page and header spacing for Black Friday bar */
body {
    margin-top: 50px !important;
}

.header {
    margin-top: 50px !important;
    top: 50px !important;
}

@media (max-width: 768px) {
    .black-friday-bar {
        height: 100px !important;
    }

    body {
        margin-top: 100px !important;
    }

    .header {
        margin-top: 100px !important;
        top: 100px !important;
    }
}

@media (max-width: 480px) {
    .black-friday-bar {
        height: 110px !important;
    }

    body {
        margin-top: 110px !important;
    }

    .header {
        margin-top: 110px !important;
        top: 110px !important;
    }
}

/* Adjust breadcrumbs position */
#breadcrumbs {
    margin-top: 50px !important;
}

@media (max-width: 768px) {
    #breadcrumbs {
        margin-top: 100px !important;
    }
}

@media (max-width: 480px) {
    #breadcrumbs {
        margin-top: 110px !important;
    }
}