:root {
    --green: #087a3d;
    --dark-green: #07552f;
    --light-green: #eaf5ed;
    --text: #202b25;
    --muted: #68736c;
    --border: #e1e8e3;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-top {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 15px 0;
}

.logo {
    color: var(--green);
    font-size: 29px;
    font-weight: 800;
    white-space: nowrap;
}

.logo span {
    color: var(--text);
}

.header-phone {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.cart-button {
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 700;
}

.cart-button:hover {
    background: var(--dark-green);
}

.navigation {
    background: var(--dark-green);
    color: var(--white);
}

.nav-inner {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.navigation a {
    font-weight: 600;
    transition: opacity 0.2s;
}

.navigation a:hover {
    opacity: 0.75;
}

.hero {
    min-height: 370px;
    display: flex;
    align-items: center;
    padding: 55px 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.96) 0%,
        rgba(255,255,255,0.85) 42%,
        rgba(255,255,255,0.05) 100%),
        url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1800&q=85")
        center / cover no-repeat;
}

.hero h1 {
    max-width: 650px;
    color: var(--dark-green);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    margin-bottom: 18px;
}

.hero p {
    max-width: 540px;
    font-size: 18px;
    margin-bottom: 25px;
}

.hero a {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    padding: 13px 25px;
    border-radius: 8px;
    font-weight: 700;
}

.hero a:hover {
    background: var(--dark-green);
}

.section {
    padding: 45px 0;
}

.section h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #17251d;
}

.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category {
    display: block;
    padding: 25px 20px;
    text-align: center;
    background: #f7f9f7;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    transition: 0.2s;
}

.category:hover {
    border-color: var(--green);
    background: var(--light-green);
    transform: translateY(-3px);
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    padding: 16px;
    background: var(--white);
    transition: 0.2s;
}

.product:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.product img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.product p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.product-price {
    color: var(--dark-green);
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 12px;
}

.product button {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 7px;
    background: var(--green);
    color: var(--white);
    font-weight: 700;
}

.product button:hover {
    background: var(--dark-green);
}

.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 35px 0;
    background: var(--light-green);
}

.advantage {
    text-align: center;
    padding: 15px;
}

.advantage h3 {
    color: var(--dark-green);
    margin-bottom: 8px;
}

footer {
    background: var(--dark-green);
    color: var(--white);
    padding: 35px 0;
    text-align: center;
}

footer a {
    color: var(--white);
}

@media (max-width: 850px) {
    .header-top {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 0;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        min-height: 320px;
    }

    .advantages {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 28px);
    }

    .header-top {
        flex-direction: column;
        gap: 12px;
    }

    .logo {
        font-size: 25px;
    }

    .header-phone {
        font-size: 15px;
    }

    .nav-inner {
        flex-direction: column;
        gap: 12px;
    }

    .hero {
        min-height: 300px;
        padding: 35px 0;
        background-position: center;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 30px 0;
    }

    .section h2 {
        font-size: 23px;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .products {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product img {
        height: 180px;
    }
}

/* Корзина TERRA LUX SPRAY */

.cart-page {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 24px;
  align-items: center;
  padding: 24px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #e0e7e0;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.cart-item img {
  grid-row: span 5;
  max-width: 100%;
}

.cart-item h3 {
  margin: 0;
  color: #253c2a;
}

.cart-item p {
  margin: 0;
}

.cart-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-quantity button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #cad8ca;
  border-radius: 8px;
  background: #f5f8f5;
  cursor: pointer;
  font-size: 18px;
}

.cart-delete {
  justify-self: start;
  padding: 9px 16px;
  border: 1px solid #d8a5a5;
  border-radius: 8px;
  background: #fff;
  color: #a52a2a;
  cursor: pointer;
}

#cart-total {
  margin-top: 28px;
  text-align: right;
  color: #246b39;
}

