:root{font-family:system-ui,-apple-system,Arial,sans-serif;color:#292a22;background:#f7f6f0}*{box-sizing:border-box}body{margin:0}main{max-width:680px;margin:auto;padding:18px}header{text-align:center;padding:22px 0 14px}.goose{font-size:48px}h1{margin:4px 0;font-size:31px}header p{margin:6px;color:#66715c}.notice{border:1px solid #dbcfa7;background:#fff8e3;border-radius:12px;padding:10px;text-align:center;font-size:12px;font-weight:700}h2{font-size:21px;margin:25px 0 12px}.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.product,.cart-item,form{background:#fff;border-radius:15px;padding:16px;border:1px solid #e5e6db}.product .emoji{font-size:44px}.product h3{margin:8px 0 4px}.product p{color:#70766b;font-size:13px}.price{font-weight:750;font-size:19px;margin:10px 0}button{background:#3d603a;color:white;border:0;border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer}button:disabled{opacity:.5}.cart-item{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.controls{display:flex;align-items:center;gap:10px}.controls button{padding:6px 11px}.total{display:flex;justify-content:space-between;padding:15px 3px;font-size:20px}label{display:block;margin:14px 0;font-weight:600}input{display:block;width:100%;padding:13px;border:1px solid #d5d8d0;border-radius:10px;margin-top:7px;font:inherit}form>button{width:100%;font-size:16px}#status{min-height:1.5em}footer{text-align:center;font-size:12px;color:#777;padding:22px}

/* Галерея и карточка товара */
.product {
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product:active { transform: scale(.98); }

.product-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 11px;
  background: #f0efe9;
  display: block;
}
.product-placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #f0efe9;
  border-radius: 11px;
  font-size: 48px;
}

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #0009;
}
.modal-content {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 50px #0003;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: #292a22;
  font-size: 26px;
}
.modal-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0efe9;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.modal-thumbnails {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 12px 0;
}
.modal-thumbnails button {
  flex: 0 0 65px;
  width: 65px;
  height: 65px;
  padding: 3px;
  border: 2px solid transparent;
  background: #f0efe9;
}
.modal-thumbnails button.active { border-color: #3d603a; }
.modal-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-content h2 { margin: 12px 0; }
.modal-content p { color: #70766b; line-height: 1.5; }
.modal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.modal-bottom strong { font-size: 22px; }

@media(max-width: 480px) {
  .modal-content { padding: 14px; }
  .modal { padding: 10px; }
}

/* Сетка категорий каталога */
.category-filters {
  margin-bottom: 14px;
}

.category-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.category-filter {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 5px;
  background: #fff;
  color: #405b37;
  border: 1px solid #d9dfd2;
  border-radius: 11px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.category-filter.active {
  background: #3d603a;
  color: #fff;
  border-color: #3d603a;
}

.category-expand {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 11px;
  background: #e8eddf;
  color: #405b37;
  border: 1px solid #d9dfd2;
  border-radius: 11px;
}

.category-filter:focus-visible,
.category-expand:focus-visible {
  outline: 2px solid #405b37;
  outline-offset: 2px;
}

/* Отдельная страница корзины */
.cart-navigation {
  margin: 8px 0 18px;
}

.cart-navigation a,
.cart-return {
  color: #405b37;
  font-weight: 650;
  text-decoration: none;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e5e6db;
  border-radius: 15px;
  margin-bottom: 10px;
}

.cart-product-info {
  flex: 1;
  min-width: 0;
}

.cart-product-info strong {
  display: block;
  overflow-wrap: anywhere;
}

.cart-product-info small {
  display: block;
  color: #70766b;
  margin-top: 5px;
}

.cart-product-price {
  font-weight: 750;
  white-space: nowrap;
}

.cart-product-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
}

.cart-product-controls button {
  padding: 5px 11px;
}

.cart-remove {
  background: #eee;
  color: #555;
  margin-left: 5px;
}

.secondary-button {
  background: #e8eddf;
  color: #405b37;
  width: 100%;
  margin-bottom: 10px;
}

#checkout-next {
  width: 100%;
  font-size: 16px;
}

#cart-empty {
  text-align: center;
  padding: 25px 10px;
}

