:root {
  --primary: #1d5fc7;
  --primary-dark: #123f8a;
  --bg-cream: #faf6ee;
  --bg-alt: #f3efe4;
  --text-dark: #1a2b4c;
  --text-muted: #6b7280;
  --border: #e6e1d3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #fff;
  color: var(--text-dark);
}

a {
  text-decoration: none;
}

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

/* Header */
.site-header {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand img {
  height: 30px;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.link-account {
  font-size: 14px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
}

.user-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  min-width: 180px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: .15s ease;
  z-index: 20;
}

.user-dropdown:hover .dropdown-menu,
.user-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--text-dark);
}

.dropdown-menu a:hover {
  background: #f7f5ed;
}

.dropdown-cart-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dropdown-cart-link .cart-badge {
  position: static;
  display: inline-flex;
}

.btn-primary-sm {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
}

.btn-primary-sm:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 9px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
}

.btn-sm {
  display: inline-block;
  background: #eef2fb;
  color: var(--primary-dark);
  border: none;
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}

.btn-sm.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
}

/* Hero */
.hero {
  background: var(--bg-cream);
  padding: 50px 24px;
}

.hero-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 1;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: 38px;
  line-height: 1.25;
  color: var(--primary-dark);
  margin: 12px 0 16px;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  border-radius: 16px;
}

/* Stats bar */
.stats-bar {
  background: var(--bg-cream);
  border-top: 1px solid var(--border);
  padding: 20px 24px 40px;
}

.stats-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 22px;
  color: var(--primary-dark);
}

.stat-item span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Section */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-alt {
  background: var(--bg-alt);
  max-width: none;
}

.section-alt>* {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
}

.section.section-alt h2,
.section.section-alt .eyebrow {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.section-head p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 500px;
}

.section h2 {
  font-size: 26px;
  color: var(--primary-dark);
  margin: 8px 0;
}

.link-more {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Page hero */
.page-hero {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: 32px;
  color: var(--primary-dark);
  margin: 10px 0 12px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}

.page-hero-sm {
  padding: 32px 24px;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row-actions a {
  text-decoration: none;
}

.back-link {
  display: inline-block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Portfolio filter */
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  justify-content: center;
}

.portfolio-filter a {
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  background: #fff;
}

.portfolio-filter a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.count-badge {
  opacity: .7;
  font-weight: 600;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: block;
}

.portfolio-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(29, 95, 199, .12);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: #eee;
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.05);
}

.portfolio-thumb .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.portfolio-thumb .photo-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(26, 43, 76, .75);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.portfolio-thumb .thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 95, 199, .55);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transition: opacity .25s ease;
}

.portfolio-card:hover .thumb-overlay {
  opacity: 1;
}

.portfolio-card h4 {
  font-size: 14px;
  margin: 12px;
  color: var(--text-dark);
}

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

.product-grid .empty-text {
  grid-column: 1/-1;
  color: var(--text-muted);
  text-align: center;
  padding: 30px 0;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: block;
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(29, 95, 199, .12);
}

.product-thumb {
  display: block;
  aspect-ratio: 4/3;
  background: #f3f0e8;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-info {
  display: block;
  padding: 14px 14px 16px;
}

.product-info h4 {
  font-size: 14px;
  color: var(--text-dark);
  margin: 0 0 4px;
}

.product-cat {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.product-price {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 10px;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Filter bar (search & sort produk) */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.search-box {
  flex: 1 1 220px;
}

.search-box input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--primary);
}

.filter-select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  background: #fff;
  outline: none;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--primary);
}

.result-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}

