/* ==========================================
   TEMA MERAH, HITAM, DAN PUTIH BERKILAU
   Digunakan oleh katalog dan panel admin.
   ========================================== */

:root {
  --ink: #19191f;
  --muted: #6d6d76;
  --paper: #f5f5f8;
  --line: #e3e3ea;

  /* Nama variabel mengikuti template sebelumnya. */
  --orange: #bd1230;
  --orange-dark: #910922;
  --red: #bd1230;
}

/* LATAR DAN HEADER */

body {
  color: #ededf2;
  background:
    radial-gradient(
      ellipse at 80% 0%,
      rgba(189, 18, 48, 0.16),
      transparent 50%
    ),
    linear-gradient(145deg, #19191f, #08080b);
}

.site-header {
  color: #fff;
}

.header-title h1 {
  color: #fff;
  text-shadow:
    0 1px 0 #ffffff30,
    0 3px 24px #ffffff18;
}

.site-header .eyebrow {
  color: #ff8097;
}

.header-title p {
  color: #bdbdc8;
}

.brand,
.brand-mark {
  color: #fff;
  background:
    linear-gradient(140deg, #3b3b43, #101014 55%, #25252c);
  border: 1px solid #ffffff30;
  box-shadow:
    inset 0 1px 0 #ffffff30,
    0 8px 28px #00000040;
}

.brand svg {
  stroke: #ff3a58;
}

.brand-mark > span {
  color: #ff3a58;
}

/* PROMO / TEKS BERJALAN */

.promo-strip {
  color: #fff;
  border-color: #d71939;
  background: linear-gradient(180deg, #29292f, #111115);
  box-shadow:
    0 0 18px #d7193920,
    inset 0 1px 0 #ffffff18;
}

.promo-track span::after {
  color: #ff4d6b;
}

/* AREA KATALOG */

.catalog-main {
  color: #19191f;
  background: linear-gradient(145deg, #fff, #f7f7fa);
  border-radius: 12px;
  box-shadow: 0 14px 40px #00000020;
}

.catalog-heading h2 {
  color: #19191f;
}

.catalog-heading p,
.filter-control > label {
  color: #676772;
}

/* FILTER PRODUK */

.filter-box {
  background: linear-gradient(180deg, #fff, #fafafd);
  border-color: #d9d9e3;
  box-shadow: inset 0 1px 0 #fff;
}

.filter-box:focus-within {
  border-color: #bd1230;
  box-shadow: 0 0 0 1px #bd1230;
}

.filter-box select {
  color: #24242a;
}

.filter-box svg {
  stroke: #a3112b;
}

/* MENU KATEGORI */

.category-button {
  color: #42424b;
  background: #fff;
  border-color: #dedee7;
}

.category-button:hover {
  color: #a80d29;
  border-color: #c21c3a;
  background: #fff6f8;
}

.category-button[aria-pressed="true"] {
  color: #fff;
  border-color: #ad102b;
  background: linear-gradient(145deg, #ce1c3b, #950820);
  box-shadow:
    inset 0 1px 0 #ffffff25,
    0 4px 12px #bd123018;
}

.category-button[aria-pressed="true"] .category-count {
  color: #fff;
}

/* KARTU PRODUK */

.product-card {
  color: #fff;
  background: #a30a24;
  border: 1px solid #ffffff15;
  box-shadow: 0 6px 20px #0000001a;
}

.product-card:hover {
  box-shadow: 0 10px 28px #b20e3030;
}

.product-banner {
  background: linear-gradient(135deg, #303036, #111115);
}

.product-caption {
  color: #fff;
  background:
    linear-gradient(160deg, #ffffff0c, transparent 45%),
    linear-gradient(120deg, #9b0922, #c61735 54%, #81051c);
  border-top: 1px solid #ff849940;
}

.product-caption h3 {
  color: #fff;
}

.product-caption p {
  color: #fff3f5;
}

/* Menyesuaikan warna ilustrasi contoh bawaan. */
img[src^="assets/banners/"] {
  filter: grayscale(1);
}

.catalog-note {
  color: #6c6c76;
}

.note-dot {
  background: #c61735;
}

.site-footer {
  color: #babac6;
  border-color: #ffffff20;
}

.site-footer a,
.site-footer a:hover {
  color: #fff;
}

/* TOMBOL */

.text-button,
.orange,
.required {
  color: #ae0e2c;
}

.solid-button,
.button-primary {
  color: #fff;
  border-color: #9d0c27;
  background:
    linear-gradient(165deg, #ffffff14, transparent 45%),
    linear-gradient(180deg, #c81737, #9d0a25);
  box-shadow:
    inset 0 1px 0 #ffffff30,
    0 4px 14px #a30a2426;
}

.solid-button:hover,
.button-primary:hover {
  color: #fff;
  background: linear-gradient(180deg, #d51d3e, #ae0e2c);
}

.button-secondary {
  color: #33333d;
  border-color: #dcdce6;
  background: linear-gradient(180deg, #fff, #fafafd);
}

.button-secondary:hover {
  color: #a80e2c;
  background: #fff6f8;
  border-color: #dda7b5;
}

.button-danger {
  color: #fff;
  border-color: #950b27;
  background: linear-gradient(180deg, #b81534, #950b27);
}

.button-danger:hover {
  background: #a5102e;
}

.icon-button.danger:hover {
  color: #af102f;
  background: #fff0f4;
}

/* PANEL ADMIN */

.workspace {
  color: #19191f;
  background: #f5f5f8;
}

.sidebar,
.workspace-topbar {
  color: #fff;
  border-color: #36363e;
  background:
    linear-gradient(125deg, #ffffff0c, transparent 48%),
    linear-gradient(180deg, #25252c, #111115);
}

.sidebar-brand,
.sidebar-brand:hover {
  color: #fff;
}

.sidebar-brand small,
.sidebar-label,
.topbar-dim,
.admin-profile {
  color: #bdbdc9;
}

.topbar-divider {
  color: #777782;
}

.side-nav .nav-item {
  color: #d2d2dc;
}

.side-nav .nav-item:hover {
  color: #fff;
  background: #ffffff0c;
}

.side-nav .nav-item.is-current {
  color: #fff;
  border-bottom-color: #ff5a78;
  background: linear-gradient(145deg, #c91a3b, #9c0a28);
  box-shadow: inset 0 1px 0 #ffffff28;
}

.nav-count {
  color: #fff;
  background: #b71030;
}

.side-nav .nav-item.is-current .nav-count {
  background: #ffffff24;
}

.sidebar-note {
  color: #fff;
  background: #ffffff07;
  border-color: #393941;
}

.sidebar-note p,
.sidebar-note > .icon {
  color: #b1b1bf;
}

.catalog-link,
.catalog-link:hover {
  color: #e2e2eb;
}

.avatar {
  color: #fff;
  background: linear-gradient(145deg, #d21d40, #9f0c29);
}

/* FORM, DAFTAR PRODUK, DAN DAFTAR KATEGORI */

.product-panel,
.form-card,
.stat-card {
  color: #19191f;
  background: #fff;
  border-color: #e3e3eb;
  box-shadow:
    inset 0 1px 0 #fff,
    0 4px 16px #10101404;
}

.list-toolbar,
.form-card-heading,
.dialog-header {
  background: linear-gradient(180deg, #fff, #fbfbfd);
}

.product-list-head,
.category-list-head,
.dialog-footer,
.uncategorized-row {
  background: #f8f8fb;
}

.stat-tag,
.status-button,
.demo-pill {
  color: #a50e2c;
  background: #fcecf0;
}

.stat-tag.neutral,
.status-button.is-hidden,
.product-category-badge {
  color: #696973;
  background: #f0f0f5;
}

.dialog-icon,
.confirm-icon,
.section-icon,
.empty-icon,
.category-symbol {
  color: #b71030;
  border-color: #edcbd5;
  background: linear-gradient(145deg, #fff5f7, #fce7ed);
}

.dialog-icon svg {
  stroke: #b71030;
}

.logo-preview,
.banner-dropzone.has-image {
  background: #16161b;
}

.banner-dropzone.is-dragover {
  background: #fff0f4;
  border-color: #bd1230;
}

.toggle-row input:checked + .switch {
  background: linear-gradient(180deg, #d11c40, #a20b2c);
}

/* DIALOG DAN NOTIFIKASI */

.example-dialog,
.editor-dialog,
.confirm-dialog,
.auth-card {
  color: #19191f;
  background: #fff;
  border-color: #e1e1e9;
  box-shadow:
    0 24px 90px #00000050,
    inset 0 1px 0 #fff;
}

.example-dialog::backdrop,
.editor-dialog::backdrop,
.confirm-dialog::backdrop {
  background: #08080f99;
}

.notice,
.form-message {
  color: #a3102e;
  background: #fff1f4;
  border-color: #efbeca;
}

.form-message.is-success {
  color: #34343e;
  background: #f5f5f8;
  border-color: #d9d9e3;
}

.upload-status.is-error {
  color: #ad1232;
}

.toast {
  color: #fff;
  border: 1px solid #41414d;
  background: linear-gradient(145deg, #303039, #15151c);
  box-shadow:
    0 8px 30px #00000040,
    inset 0 1px 0 #ffffff20;
}

.toast > .icon {
  color: #ff839d;
}

/* HALAMAN LOGIN */

.auth-screen {
  color: #19191f;
  background:
    radial-gradient(
      ellipse at 90% 0%,
      #bd123014,
      transparent 50%
    ),
    #f5f5f8;
}

.auth-card .eyebrow,
.auth-back,
.auth-back:hover {
  color: #ab1230;
}

/* PENANDA FOKUS KEYBOARD */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.file-button:focus-within {
  outline: 3px solid #dd2a4b;
  outline-offset: 3px;
}

/* EFEK KILAU PUTIH HALUS */

.brand,
.product-caption,
.button-primary,
.solid-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.brand::after,
.product-caption::after,
.button-primary::after,
.solid-button::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -65%;
  width: 30%;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent,
      #ffffff26,
      transparent
    );
  transform: skewX(-18deg);
  animation: kilauTema 8s ease-in-out infinite;
}

@keyframes kilauTema {
  0%,
  65% {
    left: -65%;
    opacity: 0;
  }

  70% {
    opacity: 0.6;
  }

  90% {
    left: 145%;
    opacity: 0.6;
  }

  100% {
    left: 145%;
    opacity: 0;
  }
}

/* Mengikuti preferensi pengguna untuk mengurangi animasi. */
@media (prefers-reduced-motion: reduce) {
  .brand::after,
  .product-caption::after,
  .button-primary::after,
  .solid-button::after {
    animation: none;
    display: none;
  }
}

/* Logo tampil utuh tanpa kotak, bingkai, atau lapisan kilau. */
.site-header .brand {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}
.site-header .brand::before,
.site-header .brand::after { content: none; display: none; }
.site-header .brand > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-header .brand > span { padding: 0; }

/* Ruang bernapas setelah running text, termasuk pada ponsel. */
.catalog-main {
  margin-top: 32px;
  margin-bottom: 24px;
  width: calc(100% - 32px);
}
@media (max-width: 600px) {
  .catalog-main {
    margin-top: 24px;
    width: calc(100% - 24px);
  }
}