#cart-empty[hidden],
#cart-actions[hidden] {
  display: none;
}

.catalog-cart {
  display: flex;
  justify-content: flex-end;
  margin: 15px 0;
}

.catalog-cart a {
  display: inline-block;
  background: #3d603a;
  color: white;
  text-decoration: none;
  padding: 11px 17px;
  border-radius: 11px;
  font-weight: 700;
}

/* Оформление заказа */
#checkout-section {
  margin-top: 25px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e5e6db;
  border-radius: 15px;
}

#checkout-section[hidden] {
  display: none;
}

#checkout-form > label,
.delivery-form-field label {
  display: block;
  margin: 15px 0 7px;
  font-weight: 650;
}

#checkout-form input:not([type="radio"]),
#checkout-form textarea,
#checkout-form select {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid #d5d9ce;
  border-radius: 9px;
  font: inherit;
  background: #fff;
}

.delivery-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid #dfe3d8;
  border-radius: 11px;
  cursor: pointer;
}

.delivery-card input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 2px;
}

.delivery-card strong,
.delivery-card small {
  display: block;
}

.delivery-card small {
  margin-top: 5px;
  color: #70766b;
}

.delivery-card .delivery-incompatible {
  color: #a34b3e;
  font-weight: 600;
}

.delivery-disabled {
  background: #f3f3f0;
  cursor: not-allowed;
  opacity: 0.75;
}

.delivery-form-field {
  margin: 14px 0;
}

#checkout-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#checkout-status {
  margin-top: 14px;
  font-weight: 600;
}

@media (max-width: 480px) {
  #checkout-section {
    padding: 14px;
  }

  .delivery-card {
    padding: 12px;
  }
}

/* === Фирменная шапка Gus Shop === */

main > header {
    position: relative;
    aspect-ratio: 3 / 1;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #f3eadb url('/static/images/shop-header-plaster.webp')
                center / 100% 100% no-repeat;
}

main > header .goose {
    display: none;
}

main > header h1,
main > header p {
    position: absolute;
    left: 39%;
    width: 53%;
    margin: 0;
    text-align: center;
    color: #342014;
}

main > header h1 {
    top: 27%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 2.8vw, 32px);
    font-weight: 700;
    font-style: italic;
    letter-spacing: .3px;
    line-height: 1.2;
    text-shadow: 0 1px 1px rgba(255,255,255,.35);
}

main > header p {
    top: 62%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(10px, 1.15vw, 13px);
    font-weight: 700;
    letter-spacing: .8px;
    line-height: 1.4;
    color: #66543d;
}

main > header p::before {
    content: "";
    position: absolute;
    width: 58%;
    height: 1px;
    left: 21%;
    bottom: calc(100% + 10px);
    background: linear-gradient(
        90deg,
        transparent,
        #927b59 18%,
        #927b59 43%,
        transparent 43%,
        transparent 57%,
        #927b59 57%,
        #927b59 82%,
        transparent
    );
}

main > header p::after {
    content: "✦";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    transform: translateX(-50%);
    padding: 0 8px;
    background: #f3eadb;
    color: #806b49;
    font-size: 12px;
    line-height: 1;
}

@media (max-width: 600px) {
    main > header h1 {
        top: 27%;
        font-size: clamp(14px, 4.2vw, 21px);
        letter-spacing: 0;
    }

    main > header p {
        top: 62%;
        font-size: clamp(9px, 2.5vw, 12px);
        letter-spacing: .4px;
    }

    main > header p::before {
        width: 62%;
        left: 19%;
        bottom: calc(100% + 8px);
    }

    main > header p::after {
        bottom: calc(100% + 1px);
        font-size: 11px;
    }
}

/* === Гусь Shop: обновлённая витрина каталога === */

.products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid #e7e5dc;
  background: #fffefa;
  box-shadow: 0 3px 14px rgba(45, 52, 34, .055);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.product:active {
  transform: scale(.985);
}

.product-photo,
.product-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

.product-photo {
  object-fit: cover;
}