.pagination a.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .page-link.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination .page-link.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Contact */
.contact-section {
  max-width: 1024px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.info-card h3 {
  font-size: 13px;
  color: var(--primary-dark);
  margin: 0 0 6px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.6;
}

.info-card a {
  color: var(--primary);
  font-weight: 600;
}

.info-card a:hover {
  color: var(--primary-dark);
}

.soc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.btn-soc {
  padding: 6px 14px;
  font-size: 12px;
  text-decoration: none;
  display: inline-block;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.contact-form h3 {
  margin: 0 0 4px;
  color: var(--primary-dark);
}

.contact-form .empty-text {
  margin: 0 0 16px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 14px 0 5px;
}

.contact-form .req {
  color: #d33;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.contact-form .btn-primary-sm {
  margin-top: 18px;
}

.contact-alert {
  background: #fdecea;
  border: 1px solid #f5c6c0;
  color: #b71c1c;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  max-width: 920px;
  margin: 0 auto 24px;
}

.contact-alert ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Profil Akun */
.profile-section {
  max-width: 1024px;
}

.profile-alert {
  background: #fdecea;
  border: 1px solid #f5c6c0;
  color: #b71c1c;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  margin: 0 0 20px;
}

.profile-alert ul {
  margin: 0;
  padding-left: 18px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: start;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.profile-card h3 {
  margin: 0 0 4px;
  color: var(--primary-dark);
}

.profile-card .empty-text {
  margin: 0 0 16px;
}

.profile-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 14px 0 5px;
}

.profile-card .req {
  color: #d33;
}

.profile-card input,
.profile-card select,
.profile-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: var(--text-dark);
}

.profile-card input:focus,
.profile-card select:focus,
.profile-card textarea:focus {
  border-color: var(--primary);
}

.profile-card input[readonly] {
  background: var(--bg-cream);
  color: var(--text-muted);
  cursor: not-allowed;
}

.profile-card .btn-primary-sm {
  margin-top: 18px;
}

.profile-card hr {
  border: 0;
  border-top: 1px dashed var(--border);
  margin: 24px 0 0;
}

.profile-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 5px 0 0;
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* Cart */
.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-form {
  margin-top: 4px;
}

.qty-custom-row td {
  background: var(--bg-cream);
  vertical-align: middle;
}

.qty-custom-input {
  width: 100%;
  max-width: 200px;
  padding: 9px 11px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.qty-min-msg {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #d33;
}

.qty-live {
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

.cart-empty {
  text-align: center;
  padding: 50px 0;
}

.cart-items {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.cart-legend {
  padding: 12px 16px;
  background: var(--bg-cream);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: .4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-legend code {
  text-transform: none;
}

.cart-item {
  border-top: 1px solid var(--border);
  padding-bottom: 8px;
}

.cart-item-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.cart-prod-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f3f0e8;
}

.cart-prod-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.cart-remove-link {
  font-size: 12px;
  color: var(--primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  margin-top: 4px;
}

.cart-line-list {
  padding: 0 16px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1.3fr 84px 1fr 1fr 30px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px dashed var(--border);
}

.cart-design {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.cart-design-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cart-design-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f3f0e8;
  flex: none;
}

.cart-design-name {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-design-name.is-missing {
  color: #b3541e;
  font-weight: 600;
}

.cart-design-upload {
  position: relative;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  background: #fff;
  flex: none;
}

.cart-design-upload input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.cart-design-upload.is-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.cart-design-name.is-chosen {
  color: var(--text-dark);
  font-weight: 600;
}

/* Strip multi-file design per baris: tiap file = satu thumb + tombol hapus. */
.cart-design-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.cart-layer {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.cart-layer-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #b3541e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  text-decoration: none;
  z-index: 2;
}

.cart-layer-x:hover {
  background: #8f4218;
}

.cart-layer.is-missing .cart-thumb-missing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b3541e;
  font-weight: 700;
  background: #fdf1e7;
}

.cart-warn {
  font-size: 12px;
  color: #b3541e;
  background: #fdf3e7;
  border: 1px solid #f0d9bd;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 8px;
}

.cart-qty {
  width: 70px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.cart-price {
  font-size: 14px;
}

.cart-disc {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 8px;
  margin-left: 4px;
}

.cart-unit-base {
  font-size: 11px;
}

.cart-total {
  font-size: 15px;
  color: var(--primary-dark);
  white-space: nowrap;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.cart-summary {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  position: sticky;
  top: 90px;
}

.cart-summary h3 {
  margin: 0 0 12px;
  color: var(--primary-dark);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  color: var(--text-muted);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  font-size: 16px;
  color: var(--primary-dark);
}

.cart-summary .btn-primary-sm {
  display: block;
  text-align: center;
  margin: 12px 0 8px;
}

.cart-summary .empty-text {
  font-size: 12px;
  line-height: 1.6;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 4px;
  flex-wrap: wrap;
}

.cart-item-total {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-muted);
}

.cart-item-total strong {
  color: var(--primary-dark);
}

/* ---- Design final di keranjang ---- */
.cart-design-cell {
  flex-wrap: wrap;
}

.cart-design-final {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

/* Design final = JPG di atas latar putih, jadi tidak ada lagi motif transparan di sini. */
.cart-final-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  flex: none;
}

.cart-final-state {
  font-size: 11px;
  font-weight: 600;
  color: #b3541e;
}

.cart-final-state.is-ready {
  color: #2e7d32;
}

.cart-design-btn {
  font-size: 11px;
  padding: 5px 10px;
}

/* ---- Editor desain (cart-design.php) ---- */
.de-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}

.de-stage-box {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.de-stage-box .empty-text {
  margin: 0 0 12px;
  font-size: 12px;
}

.de-scale-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.de-panel .de-scale-controls input[type=range] {
  flex: 1;
  width: auto;
}

/* Latar panggung = putih, sama seperti design final (JPG di atas kertas putih).
   Kalau pakai motif transparan, mata mengira area abu-abu itu ikut tercetak. */
.de-stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.de-stage.is-dragging {
  cursor: grabbing;
}

.de-stage img,
.de-stage canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  user-select: none;
  -webkit-user-drag: none;
}

.de-stage canvas {
  display: block;
}

.de-art {
  transform-origin: center center;
}

.de-tpl {
  transform: translate(-50%, -50%);
  max-width: none;
  display: block;
}

.de-stage.is-tpl-hidden .de-tpl {
  visibility: hidden;
}

.de-stage .de-preview {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  z-index: 30;
  display: none;
  background: #fff;
  pointer-events: none;
}

.de-stage .de-preview.is-visible {
  display: block;
}

.de-panel .de-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 6px;
}

.de-panel input[type=range] {
  width: 100%;
  padding: 0;
}

.de-result {
  max-width: min(100%, 340px);
  height: auto;
  display: block;
}

@media (max-width:900px) {
  .de-wrap {
    grid-template-columns: 1fr;
  }
}

.de-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
}

.de-chip {
  position: relative;
  width: 54px;
  height: 54px;
  padding: 3px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.de-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  pointer-events: none;
}

.de-chip span {
  position: absolute;
  bottom: -7px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border-radius: 9px;
  background: var(--text-dark, #333);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.de-chip.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .06);
}

.de-chip.is-dragging {
  opacity: .65;
  cursor: grabbing;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  z-index: 2;
}

.de-chip.is-drop {
  outline: 2px dashed var(--primary);
  outline-offset: 2px;
}

.de-art {
  outline: none;
}

.de-art.is-active {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Modal crop desain */
.de-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 20, 20, .65);
}

.de-crop-modal[hidden] {
  display: none;
}

.de-crop-dialog {
  width: min(860px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.de-crop-dialog h3 {
  margin: 0 0 6px;
}

.de-crop-dialog>.empty-text {
  margin: 0 0 12px;
  font-size: 12px;
}

.de-crop-stage {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  background: #f4f1ea;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  touch-action: none;
}

.de-crop-stage img {
  display: block;
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.de-crop-box {
  position: absolute;
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45);
  cursor: move;
  touch-action: none;
  box-sizing: border-box;
}

.de-crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  box-sizing: border-box;
}

.de-crop-handle[data-handle="nw"] {
  left: -7px;
  top: -7px;
  cursor: nwse-resize;
}

.de-crop-handle[data-handle="ne"] {
  right: -7px;
  top: -7px;
  cursor: nesw-resize;
}

.de-crop-handle[data-handle="sw"] {
  left: -7px;
  bottom: -7px;
  cursor: nesw-resize;
}

.de-crop-handle[data-handle="se"] {
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
}

.de-crop-handle-edge[data-handle="n"] {
  left: 50%;
  top: -7px;
  margin-left: -7px;
  cursor: ns-resize;
}

.de-crop-handle-edge[data-handle="e"] {
  right: -7px;
  top: 50%;
  margin-top: -7px;
  cursor: ew-resize;
}

.de-crop-handle-edge[data-handle="s"] {
  left: 50%;
  bottom: -7px;
  margin-left: -7px;
  cursor: ns-resize;
}

.de-crop-handle-edge[data-handle="w"] {
  left: -7px;
  top: 50%;
  margin-top: -7px;
  cursor: ew-resize;
}

.de-crop-dialog .de-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  justify-content: flex-end;
}

.cart-x {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-cream);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.cart-x:hover {
  background: #d33;
  border-color: #d33;
  color: #fff;
}

.cart-qty.is-invalid {
  border-color: #d33;
  background: #fdecea;
}

.cart-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #d33;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
  z-index: 50;
  max-width: 90%;
  text-align: center;
}

.cart-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-line {
    grid-template-columns: 1fr 84px;
  }

  .cart-line .cart-design,
  .cart-line .cart-design-cell {
    grid-column: 1;
    grid-row: 1;
  }

  .cart-line .cart-qty {
    grid-column: 2;
    grid-row: 1;
  }

  .cart-line .cart-price,
  .cart-line .cart-total {
    grid-column: 1;
  }

  .cart-line>.cart-x:last-child {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .cart-item-total {
    margin-left: 0;
  }
}

/* Product detail */
.pdetail-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: start;
}

.pdetail-gallery .pdetail-main {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #f3f0e8;
  aspect-ratio: 1/1;
  cursor: zoom-in;
}

.pdetail-gallery .pdetail-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdetail-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(26, 43, 76, .75);
  color: #fff;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}

.pdetail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pdetail-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #f3f0e8;
  cursor: pointer;
}