@media (max-width: 600px) {
  .cart-page {
    padding: 12px;
  }

  .cart-item {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .cart-item img {
    grid-row: auto;
    margin: 0 auto;
  }

  #cart-total {
    text-align: left;
  }
}

.checkout-button {
  display: block;
  width: fit-content;
  margin: 24px 0 24px auto;
  padding: 16px 32px;
  background: #287a42;
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.checkout-button:hover {
  background: #1d5e32;
}

@media (max-width: 600px) {
  .checkout-button {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Оформлення замовлення TERRA LUX SPRAY */

#checkout-form {
  max-width: 700px;
  margin: 30px auto;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e0e7e0;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

#checkout-form h2 {
  margin: 28px 0 18px;
  color: #253c2a;
  font-size: 22px;
}

#checkout-form h2:first-child {
  margin-top: 0;
}

#checkout-form label {
  display: block;
  margin: 16px 0 7px;
  font-weight: 600;
}

#checkout-form input,
#checkout-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #cbd5cb;
  border-radius: 8px;
  background: #ffffff;
  color: #253c2a;
  font: inherit;
}

#checkout-form input:focus,
#checkout-form textarea:focus {
  outline: 2px solid #287a42;
  outline-offset: 1px;
}

#checkout-form .checkout-button {
  width: 100%;
  margin: 25px 0 0;
  border: none;
  cursor: pointer;
}

@media (max-width: 600px) {
  #checkout-form {
    padding: 18px;
    margin: 20px auto;
  }
}

/* Підсумок замовлення */

.checkout-summary {
  max-width: 700px;
  box-sizing: border-box;
  margin: 30px auto;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e0e7e0;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.checkout-summary h2 {
  margin: 0 0 20px;
  color: #253c2a;
}

#checkout-items p {
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid #e0e7e0;
  line-height: 1.6;
}

#checkout-total {
  margin: 24px 0 0;
  color: #287a42;
  text-align: right;
  font-size: 24px;
}

@media (max-width: 600px) {
  .checkout-summary {
    padding: 18px;
    margin: 20px auto;
  }

  #checkout-total {
    font-size: 21px;
  }
}

/* Порожній кошик */

.empty-cart {
  text-align: center;
  padding: 35px 20px;
}

.empty-cart-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.empty-cart h2 {
  font-size: 28px;
  color: #253c2a;
  margin-bottom: 15px;
}

.empty-cart p {
  max-width: 450px;
  margin: 0 auto 28px;
  color: #667366;
  font-size: 16px;
  line-height: 1.7;
}

.empty-cart-button {
  display: inline-block;
  padding: 15px 30px;
  background: #287a42;
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
}

.empty-cart-button:hover {
  background: #1d5e32;
}

/* Заголовок оформлення замовлення */

.checkout-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: #253c2a;
  text-align: center;
  letter-spacing: -0.5px;
  margin: 20px 0 28px;
}

.checkout-title::after {
  content: "";
  display: block;
  width: 75px;
  height: 4px;
  background: #287a42;
  border-radius: 4px;
  margin: 14px auto 0;
}

/* Кнопка повернення до кошика */

.back-to-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid #cbdccc;
  border-radius: 10px;
  background: #f3f8f3;
  color: #287a42;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.back-to-cart:hover {
  background: #e1f0e3;
  transform: translateX(-3px);
}

/* Доставка Новою поштою */

#city,
#warehouse {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #d5dfd5;
  border-radius: 10px;
  background: #ffffff;
  color: #253c2a;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#city:focus,
#warehouse:focus {
  outline: none;
  border-color: #287a42;
  box-shadow: 0 0 0 3px rgba(40, 122, 66, 0.12);
}

#warehouse:disabled {
  background: #f3f5f3;
  color: #899389;
  cursor: not-allowed;
}

/* Список знайдених населених пунктів */

.delivery-suggestions {
  margin-top: 5px;
  border-radius: 10px;
  overflow: hidden;
}

