﻿/* Головний контейнер */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    
    font-family: 'Arial', sans-serif;
}

/* Контент сторінки */
.body-content {
    flex: 1; /* розтягує контент, щоб футер пішов вниз */
}

/* Футер завжди внизу */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    
}



    body.page {
        min-height: 100vh; /* висота на весь екран */
        display: flex;
        flex-direction: column;
    }

/* область з контентом повинна займати увесь простір між хедером і футером */
.page-content {
    flex: 1 0 auto;
}
@media (max-width: 768px) {
    .details-container {
        flex-direction: column; /* фото зверху, текст знизу */
        align-items: center;
        gap: 20px;
    }

    .door-info {
        max-width: 100%;
        text-align: center;
    }

        .door-info p {
            text-align: left; /* щоб характеристики читалися нормально */
        }
}
site-footer {
    text-align: center;
    padding: 20px 10px;
    font-size: 15px;
    /* строгий шрифт */
    font-style: normal; /* прибрали курсив */
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
    
    border-top: 2px solid #444;
    padding: 20px;
    
}

.site-footer p {
    margin: 6px 0;
    
  
    padding: 10px;
    /* легке виділення */
}

.site-footer a {
    padding:10px;
    text-decoration: none;
    font-weight: 600;
}

    .site-footer a:hover {
        text-decoration: underline;
    }
/*.site-footer {
    flex-shrink: 0;*/ /* не стискай футер */
    /*background: #333;
    color: #fff;
    padding: 20px 0;
    width: 100%;
    padding-left:20px;
    text-align:center;
}
.footer-container{
    text-align:center;
}*/

/* (опційно) приберемо можливі зовнішні відступи, що підштовхують футер */
.container.body-content {
    margin-bottom: 0;
    padding-bottom: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.footer h1 {
    color: white;
}

.b2 {
    width: 30px;
    height: 30px;
    border: none;
    background-image: url('../images/free-icon-shopping-cart-5953165.png');
    background-size: cover;
    background-color: transparent;
    margin-right:20px;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 5px; /* Відстань між корзиною та меню */
}

.content {
    flex: 1; /* штовхає футер вниз */
}

footer div {
    padding: 0px;
}

.b2, .menu-btn {
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;
    max-width: 100%;
    background-size: cover; /* масштабування на всю площу*/
    background-position: center; /* центрування */
    background-repeat: no-repeat; /* не повторювати */
    height: 100px;
}

.logo {
    height: 140px;
    display: flex;
    margin-left: 10px;
}

.nav-links a {
    text-decoration: none;
   
    color: rgb(252, 234, 234);
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .nav-links a:hover {
        background-color: #00ffff33;
        transform: scale(1.05);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

.menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.services h1 {
    padding: 25px;
}

.wrapper {
    display: flex;
    flex-wrap: nowrap; /* !!! Не дозволяє переходити в новий рядок */
    overflow-x: auto; /* Додає горизонтальну прокрутку */
    gap: 20px;
    padding: 40px 5%;
    scroll-snap-type: x mandatory;
}

.product {
    flex: 0 1 45%;
    text-align: center;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .product a {
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

.image-container {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .image-container img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        border-radius: 10px;
        transition: transform 0.2s ease;
    }

    .image-container:hover img {
        transform: scale(1.05);
        cursor: pointer;
    }

.product p {
    margin-top: 15px;
    font-size: 18px;
}
/*
  .product-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 150px;
  }
  
  .product-item {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .product-image {
    width: 150px;
    height: 160px;
    border-radius: 8px;
    cursor: pointer;
  }
  
  .product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center; /* вирівнювання по центру */
    justify-content: space-between;
    padding: 40px 20px;
    flex-wrap: nowrap; /* НЕ ламати на новий ряд */
    background-image: url('../images/cd522ca9-ecd0-43ab-83f9-846ba9874a35.png');
    max-width: 100%;
    background-size: cover; /* масштабування на всю площу */
    background-position: center; /* центрування */
    background-repeat: no-repeat; /* не повторювати */
    height: auto;
}

.hero-text {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    color: lightgray;
}

    .hero-text h1 {
        margin: 0 0 10px 0;
        color: lightgray;
    }

.hero-img {
    float: right;
    margin-right: 0;
}

footer-column p {
    color: gray;
}

h1 {
    color: black;
    font-size: 20px;
}

.contact-item a {
    padding: 10px;
    color: gray;
}

.menu-icon2 {
    margin-right: 10px;
    width: 30px;
    height: 30px;
}

.footer-column h1 {
    color: white;
}

.about-btn {
    background-color: #3dd2da;
    color: black;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    margin-top: 30px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    margin-left: 20px;
    font-size: 15px;
}

.menu-item h1 {
    color: black;
    font-size: 16px;
}

.about-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgb(19, 18, 18) inset;
}

.services {
    padding: 10px 20px;
    text-align: center;
}

.service-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    font-size: 20px;
}

span {
    font-weight: bold;
}

.service {
    text-align: center;
    width: 150px;
}

.service-icon {
    background-color: grey;
    width: 50px;
    height: 50px;
    margin: auto;
    border-radius: 8px;
}

a {
    text-decoration: none;
    color: black; /* Убирает подчёркивание */
}

button {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    cursor: pointer;
    margin: 10px;
}

    button:active {
        transform: translateY(2px);
        box-shadow: 0 2px 4px rgb(24, 23, 23) inset;
    }

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.menu-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
}

.menu-item span {
    font-size: 14px;
    color: #333;
}

.menu-item:hover {
    transform: scale(1.05);
}

.contact-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(252, 243, 243, 0.1);
}

    .contact-container h2 {
        margin-bottom: 20px;
        color: #333;
        text-align: center;
    }

.contact-form label {
    display: block;
    margin-bottom: 6px;
    color: #555;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form button {
    background-color: #00c4cc;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

    .contact-form button:hover {
        background-color: #0056b3;
    }

/* Responsive для мобільних */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        flex-direction: column;
        background: #373737;
        top: 60px;
        right: 2px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        padding: 15px;
        gap: 10px;
        z-index: 100;
    }

        .nav-links.show {
            display: flex;
        }

    .menu-btn {
        display: block;
        padding: 5px;
    }



    .hero {
        flex-direction: row; /* ЗБЕРЕГТИ РЯД навіть на мобільному */
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .hero-text, .hero-img {
        flex: 1;
        min-width: 150px;
        padding: 10px;
    }

        .hero-img img {
            max-width: 100%;
            height: auto;
        }
}




.content-wrapper {
    flex: 1;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto; /* приклеює футер донизу */
}


.contact-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px; /* відступ між іконкою та текстом */
}

.contact-text {
    font-size: 16px;
    color: white;
}




header {
    background-color: #373737;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* екран по висоті */
}

.main-content {
    flex: 1; /* виштовхує футер вниз */
}

footer {
    background: #333;
    
    padding: 40px;
}
 a {
    font-family: 'Montserrat', sans-serif;
    
    font-weight: 500; /* середня товщина */
    color: #fff; /* білий текст */
    text-decoration: none;
    transition: color 0.3s ease;
}

     a:hover {
       /* зелений при наведенні */
    }
.cart-wrapper {
    position: relative;
    display: inline-block;
}

.b2 {
    width: 30px;
    height: 30px;
    border: none;
    background-image: url('../images/free-icon-shopping-cart-5953165.png');
    background-size: cover;
    background-color: transparent;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}
