/* ============================================
   СТИЛИ ДЛЯ DEMO SHOP
   ============================================ */

/* Кнопка "В корзине" */
.add-to-cart-btn.added {
    background: var(--success) !important;
    color: white !important;
    cursor: default;
    opacity: 0.8;
}

.add-to-cart-btn.added i {
    margin-right: 6px;
}

/* Уведомления */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.notification-success {
    background: #27ae60;
}

.notification-error {
    background: #e74c3c;
}

.notification-info {
    background: #3498db;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === НАВИГАЦИЯ === */
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.header-nav .nav-link:hover {
    color: white;
    border-bottom-color: #64ffda;
}

.header-nav .nav-link.active {
    color: white;
    border-bottom-color: #64ffda;
}

.header-nav .icon-link {
    color: white;
    font-size: 20px;
    text-decoration: none;
    position: relative;
}

.header-nav .icon-link:hover {
    color: #64ffda;
}

.header-nav .badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

:root {
    --primary: #1a5276;
    --primary-dark: #0e2f44;
    --primary-light: #2e86c1;
    --success: #27ae60;
    --danger: #e74c3c;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-light: #f0f4f8;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    background: var(--primary);
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-icons .icon-link {
    color: white;
    font-size: 20px;
    text-decoration: none;
    position: relative;
}

.badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* MAIN */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.content {
    width: 100%;
}

/* BREADCRUMBS */
.breadcrumbs {
    font-size: 13px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 6px;
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-body {
    padding: 18px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
}

.product-name a {
    color: var(--text-dark);
    text-decoration: none;
}

.product-name a:hover {
    color: var(--primary);
}

.product-article {
    font-size: 12px;
    color: var(--text-muted);
}

/* СТИЛИ ДЛЯ ОСТАТКОВ */
.product-stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
}

.stock-label {
    color: var(--text-muted);
}

.stock-value.in-stock {
    color: var(--success);
    font-weight: 600;
}

.stock-value.out-of-stock {
    color: var(--danger);
    font-weight: 600;
}

/* Блок остатка на детальной странице */
.stock-block {
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.stock-block .stock-label {
    color: var(--text-muted);
}

.stock-block .stock-value {
    font-size: 20px;
}

.stock-block .stock-value.in-stock {
    color: var(--success);
}

.stock-block .stock-value.out-of-stock {
    color: var(--danger);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 8px 0;
}

.product-price small {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn {
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* PRODUCT DETAIL */
.product_detail {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product_detail .title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product_detail .meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.product_detail .price-block {
    background: var(--bg-light);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 16px 0;
}

.product_detail .price-block .price {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
}

.product_detail .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.product_detail .actions .btn {
    padding: 12px 28px;
    font-size: 16px;
}

/* FOOTER */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 20px 16px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-inner h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-inner p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 6px;
}

.footer-inner a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-inner a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product_detail {
        padding: 16px;
    }
}

/* ============================================
   СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ-РЕЗЮМЕ
   ============================================ */

/* --- Hero (шапка) --- */
.hero {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: white;
    padding: 60px 20px 50px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-avatar {
    font-size: 80px;
    margin-bottom: 16px;
    display: block;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.hero h1 span {
    color: #64ffda;
}

.hero p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.hero .badge-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.hero .badge-group .badge {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* --- Секции --- */
.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .icon {
    font-size: 28px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* --- Карточки навыков (3 колонки) --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.skill-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.skill-card .skill-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.skill-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.skill-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- Пет-проекты --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.project-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.project-card .project-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.project-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-card .project-desc {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 12px;
}

.project-card .project-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    align-self: flex-start;
}

.project-card .project-link:hover {
    text-decoration: underline;
}

/* --- Достижения / цифры --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 8px 0 40px;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 20px 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

.stat-item .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-item .stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* --- Контакты --- */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 16px 0 0;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    font-size: 14px;
}

.contact-links a:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.contact-links a .icon {
    font-size: 18px;
}

/* --- Адаптивность для главной страницы --- */
@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
        padding: 0 10px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-avatar {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .contact-links a {
        width: 100%;
        justify-content: center;
    }
}