:root{
  --primary:#7dcfff;
  --primary-dark:#2389c7;
  --secondary:#b8e8ff;
  --background:#f6fbff;
  --card:#ffffff;
  --text:#3f4b5a;
  --muted:#64748b;
  --border:#dbeafe;
  --soft:#f8fbff;
  --danger:#991b1b;
  --danger-bg:#fef2f2;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:'Kodchasan',sans-serif;
  background:linear-gradient(180deg,#f8fcff 0%,#eef8ff 100%);
  color:var(--text);
  padding:0 20px 48px;
}

body::before{
  content:"❄ ☁️ ❅ ☁️ ❄ ☁️ ❅ ☁️ ❄";
  position:fixed;
  top:20px;
  right:20px;
  z-index:-1;
  font-size:24px;
  opacity:.08;
  pointer-events:none;
}

.page-header{
  position:sticky;
  top:0;
  z-index:900;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:72px;
  margin:0 -20px;
  padding:14px 24px;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(219,234,254,.9);
  backdrop-filter:blur(12px);
}

.page-header h1{
  flex:1;
  margin:0;
  text-align:center;
  font-size:24px;
  color:#4a6fa5;
}

.icon-btn,
.cart-btn{
  flex:0 0 auto;
  width:auto !important;
}

.icon-btn{
  border:0;
  padding:0 !important;
  background:transparent;
  color:#4a6fa5;
  font-size:28px;
}

.cart-btn{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size:28px;
}

#cartCount{
  position:absolute;
  top:-8px;
  right:-9px;
  min-width:20px;
  padding:2px 6px;
  border-radius:999px;
  background:#ff5c7a;
  color:white;
  text-align:center;
  font-size:11px;
  font-weight:700;
  line-height:1.45;
}

.hero-banner{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  min-height:360px;
  max-width:1300px;
  margin:24px auto 30px;
  border:1px solid rgba(125,207,255,.35);
  border-radius:28px;
  background:
    radial-gradient(circle at 82% 18%,rgba(255,255,255,.85) 0 5%,transparent 6%),
    radial-gradient(circle at 90% 38%,rgba(255,255,255,.68) 0 3%,transparent 4%),
    linear-gradient(135deg,#8dd9ff 0%,#bfeaff 45%,#eef9ff 100%);
  box-shadow:0 16px 40px rgba(84,167,214,.16);
}

.hero-banner::before{
  content:"❄️  ☁️  ❄️";
  position:absolute;
  right:38px;
  top:36px;
  font-size:46px;
  letter-spacing:10px;
  opacity:.23;
}

.hero-banner::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(30,71,107,.52),rgba(30,71,107,.04));
  pointer-events:none;
}

.hero-content{
  position:relative;
  z-index:1;
  max-width:680px;
  padding:44px;
  color:white;
}

.hero-content h1{
  margin:0 0 12px;
  font-size:clamp(30px,5vw,52px);
  line-height:1.15;
  color:white;
}

.hero-content p{
  max-width:590px;
  margin:0 0 24px;
  font-size:clamp(14px,2vw,17px);
  line-height:1.75;
  color:rgba(255,255,255,.95);
}

.hero-content button{
  width:auto;
  min-height:46px;
  padding:12px 22px;
  border:0;
  border-radius:999px;
  background:white;
  color:#3182b5;
  font-weight:700;
  box-shadow:0 10px 24px rgba(15,23,42,.18);
  transition:transform .18s ease,box-shadow .18s ease;
}

.hero-content button:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(15,23,42,.22);
}

.section{
  max-width:1300px;
  margin:38px auto 0;
}

.section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:15px;
}

.section-heading h2{
  margin:0;
  color:#5faee3;
  font-size:clamp(20px,3vw,27px);
  font-weight:700;
}

.section-link{
  color:var(--primary-dark);
  text-decoration:none;
  font-weight:700;
  white-space:nowrap;
}

.section-link:hover{
  text-decoration:underline;
}

