﻿/*
==========================================================
GRANOVSKIY Furniture
Файл: style.css
Версия: 1.0
==========================================================
*/

/* ===========================
   Сброс стилей
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    font-size:16px;
    line-height:1.7;
    color:#3b3b3b;
    background:#f7f5f1;
}

/* ===========================
   Общие элементы
=========================== */

a{
    color:inherit;
    text-decoration:none;
    transition:.25s;
}

img{
    display:block;
    width:100%;
    height:auto;
}

.container{
    width:min(1200px,92%);
    margin:auto;
}

.site{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

.main-content{
    flex:1;
}

/* ===========================
   Header
=========================== */

.site-header{
    background:#ffffff;
    border-bottom:1px solid #ece8e1;
    position:sticky;
    top:0;
    z-index:100;
}

.header-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 0;
}

.logo{
    display:flex;
    flex-direction:column;
}

.logo-title{
    font-size:30px;
    font-weight:700;
    letter-spacing:3px;
}

.logo-subtitle{
    font-size:13px;
    color:#8c857b;
    letter-spacing:4px;
    text-transform:uppercase;
}

/* ===========================
   Меню
=========================== */

.menu{
    list-style:none;
    display:flex;
    gap:40px;
    position:relative;
    top:-10px;
}

.menu a{
    font-weight:500;
}

.menu a:hover{
    color:#8d6f52;
}

.menu a.active{
    color:#8d6f52;
}

/* ===========================
   Hero
=========================== */

.hero{
    position: relative;
    width: 100%;
    height: 450px;
    background: url("../img/hero.jpg") center center / cover no-repeat;
    display: flex;
    align-items: flex-end;
}

.hero-content{
    position: relative;
    left:90px;
    bottom:-85px;
}

.hero h1{
    font-size:54px;
    line-height:1.2;
    margin-bottom:25px;
}

.hero p{
    font-size:19px;
    color:#666;
    margin-bottom:35px;
}

/* ===========================
   Кнопки
=========================== */

.hero .button{
    background:#111;
    color:#fff;
    padding:12px 42px;
    font-size:18px;
    border-radius:10px;
    transition:.3s;
}

.hero .button:hover{
    background:#2b2b2b;
    transform:translateY(-2px);
}

.button-outline{
    background:transparent;
    border:1px solid #8d6f52;
    color:#8d6f52;
}

.button-outline:hover{
    background:#8d6f52;
    color:#ffffff;
}


.back-button{
    display:inline-block;
    margin-top:25px;
    padding:14px 28px;
    background:#222;
    color:#fff;
    border-radius:8px;
    font-weight:600;
    transition:.25s;
}

.back-button:hover{
    background:#000;
    transform:translateY(-2px);
}

/* ===========================
   Каталог
=========================== */

.catalog-preview{
    padding:90px 0;
}

.section-header{
    margin-bottom:45px;
}

.section-header h2{
    font-size:38px;
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:35px;
}

.product-card{
    background:#ffffff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 12px 35px rgba(0,0,0,.05);
    transition:.25s;
}


.product-card img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.product-card:hover{
    transform:translateY(-6px);
}

.product-card-body{
    padding:25px;
}

.product-card h3{
    margin-bottom:15px;
    font-size:24px;
}

.product-card p{
    color:#777;
    margin-bottom:20px;
}

.price{
    font-size:28px;
    font-weight:700;
    margin-bottom:25px;
    color:#8d6f52;
}

/* ===========================
   Карточка товара
=========================== */

.product-page{
    padding:80px 0;
}

.product-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
}

.product-main-image{
    border-radius:14px;
}

.product-thumbnails{
    display:flex;
    gap:15px;
    margin-top:20px;
}

.product-thumbnails img{
    width:90px;
    height:90px;
    object-fit:cover;

    border-radius:8px;

    cursor:pointer;

    border:3px solid transparent;

    transition:all .2s ease;
}

.product-price{
    font-size:40px;
    font-weight:700;
    color:#8d6f52;
    margin:25px 0;
}


.product-stock{
    margin:10px 0 25px;
    font-size:18px;
    font-weight:600;
    color:#2e8b57;
}

/* ===========================
   Контакты
=========================== */

.contacts-page{
    padding:80px 0;
}

.contacts-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    margin-bottom:60px;
}

.contact-card{
    background:#ffffff;
    padding:30px;
    border-radius:14px;
    box-shadow:0 8px 30px rgba(0,0,0,.05);
}

.contact-card h2{
    margin-bottom:15px;
}

.contacts-info{
    background:#ffffff;
    padding:40px;
    border-radius:14px;
    box-shadow:0 8px 30px rgba(0,0,0,.05);
}

/* ===========================
   Footer
=========================== */

.site-footer{
    background:#ffffff;
    border-top:1px solid #ece8e1;
    margin-top:80px;
}

.footer-top{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:50px;
    padding:60px 0;
}

.footer-title,
.footer-column h3{
    margin-bottom:20px;
}

.footer-menu{
    list-style:none;
}

.footer-menu li{
    margin-bottom:12px;
}

.footer-bottom{
    border-top:1px solid #ece8e1;
    padding:25px 0;
    text-align:center;
    color:#888;
}

/* ===========================
   Прочее
=========================== */

.empty-products{
    text-align:center;
    padding:80px 20px;
    color:#888;
}

.page-header{
    padding:70px 0 40px;
}

.page-header h1{
    font-size:46px;
    margin-bottom:15px;
}


.product-thumbnails .product-thumb {
    cursor: pointer;
    border: 3px solid transparent;
    transition: all .2s ease;
    box-sizing: border-box;
}

.product-thumbnails .product-thumb.active {
    border: 3px solid #b08a5a;
}

.product-thumbnails .product-thumb:hover {
    border: 3px solid #d4b07a;
}



/* ===========================
   Верхняя черная панель
=========================== */

.top-bar{
    background:#111;
    color:#fff;
    font-size:13px;
}

.top-bar-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:34px;
}

.top-bar-left{
    color:#ffffff;
}

.top-bar-right{
    display:flex;
    align-items:center;
    gap:30px;
}

.top-bar-right span{
    display:flex;
    align-items:center;
}


/* Кнопка заказа WhatsApp */

.product-order {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0 20px;
}

.whatsapp-order-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: #25D366;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.whatsapp-order-button:hover {
    background-color: #1DA851;
    color: #ffffff;
}



}