.product h3 {
  margin: 13px 3px 5px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.product p {
  margin: 0 3px 12px;
  color: #777b70;
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.product .price {
  margin: auto 3px 11px;
  padding-top: 10px;
  color: #293d28;
  font-size: 22px;
  font-weight: 800;
}

.product button[data-add] {
  width: 100%;
  min-height: 44px;
  padding: 11px 8px;
  background: #3d603a;
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  transition: background .15s ease, transform .15s ease;
}

.product button[data-add]:active {
  background: #294728;
  transform: scale(.97);
}

.catalog-cart a {
  border-radius: 13px;
  box-shadow: 0 3px 10px rgba(45, 80, 40, .12);
}

@media (max-width: 390px) {
  .products {
    gap: 9px;
  }

  .product {
    padding: 8px;
    border-radius: 14px;
  }

  .product h3 {
    font-size: 14px;
  }

  .product .price {
    font-size: 19px;
  }

  .product button[data-add] {
    font-size: 13px;
  }
}

@media (max-width: 320px) {
  .products {
    grid-template-columns: 1fr;
  }
}


/* === Гусь Shop: финальная полировка каталога === */

.product {
  border: 1px solid #deded2;
  box-shadow: 0 4px 16px rgba(45, 52, 34, .10);
}

.product h3 {
  color: #292d25;
  font-size: 16px;
  line-height: 1.35;
}

.product p {
  color: #62695d;
  font-size: 13px;
}

.category-filter {
  background: #f0f2e9;
  color: #344e30;
  border: 1px solid #d4ddcd;
  font-weight: 650;
}

.category-filter.active {
  background: #3d603a;
  color: #fff;
  border-color: #3d603a;
}

.category-expand {
  font-weight: 650;
}

@media (hover: hover) {
  .product:hover {
    box-shadow: 0 7px 22px rgba(45, 52, 34, .15);
  }

  .product button[data-add]:hover {
    background: #304e2e;
  }
}

@media (max-width: 390px) {
  .product h3 {
    font-size: 15px;
  }

  .product p {
    font-size: 12px;
  }
}


/* === Гусь Shop: счётчик количества в каталоге === */

.product-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  background: #e8eddf;
  border: 1px solid #d5dfcc;
  border-radius: 12px;
  overflow: hidden;
}

.product-quantity button {
  flex: 0 0 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  background: #3d603a;
  color: #fff;
  font-size: 23px;
  font-weight: 600;
}

.product-quantity span {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #293d28;
}

.product-quantity button:active {
  background: #294728;
}

@media (max-width: 390px) {
  .product-quantity button {
    flex-basis: 40px;
    min-height: 44px;
  }
}


/* === Гусь Shop: счётчик количества в каталоге === */

.product-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  background: #e8eddf;
  border: 1px solid #d5dfcc;
  border-radius: 12px;
  overflow: hidden;
}

.product-quantity button {
  flex: 0 0 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  background: #3d603a;
  color: #fff;
  font-size: 23px;
  font-weight: 600;
}

.product-quantity span {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #293d28;
}

.product-quantity button:active {
  background: #294728;
}

@media (max-width: 390px) {
  .product-quantity button {
    flex-basis: 40px;
    min-height: 44px;
  }
}


/* === Гусь Shop: единый тёплый фон === */

:root {
  background: #f5eddf;
}

body {
  background: #f5eddf;
}


/* === Гусь Shop: тёплая штукатурка на фоне страниц === */

:root {
  background-color: #f0e2d0;
}

body {
  background-color: #f0e2d0;
  background-image:
    radial-gradient(
      ellipse at 18% 22%,
      rgba(255, 250, 239, .42) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse at 82% 75%,
      rgba(192, 157, 116, .11) 0%,
      transparent 55%
    ),
    repeating-linear-gradient(
      35deg,
      rgba(255, 255, 255, .035) 0px,
      rgba(255, 255, 255, .035) 1px,
      transparent 1px,
      transparent 5px
    );
  background-attachment: fixed;
}


/* === Гусь Shop: подробная карточка блюда === */

.modal-content {
  background: #fffaf1;
  border: 1px solid #e8d9c4;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 55px rgba(52, 32, 20, .25);
}