.product-grid-home{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:16px;
}

.home-card,
.collection-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(219,234,254,.9);
  border-radius:20px;
  background:var(--card);
  outline:none;
  cursor:pointer;
  box-shadow:0 5px 16px rgba(50,119,162,.08);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.home-card:hover,
.collection-card:hover,
.home-card:focus-visible,
.collection-card:focus-visible{
  transform:translateY(-4px);
  border-color:#93c5fd;
  box-shadow:0 16px 32px rgba(50,119,162,.15);
}

.home-card .image-box{
  position:relative;
  overflow:hidden;
  aspect-ratio:3/4;
  background:#f1f5f9;
}

.home-card .image-box img,
.collection-card img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#f1f5f9;
  transition:transform .3s ease;
}

.home-card:hover .image-box img,
.collection-card:hover img{
  transform:scale(1.035);
}

.home-card .card-body{
  padding:12px;
}

.home-card .card-body h3{
  display:-webkit-box;
  overflow:hidden;
  min-height:42px;
  margin:0;
  color:#2d3748;
  font-size:14px;
  font-weight:700;
  line-height:1.5;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.home-card .fandom{
  margin:6px 0 0;
  color:#6b7280;
  font-size:13px;
}

.price-box{
  margin-top:10px;
}

.home-card .normal-price,
.home-card .sale-price{
  font-size:19px;
  font-weight:700;
}

.home-card .normal-price{
  color:#4f7cff;
}

.home-card .sale-price{
  color:#ff4d6d;
}

.home-card .old-price{
  margin-top:2px;
  color:#94a3b8;
  font-size:12px;
  text-decoration:line-through;
}

.deadline{
  margin-top:10px;
  color:#ea580c;
  font-size:12px;
  font-weight:700;
}

.badge-new,
.badge-sale,
.badge-preorder,
.badge-stock{
  position:absolute;
  z-index:2;
  padding:5px 9px;
  border-radius:999px;
  color:white;
  font-size:10px;
  font-weight:700;
  letter-spacing:.03em;
  box-shadow:0 3px 8px rgba(15,23,42,.12);
}

.badge-new{top:10px;left:10px;background:#29b6f6}
.badge-sale{top:10px;right:10px;background:#ff4d6d}
.badge-preorder{bottom:10px;left:10px;background:#ff9800}
.badge-stock{bottom:10px;left:10px;background:#22c55e}

.collection-card img{
  height:220px;
}

.collection-content{
  padding:16px;
}

.collection-content h3{
  margin:6px 0 4px;
  color:#2d3748;
  font-size:17px;
}

.collection-content > p{
  margin:4px 0;
}

.collection-badge-preorder{
  display:inline-block;
  padding:5px 10px;
  border-radius:999px;
  background:#e0f2fe;
  color:#0284c7;
  font-size:11px;
  font-weight:700;
}

.collection-description{
  display:-webkit-box;
  overflow:hidden;
  margin:8px 0;
  color:#667085;
  font-size:13px;
  line-height:1.55;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.collection-count{
  margin-top:8px !important;
  color:#4a6fa5;
  font-size:13px;
  font-weight:700;
}

.deadline-badge{
  display:inline-block;
  margin-top:9px;
  padding:5px 10px;
  border-radius:999px;
  background:#fff7ed;
  color:#ea580c;
  font-size:12px;
  font-weight:700;
}

.fandom-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.fandom-btn{
  width:auto;
  margin:0;
  padding:10px 16px;
  border:1px solid var(--border);
  border-radius:999px;
  background:white;
  color:#4a6fa5;
  font-weight:600;
  box-shadow:0 4px 12px rgba(15,23,42,.05);
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}

.fandom-btn:hover{
  transform:translateY(-2px);
  border-color:#7dd3fc;
  background:#eef8ff;
  color:#0369a1;
}

.home-state{
  grid-column:1/-1;
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:28px;
  border:1px dashed var(--border);
  border-radius:18px;
  background:white;
  color:var(--muted);
  text-align:center;
}

.home-state-icon{
  font-size:34px;
}

.home-state strong{
  color:#334155;
}

.home-state-error{
  border-color:#fecaca;
  background:var(--danger-bg);
  color:var(--danger);
}

.home-state button{
  width:auto;
  margin-top:8px;
}

.home-skeleton{
  position:relative;
  overflow:hidden;
  min-height:280px;
  border-radius:20px;
  background:#eaf1f7;
}

.home-skeleton::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.78),transparent);
  animation:home-shimmer 1.3s infinite;
}

@keyframes home-shimmer{
  to{transform:translateX(100%)}
}

.home-page-message{
  max-width:1300px;
  margin:16px auto 0;
  padding:14px 16px;
  border:1px solid #bfdbfe;
  border-radius:14px;
  background:#eff6ff;
  color:#1e40af;
}

.home-page-message.hidden{
  display:none;
}

@media(max-width:768px){
  body{
    padding:0 12px 36px;
  }

  .page-header{
    min-height:66px;
    margin:0 -12px;
    padding:12px 16px;
  }

  .page-header h1{
    font-size:21px;
  }

  .icon-btn,
  .cart-btn{
    font-size:27px;
  }

  .hero-banner{
    min-height:320px;
    margin:14px auto 24px;
    border-radius:20px;
  }

  .hero-banner::before{
    right:14px;
    top:24px;
    font-size:32px;
  }

  .hero-banner::after{
    background:linear-gradient(180deg,rgba(30,71,107,.12),rgba(30,71,107,.68));
  }

  .hero-content{
    align-self:flex-end;
    padding:24px 20px;
  }

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

  .section{
    margin-top:30px;
  }

  .section-heading{
    align-items:center;
  }

  .section-link{
    font-size:13px;
  }

  .product-grid-home{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }

  .collection-card img{
    height:170px;
  }

  .collection-content{
    padding:13px;
  }

  .home-card .card-body{
    padding:10px;
  }

  .home-card .card-body h3{
    min-height:38px;
    font-size:13px;
  }

  .home-card .normal-price,
  .home-card .sale-price{
    font-size:17px;
  }

  .fandom-list{
    gap:8px;
  }

  .fandom-btn{
    padding:9px 13px;
    font-size:13px;
  }
}

@media(max-width:420px){
  .product-grid-home{
    gap:10px;
  }

  .hero-content h1{
    font-size:28px;
  }

  .section-heading h2{
    font-size:19px;
  }

  .section-link{
    font-size:12px;
  }

  .collection-card img{
    height:145px;
  }

  .home-cart-button{
  position:relative;

  width:48px;
  height:48px;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:0;

  border:none;
  border-radius:999px;

  background:#fff;

  font-size:22px;
}


.home-cart-button #cartCount{
  position:absolute;

  top:-5px;
  right:-5px;

  min-width:20px;
  height:20px;

  padding:0 5px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:999px;

  background:#ff5c7a;
  color:#fff;

  font-size:10px;
  font-weight:700;

  line-height:1;

  z-index:2;
}
}

@media(max-width:640px){

  .page-header{
    min-height:62px;
    padding:9px 12px;
  }

  .page-header h1{
    font-size:18px;
  }

  .hero-banner{
    min-height:290px;
    margin:
      10px
      10px
      20px;
  }

  .hero-content{
    padding:20px 16px;
  }

  .hero-content h1{
    font-size:25px;
  }

  .hero-content p{
    font-size:12px;
    line-height:1.6;
  }

  .section{
    margin-top:22px;
    padding-left:10px;
    padding-right:10px;
  }

  .section-heading{
    margin-bottom:10px;
  }

  .section-heading h2{
    font-size:17px;
  }

  .section-link{
    font-size:11px;
  }

  .product-grid-home{
    gap:10px;
  }

  .home-card,
  .collection-card{
    border-radius:15px;
  }

}
