/* Black Friday Bar Styles */
.black-friday-bar {
    position: fixed;
    top: max(0px, env(safe-area-inset-top));
    width: 100%;
    height: 50px;
    background: linear-gradient(45deg, #1a237e 0%, #0d47a1 30%, #1565c0 50%, #0d47a1 70%, #1a237e 100%);
    color: #ffffff;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.black-friday-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    padding: 0 10px;
    position: absolute;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.black-friday-text {
    font-size: 14px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.black-friday-icon {
    font-size: 16px;
}

.black-friday-title {
    color: #ffd700;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 1.5s infinite;
    font-size: 14px;
}

.black-friday-description {
    font-size: 14px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.black-friday-button {
    background: linear-gradient(45deg, #c62828, #e53935);
    color: #ffffff;
    border: none;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.4);
    text-decoration: none;
}

.black-friday-button:hover {
    background: linear-gradient(45deg, #e53935, #c62828);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.6);
}

.black-friday-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.black-friday-close:hover {
    opacity: 1;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mobile адаптивность для баннера */
@media (max-width: 768px) {
    .black-friday-bar {
        height: 100px !important;
    }
    .black-friday-content {
        flex-direction: column;
        gap: 4px;
        padding: 8px 10px;
    }
    .black-friday-text {
        font-size: 13px;
        line-height: 1.3;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .black-friday-title {
        font-size: 13px;
    }
    .black-friday-description {
        font-size: 12px;
    }
    .black-friday-button {
        padding: 8px 15px;
        font-size: 12px;
    }
    .black-friday-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    .black-friday-bar {
        height: 110px !important;
    }
    .black-friday-content {
        padding: 10px 8px;
        gap: 5px;
    }
    .black-friday-text {
        font-size: 12px;
        line-height: 1.1;
    }
    .black-friday-title {
        font-size: 12px;
    }
    .black-friday-description {
        font-size: 11px;
    }
    .black-friday-button {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* 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: 10002;
    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 - размеры управляются через JS в functions.php */
.black-friday-bar {
    height: 50px !important;
}

@media (max-width: 768px) {
    .black-friday-bar {
        height: 100px !important;
    }
}

@media (max-width: 480px) {
    .black-friday-bar {
        height: 110px !important;
    }
}

/* Отступы body, .header и #breadcrumbs теперь управляются динамически через JavaScript */