.modal-close {
  background: rgba(52, 32, 20, .82);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.modal-image {
  background: #f3eadb;
  border-radius: 16px;
  border: 1px solid #eadfce;
}

.modal-thumbnails {
  gap: 8px;
  padding: 12px 0 5px;
}

.modal-thumbnails button {
  border-radius: 10px;
  background: #f3eadb;
  border: 2px solid transparent;
}

.modal-thumbnails button.active {
  border-color: #3d603a;
}

.modal-content h2 {
  color: #34291e;
  font-size: 24px;
  line-height: 1.25;
  margin: 18px 0 10px;
}

#modal-description {
  color: #575548;
  font-size: 15px;
  line-height: 1.6;
}

#modal-ingredients {
  background: #f4eddf;
  border-left: 3px solid #8a9b73;
  border-radius: 8px;
  padding: 12px 14px;
  color: #514d40;
  font-size: 13px;
  line-height: 1.6;
}

#modal-weight {
  display: inline-block;
  background: #e8eddf;
  color: #405b37;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

#modal-description:empty,
#modal-ingredients:empty,
#modal-weight:empty {
  display: none;
}

.modal-bottom {
  border-top: 1px solid #e5dac9;
  padding-top: 16px;
  margin-top: 18px;
}

.modal-bottom strong {
  color: #293d28;
  font-size: 27px;
  font-weight: 800;
}

#modal-add {
  min-height: 46px;
  padding: 12px 22px;
  background: #3d603a;
  border-radius: 12px;
  font-size: 15px;
}

#modal-add:active {
  background: #294728;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 14px;
    border-radius: 17px;
  }

  .modal-content h2 {
    font-size: 21px;
  }

  .modal-bottom strong {
    font-size: 24px;
  }

  #modal-add {
    padding: 12px 16px;
  }
}



/* Счётчик количества в подробной карточке */
.modal-cart-controls {
  width: 48%;
  min-width: 130px;
}

.modal-cart-controls > button {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
}

.modal-cart-controls .product-quantity {
  min-height: 46px;
}

.modal-cart-controls .product-quantity button {
  min-height: 44px;
}

@media (max-width: 480px) {
  .modal-cart-controls {
    width: 48%;
  }
}



/* === Гусь Shop: обновлённая корзина === */

.cart-product {
  align-items: center;
  padding: 12px;
  gap: 12px;
  background: #fffaf1;
  border: 1px solid #e8dfd1;
  border-radius: 17px;
  box-shadow: 0 3px 12px rgba(52, 32, 20, .07);
}

.cart-product-photo {
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: #f0e6d7;
}

.cart-product-placeholder {
  display: grid;
  place-items: center;
  font-size: 36px;
}

.cart-product-info {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.cart-product-info > strong {
  color: #34291e;
  font-size: 15px;
  line-height: 1.35;
}

.cart-product-info small {
  color: #777064;
  font-size: 12px;
}

.cart-product-price {
  color: #293d28;
  font-size: 15px;
  font-weight: 800;
}

.cart-product-controls {
  flex-wrap: wrap;
  gap: 7px;
}

.cart-product-controls button:not(.cart-remove) {
  min-width: 34px;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 9px;
}

.cart-remove {
  font-size: 12px;
  padding: 7px 9px;
  border-radius: 9px;
}

.total {
  margin: 18px 0;
  padding: 18px;
  background: #fffaf1;
  border: 1px solid #e8dfd1;
  border-radius: 15px;
  color: #514d40;
}

.total strong {
  color: #293d28;
  font-size: 24px;
  font-weight: 850;
}

@media (max-width: 390px) {
  .cart-product {
    gap: 9px;
    padding: 9px;
  }

  .cart-product-photo {
    flex-basis: 68px;
    width: 68px;
    height: 68px;
  }

  .cart-product-info > strong {
    font-size: 13px;
  }

  .cart-product-price {
    font-size: 13px;
  }
}



/* === Гусь Shop: широкая десктопная корзина === */

@media (min-width: 600px) {
  main.cart-page {
    width: calc(100% - 36px);
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
  }

  .cart-page > header {
    max-width: 680px;
  }

  .cart-page .cart-product-photo {
    flex-basis: 100px;
    width: 100px;
    height: 100px;
  }

  .cart-page .cart-product-info {
    flex: 1;
  }
}


/* Воздух между шапкой корзины и товарами */
#cart-products {
  margin-top: 22px;
}



