/* =========================================
   app.css — White & Gold Theme
   ========================================= */

:root{
  --bg: #f6f6f6;
  --panel: #ffffff;
  --panel-2: #fafafa;
  --text: #1c1c1c;
  --muted: #6b6b6b;

  --brand: #d4af37;
  --brand-2: #b8962e;
  --gold: #d4af37;
  --gold-dark: #b8962e;

  --success: #24c08a;
  --warning: #e3a82b;
  --danger: #e54848;
  --info: #2c8cff;

  --border: rgba(0,0,0,0.08);
  --shadow: 0 10px 25px rgba(0,0,0,0.08);

  --radius: 14px;
  --radius-sm: 10px;

  --gap: 16px;
  --container: 1180px;

  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: var(--font);

  background:
 linear-gradient(90deg,#efe3b8 0%,#ffffff 20%,#ffffff 80%,#efe3b8 100%);

  color: var(--text);
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button, input, select, textarea{ font: inherit; }
:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Utilities ---------- */
.container{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}
.stack{ display: grid; gap: var(--gap); }
.row{ display: flex; gap: var(--gap); align-items: center; }
.wrap{ flex-wrap: wrap; }
.between{ justify-content: space-between; }
.center{ justify-content: center; }
.right{ justify-content: flex-end; }
.muted{ color: var(--muted); }
.hidden{ display: none !important; }

.hr{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

/* ---------- Cards ---------- */
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-header{
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.card-body{ padding: 18px; }
.card-title{
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.2px;
}
.card-subtitle{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Topbar ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f1b33, #0b1220);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
}

.brand-badge{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.brand-badge img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-link{
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,0.75);
}
.nav-link:hover{
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}
.nav-actions{
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: transform .05s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  font-weight: 600;
}
.btn:active{ transform: translateY(1px); }
.btn[disabled]{ opacity: .55; cursor: not-allowed; }

.btn-primary{
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 20px rgba(212,175,55,0.35);
}
.btn-primary:hover{ filter: brightness(1.05); }

.btn-outline{
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover{
  background: var(--gold);
  color: #ffffff;
}

.btn-danger{
  background: rgba(229,72,72,0.10);
  border-color: rgba(229,72,72,0.25);
  color: #b32929;
}
.btn-danger:hover{
  background: rgba(229,72,72,0.16);
}

.btn-sm{ padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.btn-block{ width: 100%; justify-content: center; }

/* ---------- Forms ---------- */
.field{ display: grid; gap: 8px; }
.label{ font-size: 13px; color: var(--muted); }

.input, .select, .textarea{
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
}
.input::placeholder, .textarea::placeholder{
  color: rgba(28,28,28,0.35);
}
.textarea{ min-height: 110px; resize: vertical; }
.help{ font-size: 12px; color: var(--muted); }
.error{ font-size: 12px; color: #c0392b; }

/* ---------- Alerts / Badges ---------- */
.alert{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
}
.alert-success{ border-color: rgba(36,192,138,0.35); background: rgba(36,192,138,0.08); }
.alert-warning{ border-color: rgba(227,168,43,0.35); background: rgba(227,168,43,0.10); }
.alert-danger{ border-color: rgba(229,72,72,0.35); background: rgba(229,72,72,0.08); }
.alert-info{ border-color: rgba(44,140,255,0.35); background: rgba(44,140,255,0.08); }

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.badge-success{ border-color: rgba(36,192,138,0.35); background: rgba(36,192,138,0.08); }
.badge-warning{ border-color: rgba(227,168,43,0.35); background: rgba(227,168,43,0.10); }
.badge-danger{ border-color: rgba(229,72,72,0.35); background: rgba(229,72,72,0.08); }
.badge-info{ border-color: rgba(44,140,255,0.35); background: rgba(44,140,255,0.08); }

/* ---------- Product Grid ---------- */
.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.col-12{ grid-column: span 12; }
.col-8{ grid-column: span 8; }
.col-6{ grid-column: span 6; }
.col-4{ grid-column: span 4; }
.col-3{ grid-column: span 3; }

.product-card{
  overflow: hidden;
  border-radius: 18px;

  background: linear-gradient(180deg,#f7e7b5,#e2c166);

  border: 1px solid #d4af37;

  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.product-media{
  background:#ffffff;
  border-radius:14px;
}
.product-media{
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 16px;
}

.product-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 12px;
}

.product-body{
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-name{
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.product-title{
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}
.product-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.price{
  font-weight: 800;
  color: #1c1c1c;
  letter-spacing: .2px;
}
.price small{
  opacity: .7;
  font-weight: 600;
}
.product-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.products-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ---------- Cart / Checkout ---------- */
.table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
}
.table th, .table td{
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.table th{
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  background: #fafafa;
}
.table tr:last-child td{ border-bottom: 0; }

.qty{
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.qty .pill{
  min-width: 42px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.summary{
  display: grid;
  gap: 10px;
  padding: 16px;
}
.summary-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}
.summary-row strong{ color: var(--text); }
.summary-total{
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

/* ---------- Admin Layout ---------- */
.layout{
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
  gap: 16px;
  padding: 18px 0;
}
.sidebar{
  position: sticky;
  top: 76px;
  align-self: start;
  padding: 14px;
}
.side-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}
.side-link:hover{
  background: rgba(212,175,55,0.10);
  color: var(--text);
}
.side-link.active{
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.30);
  color: var(--text);
}

.kpi{
  display: grid;
  gap: 10px;
}
.kpi .value{
  font-size: 24px;
  font-weight: 900;
}
.kpi .label{
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Footer spacing ---------- */
.page{
  padding: 18px 0 30px;
}

/* ---------- Hero ---------- */
.hero{
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(212,175,55,0.10), rgba(184,150,46,0.05)),
    #ffffff;
}
.hero-body{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  min-height: 260px;
}
.hero-title{
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0.2px;
}
.hero-text{
  margin: 0;
  color: var(--muted);
  max-width: 620px;
  font-size: 15px;
}
.hero-mark{
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mark img{
  width: 240px;
  max-width: 100%;
  opacity: 0.95;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.18));
  border-radius: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ position: relative; top: 0; }
  .col-4{ grid-column: span 6; }
  .col-3{ grid-column: span 6; }
  .col-8{ grid-column: span 12; }
  .products-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px){
  .hero-body{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy .row{
    justify-content: center;
  }
  .hero-title{
    font-size: 28px;
  }
  .hero-mark img{
    width: 180px;
  }
}
@media (max-width: 640px){
  .col-6, .col-4, .col-3{
    grid-column: span 12;
  }
}

@media (max-width: 620px){
  .products-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-row{
  justify-content: space-between;
  align-items: center;
}

.footer-links{
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-link{
  color: #222;
  font-weight: 600;
  padding:6px 10px;
  border-radius:8px;
}

.footer-link:hover{
  color:#fff;
  background:linear-gradient(135deg,#d4af37,#b8962e);
}

@media (max-width: 640px){
  .footer-row{
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ======================================
   MOBILE PREMIUM UI (PHONE ONLY)
======================================*/

@media (max-width:640px){

/* background emas lembut */
body{
  background: linear-gradient(180deg,#f3e3b0,#e0c675);
}

/* container bagi nampak ruang kiri kanan */
.container{
  width: calc(100% - 24px);
}
/* TAMBAH INI */

.products-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:12px;
}	
/* header lebih premium */
.topbar{
  background: linear-gradient(90deg,#0b1328,#081022);
  border-bottom: 2px solid #d4af37;
}

/* product card gold */
.product-card{
  background: linear-gradient(180deg,#ecd27a,#d4af37) !important;
  border: 1px solid #c79f27 !important;
  border-radius: 18px !important;

  box-shadow:
  0 10px 24px rgba(0,0,0,0.15),
  0 6px 18px rgba(212,175,55,0.35) !important;

  margin-bottom:16px;
}

/* gambar produk */
.product-media{
  background:#ffffff !important;
  border-radius:14px !important;
  padding:10px !important;
}

/* teks produk */
.product-name{
  color:#1c1c1c !important;
  font-weight:700;
}

.muted{
  color:#4c4c4c !important;
}

/* harga */
.price{
  color:#111 !important;
  font-weight:800;
}

/* badge */
.badge{
  background:#ffffff !important;
  border:1px solid rgba(0,0,0,0.08);
}

/* input qty */
.product-card .input{
  background:#ffffff !important;
  border:1px solid rgba(0,0,0,0.1);
}

/* button tambah troli */
.product-card .btn-primary{
  background: linear-gradient(135deg,#c79f27,#b89016) !important;
  color:#fff !important;
  box-shadow:0 6px 16px rgba(183,141,21,0.35) !important;
}

/* button login */
.btn-outline{
  border:2px solid #d4af37 !important;
  color:#d4af37 !important;
}

/* button hubungi */
.nav-actions .btn-primary{
  background: linear-gradient(135deg,#d4af37,#b8962e) !important;
}

}

@media (max-width:640px){

  .products-grid{
    display:grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap:12px !important;
  }

  .products-grid > .col-12,
  .products-grid > .col-6,
  .products-grid > .col-4,
  .products-grid > .col-3{
    grid-column: auto !important;
  }

  .product-card{
    width:100% !important;
    margin-bottom:0 !important;
  }

}
