:root {
  --ink: #171717;
  --muted: #615f5a;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #dfdbd2;
  --orange: #ef4f2f;
  --orange-dark: #bd301a;
  --green: #127c56;
  --blue: #0e6586;
  --yellow: #f2b84b;
  --charcoal: #1b1b1b;
  --shadow: 0 16px 42px rgba(23, 23, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #37332f;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.site-nav a:hover {
  border-color: var(--orange);
}

.cart-button,
.product-actions button,
.cart-head button,
.copy-button,
.category-filters button,
.admin-actions button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 900;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--orange);
}

.hero {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.commerce-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
  gap: 48px;
  align-items: center;
  min-height: 640px;
  padding: 54px 0 34px;
}

.hero-copy h1,
.section-heading h2,
.copy-block h1,
.copy-block h2,
.article-body h1,
.admin-panel h1 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: 4rem;
}

.hero-copy p:not(.eyebrow),
.copy-block p,
.section-heading p,
.article-body p,
.admin-panel p {
  color: var(--muted);
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 20px 0 0;
  font-size: 1.12rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.button.primary {
  background: var(--orange);
  color: #fff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.hero-product-wall {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  grid-template-rows: 230px 230px;
  gap: 14px;
}

.hero-product-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-product-wall img:first-child {
  grid-row: span 2;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  padding: 1px max(22px, calc((100vw - 1180px) / 2));
}

.trust-strip div {
  min-height: 104px;
  padding: 22px;
  background: #fff;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.copy-block h1,
.copy-block h2,
.admin-panel h1 {
  max-width: 780px;
  font-size: 2.55rem;
}

.count-label {
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px;
  gap: 12px;
  margin-bottom: 16px;
}

.catalog-tools input,
.catalog-tools select,
.admin-form input,
.admin-form textarea,
.cart-item input {
  width: 100%;
  border: 1px solid #cbc7bd;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.catalog-tools input,
.catalog-tools select {
  min-height: 46px;
  padding: 0 13px;
}

.catalog-tools input:focus,
.catalog-tools select:focus,
.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(14, 101, 134, 0.16);
}

.category-filters {
  display: block;
  margin-bottom: 24px;
}

.category-select {
  display: grid;
  gap: 8px;
  max-width: 460px;
}

.category-select span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #6f6a61;
}

.category-select select {
  min-height: 46px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  appearance: auto;
}

.category-select option {
  background: #fff;
  color: var(--ink);
}

.category-select select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(14, 101, 134, 0.16);
}

.category-current {
  margin: 0;
  color: #4e4a43;
  font-size: 0.9rem;
  line-height: 1.45;
}