.delivery-suggestions:not(:empty) {
  border: 1px solid #d5dfd5;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.delivery-suggestion {
  display: block;
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-bottom: 1px solid #edf0ed;
  background: #ffffff;
  color: #253c2a;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
}

.delivery-suggestion:hover {
  background: #eef7ef;
}

.delivery-suggestion:last-child {
  border-bottom: none;
}
/* Сторінка окремого товару */

.product-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 24px;
}

.product-page h1 {
  font-size: 30px;
  line-height: 1.3;
  color: #183b2b;
}

.product-page img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.product-page button {
  background-color: #218447;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.product-page button:hover {
  background-color: #176735;
}

@media (max-width: 768px) {
  .product-page {
    margin: 15px auto;
    padding: 16px;
  }

  .product-page h1 {
    font-size: 23px;
  }
}
/* Двухколоночная карточка товара */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 30px;
}

.product-image-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 30px;
  min-height: 380px;
}

.product-image-box img {
  width: 100%;
  max-width: 400px;
  max-height: 350px;
  object-fit: contain;
}

.product-info-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.product-info-box h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
}

.product-info-box h2 {
  margin: 12px 0 0;
  font-size: 32px;
  color: #176735;
}

.product-info-box p {
  margin: 0;
  color: #52605a;
}

.product-description-box {
  margin-top: 40px;
  padding: 28px;
  background: #f7f9f7;
  border-radius: 14px;
  line-height: 1.7;
}

/* Мобильная версия */

@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-image-box {
    min-height: 260px;
    padding: 16px;
  }

  .product-info-box h1 {
    font-size: 24px;
  }

  .product-description-box {
    margin-top: 24px;
    padding: 18px;
  }
}
/* Оформлення опису та характеристик товару */

.product-description-box h2 {
  font-size: 22px;
  font-weight: 700;
  color: #183b2b;
  margin: 0 0 16px;
}

.product-description-box p {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  margin: 0;
}

.product-description-box h2:not(:first-child) {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #dce5df;
}

@media (max-width: 768px) {
  .product-description-box h2 {
    font-size: 19px;
  }

  .product-description-box p {
    font-size: 15px;
  }
}
/* Кнопка повернення до каталогу */

.product-page > p > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;

  background: #f0f8f2;
  color: #176735;

  border: 1px solid #b8d9c3;
  border-radius: 10px;

  font-size: 15px;
  font-weight: 600;
  text-decoration: none;

  transition: all 0.2s ease;
}

.product-page > p > a:hover {
  background: #176735;
  color: #ffffff;
  border-color: #176735;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .product-page > p > a {
    padding: 11px 16px;
    font-size: 14px;
  }
}
/* Сторінка успішного замовлення */

.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 16px;
  background: #f4f8f5;
}

.success-card {
  width: 100%;
  max-width: 580px;
  padding: 48px 32px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e4f5e9;
  color: #218447;
  font-size: 44px;
  font-weight: bold;
}

.success-card h1 {
  color: #183b2b;
  font-size: 28px;
  margin-bottom: 18px;
}

.success-card p {
  color: #52605a;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.success-order-number {
  padding: 20px;
  margin: 24px 0;
  background: #f4f8f5;
  border-radius: 12px;
}

.success-order-number span {
  display: block;
  color: #52605a;
  margin-bottom: 10px;
}

.success-order-number strong {
  display: block;
  color: #183b2b;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.success-button {
  display: inline-block;
  padding: 15px 28px;
  background: #218447;
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.success-button:hover {
  background: #176735;
}

@media (max-width: 600px) {
  .success-card {
    padding: 32px 20px;
  }

  .success-card h1 {
    font-size: 23px;
  }
}
/* Сторінка входу адміністратора */

.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f2f7f3;
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.admin-login-logo {
  margin-bottom: 24px;
  color: #183b2b;
  font-size: 30px;
  font-weight: 800;
  text-align: center;
}

.admin-login-logo span {
  color: #218447;
}

.admin-login-card h1 {
  margin-bottom: 10px;
  font-size: 25px;
  text-align: center;
}

.admin-login-card > p {
  margin-bottom: 28px;
  color: #647067;
  text-align: center;
}

.admin-login-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-login-card label {
  font-weight: 600;
}

.admin-login-card input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccd8cf;
  border-radius: 9px;
  font-size: 16px;
  box-sizing: border-box;
}