/* Контактные данные при оформлении заказа */
#telegram-username-field {
  margin-top: 12px;
  padding: 12px;
  background: #f4f0e7;
  border: 1px solid #e5dac9;
  border-radius: 10px;
}
#telegram-username-field[hidden] {
  display: none;
}
#telegram-username-field label {
  margin-top: 0;
}


/* Gus Shop: unified cart layout and order success */
@media (min-width: 600px) {
    main.cart-page {
        width: calc(100% - 36px);
        max-width: 1040px;
        margin-left: auto;
        margin-right: auto;
    }

    .cart-page > header {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
}

#cart-products,
.cart-page > .total,
#cart-empty,
#cart-actions,
#checkout-section,
#order-success {
    width: 100%;
    box-sizing: border-box;
}

.order-success {
    margin: 24px 0;
    padding: 30px;
    text-align: center;
    background: #fffaf1;
    border: 1px solid #e8dfd1;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(52, 32, 20, .07);
}

.order-success[hidden] {
    display: none !important;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e8eddf;
    color: #405b37;
    font-size: 36px;
    font-weight: 800;
}

.order-success h2 {
    margin: 0 0 8px;
    color: #293d28;
}

.success-thanks {
    color: #777064;
    margin-bottom: 24px;
}

.success-details {
    max-width: 620px;
    margin: 0 auto 22px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e8dfd1;
    border-radius: 12px;
    text-align: left;
}

.success-details > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #eee9df;
}

.success-details > div:last-child {
    border-bottom: 0;
}

.success-details span {
    color: #777064;
}

.success-details strong {
    color: #293d28;
    text-align: right;
}

.success-status {
    color: #405b37 !important;
}

.success-message {
    max-width: 560px;
    margin: 0 auto 22px;
    line-height: 1.6;
    color: #625b50;
}

