* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #fff5fc;
  color: #2b2b2b;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 220, 246, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 7%;
  box-shadow: 0 4px 18px rgba(255, 45, 190, 0.18);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: #e91eaa;
  font-size: 24px;
}

.logo img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: #151515;
  font-weight: 800;
}

nav a:hover {
  color: #e91eaa;
}

.menu-toggle {
  display: none;
  border: none;
  background: #e91eaa;
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 22px;
}

/* HERO */
.hero {
  min-height: 88vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 7%;
  color: white;
  background:
    radial-gradient(circle at 74% 45%, rgba(255, 255, 255, 0.22) 0 18%, transparent 19%),
    radial-gradient(circle at 92% 90%, rgba(255, 45, 170, 0.16) 0 12%, transparent 13%),
    linear-gradient(135deg, #ffc8df 0%, #ff9ec8 42%, #ffb6d9 100%);
}



.hero::before {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);

  right: 4%;
  top: 50%;
  transform: translateY(-50%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 45, 170, 0.14);
  right: -70px;
  bottom: -70px;
  z-index: 1;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 5;
}

.tag {
  background: #ff29bd;
  display: inline-block;
  padding: 9px 20px;
  border-radius: 30px;
  font-weight: 900;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.05;
  margin-bottom: 22px;
  color: white;
  text-shadow: 0 7px 18px rgba(194, 25, 112, 0.22);
}

.hero p {
  font-size: 20px;
  margin-bottom: 25px;
  color: white;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 40px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 900;
}

.primary {
  background: #ff29bd;
  color: white;
}

.secondary {
  background: white;
  color: #e91eaa;
  margin-left: 10px;
}

/* ICE CREAM ANIMATION */
/*.icecream-scene {*/
/*  position: absolute;*/
/*  right: 13%;*/
/*  top: 15%;*/
/*  width: 380px;*/
/*  height: 560px;*/
/*  z-index: 4;*/
/*  animation: iceFloat 4s ease-in-out infinite;*/
/*}*/

.icecream-scene {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 560px;
  z-index: 4;
  animation: iceFloat 4s ease-in-out infinite;
}

.soft-serve {
  position: absolute;
  top: 80px;
  left: 35px;
  width: 300px;
  height: 350px;
  animation: servePulse 3.5s ease-in-out infinite;
}

.swirl {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #ffffff 0%, #fff3fb 48%, #ffd4ee 100%);
  border-radius: 50%;
  box-shadow:
    inset -18px -18px 30px rgba(235, 53, 156, 0.18),
    0 15px 35px rgba(214, 35, 132, 0.16);
}

.swirl.top {
  top: 0;
  width: 120px;
  height: 96px;
}

.swirl.mid {
  top: 70px;
  width: 215px;
  height: 128px;
}

.swirl.bottom {
  top: 154px;
  width: 290px;
  height: 158px;
}

.cone {
  position: absolute;
  bottom: 55px;
  left: 118px;
  width: 145px;
  height: 210px;
  background:
    linear-gradient(135deg, transparent 45%, rgba(138, 68, 18, .35) 46%, transparent 48%),
    linear-gradient(45deg, transparent 45%, rgba(138, 68, 18, .35) 46%, transparent 48%),
    linear-gradient(#e69a38, #b95e17);
  background-size: 34px 34px, 34px 34px, cover;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 3;
}

.sprinkles span {
  position: absolute;
  width: 12px;
  height: 36px;
  border-radius: 20px;
  z-index: 6;
  animation: sprinkleFall 2.5s ease-in-out infinite;
}

.sprinkles span:nth-child(1) {
  left: 125px;
  top: 58px;
  background: #ff2dbd;
}

.sprinkles span:nth-child(2) {
  left: 185px;
  top: 35px;
  background: #2fd3ff;
  animation-delay: .25s;
}

.sprinkles span:nth-child(3) {
  left: 245px;
  top: 55px;
  background: #ffd84d;
  animation-delay: .5s;
}

.sprinkles span:nth-child(4) {
  left: 100px;
  top: 100px;
  background: #8aff8a;
  animation-delay: .75s;
}

.sprinkles span:nth-child(5) {
  left: 285px;
  top: 100px;
  background: #ff4b7d;
  animation-delay: 1s;
}

@keyframes iceFloat {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-18px) rotate(2deg);
  }
}