.admin-login-card input:focus {
  outline: 2px solid #218447;
  outline-offset: 2px;
}

.admin-login-card button {
  margin-top: 8px;
  padding: 14px;
  background: #218447;
  color: white;
  border: none;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.admin-login-card button:hover {
  background: #176735;
}

@media (max-width: 480px) {
  .admin-login-card {
    padding: 30px 20px;
  }
}

/* Подсказка электронной почты при оформлении заказа */
.email-hint {
  background-color: #f0f8f1;
  color: #276738;
  border-left: 3px solid #32854b;
  border-radius: 5px;
  padding: 10px 12px;
  margin: 8px 0 20px;
  font-size: 13px;
  line-height: 1.6;
}

/* Карточки заказов в админпанели */
.admin-order-card {
  background: #ffffff;
  border: 1px solid #dce5dc;
  border-left: 4px solid #2e7d32;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-order-card h3 {
  color: #2e7d32;
  font-size: 17px;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.admin-order-card p {
  margin: 7px 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Список товаров внутри заказа */
.admin-order-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.admin-order-product {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
}

.admin-order-product-image {
  width: 75px;
  height: 75px;
  object-fit: contain;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
  flex-shrink: 0;
}

.admin-order-product strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.admin-order-product p {
  margin: 4px 0;
  font-size: 13px;
  color: #666666;
}

@media (max-width: 600px) {
  .admin-order-product-image {
    width: 60px;
    height: 60px;
  }
}
/* Блок итоговой суммы и оформления заказа */

.cart-summary {
  margin-top: 30px;
  padding: 28px;
  background: #f5f8f5;
  border: 1px solid #e1e9e1;
  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cart-summary #cart-total {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #263b2b;
}

.cart-summary .checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: #238b45;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.cart-summary .checkout-button:hover {
  background: #176b33;
}

@media (max-width: 600px) {
  .cart-summary {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .cart-summary #cart-total {
    font-size: 21px;
  }

  .cart-summary .checkout-button {
    width: 100%;
    box-sizing: border-box;
  }
}
/* Заголовок страницы корзины */

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.cart-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #24382b;
}

/* Кнопка возврата в каталог */

.cart-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #eef5ef;
  color: #247a3d;
  border: 1px solid #d5e6d8;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s ease;
}

.cart-back-link:hover {
  background: #dceee0;
  color: #185c2d;
}

/* Адаптация под телефон */

@media (max-width: 600px) {
  .cart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cart-header h1 {
    font-size: 27px;
  }
}
/* Красивая пустая корзина */

.empty-cart {
  max-width: 560px;
  margin: 55px auto;
  padding: 55px 35px;
  background: #ffffff;
  border: 1px solid #e8eee9;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(20, 50, 30, 0.06);
  text-align: center;
}

.empty-cart-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf7ef;
  border-radius: 50%;
  font-size: 48px;
}

.empty-cart h2 {
  margin: 0 0 15px;
  font-size: 28px;
  color: #24382d;
}

.empty-cart p {
  max-width: 390px;
  margin: 0 auto 30px;
  color: #78857c;
  font-size: 16px;
  line-height: 1.7;
}

.empty-cart-button {
  display: inline-block;
  padding: 15px 30px;
  background: #2e873f;
  color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.empty-cart-button:hover {
  background: #226b31;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .empty-cart {
    margin: 30px 12px;
    padding: 40px 20px;
  }

  .empty-cart h2 {
    font-size: 23px;
  }
}

