body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f2f9ff;
            color: #333;
        }
/* HEADER */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.full-width-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.footer a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.footer a:hover {
    opacity: 0.7;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* NAV */
.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a, .dropdown span {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

/* важливо: прибираємо розрив */
.dropdown-menu {
    position: absolute;
    top: 100%; /* 👈 було 35px — це проблема */
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: none;
    flex-direction: column;
    min-width: 180px;
    overflow: hidden;
}

/* 👇 головний фікс */
.dropdown:hover .dropdown-menu {
    display: flex;
}

/* щоб не було "дірки" */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px; /* 👈 перекриває зазор */
}
.dropdown-menu a {
    padding: 12px 16px;
    color: #333;
}

.dropdown-menu a:hover {
    background: #f7f7f7;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

/* BURGER */
.burger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* MOBILE */
.mobile-header {
    display: none;
}

.close-menu {
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100%;
        background: #fff; /* білий фон */
        flex-direction: column;
        padding: 0;
        transition: 0.3s;
        z-index: 2000;
    }

    .nav.active {
        right: 0;
    }
    
        .nav.active-nav {
        right: 0;
    }

    .burger {
        display: block;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        font-weight: bold;
        border-bottom: 1px solid #eee;
    }

    .nav a, .dropdown {
        padding: 16px 20px;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        display: none;
        padding-left: 10px;
    }

    .dropdown.active .dropdown-menu {
        display: flex;
    }
}
hr {
    border: none;
    border-top: 1px dotted gray;
    margin: 16px 0;
}
.responsive-header {
    width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    object-fit: cover;
    object-position: top; /* обрізаємо від верхнього краю */
}

        nav ul {
            list-style: none;
            display: flex;
            gap: 15px;
            padding: 0;
            margin: 0;
        }
        nav ul li {
            display: inline;
        }
        nav ul li a {
            text-decoration: none;
            color: #262626;
            font-weight: bold;
        }
.old-price {
    text-align: center;
margin: 0;  /* Скидає всі зовнішні відступи */
    padding: 0; /* Скидає всі внутрішні відступи */
    font-size: 18px;
    margin-top: 16px;
    color: black;
}
.highlight-old-price {
    text-decoration: line-through;
}

.new-price {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: black;
    margin-top: 8px;
    margin-bottom: 16px;
}

.highlight-price {
    color: rgb(235, 104, 86);
}
.color-orange {
    color: rgb(235, 104, 86);
    font-weight: bold;
}
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            padding: 20px;
            max-width: 1000px;
            margin: 20px auto;
        }
        .product {
            background: white;
            padding-left:14px;
            padding-right: 14px;
            padding-bottom: 14px;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            text-align: left;
        }
        .slider {
            position: relative;
            max-width: 100%;
            overflow: hidden;
        }
        .slides {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }
        .slide {
            
            border-radius: 8px;
            min-width: 100%;
            min-height: 500px;
            object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
        }
        .slider button {
            position: absolute;
            top: 50%;
            width: 42px;
            height: 42px;
            transform: translateY(-50%);
            background: rgba(235, 104, 86, 0.5);
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 50%;
        }
        .prev {
            left: 10px;
        }
        .next {
            right: 10px;
        }
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 10px;
        }
        .dot {
            width: 10px;
            height: 10px;
            margin: 5px;
            border-radius: 50%;
            border: 1px solid gray;
            cursor: pointer;
        }
                .active-menu {
                    border-radius: 16px;
            background: rgb(255, 233, 229);
            margin: 5px;
        }
        .active {
            border: 1px solid rgb(235, 104, 86);
            background:rgb(235, 104, 86);
        }
                .active-nav {
            border: 1px solid rgb(255, 255, 255);
            background:rgb(255, 255, 255);
        }
        .price {
            font-weight: bold;
            color: #e91e63;
            margin: 10px 0;
        }
        button.buy {
            background: rgb(235, 104, 86);
            color: white;
            border: none;
            padding: 20px;
            width: 100%;
            border-radius: 16px;
            cursor: pointer;
            transition: background 0.3s;
            height: 60px;
            font-size: 20px;
            font-weight: bold;
            box-shadow: 0 4px 10px rgba(68, 79, 96, 0.3);
        }
        button.buy:hover {
            background: #c93e30;
        }
        footer {
            text-align: center;
            padding: 15px;
            background: white;
            margin-top: 20px;
            box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        }