@keyframes servePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes sprinkleFall {
  0% {
    opacity: 0;
    transform: translateY(-45px) rotate(0deg);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(185px) rotate(260deg);
  }
}

/* MENU FILTER */
.filters {
  text-align: center;
  padding: 70px 7% 30px;
}

.filters h2,
.rolled h2,
.contact h2 {
  font-size: 44px;
  color: #e91eaa;
  margin-bottom: 20px;
}

#searchInput {
  width: min(520px, 100%);
  padding: 16px 20px;
  border: 3px solid #ff8de0;
  border-radius: 40px;
  outline: none;
  font-size: 17px;
  margin-bottom: 25px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.filter-buttons button {
  border: none;
  background: #ffd7f5;
  color: #d9009c;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 900;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  background: #ff35c8;
  color: white;
}

/* MENU CARDS */
.menu-grid {
  padding: 30px 7% 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.menu-card {
  background: white;
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 12px 35px rgba(255, 45, 190, 0.18);
  transition: .3s ease;
  position: relative;
  overflow: hidden;
}

.menu-card:hover {
  transform: translateY(-8px);
}

.menu-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  margin-bottom: 12px;
}

.menu-card h3 {
  color: #e91eaa;
  font-size: 26px;
  margin-bottom: 10px;
}

.price-line {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  margin: 6px 0;
}

.menu-card button {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  border: none;
  border-radius: 30px;
  background: #ff35c8;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.menu-card button:hover {
  background: #c8008d;
}

/* ROLLED */
.rolled {
  padding: 80px 7%;
  background: #ffdbf7;
  text-align: center;
}

.rolled-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.rolled-card {
  background: white;
  padding: 28px;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(255, 45, 190, 0.18);
  text-align: left;
}

.rolled-card h3 {
  color: #e91eaa;
  font-size: 28px;
  margin-bottom: 15px;
}

.rolled-card li {
  list-style: none;
  margin-bottom: 10px;
  font-weight: 700;
}

.rolled-card h4 {
  margin-top: 18px;
  font-size: 24px;
  color: #111;
}

/* CART */
.cart-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  max-height: 480px;
  overflow: auto;
  background: white;
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  z-index: 999;
}

.cart-panel h3 {
  color: #e91eaa;
  margin-bottom: 15px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 10px;
}

.cart-row button {
  border: none;
  background: #ffe0f5;
  color: #e91eaa;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.total {
  font-weight: 900;
  margin: 15px 0;
}

/* CONTACT */
.contact {
  padding: 90px 7%;
  text-align: center;
  background: white;
}

.contact p {
  margin-bottom: 20px;
  font-size: 19px;
}

footer {
  background: #e91eaa;
  color: white;
  text-align: center;
  padding: 22px;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .icecream-scene {
    right: 5%;
    transform: scale(.85);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    display: none;
  }

  nav.open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 90px 7% 70px;
    padding-bottom: 180px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    max-width: 100%;
  }

 
  

  .icecream-scene {
    position: absolute;
    right: -60px;
    bottom: -80px;
    top: auto;
    width: 250px;
    height: 360px;
    transform: scale(.72);
    opacity: .95;
    animation: iceFloat 4s ease-in-out infinite;

    pointer-events: none;
  }

 

  .secondary {
    margin-left: 0;
    margin-top: 12px;
  }

  .cart-panel {
    width: calc(100% - 24px);
    left: 12px;
    right: 12px;
  }
}

@media (max-width: 768px) {
  .cart-panel {
    width: 68px;
    height: 68px;
    left: auto;
    right: 18px;
    bottom: 18px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #ff29bd;
    color: white;
    cursor: pointer;
  }

  .cart-panel::before {
    content: "🛒";
    font-size: 30px;
    display: grid;
    place-items: center;
    height: 68px;
  }

  .cart-panel > * {
    display: none;
  }

  .cart-panel.open {
    width: calc(100% - 28px);
    height: auto;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 22px;
    border-radius: 26px;
    background: white;
    color: #222;
  }

  .cart-panel.open::before {
    display: none;
  }

  .cart-panel.open > * {
    display: block;
  }
}