:root {
    --bg-color: #08080c;
    --panel-bg: rgba(20, 20, 28, 0.75);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --border-color: rgba(255, 255, 255, 0.1);
    --radius-lg: 20px;
    --radius-md: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Manrope', sans-serif;
    margin: 0;
    line-height: 1.6;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.main-content {
    min-height: 100vh;
    padding-top: 100px; /* Відступ під фіксований хедер */
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 60px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

/* --- КНОПКИ (Універсальні стилі) --- */

/* Базовий клас кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important; /* Вбиваємо синій колір та підкреслення */
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Акцентна кнопка (Придбати) */
.btn-accent {
    background: var(--accent);
    color: white !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* Кнопка "Всі товари" та посилання-стрілки */
.view-all {
    color: var(--accent) !important;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.view-all:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--accent);
    transform: translateX(5px);
}

/* Кнопка на всю ширину (для карток) */
.full-width {
    width: 100%;
}

/* Фікс для всіх посилань, щоб вони не ставали синіми */
a {
    color: inherit;
    text-decoration: none;
}


/* =========================================
   GLOBAL SMARTGAD PUSH / TOAST
   Єдиний стиль пуш-сповіщень для всього сайту
   ========================================= */
.smart-toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.smart-toast {
    position: relative;
    width: min(430px, calc(100vw - 50px));
    min-width: 320px;
    background: rgba(20, 20, 22, 0.95);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    animation: smartToastIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    overflow: hidden;
}

.smart-toast::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--toast-accent, var(--accent));
}

.smart-toast[data-type="success"],
.smart-toast[data-type="cart"],
.smart-toast[data-type="favorite"],
.smart-toast[data-type="compare"],
.smart-toast[data-type="info"] {
    --toast-accent: var(--accent);
}

.smart-toast[data-type="error"] {
    --toast-accent: #ef4444;
    border-color: rgba(239, 68, 68, 0.85);
}

.smart-toast[data-type="warning"] {
    --toast-accent: #f59e0b;
    border-color: rgba(245, 158, 11, 0.85);
}

.smart-toast.is-hiding {
    animation: smartToastOut 0.45s ease-in forwards;
}

.smart-toast-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.1);
    color: var(--toast-accent, var(--accent));
    font-size: 1.45rem;
    line-height: 1;
}

.smart-toast-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.smart-toast-title {
    color: var(--toast-accent, var(--accent));
    font-weight: 800;
    font-size: 0.78rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.smart-toast-message {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.smart-toast-close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: var(--transition);
}

.smart-toast-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

@keyframes smartToastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes smartToastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

@media (max-width: 768px) {
    .smart-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        align-items: stretch;
    }

    .smart-toast {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}