.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0; /* Відступи зверху та знизу */
}

/* Базове приховування */
.modal.hidden {
  display: none;
}

/* Зовнішнє затемнення */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  overflow-y: auto; /* 🔥 головне */
  -webkit-overflow-scrolling: touch; /* плавний скрол на iPhone */

  background: rgba(0,0,0,0.9);
  z-index: 1000;
}


/* Контейнер модалки */
.modal-content {
  background: #fff;
  margin: 20px auto;
  padding: 20px;
  border-radius: 12px;

  max-width: 400px;
  max-height: 95vh; /* 🔥 важливо */
  overflow-y: auto; /* внутрішній скрол */

  position: relative;
}

/* Заголовок */
.modal-title {
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

/* Хрестик */
.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}
.close:hover {
  color: #333;
}

/* Форма */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Інпут + лейбл */
.modal-form label {
  font-size: 14px;
  color: #555;
}
.modal-form input {
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: border-color 0.2s;
}
.modal-form input:focus {
  border-color: #007bff;
  outline: none;
}

/* Кнопка */
.submit-btn {
      width: 100%;
  padding: 18px;
  background-color:  rgb(235, 104, 86);
  border: none;
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.25s ease;
  box-shadow: 0 4px 10px rgba(68, 79, 96, 0.3);
}
.submit-btn:hover {
  background-color: #c93e30;
}

/* Анімації */
@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}
@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0 }
  to { transform: translateY(0); opacity: 1 }
}

.category-buttons.active {
    background-color: #444f60;
    color: white;
}

.category-buttons button {
    background: white;
    color: black;
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    border-radius: 16px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Покращена тінь */
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-buttons button:hover {
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3); /* Глибша тінь при наведенні */
    transform: translateY(-2px); /* Легкий ефект підняття */
}

.size-form {
    margin: 20px 0;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 20px;
    justify-content: center; /* Центрування по горизонталі */
}
.size-options input[type="radio"] {
    display: none;
}

.size-options label {
    padding: 10px 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    background-color: #f9f9f9;
    transition: all 0.2s ease-in-out;
}

.size-options input[type="radio"]:checked + label {
    border-color: rgb(235, 104, 66);
    background-color: rgb(235, 104, 86);
    color: #fff;
}



.modal .close:hover {
  color: #000;
}

.show-size-chart  {
padding: 8px 30px;
font-size: 16px;
font-weight: 500;
padding: 16px;
width: 100%;
border: 2px solid rgb(235, 104, 86);
border-radius: 8px;
background-color: #fff;
color: rgb(235, 104, 86);
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: bold;
    margin: 0 auto;
    display: block;
}



.category-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.category-menu input[type="radio"] {
    display: none;
}

