:root {
  --bg-top: #fff6e7;
  --bg-bottom: #ffe1cb;
  --card: #fffefb;
  --ink: #2f1f18;
  --accent: #ff8a5b;
  --accent-deep: #ec5a2c;
  --mint: #89d7c0;
  --peach: #ffc79f;
  --line: #f2b48f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.language-switcher {
  position: fixed;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5c5aa;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}

.language-switcher label {
  font-size: 0.85rem;
  font-weight: 700;
}

.language-switcher select {
  border: 1px solid #d8b69f;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.15rem 0.35rem;
}

body.locked #site-content {
  display: none;
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-card {
  width: min(420px, 100%);
  background: #fffefb;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(88, 41, 20, 0.1);
}

.auth-card h2 {
  font-size: 1.9rem;
}

.auth-card p {
  margin: 0.5rem 0 0.7rem;
}

.auth-card label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.auth-card input {
  width: 100%;
  padding: 0.55rem;
  border: 1px solid #d8b69f;
  border-radius: 8px;
  font: inherit;
  margin-bottom: 0.7rem;
}

.hero {
  position: relative;
  padding: 3.2rem 1.2rem 2.4rem;
  overflow: hidden;
}

.hero-content {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--mint);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Baloo 2", cursive;
  line-height: 1;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
}

.intro {
  margin: 1rem auto 0;
  max-width: 650px;
  font-size: 1.08rem;
}

.hero-shapes .dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
}

.hero-shapes .one {
  width: 160px;
  height: 160px;
  background: var(--mint);
  left: -35px;
  top: -40px;
}

.hero-shapes .two {
  width: 180px;
  height: 180px;
  background: var(--peach);
  right: -45px;
  top: -30px;
}

.hero-shapes .three {
  width: 120px;
  height: 120px;
  background: #fff;
  right: 20%;
  top: 18px;
}

main {
  padding: 0 1.2rem 1.4rem;
}

.shop {
  max-width: 1120px;
  margin: 0 auto;
}

.shop-head {
  margin-bottom: 1rem;
}

.shop-head h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
}

.shop-head p {
  margin: 0.5rem 0 0;
}

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

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(88, 41, 20, 0.1);
  display: flex;
  flex-direction: column;
  animation: rise 0.45s ease both;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 0.9rem;
}

.item-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.item-row h3 {
  font-size: 1.2rem;
}

.price {
  background: #ffe7cc;
  padding: 0.22rem 0.56rem;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.desc {
  margin: 0.55rem 0 0.8rem;
}

.interest-btn {
  border: none;
  border-radius: 12px;
  padding: 0.66rem 0.8rem;
  font-weight: 800;
  font-family: "Nunito", sans-serif;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  width: 100%;
  transition: transform 160ms ease, background-color 160ms ease;
}

.interest-btn:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.interest-btn.selected {
  background: #4da580;
}

.interest-panel {
  position: sticky;
  bottom: 0;
  margin: 0 auto;
  max-width: 1120px;
  background: #fffdf8;
  border-top: 3px dashed var(--line);
  padding: 0.9rem 1.2rem 1.1rem;
}

.interest-panel h2 {
  font-size: 1.6rem;
}

.interest-panel p {
  margin: 0.45rem 0 0.5rem;
}

#cart-list {
  margin: 0 0 0.7rem;
  padding-left: 0;
  min-height: 1.1rem;
  list-style: none;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px dashed #f3c6aa;
  padding-bottom: 0.45rem;
}

.cart-item-name {
  font-weight: 700;
}

.cart-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.qty-btn {
  border: 1px solid #e3a57f;
  background: #fff;
  border-radius: 7px;
  width: 28px;
  height: 28px;
  font-weight: 800;
  cursor: pointer;
}

.cart-qty {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.cart-total {
  font-weight: 800;
  margin: 0.2rem 0 0.75rem;
}

.copy-btn {
  border: none;
  border-radius: 12px;
  padding: 0.55rem 0.78rem;
  font-weight: 800;
  font-family: "Nunito", sans-serif;
  color: #fff;
  background: #5b8ef2;
  cursor: pointer;
}

.copy-status {
  min-height: 1rem;
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
}

.fabric-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.limited-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: #cc2d2d;
  text-transform: uppercase;
}

.fabric-modal {
  width: min(900px, 94vw);
  border: none;
  border-radius: 18px;
  padding: 0;
}

.fabric-modal::backdrop {
  background: rgba(49, 27, 18, 0.45);
}

.fabric-modal-card {
  margin: 0;
  padding: 1rem;
}

.fabric-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.modal-close {
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-weight: 800;
  cursor: pointer;
  background: #ffe7cc;
}

.fabric-modal-subtitle {
  margin: 0.35rem 0 0.7rem;
}

.fabric-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.7rem;
  max-height: 46vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.fabric-option {
  border: 2px solid #e8c8ac;
  border-radius: 12px;
  padding: 0.45rem;
  cursor: pointer;
  background: #fff;
  position: relative;
}

.fabric-option img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.fabric-option p {
  margin: 0.45rem 0 0.1rem;
  font-weight: 700;
  font-size: 0.86rem;
}

.fabric-option.selected {
  border-color: #4da580;
  box-shadow: 0 0 0 2px rgba(77, 165, 128, 0.16);
}

.fabric-option .limited-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
}

.modal-qty-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

#fabric-qty {
  width: 90px;
  padding: 0.4rem;
  border: 1px solid #d8b69f;
  border-radius: 8px;
  font: inherit;
}

.modal-add {
  margin-top: 0.9rem;
}

.limited-note {
  max-width: 1120px;
  margin: 0 auto 0.4rem;
  padding: 0 1.2rem;
  font-size: 0.92rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 2.5rem;
  }

  .interest-panel {
    position: static;
  }
}
