/* Локальные шрифты сайта: без внешних запросов к Google Fonts */
@font-face {
font-family: "Manrope";
src: url("Manrope.woff2") format("woff2"), url("Manrope.ttf") format("truetype");
font-style: normal;
font-weight: 200 800;
font-display: swap;
}
@font-face {
font-family: "Great Vibes";
src: url("GreatVibes-Regular.woff2") format("woff2"), url("GreatVibes-Regular.ttf") format("truetype");
font-style: normal;
font-weight: 400;
font-display: block;
}

:root {
  --sand: #c2ab8d;
  --sand-dark: #8c745a;
  --sand-light: #eee8df;
  --cream: #f7f4ef;
  --paper: #fffdf9;
  --line: #e5ddd4;
  --black: #282522;
  --ink: #282522;
  --muted: #716b65;
  --white: #ffffff;
  --accent: #c2ab8d;
  --shadow: 0 12px 35px rgba(45, 35, 25, .08);
  --radius: 18px;
  --max: 1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Manrope",Arial,Helvetica,sans-serif;background:var(--cream);color:var(--ink);line-height:1.65}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button{cursor:pointer}

.site-header{position:sticky;top:0;z-index:1000;background:rgba(247,244,239,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.header-inner{max-width:1280px;margin:auto;min-height:82px;padding:12px 24px;display:flex;align-items:center;gap:28px}
.header-logo{width:62px;height:62px;object-fit:contain;flex:none}
.logo-placeholder{width:62px;height:62px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:10px;text-align:center;color:var(--sand-dark);background:var(--cream)}
.brand{min-width:210px}.brand-name{font-size:19px;font-weight:700;letter-spacing:.3px}.brand-tagline{font-size:12px;color:var(--muted);margin-top:4px}
.main-nav{display:flex;align-items:center;gap:22px;margin-left:auto}
.main-nav button{border:0;background:none;padding:8px 0;color:var(--black);font-size:14px;position:relative}
.main-nav button:hover{color:var(--sand-dark)}
.header-cart{border:1px solid var(--accent)!important;border-radius:9px!important;padding:9px 14px!important;background:var(--accent)!important;color:var(--black)!important}
.cart-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:50%;background:#fff;color:#111;font-size:11px;margin-left:5px}
.menu-toggle{display:none;border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 11px}

.page{display:none}.page.active{display:block}
.container{max-width:var(--max);margin:auto;padding:0 24px}
.section{padding:76px 0}.section-soft{background:var(--cream)}
.section-head{text-align:center;max-width:760px;margin:0 auto 38px}
.section-kicker{font-size:12px;text-transform:uppercase;letter-spacing:2px;color:var(--sand-dark);font-weight:700}
.section-title{font-family:"Great Vibes",cursive;font-size:34px;font-weight:400;line-height:1.15;margin:10px 0 12px}
.section-text{color:var(--muted);line-height:1.65;margin:0}

.btn,.button-dark{border:1px solid var(--accent);background:var(--accent);color:var(--black);padding:12px 20px;border-radius:9px;transition:.2s}
.btn:hover,.button-dark:hover{filter:brightness(.95);transform:translateY(-1px)}
.btn-light,.button-light{background:#fff;color:#111;border-color:var(--line)}
.small-btn.primary,.detail-cart-button,.category-tab.active,.checkout-button{background:var(--accent);border-color:var(--accent);color:var(--black)}
.small-btn.primary:hover,.detail-cart-button:hover,.category-tab.active:hover,.checkout-button:hover{filter:brightness(.95)}

.hero{background:linear-gradient(135deg,#fbf9f5,#eee8df);padding:62px 0 72px}
.hero-grid{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:55px;align-items:center}
.hero-copy{padding:15px 0}.hero-logo{display:none}
.hero-title{font-family:"Great Vibes",cursive!important;font-size:46px!important;font-weight:400!important;line-height:1.06!important;margin:0 0 18px!important;max-width:600px;color:#111!important}
.hero-title span{display:block;color:var(--sand-dark)!important}
.hero-slogan{font-family:Manrope,Arial,sans-serif;font-size:20px;line-height:1.5;margin:0 0 18px;color:#111}
.hero-description{font-family:Manrope,Arial,sans-serif;font-size:16px;line-height:1.7;color:var(--muted);max-width:580px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}

.hero-gallery{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,220px);gap:12px}
.hero-tile{width:100%;height:220px;min-width:0;position:relative;overflow:hidden;border-radius:14px;background:var(--cream);border:1px solid var(--line);box-shadow:var(--shadow)}
.hero-tile:nth-child(2),.hero-tile:nth-child(5){transform:none}
.hero-tile img{width:100%!important;height:100%!important;min-height:0!important;object-fit:contain;display:block;transition:opacity .45s ease,transform .6s ease}
.hero-tile:hover img{transform:scale(1.03)}
.hero-note{margin-top:14px;text-align:right;color:#9a9185;font-size:12px}

.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.category-card{position:relative;min-height:280px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;box-shadow:var(--shadow);padding:0;text-align:left;color:#fff}
.category-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:.5s}
.category-card:hover img{transform:scale(1.04)}
.category-card:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.6),rgba(0,0,0,.03) 65%)}
.category-content{position:absolute;z-index:2;left:22px;right:22px;bottom:20px;color:#fff}
.category-content h3{font-family:"Great Vibes",cursive;margin:0 0 7px;font-size:30px;font-weight:400}
.category-content p{margin:0 0 10px;color:#eee;font-size:13px;line-height:1.4}
.category-arrow{display:inline-block;margin-top:3px;border-bottom:1px solid rgba(255,255,255,.8);font-size:13px;padding-bottom:2px}

.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.product-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.product-image-wrap{background:var(--cream);aspect-ratio:1/1;overflow:hidden}
.product-image-link{display:block;width:100%;height:100%}
.product-image{width:100%;height:100%;object-fit:contain!important;object-position:center;display:block;transition:.45s}
.product-card:hover .product-image{transform:scale(1.025)}
/* Оптимизированная загрузка изображений */
.image-loading{position:relative}
.image-loading:before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,#f3eee7 8%,#faf8f4 18%,#f3eee7 33%);background-size:200% 100%;animation:imageShimmer 1.35s ease-in-out infinite;z-index:0}
.image-loading img{position:relative;z-index:1}
.image-fade{opacity:0;transition:opacity .35s ease}
.image-fade.is-loaded{opacity:1}
@keyframes imageShimmer{to{background-position:-200% 0}}

.product-info{padding:17px}
.product-category-label{font-size:11px;text-transform:uppercase;letter-spacing:1.2px;color:var(--sand-dark);margin-bottom:7px}
.product-name{font-family:"Great Vibes",cursive;font-size:27px;font-weight:400;line-height:1.1;margin-bottom:7px}
.product-name-link{display:block;color:inherit;text-decoration:none;cursor:pointer}
.product-name-link:hover{color:var(--accent)}
.product-description{color:var(--muted);font-size:14px;line-height:1.45;min-height:40px}

.product-stock-status{font-size:13px;font-weight:600;color:#5f7654;margin-top:10px}
.product-stock-status.is-unavailable{color:#9a9185}
.product-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:15px}
.price{font-size:19px;font-weight:700;white-space:nowrap}
.card-buttons{display:flex;gap:7px}
.small-btn{border:1px solid var(--line);background:#fff;color:var(--black);border-radius:8px;padding:9px 11px;font-size:13px}

.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}
.about-copy{line-height:1.72;color:#3e3b37}
.about-copy h3{font-family:"Great Vibes",cursive;font-size:30px;font-weight:400;margin:0 0 15px}
.about-copy p{margin:0 0 18px}
.collection-list{display:grid;gap:13px}
.collection-item{border-top:1px solid var(--line);padding-top:15px}
.collection-item strong{display:block;margin-bottom:5px}
.collection-item span{color:var(--muted);font-size:14px;line-height:1.5}

.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.info-card{border:1px solid var(--line);border-radius:14px;padding:24px;background:#fff}
.info-card h3{font-family:"Great Vibes",cursive;font-size:29px;font-weight:400;margin:0 0 10px}
.info-card p{color:var(--muted);line-height:1.6;margin:0}
/* =========================================================
   СТРАНИЦА КАТАЛОГА / CATEGORY.HTML
   ========================================================= */

/* Верхняя часть каталога */
.catalog-head {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 24px 30px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;

  background: #fff;
}

.catalog-head h1 {
  margin: 0 0 10px;
  font-family: "Great Vibes", cursive;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.08;
  color: #171717;
}

.catalog-head p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  line-height: 1.6;
}


/* Поиск */
.catalog-head .search {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  gap: 8px;

  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 13px;
}

.catalog-head .search span {
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.catalog-head .search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--black);
  font-size: 14px;
}


/* Кнопки категорий */
.category-tabs {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 28px;

  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--black);

  border-radius: 9px;
  padding: 9px 15px;

  font-family: Manrope, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.category-tab:hover {
  background: var(--cream);
  border-color: var(--sand-dark);
  transform: translateY(-1px);
}

.category-tab.active {
  background: #e8dec5;
  border-color: #e8dec5;
  color: #171717;
}


/* Сам каталог товаров */
#category-products {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 70px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;

  align-items: stretch;
}


/* Карточка товара */
#category-products .product-card {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}


/* Изображение */
#category-products .product-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  overflow: hidden;
  flex: none;
}

#category-products .product-image {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
}


/* Информация */
#category-products .product-info {
  padding: 17px;

  display: flex;
  flex-direction: column;
  flex: 1;
}

#category-products .product-name {
  display: block;
  margin-bottom: 7px;

  font-family: "Great Vibes", cursive;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.1;
}

#category-products .product-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;

  min-height: 40px;
}


/* Нижняя часть карточки */
#category-products .product-bottom {
  margin-top: auto;
  padding-top: 15px;

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


/* Кнопки карточки */
#category-products .card-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

#category-products .small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;

  border: 1px solid var(--line);
  border-radius: 9px;

  padding: 9px 13px;

  background: #fff;
  color: #171717;

  font-family: Manrope, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;

  text-decoration: none;
  cursor: pointer;

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

#category-products .small-btn:hover {
  transform: translateY(-1px);
  border-color: var(--sand-dark);
}

#category-products .small-btn.primary {
  background: #e8dec5;
  border-color: #e8dec5;
  color: #171717;
}

