﻿/* FlowerLine public header */

html{
  overflow-y:auto;
  scrollbar-gutter:stable;
  margin:0 !important;
  padding:0 !important;
}

html:has(body.auth-page),
html:has(body.admin-auth){
  overflow-x:hidden;
  overflow-y:scroll !important;
  scrollbar-gutter:stable;
  background:linear-gradient(135deg, #f4e9df 0%, #f8f1ea 48%, #ead8cb 100%);
}

body{margin:0 !important;padding-top:0 !important}

.site-header,
.site-header *{
  box-sizing:border-box;
}

.site-header{
  position:sticky;
  top:0;
  width:100%;
  z-index:9000;
  background:#faf7f2;
  line-height:1.35;
  margin:0;
  padding-top:0;
  outline:0;
  border:0;
  box-shadow:none;
  isolation:isolate;
  overflow:hidden;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  transition:transform .46s cubic-bezier(.22,.8,.22,1), opacity .36s ease, box-shadow .36s ease;
  will-change:transform;
  opacity:1;
}

.site-header--inner{
  margin-top:0;
  padding-top:0;
}

.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:#faf7f2;
  pointer-events:none;
}

:root{
  --site-header-h:154px;
}

body:not(.admin){
  padding-top:0;
}

.header-info{
  height:48px;
  min-height:48px;
  background:linear-gradient(180deg, #f0e8dd 0%, #f7f1e9 100%);
  outline:0;
  border:0;
  box-shadow:none;
}

.header-info__inner{
  width:min(1180px, calc(100% - 48px));
  height:48px;
  min-height:48px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:24px;
  color:#85746f;
  font-family:Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size:14px;
  font-weight:500;
  line-height:1.2;
}

.header-info__item{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:inherit;
  text-decoration:none;
  border:0;
  background:transparent;
  padding:0;
  font:inherit;
  cursor:pointer;
}

.header-info__copy{
  border-radius:999px;
  transition:color .18s ease, background-color .18s ease, transform .18s ease;
}

.header-info__copy:hover{
  color:#715f5a;
}

.header-info__copy:active{
  transform:translateY(1px);
}

.header-info__copy:focus-visible{
  outline:2px solid rgba(202,121,136,.34);
  outline-offset:4px;
}

.header-info__item svg{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.45;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:0 0 auto;
}

.header-info__item circle:last-child{
  fill:currentColor;
  stroke:none;
}

.header-info__phone{
  justify-self:end;
}

.header-main{
  background:#fbf8f3;
  outline:0;
  border:0;
  box-shadow:none;
}

#filters,
#catalog{
  scroll-margin-top:172px;
}

.header-main__inner{
  width:min(1180px, calc(100% - 48px));
  height:106px;
  min-height:106px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr;
  grid-template-areas:"brand";
  align-items:center;
  justify-items:center;
  gap:26px;
  position:relative;
}

.site-header--inner .header-main__inner{
  grid-template-columns:1fr;
  grid-template-areas:"brand";
}

.site-header--inner .header-brand{
  justify-self:center;
}

.site-header--inner .header-actions{
  justify-self:end;
}

.header-main__left{
  grid-area:left;
  position:absolute;
  left:0;
  top:calc(50% - 8px);
  display:flex;
  align-items:center;
  justify-content:flex-start;
  transform:translateY(-50%);
}

.header-catalog,
.header-tool{
  border:1px solid rgba(155,131,120,.28);
  background:rgba(255,255,255,.34);
  color:#806f69;
  text-decoration:none;
  -webkit-backdrop-filter:blur(8px) saturate(115%);
  backdrop-filter:blur(8px) saturate(115%);
  box-shadow:none;
  transition:transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.header-catalog:hover,
.header-tool:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.46);
  border-color:rgba(155,131,120,.42);
  box-shadow:0 8px 18px rgba(95,75,65,.055);
}

.header-catalog:active,
.header-tool:active{
  transform:translateY(0);
}