.success-return {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 11px;
    background: #405b37;
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.success-return:hover {
    background: #31482b;
}

@media (max-width: 600px) {
    .order-success {
        padding: 20px 14px;
    }

    .success-details {
        padding: 12px;
    }
}


/* Масса нетто в карточках каталога */
.product-weight {
    margin: 0 3px 8px;
    color: #405b37;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}


/* === Общая боковая панель клиентской части === */

.client-menu-trigger {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    left: max(
        14px,
        env(safe-area-inset-left),
        calc((100vw - 680px) / 2 + 18px)
    );
    z-index: 1200;
    width: 46px;
    height: 46px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: #3d603a;
    border-radius: 13px;
    box-shadow: 0 3px 12px #0002;
}

.client-menu-trigger span {
    display: block;
    width: 21px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.client-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1290;
    background: rgba(25, 28, 22, .48);
    opacity: 0;
    transition: opacity .25s ease;
}

.client-menu-backdrop[hidden] {
    display: none;
}

.client-menu-panel {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1300;
    width: min(340px, 88vw);
    padding: max(22px, env(safe-area-inset-top)) 20px
             max(22px, env(safe-area-inset-bottom));
    background: #fffefa;
    box-shadow: 8px 0 35px #0002;
    transform: translateX(-105%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.client-menu-panel.is-open {
    transform: translateX(0);
}

.client-menu-backdrop:not([hidden]) {
    opacity: 1;
}

.client-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0 25px;
    border-bottom: 1px solid #e8e7df;
}

.client-menu-brand {
    color: #293d28;
    font-size: 21px;
    font-weight: 800;
}

.client-menu-subtitle {
    margin-top: 6px;
    color: #777b70;
    font-size: 12px;
}

.client-menu-close {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    background: #f0f2e9;
    color: #405b37;
    font-size: 27px;
}

.client-menu-links {
    display: grid;
    margin-top: 15px;
}

.client-menu-links a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    padding: 10px 4px;
    border-bottom: 1px solid #eeede7;
    color: #292a22;
    text-decoration: none;
    font-weight: 650;
}

.client-menu-icon {
    width: 30px;
    color: #405b37;
    font-size: 22px;
    text-align: center;
}

.client-menu-arrow {
    margin-left: auto;
    color: #92978c;
    font-size: 22px;
}

.client-menu-catalog {
    display: block;
    margin-top: auto;
    padding: 14px;
    border-radius: 12px;
    background: #e8eddf;
    color: #405b37;
    text-align: center;
    font-weight: 750;
    text-decoration: none;
}

body.client-menu-active {
    overflow: hidden;
}

.info-page {
    max-width: 680px;
    margin: auto;
    padding: 18px;
}

.info-navigation {
    padding: 12px 0;
}

.info-navigation a {
    color: #405b37;
    font-weight: 650;
    text-decoration: none;
}

.info-content {
    margin-top: 25px;
    padding: 20px;
    background: #fffefa;
    border: 1px solid #e5e6db;
    border-radius: 16px;
    line-height: 1.6;
}

.info-content h2 {
    margin-top: 15px;
}

.info-content p {
    color: #62695d;
}

.info-photo-placeholder {
    display: grid;
    place-items: center;
    min-height: 170px;
    margin: 20px 0;
    border-radius: 12px;
    background: #f0efe9;
    color: #777b70;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .client-menu-panel,
    .client-menu-backdrop {
        transition: none;
    }
}


/* Меню и корзина в одной строке под баннером */
.catalog-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.catalog-cart .client-menu-trigger {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 46px;
}



/* Кнопка меню в строке корзины на главной странице */
.catalog-cart {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    margin: 12px 0 20px;
}

.catalog-cart .client-menu-trigger {
    position: static;
    flex: 0 0 46px;
    margin: 0;
}

.catalog-cart > a {
    margin-left: auto;
}



/* === Gus Shop: тёплое оформление бокового меню === */

.client-menu-panel {
    background: #f3eadb;
    box-shadow: 8px 0 35px rgba(52, 32, 20, .16);
}

.client-menu-header {
    padding: 18px 0 22px;
    border-bottom: 1px solid #dfd0b8;
}

.client-menu-brand {
    color: #342014;
    font-size: 21px;
}

.client-menu-subtitle {
    color: #786b59;
}

.client-menu-close {
    background: #fff8eb;
    border: 1px solid #e4d5bd;
    color: #405b37;
    border-radius: 11px;
}

.client-menu-links {
    gap: 9px;
    margin-top: 18px;
}

.client-menu-links a {
    min-height: 56px;
    padding: 11px 13px;
    border: 1px solid #e4d5bd;
    border-radius: 13px;
    background: #fffaf1;
    color: #342014;
    box-shadow: 0 2px 7px rgba(52, 32, 20, .045);
    transition: background .15s ease, transform .15s ease;
}

.client-menu-links a:hover,
.client-menu-links a:focus-visible {
    background: #eee4d2;
}

.client-menu-links a:active {
    transform: scale(.985);
}

.client-menu-icon {
    color: #66764d;
}

.client-menu-arrow {
    color: #9a8b73;
}

.client-menu-catalog {
    background: #e8eddf;
    border: 1px solid #d5dfcc;
    color: #405b37;
    border-radius: 13px;
}

.client-menu-catalog:hover {
    background: #dfe8d5;
}


/* Тёплая штукатурка бокового меню */
.client-menu-panel {
    background-color: #f3e8d6;
    background-image:
        linear-gradient(
            135deg,
            rgba(255, 250, 239, .28),
            rgba(221, 198, 165, .12)
        ),
        url('/static/images/plaster-noise.svg');
    background-repeat: no-repeat, repeat;
    background-size: 100% 100%, 280px 280px;
    background-position: center, 0 0;
}

/* Сохраняем кремовые карточки поверх текстурного фона */
.client-menu-links a {
    background: rgba(255, 250, 241, .94);
    border: 1px solid #e5d5bd;
    border-radius: 13px;
    margin-bottom: 8px;
    padding: 10px 13px;
    box-shadow: 0 2px 5px rgba(100, 75, 45, .05);
}

.client-menu-links a:hover {
    background: #fffdf7;
}

.client-menu-close {
    background: rgba(255, 250, 241, .9);
    border: 1px solid #e5d5bd;
}

.client-menu-catalog {
    background: rgba(255, 250, 241, .85);
    border: 1px solid #e5d5bd;
}

/* === Компактное оформление checkout === */

#checkout-section {
    margin-top: 18px;
    padding: 15px;
}

#checkout-section h2 {
    margin: 4px 0 14px;
}