.category-current strong {
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.load-more-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.product-card,
.article-card,
.admin-panel,
.cart-page,
.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.06);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.product-image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #eee8df;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.product-image.has-broken-image::after {
  content: "Gambar tidak tersedia";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.product-video-flag {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.82);
  padding: 5px 10px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.product-body {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.storefront-name {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-body h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.28;
}

.product-description-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.product-summary-link {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.product-summary-link:hover .product-description-chip {
  border-color: var(--orange);
  color: var(--orange);
}

.product-summary-link p {
  margin: 0;
  min-height: 72px;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.product-copy p:not(.storefront-name) {
  margin: 0;
  min-height: 72px;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.product-meta {
  display: grid;
  gap: 4px;
  color: #55514b;
  font-size: 0.86rem;
}

.product-meta strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.product-actions button,
.product-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  font-weight: 900;
}

.product-actions button {
  background: var(--orange);
  color: #fff;
}

.product-actions a {
  border: 1px solid var(--line);
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: start;
}

.article-grid {
  display: grid;
  gap: 14px;
}

.article-card {
  padding: 22px;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-card span {
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-video-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 10px 0 0;
  font-size: 1.22rem;
}

.article-card p {
  color: var(--muted);
}

.text-link {
  color: var(--orange-dark);
  font-weight: 900;
}

.article-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.article-product-panel,
.article-panel {
  display: grid;
  gap: 16px;
}

.article-product-image {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eee8df;
}

.article-facts {
  display: grid;
  gap: 10px;
}

.article-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.article-facts span {
  color: var(--muted);
  font-size: 0.86rem;
}

.article-facts strong {
  color: var(--ink);
  text-align: right;
}

.detail-status {
  width: min(1180px, calc(100% - 44px));
  margin: 28px auto 0;
  color: var(--muted);
  font-weight: 800;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 30px;
  align-items: center;
}

.product-detail-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4eee5;
  aspect-ratio: 1 / 1;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-image.placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.product-detail-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  padding-top: 18px;
}

.product-detail-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.product-detail-facts span {
  color: var(--muted);
  font-size: 0.86rem;
}

.product-detail-facts strong {
  color: var(--ink);
  text-align: right;
}

.product-detail-video {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto 64px;
}

.article-cta-group,
.article-side-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.article-side-links {
  grid-template-columns: 1fr;
}

.article-media-section {
  padding-top: 0;
}

.article-video-wrap {
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  aspect-ratio: 16 / 9;
}

.article-video-wrap video,
.article-video-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  background: #111;
  border: 0;
}

.article-video-note {
  margin: 0.875rem 0 0.5rem;
  color: #475569;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(23, 23, 23, 0.36);
  opacity: 0;
  transition: opacity 180ms ease;
}

.cart-drawer.is-open {
  opacity: 1;
}

.cart-panel {
  width: min(420px, calc(100% - 28px));
  height: 100%;
  margin-left: auto;
  padding: 22px;
  background: #fff;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-head,
.cart-total,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cart-head h2 {
  margin: 0;
}

.cart-head button {
  border-radius: 8px;
  min-height: 36px;
  padding: 0 12px;
  background: #eee9df;
  font-weight: 900;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item strong,
.cart-item span,
.cart-item label {
  display: block;
}

.cart-item span {
  color: var(--muted);
}

.cart-item label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.cart-item input {
  max-width: 82px;
  min-height: 34px;
  margin-top: 4px;
  padding: 0 8px;
}

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  cursor: pointer;
  font-weight: 900;
}

.cart-total {
  margin: 20px 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.empty-note {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
}

.site-footer {
  min-height: 92px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  background: var(--charcoal);
  color: #fff;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: #ffd7cc;
}

.page-hero {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 72px 0 34px;
}

.page-hero .copy-block p {
  max-width: 720px;
}

.storefront-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.info-panel {
  padding: 22px;
}

.info-panel h2,
.info-panel h3 {
  margin-top: 0;
}

.article-body {
  width: min(820px, calc(100% - 44px));
  margin: 0 auto;
  padding: 66px 0 84px;
}

.article-body h1 {
  font-size: 3rem;
}

.article-body h2 {
  margin-top: 34px;
}

.article-body p,
.article-body li {
  color: #44413c;
  font-size: 1.05rem;
}

.article-body a {
  color: var(--orange-dark);
  font-weight: 900;
}

.cart-page,
.admin-panel {
  width: min(940px, calc(100% - 44px));
  margin: 54px auto 84px;
  padding: 28px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #403d38;
  font-weight: 900;
}

.admin-form input,
.admin-form textarea {
  min-height: 42px;
  padding: 10px 12px;
}

.admin-form textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions button,
.copy-button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.seo-preview,
.code-preview {
  border-radius: 8px;
  background: #171717;
  color: #f7f2e8;
  padding: 18px;
  overflow-x: auto;
  white-space: pre-wrap;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
}

.status-message {
  min-height: 24px;
  color: var(--green);
  font-weight: 900;
}

.protected-storefront .product-card {
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

@media (max-width: 980px) {
  .commerce-hero,
  .split-section,
  .article-product-hero,
  .product-detail-hero,
  .product-detail-section,
  .article-layout,
  .storefront-note,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .article-body h1 {
    font-size: 3rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero,
  .section,
  .page-hero,
  .article-body,
  .cart-page,
  .admin-panel {
    width: calc(100% - 32px);
  }

  .commerce-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-copy h1,
  .section-heading h2,
  .copy-block h1,
  .copy-block h2,
  .article-body h1,
  .admin-panel h1 {
    font-size: 2.12rem;
  }

  .hero-product-wall,
  .catalog-tools,
  .product-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .article-cta-group {
    grid-template-columns: 1fr;
  }

  .hero-product-wall {
    grid-template-rows: repeat(3, 220px);
  }

  .hero-product-wall img:first-child {
    grid-row: auto;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
  }

  .cart-item button {
    grid-column: 2;
    justify-self: start;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 22px 18px;
  }
}
