@font-face{
  font-family:'Moyenage';
  src:url('../fonts/Moyenage.woff') format('woff'),
      url('../fonts/Moyenage.ttf') format('truetype');
  font-weight:normal;
  font-style:normal;
  font-display:swap;
}

@property --rotate{
  syntax:"<angle>";
  initial-value:132deg;
  inherits:false;
}

:root{
  --header-h:64px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  height:100%;
  overflow:hidden;
}

body{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;
  color: black;
  line-height:1.6;
  height:100vh;
  overflow:hidden;
  position:relative;
}

/* затемнение поверх фона */
body::before{
  content:'';
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background-color:rgba(0,0,0,1);
  z-index:0;
  pointer-events:none;
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:calc(var(--header-h) + 20px) 20px 20px;
  height:100vh;
  overflow-y:auto;
  overflow-x:hidden;
  position:relative;
  z-index:1;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

.container::-webkit-scrollbar{
  display:none;
  width:0;
  height:0;
}

/* ХЕДЕР fixed + самый верхний */
.header{
  background-color:rgba(0,0,0,0.95);
  backdrop-filter:blur(10px);
  padding:15px 20px;
  border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,0.5);
  position:fixed;
  top:0  !important;
  left:0;
  right:0;
  height:var(--header-h);
  z-index:99999;
  margin-bottom:0;
}

.nav{
  display:flex;
  align-items:center;
  gap:30px;
  height:100%;
  min-height:24px;
}

.nav-link{
  text-decoration:none;
  color:#ffffff;
  font-size:16px;
  transition:all 0.3s ease;
  position:relative;
  font-family:'Moyenage',serif;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  height:100%;
}

.nav-link:hover{
  color:#ffffff;
  text-shadow:0 0 10px rgba(255,255,255,0.6);
  transform:scale(1.05);
}

.nav-link.active{
  color:#ffffff;
  font-weight:600;
  text-shadow:0 0 15px rgba(255,255,255,0.8);
}