.category-menu label {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid rgb(235, 104, 86);
    border-radius: 50px;
    background-color: #fff;
    color: rgb(235, 104, 86);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.size-button {
    padding: 12px 16px;
    border-radius: 8px;
    display: inline-block;
    cursor: default;
border: 2px solid rgb(235, 104, 86);
background-color: #fff;
color: rgb(235, 104, 86);
    font-weight: bold;
    user-select: none;
}



.category-menu input[type="radio"]:checked + label {
    background-color: rgb(235, 104, 86);
    color: #fff;
    box-shadow: 0 4px 10px rgba(68, 79, 96, 0.3);
}


.page {
    padding: 40px 20px;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.page h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.page h2 {
    margin-top: 30px;
    font-size: 20px;
}

.page p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.page ul {
    padding-left: 20px;
    margin-top: 10px;
}

.page li {
    margin-bottom: 10px;
}

.final-text {
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}

/* active menu link */
.nav a.active-nav {
    color: rgb(235, 104, 86);
}

.product-modal {
    max-width: 400px;
    width: 95%;
}

.product-modal img {
    width: 100%;
    border-radius: 10px;
}

.product-modal h2 {
    margin: 10px 0;
}

.open-product {
    cursor: pointer;
}

.footer {
    background: #111;
    color: #fff;
    padding: 30px 15px;
    text-align: center;
}

.footer-address {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-menu {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* щоб не ламалось на мобілці */
    gap: 20px;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-menu a:hover {
    text-decoration: underline;
}

#modalImages img {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 10px;
}

#modalProductPreview {
  margin-bottom: 20px;
}

.modal-slider{
    width:100%;
    overflow:hidden;
    border-radius:16px;
}

.modal-slider img{
    width:100%;
    height:auto;
    display:block;
    border-radius:16px;
    object-fit:cover;
}


.size-btn-modal{
    padding: 12px 16px;
    border-radius: 8px;
    display: inline-block;
    cursor: default;
border: 2px solid rgb(235, 104, 86);
background-color: #fff;
color: rgb(235, 104, 86);
    font-weight: bold;
    user-select: none;
}

.size-btn-modal.active{
    padding: 12px 16px;
    border-radius: 8px;
    display: inline-block;
    cursor: default;
border: 2px solid rgb(235, 104, 86);
background-color: rgb(235, 104, 86);
color: rgb(255, 255, 255);
    font-weight: bold;
    user-select: none;
}

.hidden{
    display:none;
}

.modal-slider-wrapper{
    position:relative;
}

.modal-slider img{
    width:100%;
    border-radius:12px;
    display:none;
}

.modal-prev,
.modal-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    border:none;
    background:rgba(0,0,0,0.5);
    color:white;
    width:40px;
    height:40px;
    border-radius:50%;
    cursor:pointer;
    z-index:10;
}

.close-modal{
    position:absolute;
    top:15px;
    right:15px;

    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:34px;
    line-height:1;

    cursor:pointer;

    z-index:999;

    border-radius:50%;

    background:rgba(255,255,255,0.9);

    box-shadow:0 2px 10px rgba(0,0,0,0.15);
}
.order-modal-content{
    max-width:400px;
    padding:16px;
    box-sizing:border-box;
}

.modal-prev{
    left:10px;
}

.modal-next{
    right:10px;
}

.back-btn{
    border:none;
    background:none;
    font-size:16px;
    cursor:pointer;
    margin-bottom:15px;
}

.modal-form label{
    margin-bottom:-4px;
}

.order-summary {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#summaryName {
    font-weight: bold;
    font-size: 14px;
}

#summarySize {
    font-size: 13px;
    color: #666;
}

.summary-price {
    font-weight: bold;
    font-size: 16px;
    color: rgb(235, 104, 86);
}

#modalMaterial{
    margin: 6px 0 8px 0; /* було більше */
    line-height: 1.3;
}

#modalTitle{
    margin: 6px 0 8px 0; /* було більше */
    line-height: 1.3;
}

#modalSizesWrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px 0; /* 👈 знизу 16px */
    align-items: center;
}

#modalSizesWrapper h3{
    margin:0 0 6px 0; /* прибирає великий відступ заголовка */
    font-size:16px;
}

#warehouseWrapper {
    margin-top: 10px;
}

.np-wrapper {
    position: relative;
}

.np-wrapper label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

#npCityInput {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.np-dropdown {
    position: absolute;
    bottom: 100%; /* 👈 замість top: 100% */
    left: 0;
    right: 0;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;

    max-height: 200px;
    overflow-y: auto;

    z-index: 999;

    margin-bottom: 6px; /* 👈 маленький відступ */
}

.np-dropdown {
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.np-dropdown div {
    padding: 10px;
    cursor: pointer;
}

.np-dropdown div:hover {
    background: #f5f5f5;
}

#warehouseWrapper {
    margin-top: 10px;
}

/* сам контейнер */
#warehouseWrapper select {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #333;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;

    transition: all 0.2s ease;
}

/* hover */
#warehouseWrapper select:hover {
    border-color: rgb(235, 104, 86);
}

/* focus */
#warehouseWrapper select:focus {
    border-color: rgb(235, 104, 86);
    box-shadow: 0 0 0 3px rgba(235, 104, 86, 0.15);
}

/* Кнопка справа */
.call-button {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff4d6d, #ff8fa3);
    color: #fff;
    padding: 15px 10px;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: bold;
    z-index: 9999;
    transition: 0.3s;
}

.call-button:hover {
    background: linear-gradient(135deg, #ff2e55, #ff758f);
}

/* Попап */
.call-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.call-popup.active {
    display: flex;
}

.call-popup-content {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    width: 300px;
    text-align: center;
    position: relative;
}

.call-popup-content input {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.call-popup-content button {
    width: 100%;
    padding: 10px;
    background: #ff4d6d;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.close-call {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
}