/*
Theme Name: Pandik Toy Store
Theme URI: https://pandik.ru
Author: Pandik Team
Description: Премиальный детский аналог Classic Toy Store с поддержкой WooCommerce, реквизитов ИП и быстрой связи.
Version: 1.1.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: pandik-toys
*/

:root {
    --pandik-green: #2ec4b6;
    --pandik-dark: #1b262c;
    --pandik-coral: #ff6b6b;
    --pandik-yellow: #ffd166;
    --bg-cream: #faf9f6;
    --radius-pill: 50px;
    --radius-box: 20px;
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Nunito', 'Comfortaa', sans-serif;
    background-color: var(--bg-cream);
    color: var(--pandik-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, .site-logo a, .btn-bubble, .btn-messenger {
    font-family: 'Comfortaa', cursive, sans-serif;
}

.site-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Верхняя полоса */
.top-announcement {
    background: var(--pandik-yellow);
    text-align: center;
    padding: 9px 15px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pandik-dark);
}

/* Шапка */
.site-header {
    background: #ffffff;
    padding: 18px 0;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--pandik-green);
    text-decoration: none;
}

.site-logo span.dot { color: var(--pandik-coral); }
.logo-emoji { font-size: 2rem; }

/* Центр шапки: поиск + кнопка мессенджера */
.header-center {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    max-width: 650px;
    margin: 0 20px;
}

.header-search {
    flex-grow: 1;
    position: relative;
}

.header-search form {
    display: flex;
    position: relative;
}

.header-search input[type="search"] {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-pill);
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.header-search input[type="search"]:focus {
    border-color: var(--pandik-green);
    box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.15);
}

.search-submit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Кнопка мессенджера */
.btn-messenger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25d366; /* Сочный мессенджер-цвет */
    color: #fff !important;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}

.btn-messenger:hover {
    background: #1eb956;
    transform: translateY(-2px);
}

/* Корзина */
.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pandik-coral);
    color: #fff !important;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    transition: transform 0.2s;
}

.cart-pill:hover { transform: translateY(-2px); }
.cart-badge {
    background: #fff;
    color: var(--pandik-coral);
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.85rem;
}

/* Навигация */
.primary-nav {
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.primary-nav ul {
    display: flex;
    justify-content: center;
    gap: 28px;
    list-style: none;
    padding: 12px 0;
}

.primary-nav a {
    text-decoration: none;
    font-weight: 700;
    color: var(--pandik-dark);
    font-size: 0.95rem;
}

.primary-nav a:hover { color: var(--pandik-green); }

/* Баннер Hero */
.pandik-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #dcfce7 0%, #fef3c7 100%);
    border-radius: var(--radius-box);
    padding: 50px;
    margin: 30px 0;
    border: 3px dashed #86efac;
}

.hero-badge {
    background: var(--pandik-coral);
    color: #fff;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.15rem;
    color: #4b5563;
    max-width: 550px;
    margin-bottom: 25px;
}

.hero-panda-avatar {
    font-size: 7rem;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.1));
}

.btn-bubble {
    background: var(--pandik-green);
    color: #fff;
    padding: 15px 36px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 6px 18px rgba(46, 196, 182, 0.4);
    transition: transform 0.2s;
}

.btn-bubble:hover { transform: translateY(-3px); }

/* Сетка преимуществ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.feature-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: var(--radius-box);
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 2px solid #f1f5f9;
}

.f-icon { font-size: 2.5rem; margin-bottom: 10px; }
.feature-card h4 { font-size: 1.1rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.85rem; color: #64748b; }

/* Категории */
.section-title {
    text-align: center;
    margin-bottom: 35px;
    font-size: 2rem;
    position: relative;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.cat-card {
    background: #fff;
    padding: 25px 15px;
    border-radius: var(--radius-box);
    text-align: center;
    text-decoration: none;
    color: var(--pandik-dark);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: var(--pandik-yellow);
}

.cat-placeholder { font-size: 3rem; display: block; margin-bottom: 10px; }
.cat-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.cat-card span { font-size: 0.85rem; color: #94a3b8; }

/* Карточки WooCommerce */
.woocommerce ul.products li.product {
    background: #ffffff;
    border-radius: var(--radius-box);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 2px solid transparent;
    text-align: center;
    transition: all 0.3s;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    border-color: var(--pandik-green);
}

.woocommerce ul.products li.product .button {
    background: var(--pandik-green) !important;
    color: #fff !important;
    border-radius: var(--radius-pill) !important;
    padding: 10px 20px !important;
    font-weight: 700;
}

/* Футер */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 0 25px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr 1.5fr;
    gap: 35px;
    margin-bottom: 45px;
    text-align: left;
}

.footer-heading {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 18px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #d1d5db; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--pandik-yellow); }

.brand-desc { font-size: 0.9rem; line-height: 1.5; margin-bottom: 15px; }
.footer-phone a { color: var(--pandik-green); font-weight: bold; text-decoration: none; }

.requisites-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
}

/* Адаптивность под смартфоны */
@media (max-width: 992px) {
    .features-grid, .cat-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .header-inner { flex-wrap: wrap; }
    .header-center { order: 3; max-width: 100%; margin: 10px 0 0 0; }
    .pandik-hero { flex-direction: column; text-align: center; }
    .hero-img { margin-top: 25px; }
}

@media (max-width: 600px) {
    .features-grid, .cat-grid, .footer-grid { grid-template-columns: 1fr; }
    .header-center { flex-direction: column; }
    .btn-messenger { width: 100%; justify-content: center; }
}