#category-products .small-btn.primary:hover {
  background: #e8dec5;
  border-color: #e8dec5;
}


/* Если товара нет */
#category-products .unavailable {
  color: #9a9185;
  font-size: 13px;
  font-weight: 600;
}


/* Адаптация планшета */
@media (max-width: 900px) {

  .catalog-head {
    padding-left: 20px;
    padding-right: 20px;
  }

  #category-products {
    padding-left: 20px;
    padding-right: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* Адаптация телефона */
@media (max-width: 650px) {

  .catalog-head {
    display: block;
    padding: 40px 15px 24px;
  }

  .catalog-head h1 {
    font-size: 46px;
  }

  .catalog-head .search {
    width: 100%;
    margin-top: 20px;
  }

  .category-tabs {
    padding: 0 15px 22px;
  }

  #category-products {
    padding: 0 15px 55px;
    grid-template-columns: 1fr;
  }

  #category-products .product-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  #category-products .card-buttons {
    width: 100%;
  }

  #category-products .small-btn {
    flex: 1;
  }
}
.contact-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;justify-content:center}
.contact-link{border:1px solid var(--line);border-radius:9px;padding:10px 13px;background:#fff}
.contact-link:hover{border-color:var(--sand-dark)}

footer{border-top:1px solid var(--line);background:#fbfaf8;padding:35px 0}
.footer-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:center}
.footer-brand{display:flex;align-items:center;gap:15px}
.footer-logo{width:58px;height:58px;object-fit:contain;flex:none}
.footer-inner>.footer-small{border-left:1px solid var(--line);padding-left:32px}.footer-small{color:var(--muted);font-size:12px;line-height:1.55}.footer-legal p{margin:0 0 7px}.footer-legal p:last-child{margin-bottom:0}
[hidden]{display:none!important}

.category-page-head{padding:58px 0 30px;background:var(--cream);border-bottom:1px solid var(--line)}
.category-page-head h1{font-family:"Great Vibes",cursive;font-size:48px;font-weight:400;margin:0 0 10px}
.category-page-head p{color:var(--muted);max-width:700px;line-height:1.6;margin:0}
.category-page-actions{margin-top:20px}
.empty{grid-column:1/-1;text-align:center;padding:65px 20px;color:var(--muted);border:1px dashed var(--line);border-radius:14px;background:#fff}

.product-detail-page{
  max-width:1240px;
  margin:0 auto;
  padding:35px 24px 70px;
  width:100%;
}
.back-link{
  display:inline-block;
  border:1px solid var(--line);
  background:#fff;
  border-radius:9px;
  padding:10px 15px;
  margin-bottom:22px;
}
.product-detail{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow);display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);align-items:stretch}
.product-gallery{background:var(--cream);padding:22px}
.product-main-image{width:100%;max-height:650px;object-fit:contain;display:block;margin:auto;border-radius:10px}
.product-thumbnails{display:flex;gap:10px;overflow-x:auto;padding-top:15px}
.product-thumbnail{width:80px;height:80px;object-fit:contain;border-radius:8px;cursor:pointer;border:2px solid transparent;background:#ddd}
.product-thumbnail:hover{border-color:var(--sand-dark)}
.product-video{width:100%;max-height:650px;margin-top:20px;border-radius:12px;background:#000}
.product-detail-info{padding:28px}
.product-detail-category{font-size:12px;text-transform:uppercase;letter-spacing:1.5px;color:var(--sand-dark);margin-bottom:9px}
.product-detail-name{font-family:"Great Vibes",cursive;font-size:52px;font-weight:400;line-height:1.05;margin:0 0 14px}
.product-detail-description{font-size:16px;line-height:1.7;color:#555;margin-bottom:22px}
.product-detail-price{font-size:27px;font-weight:700;margin-bottom:20px}
.product-detail-stock-status{font-size:15px;font-weight:600;color:#5f7654;margin:-8px 0 18px}.product-detail-stock-status.is-unavailable{color:#9a9185}
.product-detail-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px}.detail-cart-button,.detail-consult-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 20px;border-radius:9px;font-size:15px;font-weight:600;text-decoration:none;transition:background .2s ease,border-color .2s ease,transform .2s ease}.detail-cart-button{border:1px solid var(--accent);background:var(--accent);color:var(--black);cursor:pointer}.detail-consult-button{border:1px solid var(--line);background:#fff;color:var(--black)}.detail-cart-button:hover,.detail-consult-button:hover{background:var(--accent);border-color:var(--accent);transform:translateY(-1px)}

.cart-page-wrap{max-width:1000px;margin:auto;padding:35px 24px 70px}
.cart-title{font-family:"Great Vibes",cursive;font-size:44px;font-weight:400;margin-bottom:25px}
.cart-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px;margin-bottom:12px;display:flex;align-items:center;gap:15px}
.cart-item-image{width:90px;height:90px;object-fit:contain;border-radius:10px;background:var(--cream)}
.cart-item-info{flex:1}
.cart-item-name{font-weight:700;margin-bottom:6px}
.cart-item-price{color:var(--muted);font-size:14px}
.cart-controls{display:flex;align-items:center;gap:8px}
.quantity-button{width:32px;height:32px;border:1px solid #ccc;background:#fff;border-radius:7px}
.quantity{min-width:25px;text-align:center}
.remove-button{border:0;background:transparent;color:#999;font-size:18px}
.cart-total{background:var(--cream);border:1px solid var(--line);padding:20px;border-radius:14px;margin-top:20px;font-size:22px;font-weight:700;text-align:right}
#cart-total{font-family:"Great Vibes",cursive;font-size:40px;font-weight:400}

.checkout-form,.messenger-buttons{background:#fff;border:1px solid var(--line);padding:22px;border-radius:14px;margin-top:20px}
.checkout-title,.messenger-title{font-family:"Great Vibes",cursive;font-size:32px;font-weight:400;margin-bottom:20px}
.checkout-label{display:block;margin-top:15px;margin-bottom:7px;font-weight:600}
.checkout-select,.checkout-input{width:100%;padding:13px 14px;border:1px solid #ccc;border-radius:9px;font-size:16px;background:#fff}
.checkout-input[readonly]{background:var(--cream);color:#555}
.checkout-hint{font-size:13px;color:var(--muted);margin-top:7px;line-height:1.45}
.checkout-button{width:100%;margin-top:22px;padding:14px;border-radius:10px;font-size:16px}
.messenger-button{width:100%;border:0;padding:14px;margin-top:8px;border-radius:9px;color:#fff;font-size:16px}
.whatsapp{background:#25D366}.viber{background:#7360F2}

h1,h2,h3{font-family:"Great Vibes",cursive;font-weight:400}
h1{font-size:54px;font-weight:700;line-height:1.08}

@media(max-width:900px){
  .product-detail{grid-template-columns:1fr}
  .header-inner{gap:15px}.brand{min-width:0}.main-nav{gap:13px}.main-nav button{font-size:13px}
  .hero-grid{grid-template-columns:1fr}.hero-copy{text-align:center}.hero-description{margin:auto}.hero-actions{justify-content:center}
  .hero-gallery{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,190px)}
  .hero-tile{height:190px}
  .category-grid,.product-grid{grid-template-columns:repeat(2,1fr)}
  .about-grid{grid-template-columns:1fr;gap:35px}.info-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:650px){
  .site-header{position:relative}.header-inner{min-height:72px;padding:10px 15px}
  .header-logo,.logo-placeholder{width:48px;height:48px}.brand-name{font-size:16px}.brand-tagline{display:none}
  .menu-toggle{display:block;margin-left:auto}
  .main-nav{display:none;position:absolute;left:0;right:0;top:72px;background:#fff;border-bottom:1px solid var(--line);padding:14px 18px;flex-direction:column;align-items:stretch;gap:3px}
  .main-nav.open{display:flex}.main-nav button{text-align:left;padding:11px 0}.header-cart{padding:10px 13px!important}
  .container{padding:0 15px}.section{padding:55px 0}.section-title{font-size:30px}
  .hero{padding:35px 0 50px}.hero-title{font-size:35px!important}
  .hero-gallery{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,150px);gap:8px}.hero-tile{height:150px}
  .category-grid,.product-grid{grid-template-columns:1fr}.category-card{min-height:240px}
  .product-bottom{align-items:flex-start;flex-direction:column}.card-buttons{width:100%}.small-btn{flex:1}
  .info-grid{grid-template-columns:1fr}.footer-inner{grid-template-columns:1fr;gap:20px}.footer-inner>.footer-small{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:20px}
  .cart-page-wrap,.product-detail-page{padding-left:15px;padding-right:15px}.cart-item{flex-wrap:wrap}.cart-controls{width:100%;justify-content:flex-end}
  .product-detail-name{font-size:40px}.category-page-head h1{font-size:48px}.cart-title{font-size:40px}.product-detail-actions{align-items:stretch;flex-direction:column}.detail-cart-button,.detail-consult-button{width:100%}
}
.pvz-field-wrap{margin-top:15px;padding:14px 15px;border:1px solid var(--line);border-radius:10px;background:var(--cream)}
.pvz-field-wrap[hidden]{display:none}
.pvz-label{display:block;margin-bottom:7px;font-weight:600}
.pvz-label span{color:#b00020}
.pvz-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:9px;font-size:13px;line-height:1.4}
.pvz-links a{text-decoration:underline}

.belpost-field-wrap{margin-top:15px;padding:14px 15px;border:1px solid var(--line);border-radius:10px;background:var(--cream)}
.belpost-field-wrap[hidden]{display:none}
.belpost-field-wrap .checkout-label{display:block;margin:0 0 7px;font-weight:600}
.belpost-field-wrap .checkout-input{display:block;width:100%;box-sizing:border-box;margin:0 0 12px}
.belpost-field-wrap .checkout-input:last-child{margin-bottom:0}
/* Единое оформление обновлённой корзины и карточек */
.category-content h3 {
  font-size: 32px;
  font-weight: 700;
}

.checkout-form .payment-line {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--cream);
}

.customer-name-row,
.field-row,
.address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.delivery-fields {
  margin-top: 15px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
}

.delivery-fields[hidden] {
  display: none;
}

.delivery-description {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.delivery-fields .checkout-label {
  margin-top: 10px;
}

.delivery-fields .checkout-input,
.delivery-fields .checkout-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
}

.required-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.pvz-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
  font-size: 13px;
}

.pvz-links a {
  text-decoration: underline;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 3000;
  max-width: min(90vw, 460px);
  padding: 13px 18px;
  border-radius: 10px;
  background: #171717;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  text-align: center;
}

.cart-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cart-toast.error {
  background: #7b3f32;
}

@media (max-width: 680px) {
  .customer-name-row,
  .field-row,
  .address-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
/* =========================================================
   ЕДИНЫЙ СТИЛЬ КНОПОК НА ВСЁМ САЙТЕ
   ========================================================= */

.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 9px 13px;

  border: 1px solid var(--line);
  border-radius: 9px;

  background: #fff;
  color: #171717;

  font-family: Manrope, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;

  text-decoration: none;
  cursor: pointer;

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}


/* Движение при наведении */
.small-btn:hover {
  background: #e8dec5;
  border-color: #e8dec5;
  transform: translateY(-1px);
}


/* Основная коричневая/бежевая кнопка */
.small-btn.primary {
  background: #e8dec5;
  border-color: #e8dec5;
  color: #171717;
}


/* Основная кнопка при наведении */
.small-btn.primary:hover {
  background: #e8dec5;
  border-color: #e8dec5;
  transform: translateY(-1px);
}


#category-products .small-btn {
  min-height: 38px;
  padding: 9px 13px;

  border-radius: 9px;

  background: #fff;
  color: #171717;

  font-family: Manrope, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;

  transform: none;
}

#category-products .small-btn:hover {
  background: #e8dec5;
  border-color: #e8dec5;
  transform: translateY(-1px);
}

#category-products .small-btn.primary {
  background: #e8dec5;
  border-color: #e8dec5;
  color: #171717;
}

#category-products .small-btn.primary:hover {
  background: #e8dec5;
  border-color: #e8dec5;
  transform: translateY(-1px);
}

/* Дополнительные стили для документов и согласия */
.footer-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.agreement-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.agreement-check a,
.footer-small a {
  color: inherit;
  text-decoration: underline;
}

.checkout-button:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.checkout-button:disabled:hover {
  filter: none;
  transform: none;
}

.agreement-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 58px 24px 80px;
}

.agreement-page h1 {
  margin: 0 0 28px;
}

.agreement-content {
  min-height: 420px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  line-height: 1.7;
}

@media (max-width: 650px) {
  .footer-inner {
    padding-left: 15px;
    padding-right: 15px;
  }

  .agreement-page {
    padding: 42px 15px 60px;
  }

  .agreement-content {
    padding: 20px;
  }
}
/* Важная информация в разделе доставки */

.delivery-important-note{
    max-width: 850px;
    margin: 35px auto 0;
    padding: 22px 25px;

    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;

    text-align: center;
    line-height: 1.65;

    box-shadow: 0 4px 15px rgba(0,0,0,.03);
}

.delivery-important-note p{
    margin: 0 0 10px;
}

.delivery-important-note p:last-child{
    margin-bottom: 0;
}

.delivery-important-note strong{
    color: var(--sand-dark);
}

/* Блок связи после успешного оформления заказа */
.messenger-after-order{text-align:center}
.messenger-after-order-text{font-size:16px;line-height:1.5;margin:0 0 16px}
.messenger-links{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.messenger-link{display:inline-flex;align-items:center;justify-content:center;min-width:130px;padding:13px 18px;border-radius:10px;text-decoration:none;color:#fff;font-weight:600;transition:transform .2s ease,opacity .2s ease}
.messenger-link:hover{transform:translateY(-2px);opacity:.92}
.whatsapp-link{background:#25D366}
.viber-link{background:#7360F2}
.telegram-link{background:#229ED9}
@media(max-width:650px){.messenger-links{flex-direction:column}.messenger-link{width:100%}}

/* Красивое подтверждение успешно оформленного заказа */
.order-success {
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid #b9d8b3;
  border-radius: 14px;
  background: #eef8ec;
  color: #315332;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 6px 20px rgba(67, 100, 60, .06);
}

.order-success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #d5ecd0;
  color: #286b35;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.order-success-heading {
  margin: 0 0 4px;
  color: #285d31;
  font-size: 25px;
  font-weight: 800;
}
.order-success-thanks { margin: 0 0 16px; font-weight: 500; }
.order-success-detail {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  max-width: 520px;
  margin: 8px auto;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.66);
  text-align: left;
}
.order-success-label { font-weight: 500; }
.order-success-detail strong { margin: 0; font-size: 18px; text-align: right; }
.order-success-detail.order-number strong { font-size: 20px; }
.order-success-note { margin: 15px 0 0; font-size: 15px; font-weight: 500; }
.order-success-messenger { margin: 14px 0 0; font-size: 15px; font-weight: 500; }
.order-success-messenger a { color: #245f30; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:520px) {
  .order-success { padding: 18px 14px; font-size: 16px; }
  .order-success-detail { gap: 10px; }
  .order-success-detail strong { font-size: 16px; }
  .order-success-detail.order-number strong { font-size: 18px; }
}

/* Мои проекты — перекрёстная навигация между сайтами */
.my-projects {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px;
  padding: 24px 24px 0;
  box-sizing: border-box;
}
.my-projects-title {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #171717);
  text-align: center;
}
.my-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.my-project {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 12px 16px;
  box-sizing: border-box;
  border: 1px solid var(--line, #e8dec5);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  color: inherit;
  text-decoration: none !important;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.my-project:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: #e8dec5;
  box-shadow: 0 6px 18px rgba(50,40,25,.06);
}
.my-project-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  display: block;
}
.my-project-info {
  min-width: 0;
}
.my-project strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}
.my-project span {
  display: block;
  color: var(--muted, #777);
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 650px) {
  .my-projects { padding-left: 15px; padding-right: 15px; }
  .my-projects-grid { grid-template-columns: 1fr; }
  .my-project { min-height: 72px; }
  .my-project-logo { width: 44px; height: 44px; flex-basis: 44px; }
}


/* =========================================================
   ЕДИНАЯ ВИЗУАЛЬНАЯ СИСТЕМА «ВЕЧНОГО ЦВЕТА» ДЛЯ «ЗНАКІ ЎВАГІ»
   Адаптация под существующую разметку: функциональность не меняется.
   ========================================================= */
html { scroll-behavior: smooth; }
body, button, input, select, textarea { font-family: "Manrope", Arial, Helvetica, sans-serif; }
body { background: var(--cream); color: var(--ink); }
.site-header { background: rgba(247,244,239,.96); border-color: var(--line); }
.header-inner { max-width: 1240px; }
.brand-name { color: var(--ink); }
.brand-tagline { color: var(--muted); }
.main-nav button { color: #5f5953; }
.main-nav button:hover { color: var(--sand-dark); }
.header-cart { background: var(--accent) !important; border-color: var(--accent) !important; border-radius: 10px !important; }
.hero { background: linear-gradient(135deg, #fbf9f5, #eee8df); }
.hero-title,
.section-title,
.catalog-head h1,
.category-page-head h1,
.product-detail-name,
.cart-title,
#cart-total,
.checkout-title,
.messenger-title,
h1, h2, h3 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
}
.hero-title { color: var(--ink) !important; }
.hero-title span { color: var(--sand-dark) !important; }
.section-title { font-size: clamp(36px, 4.6vw, 58px); }
.catalog-head h1 { color: var(--ink); }
.category-page-head h1 { color: var(--ink); }
.product-detail-name { font-size: clamp(40px, 4.5vw, 52px); }
.product-card, .category-card, .info-card, .checkout-form, .messenger-buttons,
.cart-panel, .product-detail-info, .legal-card {
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.product-card, .category-card, .info-card, .checkout-form, .messenger-buttons,
.product-detail-info, .legal-card { border-radius: 18px; }
.product-card { transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(45,35,25,.10); }
.product-image-wrap, .hero-tile { background: #eee8df; border-color: var(--line); }
.product-info { color: var(--ink); }
.product-description, .section-text, .hero-description { color: var(--muted); }
.product-category-label { color: var(--sand-dark); }
.product-name, #category-products .product-name { font-family: "Great Vibes", cursive; font-weight: 400; }
.price { color: var(--ink); }
.btn, .button-dark, .small-btn.primary, .detail-cart-button, .category-tab.active,
.checkout-button, .header-cart {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.btn, .button-dark, .btn-light, .button-light, .small-btn, .checkout-button,
.detail-cart-button, .category-tab { transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.btn:hover, .button-dark:hover, .checkout-button:hover, .detail-cart-button:hover { filter: brightness(.96); transform: translateY(-1px); }
.btn-light, .button-light, .small-btn:not(.primary) { background: #fffdf9; border-color: var(--line); color: var(--ink); }
input, select, textarea { color: var(--ink); border-color: var(--line); }
input:focus, select:focus, textarea:focus { outline-color: var(--sand-dark); border-color: var(--sand-dark); }
.checkout-form, .messenger-buttons { background: var(--paper); }
footer, .site-footer { color: var(--muted); }
.my-project { background: rgba(255,253,249,.75); border-color: var(--line); }
.my-project:hover { border-color: var(--accent); }
:focus-visible { outline: 2px solid var(--sand-dark); outline-offset: 3px; }
@media (max-width: 900px) {
  .header-inner { gap: 15px; }
  .product-detail-info { padding: 26px; }
}
@media (max-width: 650px) {
  .site-header { background: rgba(247,244,239,.98); }
  .main-nav { background: var(--paper); }
  .hero { padding-top: 38px; padding-bottom: 48px; }
  .hero-title { font-size: 39px !important; }
  .product-detail-info { padding: 22px 18px; }
  .checkout-form, .messenger-buttons { padding: 20px 16px; }
  .order-success { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