#checkout-form {
    padding: 12px;
}

#checkout-form > label,
.delivery-form-field label {
    margin: 10px 0 5px;
    font-size: 14px;
}

#checkout-form input:not([type="radio"]),
#checkout-form textarea,
#checkout-form select {
    padding: 10px 11px;
    min-height: 41px;
    font-size: 14px;
}

#checkout-form textarea {
    min-height: 76px;
}

#checkout-form h3 {
    margin: 17px 0 8px;
    font-size: 16px;
}

.email-notifications-option {
    margin: 11px 0;
    padding: 9px 10px;
    background: #f7f5ef;
    border-radius: 9px;
}

.email-notifications-option label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.4;
}

#checkout-form .email-notifications-option input {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
}

.delivery-card {
    gap: 10px;
    padding: 10px 12px;
    margin: 7px 0;
    border-radius: 10px;
}

.delivery-card strong {
    font-size: 14px;
}

.delivery-card small {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
}

.delivery-form-field {
    margin: 9px 0;
}

#delivery-fields h3 {
    margin: 16px 0 8px;
}

#checkout-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
}

#checkout-status {
    margin-top: 9px;
}

@media (max-width: 480px) {
    #checkout-section {
        padding: 11px;
    }

    #checkout-form {
        padding: 10px;
    }

    .delivery-card {
        padding: 10px;
    }
}


/* === Финальная полировка формы заказа === */

/* Убираем лишнюю внутреннюю карточку */
#checkout-form {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

/* Единая оливковая палитра элементов */
#checkout-form input[type="checkbox"],
#checkout-form input[type="radio"] {
    accent-color: #405b37;
}

/* Немного уплотняем вертикальные интервалы */
#checkout-form > label,
.delivery-form-field label {
    margin-top: 8px;
    margin-bottom: 4px;
}

.email-notifications-option {
    margin: 9px 0;
}

/* Сохраняем удобство полей ввода */
#checkout-form input:not([type="radio"]):not([type="checkbox"]),
#checkout-form textarea,
#checkout-form select {
    min-height: 41px;
}


/* Кнопка меню в навигации корзины */
.cart-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
}

.cart-navigation .client-menu-trigger {
    position: static;
    top: auto;
    left: auto;
    flex: 0 0 46px;
    margin: 0;
}



/* Навигация корзины: меню слева, возврат справа */
.cart-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 46px;
    margin: 8px 0 18px;
}

.cart-navigation .client-menu-trigger {
    position: static;
    flex: 0 0 46px;
    margin: 0;
}

.cart-navigation > a {
    order: 2;
    margin-left: auto;
}



/* === Описание выбранной категории === */
.category-description {
    margin: 4px 0 20px;
    padding: 17px 18px;
    background: #f3eadb;
    border-radius: 13px;
    color: #405b37;
    font-size: 21px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.category-description[hidden] {
    display: none;
}

@media (max-width: 480px) {
    .category-description {
        margin-bottom: 16px;
        padding: 14px;
        font-size: 18px;
    }
}

/* Панель покупки сразу под фотографиями товара */
.modal-bottom {
    border-top: none;
    padding-top: 0;
    margin-top: 8px;
    margin-bottom: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5dac9;
}

@media (max-width: 480px) {
    .modal-bottom {
        gap: 10px;
        margin-top: 7px;
        margin-bottom: 14px;
        padding-bottom: 13px;
    }
}


/* Фирменная заглушка товаров без фотографий */
.product-placeholder {
    background: #f3eadb;
    overflow: hidden;
}

.product-placeholder img {
    display: block;
    width: 74%;
    height: 74%;
    object-fit: contain;
}
