/*
Theme Name: Kris Kapriz Theme
Author: Custom
Version: 1.0
*/

/* ============================================
   Поиск + Каталог в блоке About (над аркой)
   ============================================ */

.hero-search.about-search,
.about-search {
  /* Та же ширина и колонки, что у .about-grid — перебиваем .hero-search */
  max-width: 960px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 10px;
  margin-bottom: 28px;
  box-sizing: border-box;

  display: grid !important;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Поиск ровно над аркой: как .about-img max-width 340px, по центру левой колонки */
.hero-search.about-search .search-wrap,
.about-search .search-wrap {
  max-width: 340px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-self: center;
  flex: none !important;
}

/* На мобильных — по центру над аркой, ширина как у арки */
@media (max-width: 768px) {
  .about-search {
    max-width: 100% !important;
    margin-top: 10px;
    margin-bottom: 20px;
    padding-left: 16px;
    padding-right: 16px;
    display: flex !important;          /* ← обязательно !important, иначе grid не сбросится */
    justify-content: center;
    grid-template-columns: none !important;
    gap: 0;
  }
  .about-search .search-wrap {
    max-width: 290px !important;       /* как у .about-img на ≤768px */
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    flex: none !important;
  }
}

@media (max-width: 520px) {
  .about-search .search-wrap {
    max-width: 280px !important;       /* как у .about-img на ≤520px */
  }
}


:root {
  --cream:#F9F5F0; --beige:#F5EDE6; --soft-pink:#F8EDE8;
  --gold:#C5A028; --gold-light:#E8C547; --gold-dark:#A67C1A;
  --gold-gloss: linear-gradient(135deg, #F0D060 0%, #C5A028 40%, #A67C1A 70%, #D4B84A 100%);
  --text:#2C2C2C; --text-light:#5A5A5A; --white:#FFF;
  --shadow:0 4px 18px rgba(0,0,0,.06); --radius:12px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',sans-serif;background:var(--cream);color:var(--text);line-height:1.55;overflow-x:hidden}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  box-sizing: border-box;
}
@media(max-width:768px){
  .container{padding: 0 20px;}
}
@media(max-width:480px){
  .container{padding: 0 16px;}
}

body::before{
  content:'';position:fixed;inset:0;z-index:-1;
  background:url('silk.webp') center/cover no-repeat;
  opacity:.35;pointer-events:none;
}

header{position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(249,245,240,.92);backdrop-filter:blur(12px);border-bottom:1px solid rgba(197,160,40,.18);transition:box-shadow .3s}
header.scrolled{box-shadow:var(--shadow)}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 32px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
@media(max-width:768px){
  .header-inner{padding: 0 20px;}
}
@media(max-width:480px){
  .header-inner{padding: 0 16px;}
}
.header-left{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo{display:flex;align-items:center;}
.logo img{height:40px;width:auto;display:block;max-width:48px;}
.header-site-title{
  font-family:'Playfair Display',serif;
  font-size:1.15rem;
  font-weight:600;
  color:var(--gold-dark);
  text-decoration:none;
  white-space:nowrap;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.header-site-title:hover{filter: brightness(1.1);}

nav{display:flex;gap:14px;align-items:center;flex-shrink:0;}
nav a{
  font-size:.75rem;
  font-weight:500;
  color:var(--text-light);
  transition:color .2s;
  position:relative;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
nav a:hover{color:var(--gold-dark)}
nav a::after{
  content:'';
  position:absolute;bottom:-3px;left:0;width:0;height:1.5px;
  background: var(--gold-gloss);
  transition:width .25s;
}
nav a:hover::after{width:100%}
.burger{display:none;flex-direction:column;gap:5px;cursor:pointer;background:none;border:none;padding:6px;}
.burger span{display:block;width:22px;height:2px;background:var(--text);transition:.3s}

/* Кнопки */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 24px;
  border-radius:0;
  font-size:.88rem;font-weight:500;cursor:pointer;
  border: 2px solid transparent;
  background: 
    linear-gradient(#F8EDE8, #F8EDE8) padding-box,
    var(--gold-gloss) border-box;
  color: var(--gold-dark);
  box-shadow: none;
  transition:all .25s;font-family:inherit;
}
.btn-gold, .btn-outline {
  background: 
    linear-gradient(#F8EDE8, #F8EDE8) padding-box,
    var(--gold-gloss) border-box;
  border: 2px solid transparent;
  color: var(--gold-dark);
  box-shadow: none;
  border-radius: 0;
}
.btn-gold:hover, .btn-outline:hover {
  background: 
    linear-gradient(#F5E6E0, #F5E6E0) padding-box,
    linear-gradient(135deg, #F5D870 0%, #D4AF37 40%, #B8860B 70%, #E8C547 100%) border-box;
  color: var(--gold-dark);
  transform: none;
  box-shadow: none;
}

.hero{min-height:auto;display:flex;align-items:center;padding:110px 0 48px;position:relative}
.hero-content{max-width:560px;position:relative;z-index:2}
.hero-badge{display:inline-block;padding:5px 14px;border-radius:50px;background:rgba(197,160,40,.12);color:var(--gold-dark);font-size:.78rem;font-weight:500;letter-spacing:.4px;margin-bottom:12px}
.hero h1{font-family:'Playfair Display',serif;font-size:clamp(1.9rem,4.5vw,2.9rem);font-weight:600;line-height:1.15;margin-bottom:10px}
.hero h1 span{
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p{font-size:1rem;color:var(--text-light);margin-bottom:18px;max-width:480px;line-height:1.5}
.hero-btns{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}

/* ===== Поиск + Каталог ===== */
.hero-search{
  display:flex;
  align-items:center;
  gap:14px;
  max-width:480px;
  margin-top:4px;
}
.search-wrap{
  flex:1;
  display:flex;
  align-items:center;
  border: 2px solid transparent;
  background: 
    linear-gradient(#F8EDE8, #F8EDE8) padding-box,
    var(--gold-gloss) border-box;
  border-radius:0;
  overflow:hidden;
  height:44px;
}
.search-wrap input{
  flex:1;
  border:none;
  background:transparent;
  padding:0 14px;
  font-size:.92rem;
  font-family:inherit;
  color:var(--text);
  outline:none;
  height:100%;
}
.search-wrap input::placeholder{
  color:#a89b8f;
}
.search-btn{
  width:44px;
  height:44px;
  border:none;
  background:transparent;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  transition:opacity .2s;
}
.search-btn:hover{opacity:.75}
.search-btn img{
  width:20px;
  height:20px;
  object-fit:contain;
}

.catalog-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  color: var(--gold-dark);
  font-size: 0;
  transition: opacity .2s;
  min-width: auto;
}
.catalog-link:hover {
  opacity: .8;
}
.catalog-link img {
  width: 48px;           /* десктоп */
  height: 48px;
  object-fit: contain;
}

/* Один медиазапрос — все мобильные правки здесь */
@media (max-width: 480px) {
  .hero-search { gap: 10px; }
  .catalog-link {
    font-size: 0;
    min-width: auto;
  }
  .catalog-link img {
    width: 48px;         /* ← нужный размер на телефоне (можно 28 / 30 / 36) */
    height: 48px;
  }
  .search-btn img {
    width: 30px;
    height: 30px;
  }
}

section{padding:52px 0}
.section-title{
  font-family:'Playfair Display',serif;
  font-size:clamp(1.35rem,2.8vw,1.85rem);
  font-weight:500;
  text-align:center;
  margin-bottom:8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.section-subtitle{text-align:center;color:var(--text-light);font-size:.92rem;margin-bottom:12px;max-width:520px;margin-left:auto;margin-right:auto}
.gold-line{
  width:48px;height:2.5px;
  background: var(--gold-gloss);
  margin:0 auto 32px;
  border-radius:2px;
  box-shadow: 0 1px 3px rgba(197,160,40,.35);
}

.reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}

/* About */
.about{
  background: url('3.jpg') center/cover no-repeat;
  background-color: var(--soft-pink);
  position: relative;
  overflow: hidden;
  padding-top: 20px;               /* ← уменьшили верхний отступ секции (было 60px). Меняй здесь */
  padding-bottom: 60px;
}
.about::before{
  content:'';
  position:absolute;inset:0;
  background: rgba(249,245,240,.00);
  z-index:0;
  pointer-events:none;
}
.about .container{position:relative;z-index:1}
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}
.about-img{
  padding: 7px;
  border: 2.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gold-gloss) border-box;
  box-shadow: 0 12px 32px rgba(0,0,0,.08), 0 0 0 1px rgba(197,160,40,.15);
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  overflow: hidden;
}
.about-img img{
  width:100%; height:100%;
  object-fit:cover; object-position:center top;
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  display:block;
}
.about-text{
  background: rgba(255, 255, 255, 0.82);
  padding: 28px 32px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.about-text h3{
  font-family:'Playfair Display',serif;
  font-size:1.3rem;
  margin-bottom:14px;
  color: var(--text);
}
.about-text p{
  color:var(--text-light);
  margin-bottom:12px;
  font-size:.98rem;
  line-height:1.6;
}
.about-stats{
  display:flex;
  gap:28px;
  margin-top:22px;
  flex-wrap: wrap;
}
.stat strong{
  display:block;
  font-family:'Playfair Display',serif;
  font-size:1.65rem;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height:1.1;
}
.stat span{font-size:.82rem;color:var(--text-light);}

.services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;align-items:stretch}
.service-card{background:rgba(255,255,255,.85);border-radius:var(--radius);padding:24px 18px;text-align:center;box-shadow:var(--shadow);transition:transform .25s,box-shadow .25s;border:1px solid transparent;display:flex;flex-direction:column;height:100%}
.service-card:hover{transform:translateY(-4px);box-shadow:0 10px 24px rgba(0,0,0,.07);border-color:rgba(197,160,40,.3)}
.service-icon{
  width:96px;height:96px;margin:0 auto 16px;
  background:rgba(197,160,40,.1);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.service-icon img{width:100%;height:100%;object-fit:cover;display:block;}
.service-card h3{font-family:'Playfair Display',serif;font-size:1.1rem;margin-bottom:6px}
.service-card p{font-size:.85rem;color:var(--text-light);margin-bottom:14px;flex:1 1 auto}
.service-card .btn{width:100%;padding:9px 16px;margin-top:auto}

.extra{background:rgba(248,237,232,.6)}
.extra-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;justify-content:center}
.extra-item{background:rgba(255,255,255,.9);border-radius:var(--radius);padding:22px 12px;text-align:center;box-shadow:var(--shadow);transition:transform .2s,border-color .2s;cursor:pointer;border:1px solid transparent}
.extra-item:hover{transform:translateY(-3px)}
.extra-item.active{border-color:rgba(197,160,40,.45);box-shadow:0 8px 20px rgba(197,160,40,.15)}
.extra-icon{
  width:48px;height:48px;margin:0 auto 8px;
  background:rgba(197,160,40,.1);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.extra-icon img{width:100%;height:100%;object-fit:cover;display:block;}
.extra-item h4{font-size:.9rem;font-weight:500}

.portfolio-wrap{position:relative;overflow:hidden}
.portfolio-track{display:flex;gap:12px;transition:transform .45s ease;will-change:transform}
.portfolio-item{flex:0 0 calc(20% - 10px);aspect-ratio:3/4;border-radius:var(--radius);overflow:hidden;background:var(--beige);cursor:pointer;position:relative;box-shadow:var(--shadow)}
.portfolio-item img{width:100%;height:100%;object-fit:cover}
.portfolio-item:hover{opacity:.92}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.9);border:none;box-shadow:var(--shadow);cursor:pointer;z-index:5;font-size:1.2rem;color:var(--text);display:flex;align-items:center;justify-content:center;transition:background .2s}
.carousel-btn:hover{background:var(--gold-light);color:#fff}
.carousel-btn.prev{left:6px}
.carousel-btn.next{right:6px}
.carousel-dots{display:flex;justify-content:center;gap:6px;margin-top:16px}
.carousel-dots span{width:7px;height:7px;border-radius:50%;background:rgba(197,160,40,.3);cursor:pointer;transition:background .2s}
.carousel-dots span.active{background:var(--gold-light)}

.reviews{background:rgba(255,255,255,.7)}
.reviews-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.review-card{background:var(--cream);border-radius:var(--radius);padding:22px;border-left:3px solid var(--gold);}
.review-card .stars{color:var(--gold-light);margin-bottom:8px;font-size:.85rem}
.review-card p{font-size:.9rem;color:var(--text-light);margin-bottom:12px;font-style:italic}
.review-card .author{font-weight:500;font-size:.85rem}

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; max-width: 700px; margin: 0 auto; }
.contact-column { display: flex; flex-direction: column; gap: 20px; }
.contact-column:first-child { justify-self: end; }
.contact-column:last-child { justify-self: start; }
.contact-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.contact-column:first-child .contact-item { justify-items: end; text-align: right; }
.contact-column:last-child .contact-item { justify-items: start; text-align: left; }
.contact-item .icon{
  width:40px;height:40px;
  border-radius:0;
  background:transparent;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.contact-item .icon img{
  width:28px;
  height:28px;
  object-fit:contain;
  display:block;
}
.contact-item strong{display:block;font-size:.9rem;margin-bottom:2px}
.contact-item span,.contact-item a{font-size:.85rem;color:var(--text-light)}
.contact-item a:hover{color:var(--gold-dark)}

footer{background:var(--text);color:#fff;padding:32px 0 18px;text-align:center}
footer .logo-text{
  font-family:'Playfair Display',serif;
  margin-bottom:8px;display:inline-block;font-size:1.15rem;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
footer p{font-size:.82rem;opacity:.7;margin-bottom:12px}
.socials{display:flex;gap:12px;justify-content:center;margin-bottom:14px}
.socials a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;font-size:.8rem;transition:background .2s}
.socials a:hover{background:var(--gold-light)}
.copyright{font-size:.75rem;opacity:.45}

.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:2000;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:.3s;padding:16px}
.modal-overlay.active{opacity:1;visibility:visible}
.modal{background:var(--white);border-radius:14px;padding:28px 22px;max-width:400px;width:100%;position:relative;transform:translateY(16px);transition:.3s;box-shadow:0 16px 48px rgba(0,0,0,.14)}
.modal-overlay.active .modal{transform:none}
.modal h3{font-family:'Playfair Display',serif;font-size:1.35rem;margin-bottom:6px;text-align:center}
.modal p{text-align:center;color:var(--text-light);font-size:.85rem;margin-bottom:18px}
.modal .close{position:absolute;top:12px;right:14px;background:none;border:none;font-size:1.3rem;cursor:pointer;color:var(--text-light);line-height:1}
.form-group{margin-bottom:12px}
.form-group label{display:block;font-size:.8rem;font-weight:500;margin-bottom:4px}
.form-group input,.form-group textarea{width:100%;padding:10px 12px;border:1.5px solid #E5E0D8;border-radius:8px;font-size:.9rem;font-family:inherit;background:var(--cream);transition:border-color .2s}
.form-group input:focus,.form-group textarea:focus{outline:none;border-color:var(--gold-light)}
.form-group textarea{resize:vertical;min-height:80px}
.form-error{color:#c0392b;font-size:.8rem;margin-top:4px;display:none;}
.form-error.show{display:block;}
.order-product-info{background:#f9f5f0;padding:10px 12px;border-radius:8px;margin-bottom:14px;font-size:.9rem;text-align:center;display:none;}
.order-product-info.show{display:block;}
.btn-site-order{width:100%;margin-bottom:12px;display:none;}
.btn-site-order.show{display:inline-flex;}
.order-message{text-align:center;padding:12px;border-radius:8px;margin-bottom:12px;font-size:.9rem;display:none;}
.order-message.success{background:#e8f5e9;color:#2e7d32;display:block;}
.order-message.error{background:#fdecea;color:#c0392b;display:block;}

.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:3000;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:.3s;cursor:pointer}
.lightbox.active{opacity:1;visibility:visible}
.lightbox img{max-width:92vw;max-height:88vh;object-fit:contain;border-radius:6px}
.lightbox .lb-close{position:absolute;top:16px;right:20px;background:none;border:none;color:#fff;font-size:2rem;cursor:pointer;line-height:1;opacity:.8}
.lightbox .lb-close:hover{opacity:1}

.back-top{position:fixed;bottom:22px;right:18px;width:42px;height:42px;border-radius:50%;background:var(--gold-gloss);color:#fff;border:none;box-shadow:0 4px 14px rgba(197,160,40,.4);cursor:pointer;z-index:900;font-size:1.15rem;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:.3s;transform:translateY(10px)}
.back-top.show{opacity:1;visibility:visible;transform:none}
.back-top:hover{filter:brightness(1.08);box-shadow:0 6px 18px rgba(197,160,40,.5)}

.petals{position:fixed;inset:0;pointer-events:none;z-index:5;overflow:hidden}
.petal{position:absolute;top:-20px;width:10px;height:10px;background:radial-gradient(ellipse,rgba(197,160,40,.5),rgba(248,237,232,.2));border-radius:50% 0 50% 50%;animation:fall linear infinite;opacity:.5}
@keyframes fall{0%{transform:translateY(0) rotate(0);opacity:.5}100%{transform:translateY(105vh) rotate(360deg);opacity:0}}

/* No results */
.no-results{
  grid-column:1/-1;
  text-align:center;
  padding:40px 20px;
  color:var(--text-light);
  font-size:1rem;
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
}
.no-results.show{display:flex}

/* Mobile */
@media(max-width:768px){
  .header-site-title { font-size: 1rem; }
  .logo img { height: 36px; }
  .header-inner{height:58px;}
  nav{display:none;position:absolute;top:58px;left:0;right:0;background:rgba(255,255,255,0.98);flex-direction:column;padding:18px;gap:14px;border-bottom:1px solid rgba(197,160,40,.15);box-shadow:var(--shadow);z-index:999}
  nav.open{display:flex}
  .burger{display:flex}
  .hero{min-height:auto;padding:80px 0 36px}
  .about-grid{grid-template-columns:1fr; gap:28px; max-width:100%;}
  .about-img{max-width:290px; width:100%;}
  .about-text{
    text-align:center;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  .about-stats{justify-content:center}

  .about{
    background-image: url('3-mobile.jpg');
    background-size: cover;
    background-position: center;
  }

  .about .container{
    padding-left: 0;
    padding-right: 0;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 280px;
    margin: 0 auto;
  }
  .contact-column {
    justify-self: stretch;
    align-items: stretch;
    gap: 18px;
  }
  .contact-column:first-child,
  .contact-column:last-child {
    justify-self: stretch;
  }
  .contact-column:first-child .contact-item,
  .contact-column:last-child .contact-item {
    justify-items: start;
    text-align: left;
    grid-template-columns: 40px 1fr;
  }
  
  section{padding:40px 0}
  .portfolio-item{flex:0 0 calc(33.333% - 8px)}
}
@media(max-width:520px){
  .portfolio-item{flex:0 0 calc(33.333% - 8px)}
  .about-img{max-width:280px;}
}
@media(min-width:769px) and (max-width:980px){
  .portfolio-item{flex:0 0 calc(25% - 9px)}
  .about-grid{gap:36px}
}

/* Сетка товаров */
.bouquets-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 100%;
}

.bouquet-card{
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: all .25s;
  display: flex;
  flex-direction: column;
}

.bouquet-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.bouquet-image{
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f0e6dc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.bouquet-image:hover{
  opacity: .95;
}

.bouquet-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bouquet-info{
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bouquet-name{
  font-family:'Playfair Display',serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
  min-height: 2.6rem;
  text-align: center;
}

.bouquet-price{
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  text-align: center;
}

.bouquet-card .btn{
  margin-top: auto;
  width: 100%;
  padding: 12px;
}

@media(max-width:1024px){
  .bouquets-grid{
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media(max-width:768px){
  .bouquets-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .bouquet-name{
    font-size: .95rem;
  }
}

@media(max-width:480px){
  .bouquets-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .bouquet-info{
    padding: 16px;
  }
  .bouquet-price{
    font-size: 1.1rem;
  }
}/* ============================================
   WooCommerce + новые элементы
   Подключать после style.css или вставить в конец style.css
   ============================================ */

/* ----- Корзина в шапке ----- */
.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px;
  flex-shrink: 0;
}
.header-cart img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--gold-dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 3px;
}
.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

/* ----- Уведомление "Товар добавлен" ----- */
.cart-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  border: 2px solid transparent;
  background: 
    linear-gradient(#fff, #fff) padding-box,
    var(--gold-gloss) border-box;
  padding: 14px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all .35s ease;
  font-size: 0.95rem;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}
.cart-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.cart-notification a {
  color: var(--gold-dark);
  font-weight: 500;
  text-decoration: underline;
  white-space: nowrap;
  flex-shrink: 0;
}
.cart-notification span {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Мобильная версия уведомления — одна строка, компактно и красиво */
@media (max-width: 480px) {
  .cart-notification {
    bottom: 20px;
    padding: 10px 14px;
    gap: 8px;
    font-size: 0.8rem;
    border-radius: 6px;
    max-width: calc(100vw - 20px);
  }
}
@media (max-width: 360px) {
  .cart-notification {
    padding: 9px 12px;
    gap: 6px;
    font-size: 0.75rem;
  }
}

/* ----- SERVICE: активная категория ----- */
.service-card.active {
  border-color: rgba(197,160,40,.5);
  box-shadow: 0 10px 24px rgba(197,160,40,.15);
  transform: translateY(-4px);
}
.service-card.active .btn {
  background: 
    linear-gradient(#F5E6E0, #F5E6E0) padding-box,
    linear-gradient(135deg, #F5D870 0%, #D4AF37 40%, #B8860B 70%, #E8C547 100%) border-box;
}

/* ----- SERVICES grid центрирование ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 769px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  /* если меньше 4 — центрируем */
  .services-grid:has(.service-card:nth-child(1):nth-last-child(1)),
  .services-grid:has(.service-card:nth-child(1):nth-last-child(2)),
  .services-grid:has(.service-card:nth-child(1):nth-last-child(3)) {
    justify-content: center;
  }
}

/* ----- Single Product ----- */
.single-product-wrap {
  max-width: 1000px;
  margin: 0 auto;
}
.woocommerce-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.woocommerce-breadcrumb a:hover {
  color: var(--gold-dark);
}
.woocommerce-breadcrumb .sep {
  margin: 0 6px;
  opacity: 0.5;
}

.single-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .single-product-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.single-product-gallery .woocommerce-product-gallery {
  position: relative;
}
.single-product-gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}
.single-product-gallery .flex-control-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  list-style: none;
  padding: 0;
}
.single-product-gallery .flex-control-thumbs li {
  flex: 0 0 70px;
}
.single-product-gallery .flex-control-thumbs img {
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .2s;
}
.single-product-gallery .flex-control-thumbs img.flex-active,
.single-product-gallery .flex-control-thumbs img:hover {
  opacity: 1;
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.product-price {
  font-size: 1.6rem;
  font-weight: 600;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.product-short-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Quantity controls */
.quantity-wrap {
  margin-bottom: 16px;
}
.quantity-wrap label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.quantity-controls {
  display: inline-flex;
  align-items: center;
  border: 2px solid transparent;
  background: 
    linear-gradient(#F8EDE8, #F8EDE8) padding-box,
    var(--gold-gloss) border-box;
  border-radius: 0;
  overflow: hidden;
  height: 44px;
}
.qty-btn {
  width: 40px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.qty-btn:hover {
  background: rgba(197,160,40,.1);
}
.quantity-controls input.qty {
  width: 50px;
  height: 44px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  -moz-appearance: textfield;
}
.quantity-controls input.qty::-webkit-outer-spin-button,
.quantity-controls input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.single_add_to_cart_button {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.product-description {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(197,160,40,.2);
}
.product-description h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.product-description p {
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 10px;
}

/* Related products */
.related.products {
  margin-top: 48px;
}
.related.products > h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.related.products .products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
@media (max-width: 768px) {
  .related.products .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- Cart & Checkout pages ----- */
.woocommerce-page-wrap {
  max-width: 900px;
}
.woocommerce-cart-form,
.woocommerce-checkout {
  font-size: 0.95rem;
}
.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.shop_table th,
.shop_table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
}
.shop_table th {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.shop_table .product-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}
.shop_table .product-remove a {
  font-size: 1.4rem;
  color: #c0392b;
  text-decoration: none;
}
.shop_table .product-name a {
  color: var(--text);
  font-weight: 500;
}
.shop_table .product-name a:hover {
  color: var(--gold-dark);
}

.cart-collaterals {
  max-width: 400px;
  margin-left: auto;
}
.cart_totals h2,
.woocommerce-checkout h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.wc-proceed-to-checkout .checkout-button,
.woocommerce-checkout .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  background: 
    linear-gradient(#F8EDE8, #F8EDE8) padding-box,
    var(--gold-gloss) border-box;
  color: var(--gold-dark);
  transition: all .25s;
  font-family: inherit;
  text-decoration: none;
}
.wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-checkout .button:hover {
  background: 
    linear-gradient(#F5E6E0, #F5E6E0) padding-box,
    linear-gradient(135deg, #F5D870 0%, #D4AF37 40%, #B8860B 70%, #E8C547 100%) border-box;
}

/* Формы checkout */
.woocommerce-checkout .form-row {
  margin-bottom: 14px;
}
.woocommerce-checkout label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #E5E0D8;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--cream);
  transition: border-color .2s;
}
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
  outline: none;
  border-color: var(--gold-light);
}

/* Мобильная таблица корзины */
@media (max-width: 768px) {
  .shop_table thead {
    display: none;
  }
  .shop_table tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
  }
  .shop_table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 8px 0;
  }
  .shop_table td::before {
    content: attr(data-title);
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.8rem;
  }
  .shop_table .product-thumbnail {
    justify-content: center;
  }
  .shop_table .product-thumbnail::before {
    display: none;
  }
}

/* Ссылки на карточках товаров */
.bouquet-card a.bouquet-image,
.bouquet-card a .bouquet-name {
  text-decoration: none;
  color: inherit;
}
.bouquet-card a:hover .bouquet-name {
  color: var(--gold-dark);
}

/* ============================================
   Фиксы v1.4 — корзина, hero, added-to-cart
   ============================================ */

/* Header right: корзина + бургер */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 12px;
}

/* Корзина всегда видна */
.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.header-cart img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--gold-dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 3px;
}

/* Мобильная шапка — корзина не прячется */
@media (max-width: 768px) {
  .header-right {
    order: 2;
  }
  .burger {
    display: flex;
  }
  nav {
    /* остаётся как было — выезжает */
  }
  .header-cart {
    display: flex !important;
  }
}

/* Кнопка Каталог с иконкой книжки */
.catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.catalog-btn-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Поиск — на мобилке уже по центру; на ПК над аркой через grid выше */
.about-search {
  padding-left: 0 !important;
}

/* ===== Сообщение "Товар добавлен" / View cart — красиво и по центру ===== */
.bouquet-card .added_to_cart,
.bouquet-info .added_to_cart,
a.added_to_cart.wc-forward {
  display: block !important;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--gold-dark) !important;
  background: 
    linear-gradient(#F8EDE8, #F8EDE8) padding-box,
    var(--gold-gloss) border-box;
  border: 2px solid transparent;
  border-radius: 0;
  text-decoration: none !important;
  transition: all .25s;
  box-sizing: border-box;
}
.bouquet-card .added_to_cart:hover,
a.added_to_cart.wc-forward:hover {
  background: 
    linear-gradient(#F5E6E0, #F5E6E0) padding-box,
    linear-gradient(135deg, #F5D870 0%, #D4AF37 40%, #B8860B 70%, #E8C547 100%) border-box;
  color: var(--gold-dark) !important;
}

/* Прячем стандартный "View cart" текст если он уродливый — заменяем стилем выше */
.woocommerce a.added_to_cart {
  font-family: 'Inter', sans-serif !important;
}

/* ===== SERVICE cards: одинаковая высота ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch; /* все карточки одной высоты */
}
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card p {
  flex: 1 1 auto; /* описание растягивается, кнопка внизу */
  margin-bottom: 14px;
}
.service-card .btn {
  margin-top: auto; /* кнопка всегда внизу */
}

/* no-results: кнопка по центру */
.no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 40px 20px;
}
.no-results.show {
  display: flex;
}
.no-results p {
  margin: 0;
  color: var(--text-light);
  font-size: 1rem;
}


/* Хлебные крошки на странице товара — скрыть */
.woocommerce-breadcrumb,
.single-product-wrap .woocommerce-breadcrumb {
  display: none !important;
}

/* Блок «Товар добавлен» на странице товара */
.single-cart-feedback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 16px;
  text-align: center;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gold-gloss) border-box;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
}
.single-cart-feedback a {
  color: var(--gold-dark);
  font-weight: 500;
  text-decoration: underline;
}

/* Ссылка «Просмотр корзины» после AJAX на single */
.single-product-summary a.added_to_cart,
.single-product-summary .added_to_cart.wc-forward {
  display: block !important;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--gold-dark) !important;
  background:
    linear-gradient(#F8EDE8, #F8EDE8) padding-box,
    var(--gold-gloss) border-box;
  border: 2px solid transparent;
  text-decoration: none !important;
  box-sizing: border-box;
}


/* К ЦВЕТАМ — сетка */
@media (max-width: 1024px) {
  .extra-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .extra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ============================================
   К ЦВЕТАМ — Bottom Sheet в корзине
   Панель выводится в wp_footer → position:fixed работает
   ============================================ */

.cart-upsell-trigger-wrap {
  text-align: center;
  margin: 28px 0 16px;
}

.cart-upsell-trigger {
  min-width: 220px;
  padding: 12px 28px;
}

/* Затемнение */
.upsell-sheet-overlay {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  z-index: 10050 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  pointer-events: none;
}
.upsell-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Панель */
.upsell-sheet {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 18px 18px 0 0;
  z-index: 10060 !important;
  max-height: 85vh;
  transform: translate3d(0, 100%, 0);
  transition: transform .35s cubic-bezier(.32, .72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 30px rgba(0,0,0,.12);
  pointer-events: auto;
  box-sizing: border-box;
}
.upsell-sheet.active {
  transform: translate3d(0, 0, 0);
}

.upsell-sheet-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 4px;
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.upsell-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px 20px 14px;
  border-bottom: 1px solid #f0ebe5;
  flex-shrink: 0;
}
.upsell-sheet-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin: 0 0 2px;
  color: #2c2c2c;
}
.upsell-sheet-header p {
  margin: 0;
  font-size: .85rem;
  color: #5a5a5a;
}
.upsell-sheet-close {
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
}
.upsell-sheet-close:hover { color: #333; }

.upsell-sheet-body {
  overflow-y: auto;
  padding: 16px 16px 32px;
  -webkit-overflow-scrolling: touch;
}

/* Сетка товаров внутри панели */
.upsell-sheet .cart-upsell-grid,
.cart-upsell-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px !important;
  max-width: 100%;
}
@media (min-width: 600px) {
  .upsell-sheet .cart-upsell-grid,
  .cart-upsell-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Десктоп: панель по центру снизу */
@media (min-width: 768px) {
  .upsell-sheet {
    left: 50%;
    right: auto;
    width: 100%;
    max-width: 720px;
    transform: translate3d(-50%, 100%, 0);
  }
  .upsell-sheet.active {
    transform: translate3d(-50%, 0, 0);
  }
}




/* ============================================
   Пустая корзина — свой дизайн
   Вставь этот блок в КОНЕЦ style.css
   ============================================ */

.empty-cart-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px 60px;
  min-height: 50vh;
}

.empty-cart-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 36px 28px 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gold-gloss) border-box;
}

.empty-cart-illustration {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
}

.sad-cart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.empty-cart-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.3;
}

.empty-cart-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-light);
  margin: 0 0 28px;
}

.empty-cart-btn {
  display: inline-flex;
  min-width: 260px;
  padding: 14px 24px;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .empty-cart-card {
    padding: 28px 18px 32px;
  }
  .empty-cart-illustration {
    width: 130px;
    height: 130px;
  }
  .empty-cart-btn {
    min-width: 100%;
  }
}

/* Скрыть стандартный текст Woo, если вдруг останется */
.woocommerce-info.cart-empty,
.cart-empty .return-to-shop {
  display: none !important;
}


/* ============================================
   SEO-блоки (Рязань)
   ============================================ */
.footer-seo {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-seo p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.archive-seo-text {
  max-width: 760px;
  margin: 6px auto 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-light, #777);
  text-align: center;
}
