/* ======================================================
   СБРОС
====================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:#fdfdfd;
    color:#333;
    line-height:1.6;
}

/* ======================================================
   КОНТЕЙНЕР
====================================================== */

.container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

/* ======================================================
   HEADER
====================================================== */

.header{
    background:#111;
    border-bottom:1px solid #2d2d2d;
}

.header-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 0;
}

.logo a{
    color:#fff;
    text-decoration:none;
    font-size:28px;
    font-weight:600;
    letter-spacing:1px;
}

.nav{
    display:flex;
    align-items:center;
    gap:30px;
}

.nav a{
    color:#d5d5d5;
    text-decoration:none;
    transition:.25s;
}

.nav a:hover{
    color:#fff;
}

/* ======================================================
   HERO
====================================================== */

.hero{
    background:#f5f5f5;
    text-align:center;
    padding:90px 20px;
}

.hero h2{
    font-size:42px;
    margin-bottom:15px;
    color:#111;
}

.hero p{
    font-size:20px;
    color:#666;
}

/* ======================================================
   КАТАЛОГ
====================================================== */

.catalog{
    padding:80px 0;
}

.catalog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
    gap:40px;
}

/* ======================================================
   КАРТОЧКА
====================================================== */

.catalog-card{

    background:#fff;

    border-radius:14px;

    overflow:hidden;

    box-shadow:0 12px 35px rgba(0,0,0,.08);

    transition:.3s;

    display:flex;

    flex-direction:column;

}

.catalog-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 40px rgba(0,0,0,.15);

}

.catalog-image{

    width:100%;

    height:280px;

    background:#ececec;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

}

.catalog-image img{

    width:100%;

    height:100%;

    object-fit:cover;

}

.catalog-content{

    padding:25px;

    display:flex;

    flex-direction:column;

    flex:1;

}

.catalog-content h3{

    font-size:28px;

    margin-bottom:15px;

    color:#111;

}

.catalog-content p{

    color:#666;

    line-height:1.7;

    margin-bottom:25px;

    flex:1;

}

.catalog-price{

    font-size:30px;

    font-weight:700;

    color:#111;

    margin-bottom:25px;

}

.catalog-btn{

    display:block;

    text-align:center;

    text-decoration:none;

    background:#111;

    color:#fff;

    padding:14px;

    border-radius:8px;

    transition:.3s;

}

.catalog-btn:hover{

    background:#333;

}

/* ======================================================
   FOOTER
====================================================== */

footer{

    background:#111;

    color:#fff;

    text-align:center;

    padding:30px;

    margin-top:70px;

}

/* ======================================================
   АДАПТИВ
====================================================== */

@media(max-width:900px){

.header-inner{

    flex-direction:column;

    gap:20px;

}

.nav{

    flex-wrap:wrap;

    justify-content:center;

    gap:20px;

}

.hero{

    padding:70px 20px;

}

.hero h2{

    font-size:34px;

}

.catalog-grid{

    grid-template-columns:1fr;

}

.catalog-image{

    height:240px;

}

}

/* ======================================================
   СТРАНИЦА ТОВАРА
====================================================== */

.product-page{
    padding:70px 0;
}

.product-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:start;
}

.product-info h1{
    font-size:38px;
    margin-bottom:15px;
    color:#111;
}

.product-article{
    color:#777;
    margin-bottom:25px;
}

.product-price{
    font-size:40px;
    font-weight:700;
    color:#111;
    margin-bottom:10px;
}

.product-old-price{
    font-size:22px;
    color:#999;
    text-decoration:line-through;
    margin-bottom:25px;
}

.product-short{
    font-size:18px;
    color:#555;
    line-height:1.8;
    margin-bottom:35px;
}

.product-features{
    margin-bottom:35px;
}

.product-features p{
    margin-bottom:12px;
}

.product-button{
    display:inline-block;
    background:#111;
    color:#fff;
    text-decoration:none;
    padding:16px 35px;
    border-radius:8px;
    transition:.3s;
}

.product-button:hover{
    background:#333;
}

.product-description{
    margin-top:70px;
    border-top:1px solid #e5e5e5;
    padding-top:50px;
}

.product-description h2{
    margin-bottom:25px;
}

.product-description p{
    line-height:1.9;
    color:#444;
}

@media(max-width:900px){

.product-layout{
    grid-template-columns:1fr;
}

.product-info h1{
    font-size:30px;
}

.product-price{
    font-size:32px;
}

}

/* ================================
   ГАЛЕРЕЯ ТОВАРА
================================ */

.product-gallery{
    width:100%;
}


/* Главное фото */

.main-photo{
    width:100%;
    height:550px;
    overflow:hidden;
    border-radius:12px;
    background:#f5f5f5;
}

.main-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
}


/* Миниатюры */

.gallery-thumbs{

    display:flex;
    gap:15px;
    margin-top:20px;

    overflow-x:auto;
    padding-bottom:10px;

}


.gallery-thumbs img{

    width:90px;
    height:90px;

    flex-shrink:0;

    object-fit:cover;

    border-radius:8px;

    cursor:pointer;

    transition:.3s;
}


.gallery-thumbs img:hover{

    transform:scale(1.08);

}

/* ================================
   АКТИВНАЯ МИНИАТЮРА
================================ */


.main-photo img{

    transition:.3s;

}


.gallery-thumbs img{

    opacity:.7;

    border:2px solid transparent;

}


.gallery-thumbs img.active{

    opacity:1;

    border-color:#111;

}


.gallery-thumbs img:hover{

    opacity:1;

}

/* ================================
   СТРЕЛКИ ГАЛЕРЕИ
================================ */


.main-photo{

    position:relative;

}


.gallery-prev,
.gallery-next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:45px;

    height:45px;

    border-radius:50%;

    border:none;

    background:rgba(0,0,0,.55);

    color:#fff;

    font-size:24px;

    cursor:pointer;

    z-index:2;

    transition:.3s;

}


.gallery-prev:hover,
.gallery-next:hover{

    background:#111;

}


.gallery-prev{

    left:20px;

}


.gallery-next{

    right:20px;

}

/* ================================
   LIGHTBOX ГАЛЕРЕИ
================================ */


.lightbox{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.85);

    display:none;

    align-items:center;
    justify-content:center;

    z-index:9999;

}


/* Большое фото */

.lightbox img{

    max-width:90%;

    max-height:85%;

    object-fit:contain;

    border-radius:12px;

    box-shadow:0 20px 60px rgba(0,0,0,.5);

}


/* Кнопки */

.lightbox button{

    position:absolute;

    border:none;

    background:rgba(255,255,255,.15);

    color:#fff;

    width:50px;

    height:50px;

    border-radius:50%;

    font-size:28px;

    cursor:pointer;

    transition:.3s;

}


.lightbox button:hover{

    background:rgba(255,255,255,.3);

}


/* Закрытие */

.lightbox-close{

    top:30px;

    right:40px;

}



/* Назад */

.lightbox-prev{

    left:40px;

    top:50%;

    transform:translateY(-50%);

}


/* Вперёд */

.lightbox-next{

    right:40px;

    top:50%;

    transform:translateY(-50%);

}