@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-main: 'Unbounded', sans-serif;
}

html, body {
    font-family: var(--font-main);
}

* {
    font-family: inherit;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f5f5;
    color: #222;
}

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

/* HEADER */
/* ===== Header (Shop style) ===== */

.site-header{
    background:#fff;
    border-bottom:1px solid #eee;
    position:sticky;
    top:0;
    z-index:1000;
}

.header-inner{
    display:grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap:14px;
    align-items:center;
    height:72px;
}

.header-left{
    display:flex;
    align-items:center;
    gap:14px;
    min-width: 0;
}

.logo{
    font-size:22px;
    font-weight:800;
    text-decoration:none;
    color:#000;
    letter-spacing:0.3px;
    white-space:nowrap;
}

.catalog-wrap{
    position:relative;
}

.catalog-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    height:42px;
    padding:0 12px;
    border-radius:10px;
    border:1px solid #e6e6e6;
    background:#fafafa;
    cursor:pointer;
    font-weight:700;
    color:#222;
}

.catalog-btn .icon{ font-size:18px; line-height:1; }
.catalog-btn .chev{ color:#666; }

.catalog-dropdown{
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    width:260px;
    background:#fff;
    border:1px solid #eee;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    padding:10px;
    display:none;
}

.catalog-dropdown a{
    display:block;
    padding:10px 10px;
    border-radius:10px;
    text-decoration:none;
    color:#222;
    font-weight:600;
}

.catalog-dropdown a:hover{
    background:#f3f3f3;
}

.dropdown-sep{
    height:1px;
    background:#eee;
    margin:8px 6px;
}

.header-center{
    min-width: 0;
}

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

.search input{
    width:100%;
    height:42px;
    border-radius:12px;
    border:1px solid #e6e6e6;
    padding:0 12px;
    outline:none;
    background:#fff;
}

.search input:focus{
    border-color:#0077ff;
}

.search button{
    height:42px;
    padding:0 14px;
    border-radius:12px;
    border:1px solid #0077ff;
    background:#0077ff;
    color:#fff;
    font-weight:700;
    cursor:pointer;
    white-space:nowrap;
}

.header-right{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
}

.header-link{
    text-decoration:none;
    color:#222;
    font-weight:700;
    padding:10px 10px;
    border-radius:10px;
}

.header-link:hover{
    background:#f3f3f3;
}

.cart-btn{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:8px;
    height:42px;
    padding:0 12px;
    border-radius:12px;
    border:1px solid #e6e6e6;
    background:#fff;
    text-decoration:none;
    color:#222;
    font-weight:800;
}

.cart-badge{
    position:absolute;
    top:-6px;
    right:-6px;
    min-width:18px;
    height:18px;
    padding:0 5px;
    border-radius:999px;
    background:#ff3b30;
    color:#fff;
    font-size:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
}

.burger{
    display:none;
    height:42px;
    width:42px;
    border-radius:12px;
    border:1px solid #e6e6e6;
    background:#fafafa;
    cursor:pointer;
    font-size:20px;
}

/* Mobile panel */
.mobile-panel{
    display:none;
    border-top:1px solid #eee;
    background:#fff;
}

.mobile-panel-inner{
    padding:14px 0;
}

.search-mobile{ margin-bottom:12px; }

.mobile-links{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.mobile-links a{
    text-decoration:none;
    color:#222;
    font-weight:700;
    padding:10px 12px;
    border-radius:10px;
    background:#fafafa;
    border:1px solid #eee;
}

/* Responsive */
@media (max-width: 992px){
    .header-inner{
        grid-template-columns: 1fr auto;
    }

    .header-center{
        display:none;
    }

    .burger{
        display:inline-flex;
        align-items:center;
        justify-content:center;
    }

    .cart-text{ display:none; }
}

@media (max-width: 520px){
    .catalog-btn span:nth-child(2){ display:none; } /* скрыть слово "Каталог" */
    .catalog-dropdown{ width:240px; }
}

/* FOOTER */

.site-footer {
    background: #111;
    color: #fff;
    margin-top: 50px;
}

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

.site-footer h4 {
    margin-bottom: 10px;
}

.site-footer a {
    color: #ccc;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    background: #000;
    font-size: 14px;
}

/* MOBILE */

@media (max-width: 768px) {

    .main-nav {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
    }

    .main-nav a {
        margin: 10px 0;
    }

    .burger {
        display: block;
    }
}
/* HOME PAGE */

.hero {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
    padding: 40px 0;
    align-items: center;
}

.hero-text h1 {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-text p {
    font-size: 16px;
    color: #444;
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #eee;
    background: #fafafa;
    border-radius: 999px;
    font-size: 13px;
    color: #333;
}

.hero-card {
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px;
}

.hero-card-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-card-value {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 6px;
}

.hero-card-desc {
    color: #555;
    margin-bottom: 14px;
}

.section {
    padding: 36px 0;
}

.section-muted {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: 22px;
}

.link {
    color: #0077ff;
    text-decoration: none;
}

.grid {
    display: grid;
    gap: 14px;
}

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

.cat-card {
    display: block;
    text-decoration: none;
    color: #222;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px;
    transition: transform .15s ease;
}

.cat-card:hover {
    transform: translateY(-2px);
}

.cat-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.cat-sub {
    color: #666;
    font-size: 14px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
}

.product-img {
    height: 140px;
    border-radius: 10px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    margin-bottom: 10px;
    font-size: 14px;
}

.product-name {
    font-weight: 700;
    margin-bottom: 8px;
}

.product-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.price {
    font-weight: 800;
}

.old-price {
    color: #888;
    text-decoration: line-through;
    font-size: 14px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
}

.btn-sm {
    padding: 8px 10px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: #0077ff;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #222;
    border-color: #ddd;
}

.info-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px;
}

.info-title {
    font-weight: 800;
    margin-bottom: 8px;
}

.info-desc {
    color: #555;
    line-height: 1.4;
}

.newsletter {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    height: 42px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0 12px;
    min-width: 240px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 30px; }
}