/* Оформлення каталогу в адмінпанелі */
#admin-products-list {
  display: grid;
  gap: 12px;
}

.admin-product-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.admin-product-photo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.admin-product-item strong {
  font-size: 15px;
  color: #1e293b;
}

.admin-product-item p {
  font-size: 13px;
  color: #64748b;
  margin: 5px 0;
}

.admin-price-input {
  width: 110px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}

.admin-save-price {
  padding: 11px 16px;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.admin-save-price:hover {
  background: #15803d;
}

.admin-save-price:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 650px) {
  .admin-product-item {
    flex-wrap: wrap;
    padding: 14px;
  }

  .admin-price-input {
    width: 100px;
  }
}

/* Оформлення заголовка та фільтра каталогу */

#products #catalog-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: #183b2b;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid #e4efe7;
}

#products .catalog-filters {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

#products .catalog-filters label {
  color: #52645a;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

#products #category-filter {
  flex: 1;
  min-width: 0;
  max-width: 460px;
  padding: 14px 42px 14px 16px;
  border: 1px solid #cadbce;
  border-radius: 11px;
  background-color: #f8fbf9;
  color: #183b2b;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#products #category-filter:hover {
  border-color: #087a3d;
  background-color: #ffffff;
}

#products #category-filter:focus {
  border-color: #087a3d;
  box-shadow: 0 0 0 3px rgba(8, 122, 61, 0.12);
}

@media (max-width: 600px) {
  #products #catalog-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  #products .catalog-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #products #category-filter {
    width: 100%;
    max-width: none;
    flex: auto;
  }
}
/* Месенджери в шапці сайту */

.header-messengers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.header-messengers .messenger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.header-messengers .messenger-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
/* Номер телефону та логотип Kyivstar */

.header-phone-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.header-phone-number .kyivstar-logo {
  width: 25px;
  height: 25px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-phone-number a {
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone-number a:hover {
  color: #008bd2;
  text-decoration: underline;
}
/* Активний телефон у нижній частині сайту */

.footer-phone a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.footer-phone a:hover {
  text-decoration: underline;
}
/* ===== КНОПКА ДЗВІНКА В КАРТЦІ ТОВАРУ ===== */

.product-call-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 11px 16px;

  background: #ffffff;
  color: #216b45;
  border: 2px solid #216b45;
  border-radius: 10px;

  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;

  cursor: pointer;
  transition: all 0.2s ease;
}

.product-call-button:hover {
  background: #e9f5ed;
  border-color: #174b34;
  color: #174b34;
}

.product-call-button:focus-visible {
  outline: 3px solid #85c9a1;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .product-call-button {
    font-size: 14px;
    padding: 12px;
  }
}
/* ===== КОНТАКТНИЙ БЛОК У КОШИКУ ===== */

.cart-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;

  padding: 16px 20px;
  margin: 16px 0 24px;

  background: #f5faf7;
  border: 1px solid #d4e8db;
  border-radius: 12px;
}

.cart-contact span {
  color: #34483b;
  font-size: 15px;
  font-weight: 500;
}

.cart-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #216b45;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cart-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .cart-contact {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .cart-contact a {
    font-size: 16px;
  }
}
/* ===== ТЕЛЕФОН НА СТОРІНЦІ УСПІШНОГО ЗАМОВЛЕННЯ ===== */

.success-contact {
  margin: 22px 0;
  padding: 18px 20px;

  background: #f5faf7;
  border: 1px solid #d4e8db;
  border-radius: 12px;

  text-align: center;
}

.success-contact p {
  margin: 0 0 10px;
  color: #34483b;
  font-size: 15px;
}

.success-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: #216b45;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.success-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .success-contact {
    padding: 15px 12px;
  }

  .success-contact a {
    font-size: 17px;
  }
}


