
/* New comic/woodcut style + parallax */
:root{
  --accent:#ff0000;
  --bg:#0c0c0b;
  --muted:#d49999;
  --card:#fff;
  --text-color: #eee9e9;
  --soya-ramem: #A66E4B;
  --salt-ramem: #FF6B35;
  --miso-ramem: #E8C547;
  --pork-ramem: #FF4D6D;
}
@font-face {
  font-family: 'Hanko';
  src: url('../fonts/HANKO.otf') format('opentype');

}
@font-face {
  font-family: 'Seibi Minato';
  src: url('../fonts/Seibi/Minato.otf') format('opentype');

}


body {
  margin: 0;
  font-family: sans-serif;

 background: var(--bg);
  /* background-image: url('./img/sakura-bg.png'); */
  background-size: cover;       /* Заполняет весь экран */
  background-position: center;  /* Центр изображения */
  background-repeat: no-repeat;
  background-attachment: fixed; /* Фон остаётся при скролле */
}

*{box-sizing:border-box}
html,body{height:100%; margin:0; 
  color: azure;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
/* body{background:var(--bg); color:#2b2b2b; color: azure;} */

/* parallax container spans full page behind content */
#parallax-wrap{position:fixed; inset:0; overflow:hidden; z-index:0; pointer-events:none;}
.parallax-layer{position:absolute; left:50%; transform:translateX(-50%); will-change:transform;}
.page-wrapper{
  height: 100vh;
}
/* ensure layers cover wide area */
.layer-sky{top:-60px; width:1400px; height:420px;}
.layer-sun{top:20px; width:1200px; height:400px;}
.layer-mountain{top:80px; width:1600px; height:420px;}
.layer-waves{bottom:-40px; width:1600px; height:400px;}

/* canvas for sakura */
#sakura-canvas{position:fixed; inset:0; z-index:999; pointer-events:none;}
.first-srean{
  height: 100vh;
}
/* main content above background */
.site-root{position:relative; z-index:1000;}

/* header, footer and cards updated style */
.site-header{display:flex;
   align-items:center; 
   justify-content:space-between; 
   color: azure;
   padding:4px 20px; 
   background:linear-gradient(180deg, rgba(80, 66, 66, 0.9), rgba(122, 114, 114, 0.8)); position:sticky; top:0; backdrop-filter: blur(4px); z-index:1010; border-bottom:1px solid rgba(0,0,0,0.04)}
.brand{
  width: 70px;
  
}
.brand:hover{
  scale: 1.1;
}
.site-header a img{
  width: 100%;
  border-radius: 8px;
}
.site-header nav a{
  margin-left:14px;
  text-decoration:none; 
  color: var(--card);
  background-color: var(--bg);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
}
.site-header nav a:hover{
  text-decoration: underline;
  color: var(--accent);
}
.site-header ul li {
  list-style: none;
  display: inline-flex;
}
.site-header ul li a:hover{
  scale: 1.1;
}
.site-header ul li a img{
  width: 35px;
}
/* hero uses transparent card to show parallax behind */
.container{max-width:1100px; margin:28px auto; padding:0 16px; position:relative}
.hero{ background-color: rgba(34, 33, 33, 0.9); padding:44px; border-radius:14px; display:grid; gap:12px; box-shadow: 0 8px 30px rgba(11,17,25,0.06)}
.hero h1{font-size:2.2rem; margin:0; color:#2b2b2b}
.btn{background:var(--accent); color:#fff; padding:10px 14px; border-radius:12px; border:0; cursor:pointer; text-decoration:none; display:inline-block}
.hero img{
  width: 100%;
}
.hero .hero-actions .btn{
  border: 1px solid var(--card);
  margin-right: 20px;
}
.hero .hero-actions .btn:hover{
  background-color: #fff;
  color: var(--accent);
  transition: all 0.8s ease;
  scale: 1.1;
}
.features {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 100%;
}

.features li {
  background: linear-gradient(135deg, #2e2b2b, #180101);
  border: 2px solid #faf9f5;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 3px 3px #faf8f4;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
  color: var(--card);
}

.features li:hover {
  transform: translateY(-4px);
  box-shadow: 5px 5px #630202;
}

/* Сетка для карточек внутри категории */
#menu > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  padding: 0 16px;
}

/* Карточка товара */

/* Общий стиль карточки */
.card {
  background-color: rgba(34, 33, 33, 0.9);
  border-radius: 16px;
  padding: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(194, 131, 131, 0.15);
  transform: translateY(30px);
  opacity: 0;
  animation: cardFadeIn 0.8s ease forwards;
  transition: all 0.8s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover{
  scale: 1.1;
}

.card:hover .card-desc{
  /* display: block; */
  transition: all 0.8s ease;
}

/* Анимация появления всей карточки */
@keyframes cardFadeIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Эффект появления изображения */
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  animation: imgAppear 2s ease forwards;
  animation-delay: 0.9s;
}

@keyframes imgAppear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Тело карточки — появление снизу */
.card-body {
  padding: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.9s ease forwards;
  animation-delay: 1s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.card-desc {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 10px;
  display: none;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price {
  font-weight: bold;
  color: var(--card);
  font-size: 16px;
}

/* Кнопки */
.btn {
  padding: 6px 12px;
  font-size: 13px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn.details-btn {
  background-color: var(--muted);
}

.btn.details-btn:hover {
  background-color: #ddd;
  transform: translateY(-2px);
}

.btn.add-btn {
  background-color: var(--accent);
  color: #fff;
}

.btn.add-btn:hover {
  background-color: #ff4b10;
  transform: translateY(-2px);
}

.menu-category-item {
  text-align: center;
  color: var(--accent);
  font-family: 'Seibi Minato';
}
/* modal */
.modal-content{
  background-color: #2b2b2b;
  padding: 8px;
}

/* product grid */
.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px}
.card-img{width:100%; height:160px; object-fit:cover; border-radius:8px; }

/* modal */
.modal{position:fixed; inset:0; display:grid; place-items:center; background:rgba(2,6,23,0.4); z-index:2000}
.modal.hidden{display:none}
h2{
  text-align: center;
}
/* small adjustments */
.site-footer{text-align:center; padding:18px; color:var(--text-color); margin-top:36px; z-index:1010}
/* responsive tweaks */
@media (max-width:700px){
  .hero{padding:18px}
  .card-img{height:140px}
  .brand{font-size:1rem}
}


  .ramen {
    font-family: 'Train One', cursive;
    writing-mode: vertical-rl; /* вертикальне письмо: зверху вниз, справа наліво */
    text-orientation: upright; /* символи не перевертаються */
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: 2px;
    color: var(--card);
  }

.title-img{
  max-width: fit-content;
  margin: 0 auto;
  position: absolute;
  top: 150px;
}
.title-img img{
  object-fit: cover;
  max-width: 200px;
  margin-left: 25%;
}

.category-item {
  width: 100%;
  text-align: center;
  padding: 50px 0px;
  position: relative;
  opacity: 0; 
  transform: translateY(30px); 
  animation: fadeInUp 0.8s forwards; 
  border-radius: 8px;
}
  /* .category-item a{
    padding: 8px 24px;
    background-color: var(--text-color);
    border-radius: 8px;
    text-decoration: none;
    position: absolute;
    left: 20%;
    top: 85%;
    color: #0c0c0b;
     transition: all 0.6s ease;
  }
  .category-item a:hover{
    color: var(--accent);
    background-color: var(--bg);
  } */

 .category-item a {
  position: absolute;
  top: 85%;
  left: 20%;
  padding: 8px 24px;
  background-color: var(--text-color);
  border-radius: 8px;
  color: #0c0c0b;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}
.category-item .title-item{
  color: var(--card);
  font-style: italic;
}
/* ::before и ::after для символов */

.category-item a::after {
  content: '🥢'; /* Можно заменить на U+1F962 */
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 18px;
}



.category-item a::after {
  right: 4px; /* отступ справа от кнопки */
}

/* При наведении символы появляются */
.category-item a:hover::before,
.category-item a:hover::after {
  transform: translateY(-50%) scale(1);
  opacity: 1;
  color: var(--accent);
}

/* Плавная смена фона и текста */
.category-item a:hover {
  color: var(--accent);
  background-color: var(--text-color);
}

.category-item:nth-child(1) {
  animation-delay: 0.2s;
}
.category-item:nth-child(2) {
  animation-delay: 0.4s;
}
.category-item:nth-child(3) {
  animation-delay: 0.6s;
}
.category-item:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.title-img {
  max-width: fit-content;
  margin: 0 auto;
  position: absolute;
  top: 150px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInImg 0.8s forwards;
}

.category-item:nth-child(1) .title-img { animation-delay: 1s; }
.category-item:nth-child(2) .title-img { animation-delay: 1.2s; }
.category-item:nth-child(3) .title-img { animation-delay: 1.4s; }
.category-item:nth-child(4) .title-img { animation-delay: 1.6s; }

@keyframes fadeInImg {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#memu-category {
  display: flex;
  justify-content: space-between;
  margin-bottom: 100px;
}

.category-item {
  flex: 1;
  transition: flex 0.5s ease, transform 0.3s ease;
  color: var(--bg);
  font-weight: 600;
}

.category-item:hover {
  flex: 1.5; /* расширение при наведении */
  transform: scale(1.05); /* лёгкое увеличение */
  z-index: 2; /* чтобы не перекрывало соседние */
}