.header-catalog{
  height:42px;
  min-width:124px;
  padding:0 17px;
  border-radius:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  font-family:"Playfair Display", Georgia, serif;
  font-size:16px;
  font-weight:600;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(145deg, rgba(255,253,250,.74), rgba(238,226,214,.70)),
    repeating-linear-gradient(135deg, rgba(126,105,100,.035) 0 1px, transparent 1px 5px);
  border-color:rgba(126,105,100,.12);
  box-shadow:none;
}

.header-catalog::before{
  display:none;
}

.header-catalog > *{
  position:relative;
  z-index:1;
}

.header-catalog:hover{
  background:
    linear-gradient(145deg, rgba(255,253,250,.82), rgba(239,227,216,.78)),
    repeating-linear-gradient(135deg, rgba(126,105,100,.04) 0 1px, transparent 1px 5px);
  border-color:rgba(126,105,100,.16);
  box-shadow:none;
}

.header-catalog svg,
.header-tool svg{
  fill:none;
  stroke:currentColor;
  stroke-width:1.45;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}

.header-catalog svg{
  width:20px;
  height:20px;
}

.header-brand{
  grid-area:brand;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#7d6b66;
  text-decoration:none;
  min-width:0;
}

.header-brand__row{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:30px;
}

.header-brand__line{
  flex:0 0 86px;
  width:86px;
  max-width:none;
  height:1px;
  background:rgba(126,105,100,.18);
}

.header-brand__name{
  font-family:"Playfair Display", Georgia, serif;
  font-size:42px;
  font-weight:500;
  line-height:.98;
  letter-spacing:.4px;
  white-space:nowrap;
}

.header-brand__tag{
  font-family:Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size:10px;
  font-weight:600;
  line-height:1;
  letter-spacing:3px;
  color:#9a8983;
  white-space:nowrap;
}

.header-actions{
  grid-area:actions;
  position:absolute;
  right:0;
  top:calc(50% - 8px);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  transform:translateY(-50%);
}

.header-actions__socials{
  display:flex;
  align-items:center;
  gap:8px;
}

.header-actions__divider{
  width:1px;
  height:36px;
  margin:0 10px;
  background:rgba(126,105,100,.12);
}

.header-tool{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:38px;
  line-height:1;
}

.header-tool--wide{
  width:60px;
  border-radius:13px;
}

.header-tool--round{
  width:42px;
  border-radius:50%;
}

.header-support-link{
  display:none;
}

.header-tool svg{
  width:22px;
  height:22px;
}

.header-tool svg circle:not([r="1.25"]),
.header-tool svg rect{
  fill:none;
  stroke:currentColor;
}

.header-tool svg circle[r="1.25"],
.header-tool svg circle[r="0.95"],
.header-tool__fill{
  fill:currentColor;
  stroke:none;
}

.header-cart-count{
  position:absolute;
  right:-5px;
  top:-8px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ca7988;
  border:0;
  box-shadow:none;
  color:#fff;
  font-family:Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size:10px;
  font-weight:700;
  line-height:1;
  box-shadow:0 7px 14px rgba(160,87,99,.24);
}

.header-cart-count.is-pop{
  animation:headerBadgePop .35s ease;
}

.header-copy-toast{
  position:fixed;
  left:50%;
  top:14px;
  z-index:2500;
  transform:translate(-50%, -8px);
  opacity:0;
  pointer-events:none;
  min-height:36px;
  padding:0 16px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(199,181,170,.62);
  background:rgba(250,247,242,.86);
  color:#75635e;
  -webkit-backdrop-filter:blur(16px) saturate(145%);
  backdrop-filter:blur(16px) saturate(145%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.78), 0 12px 30px rgba(95,75,65,.12);
  font-family:Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size:13px;
  font-weight:600;
  transition:opacity .2s ease, transform .2s ease;
}

.header-copy-toast.is-visible{
  opacity:1;
  transform:translate(-50%, 0);
}