/* TERRA LUX SPRAY: клікабельний адаптивний логотип */
.header .logo {
  display: inline-flex;
  align-items: center;
  flex: 0 1 370px;
  min-width: 0;
  max-width: 370px;
  line-height: 1;
  text-decoration: none;
}
.header .logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 125px;
  object-fit: contain;
}
.header .logo:focus-visible {
  outline: 3px solid #348a32;
  outline-offset: 4px;
  border-radius: 4px;
}
@media (max-width: 600px) {
  .header .logo {
    flex: 0 1 auto;
    width: min(100%, 330px);
    max-width: 330px;
  }
  .header .logo img { max-height: 115px; }
}
/* TERRA LUX SPRAY — значки мессенджеров */

.header-messengers {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.header-messengers .messenger-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 68px;
  height: auto;
  gap: 5px;
}

.header-messengers .messenger-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.header-messengers .viber .messenger-picture {
  background: #7360f2;
}

.header-messengers .telegram .messenger-picture {
  background: #26a5e4;
}

.header-messengers .whatsapp .messenger-picture {
  background: #25d366;
}

.header-messengers .messenger-picture img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.header-messengers .messenger-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #34483b;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .header-messengers {
    gap: 10px;
  }
}
/* TERRA LUX SPRAY — вирівнювання шапки */

.header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 24px;
}

.header-top .logo {
  justify-self: start;
  width: 100%;
  max-width: 370px;
}

.header-top .header-phone {
  justify-self: center;
  text-align: center;
}

.header-top .cart-button {
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 850px) {
  .header-top {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 14px;
  }

  .header-top .logo,
  .header-top .header-phone,
  .header-top .cart-button {
    justify-self: center;
  }
}
/* TERRA LUX SPRAY — компактная мобильная навигация */

@media (max-width: 600px) {

  .header-top {
    padding: 12px 0;
    row-gap: 8px;
  }

  .header .logo {
    max-width: 260px;
  }

  .header-messengers {
    margin-top: 6px;
    gap: 8px;
  }

  .header-messengers .messenger-picture {
    width: 42px;
    height: 42px;
  }

  .header-top .cart-button {
    padding: 9px 18px;
  }

  .nav-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
  }

  .nav-inner a {
    font-size: 13px;
    white-space: nowrap;
  }

  .nav-inner #search {
    width: 100%;
    flex-basis: 100%;
    padding: 10px 12px;
    border-radius: 7px;
    border: none;
    font-size: 14px;
  }

}
/* TERRA LUX SPRAY: мобільне меню — ізольовані стилі */
.mobile-menu-toggle { display: none; }
.nav-inner .nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 25px;
}
.nav-inner #search { flex: 0 1 225px; min-width: 160px; }
@media (max-width: 600px) {
  .navigation .nav-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px 0;
  }
  .navigation .mobile-menu-toggle {
    display: block;
    width: 100%;
    padding: 11px 14px;
    background: #ffffff;
    color: #07552f;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    text-align: left;
  }
  .navigation .nav-inner .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .navigation .nav-inner .nav-links.is-open { display: flex; }
  .navigation .nav-inner .nav-links a {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.18);
    font-size: 15px;
  }
  .navigation .nav-inner #search {
    width: 100%;
    min-width: 0;
    flex: none;
    grid-column: 1;
    box-sizing: border-box;
  }
}
@media (min-width: 601px) {
  .navigation .nav-inner .nav-links { display: flex !important; }
}

/* Две категории в ряд на телефоне */
@media (max-width: 600px) {
  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category {
    padding: 14px 8px;
    font-size: 14px;
    line-height: 1.4;
  }
}

/* Две карточки товаров в ряд на телефоне */
@media (max-width: 600px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product {
    min-width: 0;
    padding: 10px;
  }

  .product img {
    height: 130px;
    object-fit: contain;
  }

  .product h3 {
    font-size: 14px;
    line-height: 1.35;
  }
}

/* TERRA LUX SPRAY — форма додавання категорії */

