/* ===== Design tokens (reusable) ===== */
:root {
    --bg: #1e1e1e;
    --text: #dcdbdb;
    --muted: #8b9299;

    --line: rgba(220, 219, 219, .05);
    --orange: #f68627;

    --wa: #22c55e;
    --waGlow: rgba(34, 197, 94, .30);
    --orangeGlow: rgba(246, 134, 39, .50);

    --radius-pill: 999999px;
}

html, body{
  font-family:"Gotham-Light", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===== Layout helpers ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

/* ===== Typography helpers ===== */
.text-muted {
    font-family: "Gotham-Light", Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: var(--muted);
    font-size: 16px;
    letter-spacing: -0.31px;
    line-height: 26px;
}

.text-nowrap {
    white-space: nowrap;
}

/* responsive helper */
.text-center-md-left {
    text-align: center;
}

@media (min-width:768px) {
    .text-center-md-left {
        text-align: left;
    }
}

/* ===== Buttons (reusable) ===== */
/* =========================================================
   BUTTON SYSTEM — FINAL, NO MAGIC
========================================================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  text-decoration:none;
  border:0;
  cursor:pointer;
  user-select:none;

  line-height:1; /* WAJIB */
}

/* LABEL — satu-satunya yang digeser */
.btn__label{
  display:block;
  line-height:1;
  transform: translateY(4px); /* FINAL */
  font-family:"Gotham-Medium", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================= VARIANTS ================= */

.btn--primary{
  background:#f68627;
  color:#061922;
  border-radius:999999px;
}

.btn--glow{
  box-shadow:0 0 30px rgba(246,134,39,.5);
}

.btn--wa{
  padding:0 16px;
  height:36px;
  background:#22c55e;
  border-radius:999999px;
  box-shadow:0 0 20px rgba(34,197,94,.3);
}

/* ================= SIZES ================= */

.btn--sm{
  height:32px;
  padding:0 14px;
  font-size:14px;
}

.btn--md{
  height:48px;
  padding:0 20px;
  font-size:16px;
}

.btn--lg{
  height:56px;
  padding:0 28px;
  font-size:16px;
}
/* CTA button: satu ukuran untuk semua tombol glow */
.btn--cta{
  height:56px;           /* sama */
  padding:0 28px;        /* sama */
  border-radius:999999px;
  font-size:16px;
}

/* pastikan label benar-benar bold */
.btn--cta .btn__label{
  font-family:"Gotham-Bold", Helvetica, Arial, sans-serif;
  font-weight:700;
  transform: translateY(4px); /* pakai angka yang sudah pas di tempatmu */
}



/* ===== Icons (reusable) ===== */
.ico {
    width: 16px;
    height: 16px;
    display: block;
}

.ico--lg {
    width: 20px;
    height: 20px;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer{
  width: 100%;
  background: #1e1e1e;
  border-top: 1px solid rgba(220,219,219,.05);
}

/* glow line */
.site-footer__glow-line{
  width: 100%;
  height: 2px;
  box-shadow: 0 0 20px rgba(246,134,39,.5);
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(246,134,39,1) 50%, rgba(0,0,0,0) 100%);
}

.site-footer__inner{
  padding-top: 64px;
  padding-bottom: 40px;
}

/* grid columns */
.site-footer__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

@media (min-width: 768px){
  .site-footer__grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.site-footer__col{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* logo */
.site-footer__logo{
  display: inline-block;
  width: 187px;
  height: 28px;
}

.site-footer__logo-img{
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* titles */
.footer-title{
  margin: 0;
  font-family: "Gotham-Light", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: #dcdbdb;
  font-size: 16px;
  letter-spacing: -0.31px;
  line-height: 24px;
}

/* text helpers */
.text-muted{
  margin: 0;
  font-family: "Gotham-Light", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: #8b9299;
  font-size: 16px;
  letter-spacing: -0.31px;
  line-height: 26px;
}

.text-nowrap{
  white-space: nowrap;
}

.text-center-md-left{
  text-align: center;
}
@media (min-width: 768px){
  .text-center-md-left{
    text-align: left;
  }
}

/* links */
.footer-links{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link{
  font-family: "Gotham-Light", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: #8b9299;
  font-size: 16px;
  letter-spacing: -0.31px;
  line-height: 24px;
  text-decoration: none;
}

.footer-link:hover{
  color: #dcdbdb;
}

.footer-link--strong{
  font-family: "Gotham-Medium", Helvetica, Arial, sans-serif;
  font-weight: 500;
}

/* contact */
.footer-contact{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact__row{
  display: flex;
  align-items: flex-start;   /* kunci: icon sejajar atas teks */
  gap: 12px;
}

.footer-contact__row .text-muted{
  line-height: 24px;
}

/* icons */
.ico{
  display: block;
}

.ico--lg{
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;           /* tweak optik biar pas */
}

/* bottom bar */
.site-footer__bottom{
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;

  padding-top: 32px;
  border-top: 1px solid rgba(220,219,219,.05);
}

@media (min-width: 768px){
  .site-footer__bottom{
    flex-direction: row;
  }
}

.footer-bottom-links{
  display: inline-flex;
  gap: 24px;
  align-items: center;
}

/* =========================================================
   HEADER — FINAL, STABLE, SEARCH FIXED
========================================================= */

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 81px;
  z-index: 9999;

  background: rgba(39,39,39,.95);
  border-bottom: 1px solid rgba(220,219,219,.10);
}

/* ===== INNER LAYOUT ===== */
.site-header__inner{
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 24px;

  padding-left: 56px;
  padding-right: 56px;
}

/* ===== LEFT (LOGO) ===== */
.site-header__logo-wrap{
  flex: 0 0 320px;
  display: flex;
  align-items: center;
}

.site-header__logo{
  display: block;
}

.site-header__logo-img{
  width: 244px;
  height: 36px;
  display: block;

  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ===== CENTER (SEARCH) ===== */
.site-header__search-wrap{
  flex: 1 1 auto;
  min-width: 0;               /* PENTING: cegah overlap */
  display: flex;
  justify-content: center;

  position: relative;
  z-index: 3;
}

.site-search{
  width: 100%;
  max-width: 480px;
  position: relative;
}

.site-search__input{
  width: 100%;
  height: 48px;

  padding: 0 16px 0 48px;

  background: #0f0f0f;
  border: 1px solid rgba(220,219,219,.10);
  border-radius: 999999px;

  font-family: "Gotham-Light", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #dcdbdb;
  caret-color: #dcdbdb;

  outline: none;
  appearance: none;
  -webkit-appearance: none;

  pointer-events: auto;
  position: relative;
  z-index: 4;
}
/* =========================================================
   FORCE FIX: INPUT TEXT VISIBILITY (SEARCH)
========================================================= */

.site-search__input{
  color: #dcdbdb !important;                 /* teks ketikan */
  caret-color: #dcdbdb !important;           /* caret */
  -webkit-text-fill-color: #dcdbdb !important;
  opacity: 1 !important;
  background-color: #0f0f0f !important;
}

/* placeholder */
.site-search__input::placeholder{
  color: rgba(139,146,153,.9) !important;
  -webkit-text-fill-color: rgba(139,146,153,.9) !important;
  opacity: 1 !important;
}

.site-search__input::placeholder{
  color: rgba(139,146,153,.9);
  opacity: 1;
}

/* icon search */
.site-search__btn{
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);

  width: 20px;
  height: 20px;

  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;

  z-index: 5;
}

/* ===== RIGHT (ACTIONS) ===== */
.site-header__actions{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;

  position: relative;
  z-index: 2;
}

/* login/register */
.site-header__auth{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  text-decoration: none;
}

.site-header__auth-text{
  font-family: "Gotham-Light", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #dcdbdb;
  white-space: nowrap;
}

/* icons */
.site-header__iconlink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header__icon{
  width: 36px;
  height: 36px;
  display: block;
}

/* =========================================================
   RESPONSIVE SAFETY
========================================================= */

@media (max-width: 1200px){
  .site-header__inner{
    padding-left: 32px;
    padding-right: 32px;
  }

  .site-header__logo-wrap{
    flex: 0 0 260px;
  }

  .site-search{
    max-width: 380px;
  }
}

@media (max-width: 1024px){
  .site-header__logo-wrap{
    flex: 0 0 220px;
  }

  .site-search{
    max-width: 320px;
  }
}

/* =========================================================
   SECTION HEAD (reusable)
========================================================= */
.section-head {
    margin-bottom: 40px;
}

.section-head--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.section-title {
    font-family: "Gotham-Medium", Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: var(--text);
    font-size: 20px;
    letter-spacing: -0.45px;
    line-height: 30px;
    margin: 0;
}

.section-subtitle {
    font-family: "Gotham-Light", Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: var(--muted);
    font-size: 16px;
    letter-spacing: -0.31px;
    line-height: 24px;
    margin: 0;
}

/* =========================================================
   SHOP BY CATEGORY (reusable)
========================================================= */
.category-section {
    width: 100%;
    background: var(--bg);
}

.category-section__inner {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* mobile: grid 2 kolom | desktop: flex center */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

@media (min-width:768px) {
    .category-grid {
        display: flex;
        justify-content: center;
        gap: 24px;
    }
}

.category-card {
    width: 100%;
    height: 240px;
    background: #0f0f0f;
    border: 1px solid rgba(220, 219, 219, .10);
    border-radius: 24px;
    /* rounded-3xl */
    overflow: hidden;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width:768px) {
    .category-card {
        width: 166px;
        height: 302px;
        gap: 20px;
    }
}

.category-card__icon {
    width: 80px;
    height: 80px;
    margin: 24px auto 0;
    display: block;
}

@media (min-width:768px) {
    .category-card__icon {
        width: 96px;
        height: 96px;
        margin-top: 41px;
    }
}

.category-card__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 8px 18px;
}

.category-card__name {
    font-family: "Gotham-Medium", Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
    letter-spacing: -0.31px;
    line-height: 24px;
    text-align: center;
}

.category-card__count {
    font-family: "Gotham-Light", Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: -0.31px;
    line-height: 24px;
    text-align: center;
}

@media (min-width:768px) {
    .category-card__name {
        font-size: 16px;
    }

    .category-card__count {
        font-size: 16px;
    }
}

/* =========================================================
   HARD RESET OVERRIDE — SEARCH INPUT (FINAL)
========================================================= */

.site-search__input{
  all: revert !important;                 /* BALIKIN SEMUA DEFAULT */
  
  box-sizing: border-box !important;
  width: 100% !important;
  height: 48px !important;

  padding: 0 16px 0 48px !important;

  background-color: #0f0f0f !important;
  border: 1px solid rgba(220,219,219,.10) !important;
  border-radius: 999999px !important;

  font-family: "Gotham-Light", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;

  color: #dcdbdb !important;
  caret-color: #dcdbdb !important;
  -webkit-text-fill-color: #dcdbdb !important;

  outline: none !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  pointer-events: auto !important;
}

.site-search__input::placeholder{
  color: rgba(139,146,153,.9) !important;
  -webkit-text-fill-color: rgba(139,146,153,.9) !important;
  opacity: 1 !important;
}