@keyframes headerBadgePop{
  0%{ transform:scale(.82); }
  55%{ transform:scale(1.16); }
  100%{ transform:scale(1); }
}

.site-header.is-hidden{
  transform:translate3d(0,calc(-100% - 8px),0);
  opacity:.02;
  box-shadow:none;
  pointer-events:none;
}

@media (max-width:1120px){
  .header-main__inner{
    grid-template-columns:1fr;
    gap:18px;
  }

  .header-actions__socials{
    gap:6px;
  }

  .header-tool--wide{
    width:48px;
  }

  .header-actions__divider{
    margin:0 4px;
  }

  .header-brand__name{
    font-size:38px;
  }
}

@media (max-width:900px){
  :root{
    --site-header-h:0px;
  }

  .header-info{
    height:38px;
    min-height:38px;
  }

  #filters,
  #catalog{
    scroll-margin-top:190px;
  }

  .header-info__inner{
    width:min(720px, calc(100% - 28px));
    height:38px;
    min-height:38px;
    grid-template-columns:max-content max-content;
    gap:14px;
    justify-items:center;
    justify-content:center;
    padding:0;
    font-size:12px;
    overflow:hidden;
  }

  .header-info__phone{
    justify-self:center;
  }

  .header-main__inner{
    width:min(720px, calc(100% - 28px));
    height:auto;
    min-height:auto;
    padding:14px 0 13px;
    grid-template-columns:1fr;
    grid-template-areas:
      "brand"
      "actions";
    gap:14px;
  }

  .header-main__left,
  .header-actions{
    position:static;
    justify-content:center;
    transform:none;
  }

  .header-main__left{
    display:none;
  }

  .header-brand{
    order:-1;
  }

  .header-brand__name{
    font-size:35px;
  }

  .header-brand__tag{
    font-size:9px;
    letter-spacing:2.4px;
  }

  .header-brand__line{
    flex-basis:58px;
    width:58px;
  }
}

@media (max-width:560px){
  :root{
    --site-header-h:0px;
  }

  #filters,
  #catalog{
    scroll-margin-top:178px;
  }

  .header-info__item svg{
    width:16px;
    height:16px;
  }

  .header-info__inner{
    width:calc(100% - 18px);
    gap:10px;
    font-size:11px;
  }

  .header-info__item{
    gap:5px;
    white-space:nowrap;
    min-width:0;
  }

  .header-main__inner{
    width:calc(100% - 20px);
    padding:12px 0 11px;
    gap:12px;
  }

  .header-brand__row{
    gap:12px;
  }

  .header-brand__line{
    flex-basis:34px;
    width:34px;
  }

  .header-brand__name{
    font-size:30px;
  }

  .header-brand__tag{
    font-size:9px;
    letter-spacing:1.5px;
  }

  .header-catalog{
    height:42px;
    min-width:122px;
    padding:0 16px;
    font-size:15px;
  }

  .header-actions{
    gap:7px;
  }

  .header-support-link{
    display:inline-flex;
  }

  .header-actions__socials{
    gap:6px;
  }

  .header-actions__divider{
    height:30px;
    margin:0 2px;
  }

  .header-tool{
    height:34px;
  }

  .header-tool--wide{
    width:46px;
  }

  .header-tool--round{
    width:38px;
  }

  .header-tool svg{
    width:20px;
    height:20px;
  }
}

body.account-page .header-main__left{
  display:none !important;
}

.site-header--inner .header-main__inner{
  grid-template-columns:1fr !important;
  grid-template-areas:"brand" !important;
}

.site-header--inner .header-brand{
  justify-self:center !important;
}

.site-header--inner .header-actions{
  justify-self:end !important;
}

@media (max-width:900px){
  .site-header--inner .header-main__inner{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "brand"
      "actions" !important;
  }

  .site-header--inner .header-actions{
    justify-self:center !important;
  }
}

@media (prefers-reduced-motion:reduce){
  .site-header,
  .header-catalog,
  .header-tool,
  .header-cart-count{
    transition:none;
    animation:none;
  }
}