#admin-category-form:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  padding: 22px;
  background: #f8fbf9;
  border: 1px solid #dce9df;
  border-radius: 16px;
}

#admin-category-form h4 {
  margin: 0 0 8px;
  color: #183b2b;
  font-size: 21px;
}

#admin-category-form label {
  display: block;
  margin-top: 8px;
  color: #34483b;
  font-size: 15px;
  font-weight: 600;
}

#admin-category-form input[type="text"],
#admin-category-form select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cadbce;
  border-radius: 10px;
  background: #fff;
  color: #253c2a;
  font: inherit;
  font-size: 16px;
}

#admin-category-form input:focus,
#admin-category-form select:focus {
  outline: none;
  border-color: #218447;
  box-shadow: 0 0 0 3px rgba(33,132,71,0.12);
}

#admin-category-form input[type="file"] {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px dashed #b7d4bf;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

#admin-category-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: 1px solid #b7d4bf;
  border-radius: 8px;
  background: #eaf5ed;
  color: #176735;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#admin-category-form .admin-field-hint {
  margin: 0;
  color: #68776c;
  font-size: 13px;
  line-height: 1.5;
}

#save-new-category {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 13px 18px;
  border: none;
  border-radius: 10px;
  background: #218447;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

#save-new-category:hover {
  background: #176735;
}

@media (max-width: 600px) {
  #admin-category-form:not([hidden]) {
    padding: 16px;
  }

  #admin-category-form h4 {
    font-size: 19px;
  }
}
/* TERRA LUX SPRAY — TikTok та контакти */

.header-top:has(.header-social) {
  grid-template-columns: minmax(0, 1fr) auto minmax(90px, 1fr) auto;
  align-items: center;
  column-gap: 24px;
}

.header-social {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-social .messenger-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.header-social .messenger-picture img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.header-social .messenger-name {
  font-size: 12px;
  font-weight: 600;
  color: #34483b;
}

.header-messengers a {
  text-decoration: none;
}

@media (max-width: 850px) {
  .header-top:has(.header-social) {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 12px;
  }
}

@media (max-width: 600px) {
  .header-social .messenger-picture img {
    width: 42px;
    height: 42px;
  }
}
/* TERRA LUX SPRAY — оформлення пошуку */

.navigation #search {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  flex: 0 1 290px;
  height: 42px;
  padding: 10px 14px 10px 40px;
  border: 1px solid #dce5dc;
  border-radius: 10px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23387d36' stroke-width='2'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='m15 15 5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 20px;
  font-size: 14px;
  color: #263b2c;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.navigation #search::placeholder {
  color: #858e87;
}

.navigation #search:focus {
  border-color: #8bbd79;
  box-shadow: 0 0 0 3px rgba(139, 189, 121, 0.35);
}

@media (max-width: 600px) {
  .navigation #search {
    width: 100%;
    height: 44px;
  }
}

/* TERRA LUX SPRAY — контактний блок */

.contact-section {
  padding: 40px 16px;
  background: #f0f6ed;
  border-top: 1px solid #dce8d7;
  border-bottom: 1px solid #dce8d7;
  text-align: center;
  scroll-margin-top: 20px;
}

.contact-section h2 {
  margin: 0 0 12px;
  font-size: 28px;
  color: #244b30;
}

.contact-section p {
  max-width: 650px;
  margin: 0 auto 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #536458;
}

.contact-phone {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 32px;
  font-weight: 700;
  color: #28783c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-phone:hover {
  color: #174d28;
}

.contact-section .header-messengers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 auto;
}

.contact-section .messenger-icon {
  text-decoration: none;
}

/* Адаптація контактів під смартфони */

@media (max-width: 600px) {
  .contact-section {
    padding: 28px 12px;
  }

  .contact-section h2 {
    font-size: 22px;
  }

  .contact-section p {
    font-size: 14px;
  }

  .contact-phone {
    font-size: 26px;
  }

  .contact-section .header-messengers {
    gap: 16px;
  }
}