.nav-link::after{
  content:'';
  position:absolute;
  bottom:-5px;
  left:0;
  width:0;
  height:2px;
  background:linear-gradient(90deg,#ffffff,#f5f5f5,#e0e0e0);
  transition:width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after{
  width:100%;
}

.nav-link-pek{
  color:#ffffff;
  transition:all 0.3s ease;
}

.nav-link-pek:hover{
  color:#ff6b9d;
  text-shadow:0 0 10px rgba(255,107,157,0.6);
  transform:scale(1.05);
}

.nav-link-pek:active,
.nav-link-pek.active{
  color:#ff6b9d;
  text-shadow:0 0 15px rgba(255,107,157,0.8);
}

.nav-link-pek::after{
  content:'';
  position:absolute;
  bottom:-5px;
  left:0;
  width:0;
  height:2px;
  background:linear-gradient(90deg,#ff6b9d,#ff8fab,#ffb3c1);
  transition:width 0.3s ease;
}

.nav-link-pek:hover::after,
.nav-link-pek:active::after,
.nav-link-pek.active::after{
  width:100%;
}

.nav-link-filipoker{
  color:#ffffff;
  transition:all 0.3s ease;
}

.nav-link-filipoker:hover{
  color:#4caf50;
  text-shadow:0 0 10px rgba(76,175,80,0.6);
  transform:scale(1.05);
}

.nav-link-filipoker:active,
.nav-link-filipoker.active{
  color:#4caf50;
  text-shadow:0 0 15px rgba(76,175,80,0.8);
}

.nav-link-filipoker::after{
  content:'';
  position:absolute;
  bottom:-5px;
  left:0;
  width:0;
  height:2px;
  background:linear-gradient(90deg,#4caf50,#66bb6a,#81c784);
  transition:width 0.3s ease;
}

.nav-link-filipoker:hover::after,
.nav-link-filipoker:active::after,
.nav-link-filipoker.active::after{
  width:100%;
}

.nav-icon{
  margin-left:auto;
  cursor:pointer;
  color:#ffffff;
  transition:all 0.3s ease;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  padding:0;
}

.nav-icon:hover{
  color:#ffffff;
  filter:drop-shadow(0 0 10px rgba(255,255,255,0.6));
  transform:scale(1.05);
}

.nav-icon:active,
.nav-icon.active{
  color:#ffffff;
  filter:drop-shadow(0 0 15px rgba(255,255,255,0.8));
}

.nav-icon::after{
  content:'';
  position:absolute;
  bottom:-5px;
  left:50%;
  transform:translateX(-50%);
  width:0;
  height:2px;
  background:linear-gradient(90deg,#ffffff,#f5f5f5,#e0e0e0);
  transition:width 0.3s ease;
  border-radius:2px;
}

.nav-icon:hover::after,
.nav-icon:active::after,
.nav-icon.active::after{
  width:24px;
}

/* ФОН: fixed, не скроллится (важно!) */
.page-background{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  z-index:-1;
  overflow:hidden;
  pointer-events:none;
}

.page-background img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:top;
}

/* (если используешь header-background) */
.header-background{
  position:fixed;
  top:400px;
  left:0;
  width:100%;
  height:calc(100vh - 400px);
  min-height:720px;
  z-index:-1;
  overflow:hidden;
  pointer-events:none;
}

.header-background img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* БАННЕР СВЕРХУ: fixed под хедером */
.header-banner-section{
  width:100%;
  height:200px;
  position:fixed;
  top:var(--header-h);
  left:0;
  right:0;
  z-index:2;
  pointer-events:none;
}

.header-banner-section > *{
  pointer-events:auto;
}

.side-block{
  width:200px;
  height:297px;
  background-color:#000000;
  position:fixed;
  top:var(--header-h);
  z-index:2;
}

.side-block-left{
  left:0;
}

.side-block-right{
  right:0;
}

.center-image{
  height:297px;
  overflow:hidden;
  position:fixed;
  top:var(--header-h);
  left:200px;
  right:200px;
  z-index:2;
}

.center-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* КОНТЕНТ ПОВЕРХ */
.main-content{
  max-width:100%;
  position:relative;
  z-index:3;
  margin-top:257px;
}

.left-column{
  display:flex;
  flex-direction:column;
  gap:20px;
  max-width:100%;
  width:100%;
  perspective:1000px;
}

.product-card.product-1,
.product-card.product-2{
  width:100%;
  margin:0;
}

/* banners */
.banner{
  width:100%;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,0.2);
  background-color:rgba(255,255,255,0.95);
  backdrop-filter:blur(10px);
  position:relative;
  z-index:2;
}

.banner img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

.banner-1{
  height:300px;
}

.banner-1 img{
  height:100%;
  object-fit:cover;
}

.banner-2{
  height:250px;
}

.banner-2 img{
  height:100%;
  object-fit:cover;
}

/* categories */
.categories-wrapper{
  width:100%;
  background-color:rgba(0,0,0,0);
  border-radius:10px;
  padding:20px;
  margin:20px 0;
  position:relative;
  z-index:2;
  box-shadow:none;
}

.categories{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  position:relative;
  z-index:3;
  justify-items:center;
}

.category-card{
  background-color:transparent;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,0.2);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
  cursor:pointer;
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:400px;
}

.category-card-left{
  overflow:visible;
  padding:3px 3px 0 3px;
  background-color:rgba(0,0,0,0.95);
  border-radius:10px;
}

.category-card-left > *{
  overflow:hidden;
  border-radius:7px;
}

.category-card-left .category-image{
  overflow:hidden;
  border-radius:12px;
}

.category-card-left::before{
  content:'';
  width:calc(100% + 6px);
  height:calc(100% + 6px);
  border-radius:15px;
  background-image:linear-gradient(var(--rotate),#ff6b9d,#ff8fab,#ffb3c1,#ff6b9d);
  position:absolute;
  z-index:-1;
  top:-3px;
  left:-3px;
  animation:spin 2.5s linear infinite;
  opacity:1;
  transition:all 0.3s ease;
  filter:brightness(1);
}

.category-card-left::after{
  position:absolute;
  content:'';
  top:0;
  left:0;
  right:0;
  bottom:0;
  border-radius:15px;
  z-index:-1;
  background:rgba(0,0,0,0.8);
  opacity:1;
  transition:opacity 0.3s ease;
}

.category-card-left:hover::before{
  opacity:1;
  filter:brightness(1.5);
  animation:spin 1s linear infinite, pulse-glow 2s ease-in-out infinite;
  width:calc(100% + 10px);
  height:calc(100% + 10px);
  top:-5px;
  left:-5px;
  border-radius:15px;
}

.category-card-left:hover::after{
  opacity:0.9;
  background:rgba(0,0,0,0.7);
}

.category-card-left:hover{
  transform:translateY(-8px) scale(1.02);
  box-shadow:0 10px 30px rgba(255,107,157,0.4);
}

.category-card-left:hover .category-image img{
  transform:scale(1.1);
  filter:brightness(1.2);
}

.category-card-left:hover .category-title{
  text-shadow:0 0 10px rgba(255,255,255,0.5);
  transform:scale(1.02);
  transform-origin:bottom center;
}

@keyframes pulse-glow{
  0%,100%{
    filter:brightness(1.5) drop-shadow(0 0 20px rgba(255,107,157,0.8));
  }
  50%{
    filter:brightness(1.8) drop-shadow(0 0 30px rgba(255,107,157,1));
  }
}

@keyframes pulse-glow-green{
  0%,100%{
    filter:brightness(1.5) drop-shadow(0 0 20px rgba(76,175,80,0.8));
  }
  50%{
    filter:brightness(1.8) drop-shadow(0 0 30px rgba(76,175,80,1));
  }
}

.category-card-right{
  overflow:visible;
  padding:3px 3px 0 3px;
  background-color:rgba(0,0,0,0.95);
  border-radius:10px;
}

.category-card-right > *{
  overflow:hidden;
  border-radius:15px;
}

.category-card-right .category-image{
  overflow:hidden;
  border-radius:15px;
}

.category-card-right::before{
  content:'';
  width:calc(100% + 6px);
  height:calc(100% + 6px);
  border-radius:15px;
  background-image:linear-gradient(var(--rotate),#4caf50,#66bb6a,#81c784,#4caf50);
  position:absolute;
  z-index:-1;
  top:-3px;
  left:-3px;
  animation:spin 2.5s linear infinite;
  opacity:1;
  transition:all 0.3s ease;
  filter:brightness(1);
}

.category-card-right::after{
  position:absolute;
  content:'';
  top:0;
  left:0;
  right:0;
  bottom:0;
  border-radius:15px;
  z-index:-1;
  background:rgba(0,0,0,0.8);
  opacity:1;
  transition:opacity 0.3s ease;
}

.category-card-right:hover::before{
  opacity:1;
  filter:brightness(1.5) drop-shadow(0 0 20px rgba(76,175,80,0.8));
  animation:spin 1s linear infinite, pulse-glow-green 2s ease-in-out infinite;
  width:calc(100% + 10px);
  height:calc(100% + 10px);
  top:-5px;
  left:-5px;
}

.category-card-right:hover::after{
  opacity:0.9;
  background:rgba(0,0,0,0.7);
}

.category-card-right:hover{
  transform:translateY(-8px) scale(1.02);
  box-shadow:0 10px 30px rgba(76,175,80,0.4);
}

.category-card-right:hover .category-image img{
  transform:scale(1.1);
  filter:brightness(1.2);
}

.category-card-right:hover .category-title{
  text-shadow:0 0 10px rgba(255,255,255,0.5);
  transform:scale(1.02);
  transform-origin:bottom center;
}

.category-card:hover{
  transform:translateY(-5px);
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

@keyframes spin{
  0%{--rotate:0deg;}
  100%{--rotate:360deg;}
}

.category-image{
  width:100%;
  aspect-ratio:1;
  overflow:hidden;
  background-color:#f0f0f0;
  position:relative;
  display:flex;
  flex-direction:column;
}

.category-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform 0.3s ease;
  position:absolute;
  top:0;
  left:0;
  border-radius:7px 7px 0 0;
}

.category-card:hover .category-image img{
  transform:scale(1.05);
}

.category-title{
  padding:15px;
  text-align:center;
  font-size:22px;
  font-weight:700;
  color:#ffffff;
  font-family:'Moyenage',serif;
  letter-spacing:2px;
  text-transform:uppercase;
  text-shadow:1px 1px 2px rgba(0,0,0,0.5);
  background-color:rgba(0,0,0,0.8);
  margin:0;
  width:100%;
  box-sizing:border-box;
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  z-index:2;
  transform-origin:bottom center;
  transition:transform 0.3s ease;
  border-radius:0 0 7px 7px;
}

/* products (твоя верстка) */
.product-card{
  background-color:#ffffff;
  border-radius:0;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
  transition:all 100ms ease-out;
  cursor:pointer;
  width:100%;
  max-width:440px;
  height:520px;
  position:relative;
  z-index:2;
  transform-style:preserve-3d;
  margin:0 auto;
  align-self:center;
  box-sizing:border-box;
}

.product-card:hover{
  height:530px;
  margin:0 auto;
  box-shadow:0px 13px 21px -5px rgba(0,0,0,0.3);
  transition:all 100ms ease-out;
  z-index:10;
}

@media (max-width:850px){
  .product-card{height:500px;}
  .product-card:hover{height:510px;}
}

@media (max-width:768px){
  .product-card{height:480px;}
  .product-card:hover{height:490px;}
}

@media (max-width:690px){
  .product-card{height:460px;}
  .product-card:hover{height:470px;}
}

@media (max-width:480px){
  .product-card{height:420px;}
  .product-card:hover{height:430px;}
}

@media (max-width:410px){
  .product-card{height:360px;}
  .product-card:hover{height:370px;}
}

.product-image{
  width:100%;
  height:calc(100% - 100px);
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  position:absolute;
  top:0;
  left:0;
  transition:all 200ms ease-out;
}

.product-image::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.7);
  opacity:0;
  transition:all 200ms ease-out;
  pointer-events:none;
  z-index:1;
}

.product-card:hover .product-image::before{
  opacity:1;
  transition:all 200ms ease-out;
}

.product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.product-card.product-2 .product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.product-placeholder{
  font-size:80px;
  opacity:0.7;
  transition:transform 0.3s ease;
}

.product-card:hover .product-placeholder{
  transform:scale(1.1);
}

.product-info{
  padding:27px 35px 35px;
  text-align:left;
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:auto;
  z-index:2;
  background:#ffffff;
  box-sizing:border-box;
}

.product-price{
  font-size:22px;
  font-weight:600;
  font-family:'Moyenage',serif;
  color:#393c45;
  margin:0;
  float:right;
  letter-spacing:0.5px;
}

.product-card::after{
  content:'Add to Cart';
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  border:2px solid #ffffff;
  color:#ffffff;
  font-size:19px;
  text-align:center;
  text-transform:uppercase;
  font-weight:700;
  padding:10px 0;
  width:172px;
  opacity:0;
  transition:all 200ms ease-out;
  pointer-events:none;
  z-index:3;
  font-family:'Moyenage',serif;
  letter-spacing:0.5px;
  text-shadow:0 0 10px rgba(255,255,255,0.6);
}

.product-card:hover::after{
  opacity:1;
  width:152px;
  font-size:15px;
  transform:translate(-50%,-50%);
  transition:all 200ms ease-out;
  pointer-events:auto;
  cursor:pointer;
  text-shadow:0 0 15px rgba(255,255,255,0.8);
}

.product-card.product-1:hover::after{
  text-shadow:0 0 20px rgba(76,175,80,1),0 0 30px rgba(76,175,80,0.6);
}

.product-card.product-2:hover::after{
  text-shadow:0 0 20px rgba(255,107,157,1),0 0 30px rgba(255,107,157,0.6);
}

/* responsive */
@media (max-width:768px){
  .categories{grid-template-columns:1fr;}
  .nav{flex-wrap:wrap;gap:15px;}
  .banner-1{height:200px;}
  .banner-2{height:180px;}
  .side-block{display:none;}
  .center-image{left:0;right:0;width:100%;}
  .product-card{height:500px;}
  .product-card:hover{height:510px;}
}

@media (max-width:700px){
  .main-content{margin-top:220px;}
}

@media (max-width:400px){
  .main-content{margin-top:200px;}
}

@media (max-width:350px){
  .main-content{margin-top:160px;}
}

@media (max-width:480px){
  .container{padding:calc(var(--header-h) + 10px) 10px 10px;}
  .header{padding:10px 15px;}
  .nav-link{font-size:14px;}
  .side-block{display:none;}
  .center-image{left:0;right:0;width:100%;}
  .product-card{height:600px;}
  .product-card:hover{height:610px;}
}

@media (max-width:1600px){
  .side-block{display:none;}
  .center-image{left:0;right:0;width:100%;}
}

@media (max-width:1000px){
  .center-image{height:auto;}
  .center-image img{
    object-fit:contain;
    width:100%;
    height:auto;
  }
}

@media (max-width:410px){
  .product-card{height:300px;}
  .product-card:hover{height:310px;}
  .product-info{padding:15px 20px 20px;}
  .product-price{font-size:18px;}
}

/* WP admin-bar (когда ты залогинен) */
body.admin-bar .header{
  top:32px;
}
body.admin-bar .container{
  padding-top:calc(var(--header-h) + 20px + 32px);
}
@media (max-width:782px){
  body.admin-bar .header{
    top:46px;
  }
  body.admin-bar .container{
    padding-top:calc(var(--header-h) + 20px + 46px);
  }
}

.page-background { 
top: var(--header-h); 
height: calc(100vh - var(--header-h)); 
}

body.admin-bar .page-background { 
top: calc(var(--header-h) + 32px); 
height: calc(100vh - var(--header-h) - 32px); 
}

@media (max-width: 782px){ 
body.admin-bar .page-background { 
top: calc(var(--header-h) + 46px); 
height: calc(100vh - var(--header-h) - 46px); } 
}
