/* =========================================================
   AURA — Design tokens & komponen dasar (mockup)
   Nanti di Laravel ini dipindah ke resources/css/app.css
   ========================================================= */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/jakarta-2.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/jakarta-3.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/grotesk-1.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/grotesk-2.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #001d40;
  --ink-soft: #3a4a63;
  --muted: #7d8c9e;
  --line: #e3e9f2;
  --paper: #ffffff;
  --sand: #f4f6fa;
  --sand-2: #eef2f8;
  --brand: #ee7614;
  --brand-600: #d4650f;
  --brand-50: #fff1e8;
  --gold: #f2a63b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system,
    'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--brand);
  color: #fff;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* --- Scrollbar tipis --- */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.thin-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.thin-scroll::-webkit-scrollbar-thumb {
  background: #d6d2c8;
  border-radius: 999px;
}

/* --- Fokus aksesibel --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- Komponen --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.5rem;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(238, 118, 20, 0.7);
}
.btn-primary:hover {
  background: var(--brand-600);
}
.btn-brand {
  background: var(--ink);
  color: #fff;
}
.btn-brand:hover {
  background: var(--brand);
}
.btn-outline {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--sand);
}
.btn-ghost {
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--sand-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--ink);
}
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  padding: 0.8125rem 0.9375rem;
  font-size: 0.9375rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field::placeholder {
  color: #a6a29a;
}
.field:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(238, 118, 20, 0.14);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* --- Efek --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.d1 { animation-delay: 0.06s; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.18s; }
.d4 { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.product-media img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-media img {
  transform: scale(1.06);
}
.product-card:hover .product-quick {
  opacity: 1;
  transform: translateY(0);
}
.product-quick {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Drawer */
.drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.drawer-panel {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer-panel.is-open {
  transform: translateX(0);
}

/* Accordion */
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.acc-body.is-open {
  max-height: 420px;
}

/* Toast */
.toast {
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.is-show {
  transform: translateY(0);
  opacity: 1;
}

/* Marquee */
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Judul section */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

/* Radio kartu pembayaran */
.pay-option input:checked + .pay-card {
  border-color: var(--brand);
  background: var(--brand-50);
  box-shadow: 0 0 0 1px var(--brand);
}

/* Step */
.step-dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Sticky order summary */
@media (min-width: 1024px) {
  .sticky-summary {
    position: sticky;
    top: 6.5rem;
  }
}

/* Kartu produk: di layar sempit, harga turun ke bawah judul */
@media (max-width: 639px) {
  .product-card > div:last-child {
    display: block;
  }
  .product-card > div:last-child > .text-right,
  .product-card > div:last-child > p {
    text-align: left;
    margin-top: 0.35rem;
  }
}
