/* ===== Общий фон страницы ===== */
body, html {
    background: linear-gradient(135deg, #f0f4ff, #d9e6ff) !important;
    font-family: 'Poppins', sans-serif !important;
    color: #333 !important;
}

/* ===== Универсальный блок товара ===== */
div[class*="donate"], div[class*="item"] {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
}

div[class*="donate"]:hover, div[class*="item"]:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12) !important;
}

/* ===== Заголовок товара ===== */
div[class*="donate"] h2, div[class*="item"] h2, div[class*="donate"] h3, div[class*="item"] h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 10px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ===== Описание товара ===== */
div[class*="donate"] p, div[class*="item"] p {
    font-size: 15px !important;
    color: #555 !important;
    margin-bottom: 15px !important;
    line-height: 1.5 !important;
}

/* ===== Кнопка покупки ===== */
button, input[type="button"], input[type="submit"] {
    background: linear-gradient(90deg, #9d50bb, #ff6b8b) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 15px rgba(157, 80, 187, 0.4) !important;
    position: relative;
    overflow: hidden;
}

button:hover, input[type="button"]:hover, input[type="submit"]:hover {
    background: linear-gradient(90deg, #ff6b8b, #9d50bb) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 139, 0.5) !important;
}

/* Эффект блеска при наведении */
button::after, input[type="button"]::after, input[type="submit"]::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0) 45%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0) 55%
    );
    transform: rotate(30deg);
    transition: all 0.6s ease;
    opacity: 0;
}

button:hover::after, input[type="button"]:hover::after, input[type="submit"]:hover::after {
    opacity: 1;
    left: 100%;
    top: 100%;
}

/* ===== Поле ввода суммы доната ===== */
input[type="number"] {
    border: 1px solid #ccc !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    width: 100px !important;
    font-size: 15px !important;
    margin-right: 12px !important;
    transition: all 0.3s ease !important;
    background: rgba(255,255,255,0.8);
}

input[type="number"]:focus {
    border-color: #9d50bb !important;
    outline: none !important;
    box-shadow: 0 0 8px rgba(157, 80, 187, 0.3) !important;
}

/* ===== Анимация при загрузке ===== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

div[class*="donate"], div[class*="item"] {
    animation: fadeInUp 0.6s ease forwards;
}

/* Пульсация для акционных товаров */
.hot-item {
    animation: pulse 2s infinite ease-in-out;
    position: relative;
}

.hot-item::before {
    content: "🔥";
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 24px;
    animation: pulse 1.5s infinite;
}

/* Дополнительные эффекты для VIP товаров */
.vip-item {
    border: 2px solid;
    border-image: linear-gradient(45deg, #9d50bb, #ff6b8b, #9d50bb) 1;
    animation: borderPulse 3s infinite linear;
}

@keyframes borderPulse {
    0% { border-image-source: linear-gradient(45deg, #9d50bb, #ff6b8b, #9d50bb); }
    50% { border-image-source: linear-gradient(45deg, #ff6b8b, #9d50bb, #ff6b8b); }
    100% { border-image-source: linear-gradient(45deg, #9d50bb, #ff6b8b, #9d50bb); }
}