/* =====================
   RESET
===================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* =====================
   CSS VARIABLES
===================== */
:root {
  --color-bg-dark:      rgba(58, 26, 24, 0.9);
  --color-bg-card:      rgba(242, 155, 143, 0.9);
  --color-bg-inner:     #F7C5BC;
  --color-border:       #C97A6E;
  --color-text:         #3A2E2E;
  --color-btn:          #3A1A18;
  --color-btn-hover:    #5a2b28;

  --radius-card:        10px;
  --radius-inner:       8px;

  --shadow-card:        0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-merch:       0 4px 12px rgba(0, 0, 0, 0.15);

  --transition:         0.3s ease;
}

/* =====================
   BODY
===================== */
body {
  background: url('image/Pantai.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* =====================
   HEADER — STICKY
===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--color-bg-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem 5%;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background: rgba(58, 26, 24, 0.97);
}

/* =====================
   LOGO
===================== */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo img {
  height: clamp(52px, 5.5vw, 72px);
  object-fit: contain;
}

.logo-title {
  font-family: 'Bree Serif', serif;
  color: white;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: default;
}

.logo-title span {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68em;
  font-weight: 400;
  opacity: 0.65;
  letter-spacing: 0.1em;
}

/* =====================
   NAV — ACTIVE HIGHLIGHT
===================== */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  padding: 0.6rem 1.2rem;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  border-radius: 6px;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 55%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav a.active {
  color: white;
  font-weight: 600;
}

.nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* =====================
   LOGIN BUTTON
===================== */
.login-btn {
  border: 1px solid white;
  background: none;
  color: white;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.login-btn:hover {
  background: white;
  color: var(--color-btn);
}

/* =====================
   HERO (GLOBAL TITLE)
===================== */
.container--upper {
  text-align: center;
  padding: clamp(50px, 8vw, 90px) 5% clamp(30px, 5vw, 60px);
  color: white;
}

.container--upper h1 {
  font-family: 'Bree Serif', serif;
  font-size: clamp(28px, 6vw, 52px);
}

.container--upper p {
  margin-top: 15px;
  font-size: clamp(14px, 2vw, 18px);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   MAIN CONTAINER
===================== */
.main-container {
  width: 90%;
  max-width: 900px;
  margin: 30px auto;
}

/* =====================
   HOME PAGE
===================== */
.home-container {
  flex: 1;
}

.content-wrapper {
  background: var(--color-bg-card);
  backdrop-filter: blur(6px);
  padding: 20px;
  border-radius: 14px;
}

.desc-box {
  background: var(--color-bg-inner);
  padding: 20px;
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow-card);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

.creator-box {
  background: var(--color-bg-inner);
  padding: 20px;
  border-radius: var(--radius-inner);
  margin-top: 10px;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

/* =====================
   ABOUT PAGE HERO
===================== */
.hero-about {
  height: 40vh;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 5%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.5)
  ),
  url('image/Pantai.png');
  background-size: cover;
  background-position: center;
}

.hero-about h1 {
  font-family: 'Bree Serif', serif;
  font-size: clamp(28px, 5vw, 48px);
}

/* =====================
   SLIDER
===================== */
.about-slider {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  margin: 30px auto;
  position: relative;
  overflow: hidden;
  background: black;
  border-radius: var(--radius-inner);
  z-index: 1;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.slide img,
.slide iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide.active {
  display: block;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 22px;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.slide-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.prev { left: 15px; }
.next { right: 15px; }

/* =====================
   ABOUT CONTENT
===================== */
.about-content {
  background: var(--color-bg-card);
  padding: 20px;
  border-radius: var(--radius-card);
  margin-top: 20px;
}

.about-text-box,
.feature-box {
  background: var(--color-bg-inner);
  padding: 15px;
  border-radius: var(--radius-inner);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

.feature-box {
  margin-top: 15px;
}

/* =====================
   REVIEW
===================== */
.review-section {
  background: var(--color-bg-card);
  padding: 20px;
  border-radius: var(--radius-card);
  margin-top: 20px;
}

.review-box {
  background: var(--color-bg-inner);
  padding: 14px;
  border-radius: var(--radius-inner);
  margin-bottom: 10px;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.6;
}

.review-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.review-btn {
  background: var(--color-btn);
  color: white;
  border: none;
  padding: 6px 12px;
  margin-bottom: 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.review-btn:hover {
  background: var(--color-btn-hover);
}

/* =====================
   FOOTER
===================== */
.footer {
  width: 100%;
  margin-top: auto;
  padding: 1.5rem 5%;
  background: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.footer-contact {
  display: flex;
  gap: 1rem;
}

.footer-contact .icon {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.footer-contact .icon svg {
  width: clamp(20px, 1.8vw, 26px);
  height: clamp(20px, 1.8vw, 26px);
}

.footer-contact .icon:hover {
  color: white;
}

/* =====================
   MERCH
===================== */
.merch-container {
  width: 90%;
  max-width: 1100px;
  margin: 2.5rem auto;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.merch-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-merch);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.merch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.merch-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
}

.merch-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.merch-info {
  padding: 10px;
  text-align: center;
}

.buy-btn {
  background: var(--color-btn);
  color: white;
  border: none;
  padding: 6px 16px;
  margin-top: 6px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s ease;
}

.buy-btn:hover {
  background: var(--color-btn-hover);
}

.buy-btn.disabled {
  background: #aaa;
  cursor: not-allowed;
}

.status {
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0;
}

.status.ready  { color: #2e7d32; }
.status.sold   { color: #c62828; }

/* =====================
   LOGIN PAGE
===================== */
body.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =====================
   USERNAME
===================== */
.username {
  color: #FFD700;
  font-weight: 600;
  margin-left: 4px;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header {
    padding: 0.9rem 4vw;
    gap: 0.75rem;
  }

  .logo img {
    height: 52px;
  }

  .logo-title {
    font-size: 1.15rem;
  }

  .logo-title span {
    font-size: 0.78rem;
  }

  .nav a {
    font-size: 1rem;
    padding: 0.55rem 0.9rem;
  }

  .login-btn {
    font-size: 0.95rem;
    padding: 0.55rem 1rem;
  }

  .container--upper {
    padding: 3.5rem 5vw 2.5rem;
  }

  .container--upper h1,
  .hero-about h1 {
    font-size: 2.2rem;
  }

  .container--upper p {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .main-container {
    width: 94%;
  }

  .desc-box,
  .creator-box,
  .about-text-box,
  .feature-box {
    font-size: 1rem;
    line-height: 1.7;
    padding: 1.1rem;
  }

  .desc-box h2,
  .creator-box h2,
  .about-text-box h2,
  .feature-box h2,
  .review-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .review-box {
    font-size: 1rem;
    padding: 0.9rem;
  }

  .review-header {
    font-size: 1rem;
  }

  .footer {
    padding: 1.1rem 5vw;
    font-size: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }

  .footer-contact {
    justify-content: center;
  }

  .footer-contact .icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 400px) {
  .merch-grid {
    grid-template-columns: 1fr;
  }

  .container--upper h1,
  .hero-about h1 {
    font-size: 1.9rem;
  }

  .logo-title {
    font-size: 1rem;
  }
}