/* Общие стили проекта Huppa */

* {
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    font-weight: 400;
    letter-spacing: -.03em;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

/* CSS переменные */
:root {
    --wp--preset--color--black: #000000;
    --wp--preset--color--white: #ffffff;
    --woocommerce: #7F54B3;
    --wc-green: #7ad03a;
    --wc-red: #a00;
    --wc-orange: #ffba00;
    --wc-blue: #2ea2cc;
    --wc-primary: #7F54B3;
    --wc-primary-text: white;
    --wc-secondary: #e9e6ed;
    --wc-secondary-text: #515151;
    --wc-highlight: #b3af54;
    --wc-content-bg: #fff;
    --wc-subtext: #767676;
    
    /* Основные цвета проекта */
    --primary-dark: #1d1d1b;
    --primary-light: #2a2a28;
    --background-light: #f5f5f5;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-light: #e5e5e5;
    --border-medium: #ddd;
    --white: #ffffff;
    
    /* Размеры */
    --container-max-width: 1400px;
    --border-radius: 8px;
    --border-radius-small: 4px;
    --transition: all 0.3s ease;
    --shadow-light: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: Arial, sans-serif;
    background: var(--background-light);
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: 1.6;
}

/* Контейнер */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Хедер */
.header {
    background: var(--primary-dark);
    box-shadow: var(--shadow-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 36px;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -1px;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

/* Навигация */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-muted);
}

.nav-links a.active {
    color: var(--text-muted);
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Мобильное меню кнопка */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-dark);
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    color: var(--text-muted);
}

.mobile-nav {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    transition: var(--transition);
}

.mobile-nav a:hover {
    color: var(--text-muted);
    padding-left: 10px;
}

.mobile-nav a.active {
    color: var(--text-muted);
}

/* Кнопки */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--background-light);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Карточки */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-body {
    padding: 20px;
}

/* Сетки */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
}

h2 {
    font-size: 2rem;
    font-weight: 300;
}

h3 {
    font-size: 1.5rem;
}

/* Текст */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

/* Отступы */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* Flex утилиты */
.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.flex-column {
    flex-direction: column;
}

/* Подвал */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-contact {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact strong {
    color: var(--white);
    display: block;
    margin-bottom: 5px;
}

.footer-hours {
    background: var(--primary-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.footer-hours h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-hours p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 5px 0;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-payments span {
    margin-right: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-social {
    margin-top: 20px;
}

.footer-social h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--white);
    transform: translateY(-3px);
}

.social-links a:hover svg {
    fill: var(--primary-dark);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
    transition: var(--transition);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Состояния загрузки */
.loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: var(--text-secondary);
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-dark);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.error {
    text-align: center;
    padding: 50px;
    color: #d32f2f;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .grid-auto {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .btn-large {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .grid-auto {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}