/*
Theme Name: Ковка Ажур
Theme URI: https://azhur.ru
Author: antglk
Author URI: https://antglk.ru
Description: Тема для сайта художественной ковки в Оренбурге. Премиальный дизайн с элементами ковки.
Version: 1.0.0
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: kuznya-azhur
*/

/* ===== БАЗОВЫЕ СТИЛИ ===== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #d4c5a3;
    background-image: url('https://image.qwenlm.ai/public_source/31f861c2-e43e-487c-9824-a39af6fa1be1/143d1967a-b5fd-436d-a4ae-8bceecd881f7.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #2d2418;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(212, 197, 163, 0.3) 0%, rgba(139, 90, 43, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', serif;
}

/* Цвета forge */
:root {
    --forge-500: #c27a28;
    --forge-600: #a86620;
    --forge-700: #8b4e1a;
    --forge-800: #2d2418;
    --forge-900: #1a1510;
}

.forge-500 { color: #c27a28; }
.forge-600 { color: #a86620; }
.forge-700 { color: #8b4e1a; }
.forge-800 { color: #2d2418; }
.forge-900 { color: #1a1510; }

.bg-forge-500 { background-color: #c27a28; }
.bg-forge-600 { background-color: #a86620; }
.bg-forge-700 { background-color: #8b4e1a; }
.bg-forge-800 { background-color: #2d2418; }
.bg-forge-900 { background-color: #1a1510; }

.text-forge-500 { color: #c27a28; }
.text-forge-600 { color: #a86620; }
.text-forge-700 { color: #8b4e1a; }
.text-forge-800 { color: #2d2418; }
.text-forge-900 { color: #1a1510; }

.border-forge-500 { border-color: #c27a28; }
.border-forge-600 { border-color: #a86620; }
.border-forge-800 { border-color: #2d2418; }

.hover\:bg-forge-500:hover { background-color: #c27a28; }
.hover\:bg-forge-600:hover { background-color: #a86620; }
.hover\:text-forge-500:hover { color: #c27a28; }

/* Градиенты */
.from-forge-500 { 
    --tw-gradient-from: #c27a28;
    background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to, #a86620));
}
.to-forge-600 { 
    --tw-gradient-to: #a86620;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.hover\:from-forge-600:hover {
    --tw-gradient-from: #a86620;
}

.hover\:to-forge-700:hover {
    --tw-gradient-to: #8b4e1a;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #2d2418;
}
::-webkit-scrollbar-thumb {
    background: #c27a28;
    border: 2px solid #2d2418;
}

/* Стекло */
.glass-dark {
    background: rgba(45, 36, 24, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(194, 122, 40, 0.2);
}

/* Навигация */
.nav-sticky {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Герой блок */
.hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.5) 100%);
}

.hero-text-glow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 30px rgba(194,122,40,0.6);
}

/* Цитата */
.quote-card {
    background: rgba(45, 36, 24, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(194, 122, 40, 0.4);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 150px;
    font-family: 'Playfair Display', serif;
    color: rgba(194, 122, 40, 0.15);
    line-height: 1;
    pointer-events: none;
}

.quote-card::after {
    content: '"';
    position: absolute;
    bottom: -60px;
    right: 20px;
    font-size: 150px;
    font-family: 'Playfair Display', serif;
    color: rgba(194, 122, 40, 0.15);
    line-height: 1;
    transform: rotate(180deg);
    pointer-events: none;
}

/* Анимации */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature карточки */
.feature-card {
    background: rgba(244, 228, 188, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(194, 122, 40, 0.3);
    border-radius: 20px;
    padding: 2rem 1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #c27a28;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.3);
}

.feature-card:hover .feature-icon {
    background: #c27a28;
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 30px;
    background: rgba(194, 122, 40, 0.1);
    border: 2px solid #c27a28;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
    color: #c27a28;
}

/* ===== НОВЫЙ ДИЗАЙН КАРТОЧЕК ДЛЯ НАПРАВЛЕНИЙ ===== */
.direction-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(194, 122, 40, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.direction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #c27a28, #e6b17e, #c27a28, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.direction-card:hover::before {
    transform: translateX(100%);
}

.direction-card::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c27a28" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>');
    background-size: contain;
    opacity: 0.1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.direction-card:hover::after {
    opacity: 0.2;
    transform: rotate(90deg);
}

.direction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -15px rgba(194, 122, 40, 0.3);
    border-color: #c27a28;
}

.direction-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2d2418, #4a3a28);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 2px solid #c27a28;
    color: #c27a28;
    position: relative;
    z-index: 1;
}

.direction-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: linear-gradient(135deg, #c27a28, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.direction-card:hover .direction-icon::before {
    opacity: 0.3;
}

/* ===== КАРТОЧКИ ДЛЯ ПРЕИМУЩЕСТВ ===== */
.advantage-card {
    background: white;
    border-radius: 30px;
    padding: 2rem 1.5rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(194, 122, 40, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px -15px rgba(0,0,0,0.1);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px -15px rgba(194, 122, 40, 0.3);
    border-color: #c27a28;
}

.advantage-number {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 60px;
    font-weight: 800;
    color: rgba(194, 122, 40, 0.1);
    font-family: 'Playfair Display', serif;
    line-height: 1;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-number {
    color: rgba(194, 122, 40, 0.2);
    transform: scale(1.2);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2d2418, #4a3a28);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 2px solid #c27a28;
    color: #c27a28;
    position: relative;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1) rotate(5deg);
    background: #c27a28;
    color: white;
}

/* О компании */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 30px;
    overflow: hidden;
    border: 3px solid #c27a28;
    box-shadow: 0 30px 40px -20px rgba(0,0,0,0.4);
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(194,122,40,0.2) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.about-stat-item {
    background: rgba(194, 122, 40, 0.1);
    border-radius: 16px;
    padding: 1rem;
    border-left: 4px solid #c27a28;
}

/* Контактная карточка */
.contact-card {
    background: #f4e8d0;
    border: 2px solid #c27a28;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c27a28, #e6b17e, #c27a28);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px -15px rgba(194, 122, 40, 0.3);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(194, 122, 40, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c27a28;
    border: 1px solid rgba(194, 122, 40, 0.3);
}

.contact-input {
    background: #f9f4e8;
    border: 2px solid #d4c5a3;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    width: 100%;
    transition: all 0.3s ease;
    color: #2d2418;
}

.contact-input:focus {
    border-color: #c27a28;
    outline: none;
    box-shadow: 0 0 0 3px rgba(194, 122, 40, 0.2);
}

.contact-input::placeholder {
    color: #8b7a60;
}

.submit-btn {
    background: linear-gradient(135deg, #c27a28, #a86620);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 16px;
    width: 100%;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.125rem;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #a86620, #8b4e1a);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(194, 122, 40, 0.4);
}

/* Эффекты для блока направлений */
.directions-bg-effect {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.directions-bg-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(194, 122, 40, 0.03) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

.directions-bg-effect::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23c27a28" opacity="0.03"><path d="M20,20 L80,20 L80,80 L20,80 Z" stroke="%23c27a28" stroke-width="2" fill="none"/><circle cx="50" cy="50" r="20" stroke="%23c27a28" stroke-width="2" fill="none"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    transform: rotate(15deg);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Кнопка "Все работы" */
.portfolio-btn {
    background: linear-gradient(135deg, #c27a28, #a86620);
    color: white;
    font-weight: 600;
    padding: 1rem 3rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    box-shadow: 0 10px 20px -5px rgba(194, 122, 40, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.portfolio-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.portfolio-btn:hover::before {
    left: 100%;
}

.portfolio-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -8px rgba(194, 122, 40, 0.5);
    border-color: #e6b17e;
}

/* Новый фон для портфолио */
.portfolio-bg {
    background: linear-gradient(135deg, #2d2418, #4a3a28);
    position: relative;
}

.portfolio-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/paper.webp');
    opacity: 0.1;
    pointer-events: none;
}

.portfolio-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c27a28, #e6b17e, #c27a28, transparent);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .about-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image img {
        height: 350px;
    }
}

@media (max-width: 640px) {
    .about-image img {
        height: 280px;
    }
    
    .about-stats {
        gap: 0.75rem;
    }
}

/* WordPress специфичные стили */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.gallery-caption {
    font-size: 0.875rem;
    color: #666;
}

.bypostauthor {
    background: #f9f9f9;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Адаптация для админ-бара */
.admin-bar .fixed {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .fixed {
        top: 46px;
    }
}

/* Градиенты */
.from-forge-500 { 
    --tw-gradient-from: #c27a28;
    background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to, #a86620));
}
.to-forge-600 { 
    --tw-gradient-to: #a86620;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.hover\:from-forge-600:hover {
    --tw-gradient-from: #a86620;
}

.hover\:to-forge-700:hover {
    --tw-gradient-to: #8b4e1a;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    color: #2d2418;
    background-color: #e8d5b5;
    background-image: 
        /* Шум/зернистость */
        radial-gradient(circle at 30% 40%, rgba(194, 122, 40, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 70% 60%, rgba(139, 90, 43, 0.03) 0%, transparent 40%),
        /* Тени по краям (эффект старой бумаги) */
        radial-gradient(ellipse at 0% 50%, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        /* Текстура бумаги (линии) */
        repeating-linear-gradient(45deg, rgba(194, 122, 40, 0.02) 0px, rgba(194, 122, 40, 0.02) 2px, transparent 2px, transparent 6px);
    background-attachment: fixed;
}

/* ===== ПОЛНОСТЬЮ КАСТОМИЗИРОВАННАЯ ФОРМА GWOLLE ===== */

/* Контейнер формы */
form.gwolle-gb-write {
    background: transparent !important;
    padding: 0 !important;
}

/* Заголовок формы (если нужно скрыть) */
.gwolle-gb-write h3 {
    display: none;
}

/* Поля ввода */
.gwolle-gb-write input[type="text"],
.gwolle-gb-write input[type="email"],
.gwolle-gb-write input[type="url"],
.gwolle-gb-write textarea,
.gwolle-gb-write select {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid #e8d5b5 !important;
    border-radius: 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    background: white !important;
    color: #2d2418 !important;
    transition: all 0.3s ease !important;
    margin-bottom: 16px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
}

.gwolle-gb-write input:focus,
.gwolle-gb-write textarea:focus,
.gwolle-gb-write select:focus {
    border-color: #c27a28 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(194, 122, 40, 0.15) !important;
}

/* Метки полей */
.gwolle-gb-write label {
    display: block !important;
    font-weight: 600 !important;
    color: #2d2418 !important;
    margin-bottom: 6px !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.3px !important;
}

/* Обязательные поля (звездочка) */
.gwolle-gb-write .required {
    color: #c27a28 !important;
}

/* КНОПКА ОТПРАВКИ - САМАЯ ВАЖНАЯ ЧАСТЬ */
.gwolle-gb-write-button input.button,
.gwolle-gb input.button {
    background: linear-gradient(135deg, #c27a28, #a86620) !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    padding: 18px 32px !important;
    border-radius: 50px !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    cursor: pointer !important;
    width: 100% !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 10px 25px -5px rgba(194, 122, 40, 0.4) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 16px !important;
}

/* Эффект при наведении */
.gwolle-gb-write-button input.button:hover,
.gwolle-gb input.button:hover {
    background: linear-gradient(135deg, #a86620, #8b4e1a) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px -5px rgba(194, 122, 40, 0.6) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

/* Эффект при нажатии */
.gwolle-gb-write-button input.button:active,
.gwolle-gb input.button:active {
    transform: translateY(0) !important;
    box-shadow: 0 5px 15px -5px rgba(194, 122, 40, 0.4) !important;
}

/* Добавляем иконку к кнопке */
.gwolle-gb-write-button input.button::after {
    content: '✍️';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    opacity: 0;
    transition: right 0.3s ease, opacity 0.3s ease;
}

.gwolle-gb-write-button input.button:hover::after {
    right: 30px;
    opacity: 1;
}

/* Сообщения об успехе/ошибке */
.gwolle_gb_messages {
    background: #f9f4e8 !important;
    border-left: 4px solid #c27a28 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    color: #2d2418 !important;
    font-size: 0.95rem !important;
    border: 1px solid rgba(194, 122, 40, 0.2) !important;
}

.gwolle_gb_messages.success {
    border-left-color: #4caf50 !important;
}

/* Антиспам поле (скрытое) */
.gwolle-gb-write .gwolle_gb_antispam {
    display: none !important;
}

/* Контейнер для капчи (если есть) */
.gwolle-gb-captcha {
    margin: 20px 0 !important;
}

/* Стили для чекбоксов (если есть) */
.gwolle-gb-write input[type="checkbox"] {
    width: auto !important;
    margin-right: 8px !important;
}

/* Анимация для уведомлений */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification {
    animation: slideIn 0.3s ease-out;
}

/* Анимация для иконки загрузки */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Уведомление */
.fixed.top-24.right-4 {
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
    border-left: 4px solid rgba(255,255,255,0.3);
}

/* ===== СТИЛИ ДЛЯ КНОПКИ КОРЗИНЫ ===== */
.add-to-cart-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Анимация загрузки */
.btn-loading {
    background: linear-gradient(135deg, #a86620, #8b4e1a) !important;
    cursor: wait !important;
    opacity: 0.8;
}

.btn-loading .loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Успешное добавление */
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    pointer-events: none;
}

.btn-success .checkmark {
    display: inline-block;
    animation: pop 0.3s ease;
    margin-right: 8px;
    font-size: 18px;
}

@keyframes pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Ошибка */
.btn-error {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    pointer-events: none;
}

.btn-error .error-mark {
    display: inline-block;
    animation: shake 0.3s ease;
    margin-right: 8px;
    font-size: 18px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Уведомления */
.cart-notification {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.cart-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 24px;
    animation: pop 0.3s ease;
}

/* Счётчики корзины */
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 9999px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .cart-notification {
        top: 80px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .cart-notification.show {
        transform: translateY(0);
    }
}