.pdetail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdetail-thumb.is-active,
.pdetail-thumb:hover {
  border-color: var(--primary);
}

.pdetail-info h2 {
  font-size: 28px;
  color: var(--primary-dark);
  margin: 8px 0 10px;
}

.pdetail-price {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.pdetail-price strong {
  color: var(--primary-dark);
  font-size: 17px;
}

.pdetail-desc {
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 15px;
}

.pdetail-template {
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 6px;
}

.pdetail-sub {
  margin: 22px 0 10px;
  font-size: 16px;
  color: var(--primary-dark);
}

.table-wrap {
  overflow-x: auto;
}

.variant-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.variant-table th,
.variant-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
}

.variant-table th {
  background: var(--bg-cream);
  color: var(--primary-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.variant-table tr:hover td {
  background: #fbf9f2;
}

.variant-table .total-cell {
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.unit-cross {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 12px;
}

.pdetail-cta {
  margin-top: 24px;
}

.pdetail-notes {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.pdetail-notes p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 800px) {
  .pdetail-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* Portfolio detail */
.portfolio-desc {
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 26px;
  text-align: center;
}

.detail-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.detail-meta .tag {
  background: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.detail-date {
  font-size: 13px;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--border);
  background: #eee;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.detail-cta {
  text-align: center;
  margin-top: 40px;
  padding: 28px;
  background: var(--bg-cream);
  border-radius: 16px;
}

.detail-cta p {
  color: var(--text-dark);
  font-weight: 600;
  margin: 0 0 14px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 16, 32, .92);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 92%;
  max-height: 88%;
  border-radius: 8px;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox button:hover {
  background: var(--primary);
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

/* Services */
.section-sub {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 520px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.step-card h4 {
  color: var(--primary-dark);
  margin: 0 0 6px;
  font-size: 15px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 800px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.service-card h4 {
  color: var(--primary-dark);
  margin: 0 0 8px;
}

.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Testimonial */
.testimonial-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.testimonial-card {
  min-width: 320px;
  background: var(--bg-cream);
  border-radius: 14px;
  padding: 22px;
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--text-dark);
  font-size: 14px;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.testimonial-person img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

/* Dipakai kalau klien tidak diunggah fotonya: lingkaran berisi huruf awal. */
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
  flex: 0 0 44px;
}

.testimonial-person strong {
  display: block;
  font-size: 14px;
}

.testimonial-person div>span {
  display: block;
}

.testimonial-person span {
  font-size: 12px;
  color: var(--text-muted);
}

.stars {
  color: #f5a623;
  font-size: 13px;
}

.testimonial-card .stars .off {
  color: #d8d3c6;
}

/* Halaman Link (link_page.php) */
.link-section {
  padding-top: 64px;
}

.link-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 8px;
}

.link-group__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin: 0 0 12px;
}

.link-group__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
  text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.link-card__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.link-card__body {
  flex: 1;
  min-width: 0;
}

.link-card__body strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
}

.link-card__host {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__arrow {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
}

.link-card:hover .link-card__arrow {
  color: var(--primary);
}

.link-contact {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.link-empty {
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
}

/* Tentang Kami */
.about-section {
  padding-top: 48px;
}

.about-story {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  margin: 14px 0 44px;
}

.about-story-text p {
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.8;
}

.about-story-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(18, 63, 138, .15);
}

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

.vm-card {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.vm-card .vm-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.vm-card h3 {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 20px;
}

.vm-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.cta-section {
  text-align: center;
  padding: 50px 24px;
}

.cta-section h2 {
  margin: 6px 0 8px;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.cta-section .hero-actions {
  justify-content: center;
}

@media (max-width: 800px) {
  .about-story {
    grid-template-columns: 1fr;
  }

  .vm-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #cfe0ff;
  padding: 40px 24px;
}

.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand img {
  height: 24px;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 12px;
  color: #9fb6e8;
  margin: 0;
}

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

.footer-nav a {
  color: #cfe0ff;
  font-size: 13px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

.footer-addr {
  font-size: 13px;
  color: #cfe0ff;
  margin: 0;
}

.footer-link {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.footer-socs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.footer-soc {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 14px;
}

.footer-soc:hover {
  background: rgba(255, 255, 255, .25);
}

.footer-copy {
  font-size: 12px;
  color: #9fb6e8;
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

.empty-text {
  color: var(--text-muted);
  font-size: 14px;
}

/* Flash message (setFlash) - muncul di bawah header */
.container-flash {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 24px;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid transparent;
}

.alert-success {
  background: #e2f7e8;
  color: #1b7a3d;
  border-color: #bfe8cd;
}

.alert-error {
  background: #fde8e8;
  color: #b02a2a;
  border-color: #f6c9c9;
}

.alert-warning {
  background: #fff6e0;
  color: #8a5a00;
  border-color: #f2dda6;
}

/* Halaman konfirmasi pesanan (order-success.php) */
.order-wrap {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 32px;
  align-items: start;
}

.order-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 22px;
}

.order-box+.order-box {
  margin-top: 22px;
}

.order-box h3 {
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--primary-dark);
}

.order-box h3:not(:first-child) {
  margin-top: 22px;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
}

.order-table th,
.order-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-align: left;
}

.order-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-muted);
}

.order-table tfoot th {
  font-size: 15px;
  color: var(--primary-dark);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-pending {
  background: #fff3d6;
  color: #8a5a00;
}

.badge-process,
.badge-stage-in_progress {
  background: #dceafd;
  color: #1d5fc7;
}

.badge-shipping {
  background: #e8e2fd;
  color: #5b3fb8;
}

.badge-done,
.badge-stage-done {
  background: #e2f7e8;
  color: #1b7a3d;
}

.badge-cancelled {
  background: #fde8e8;
  color: #b02a2a;
}

.badge-stage-pending {
  background: #eee;
  color: #667;
}

/* Status pembayaran pesanan (dicek di menu Metode Pembayaran admin) */
.badge-unpaid {
  background: #eee;
  color: #667;
}

.badge-checking {
  background: #fff3d6;
  color: #8a5a00;
}

.badge-paid {
  background: #e2f7e8;
  color: #1b7a3d;
}

.badge-rejected {
  background: #fde8e8;
  color: #b02a2a;
}

.stage-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.stage-item {
  display: flex;
  gap: 12px;
  border-left: 3px solid var(--border);
  padding-left: 14px;
}

.stage-item.stage-done {
  border-color: #1b7a3d;
}

.stage-item.stage-in_progress {
  border-color: var(--primary);
}

.stage-body strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.badge-material {
  background: #eef2fb;
  color: #2b4b8f;
}

.order-box h3 .badge {
  vertical-align: middle;
  margin-left: 8px;
}

/* Halaman pembayaran: pilih metode + upload bukti bayar */
.pay-method-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.pay-method {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: #fff;
}

.pay-method:hover {
  border-color: var(--primary);
}

.pay-method:has(input:checked) {
  border-color: var(--primary);
  background: #f6f9ff;
}

.pay-method input {
  margin-top: 3px;
  flex: none;
}

.pay-method strong {
  display: block;
  font-size: 15px;
  color: var(--primary-dark);
}

.pay-method .pay-account {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
  word-break: break-all;
}

.pay-method .pay-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.pay-proof-box {
  display: block;
  margin-top: 14px;
  padding: 16px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fbfcff;
  cursor: pointer;
}

.pay-proof-box:hover {
  border-color: var(--primary);
}

.pay-proof-box input {
  width: 100%;
  font-size: 14px;
}

.pay-proof-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.pay-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}

.pay-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Rantai stage per item pesanan: thumbnail desain final + judul produk */
.chain-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.chain-head h3 {
  margin: 0 0 4px;
}

.chain-head .empty-text {
  font-size: 13px;
}

.chain-text {
  min-width: 0;
}

.chain-thumb {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  flex: none;
  cursor: zoom-in;
}

.chain-thumb:hover {
  border-color: var(--primary);
}

.order-table .cart-final-thumb {
  cursor: zoom-in;
}

/* Penampil gambar besar (include/zoom-image.php): klik thumbnail desain */
.img-zoom {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 16, 32, .92);
  display: none;
  align-items: center;
  justify-content: center;
}

.img-zoom.is-open {
  display: flex;
}

.img-zoom-wrap {
  max-width: min(1100px, 92vw);
  text-align: center;
}

.img-zoom-wrap img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
}

.img-zoom-cap {
  color: #dbe6ff;
  font-size: 13px;
  margin: 12px 0 0;
  word-break: break-all;
}

.img-zoom-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.img-zoom-close:hover {
  background: var(--primary);
}

@media (max-width: 560px) {
  .chain-thumb {
    width: 104px;
    height: 104px;
  }

  .img-zoom-wrap img {
    max-height: 70vh;
  }
}

@media (max-width: 900px) {
  .hero-wrap {
    flex-direction: column;
  }

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

  .main-nav {
    display: none;
  }

  .order-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {

  .portfolio-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}