:root {
  --card-radius: 14px;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  --footer-accent: var(--primary, var(--accent, #2563eb));
  --footer-surface: var(--card, #ffffff);
  --footer-top-bg: linear-gradient(180deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02));
  --footer-bottom-bg: var(--footer-accent);
  --footer-contrast: #ffffff;
}
.text-muted {
  color: var(--muted, #6b7280);
}

.layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

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

.panel {
  background: var(--card, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow, var(--card-shadow));
  padding: 16px;
}
.category-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding: 10px 2px 4px;
  -webkit-overflow-scrolling: touch;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  width: 100%;
}
.category-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pill-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 700;
  font-size: 13px;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
  letter-spacing: 0.1px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.category-pill.active {
  background: var(--accent, #2563eb);
  color: #fff;
  border-color: var(--accent, #2563eb);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}
.category-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: var(--accent, #2563eb);
  background: #e5e7eb;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 18px 12px;
  border-radius: 16px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  color: var(--text, #1f2937);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.category-card:link,
.category-card:visited {
  color: var(--text, #1f2937);
  text-decoration: none;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: rgba(37, 99, 235, 0.4);
}
.category-card.active {
  border-color: var(--accent, #2563eb);
  background: linear-gradient(180deg, rgba(37,99,235,0.06), #fff);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15);
}
.category-thumb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.04));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: var(--accent, #2563eb);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.category-card.active .category-thumb {
  background: var(--accent, #2563eb);
  color: #fff;
  border-color: var(--accent, #2563eb);
}
.category-name {
  font-weight: 700;
  line-height: 1.3;
}
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.category-reset {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  color: var(--accent, #2563eb);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.category-reset:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--accent, #2563eb);
}
.category-title .eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  color: var(--muted, #6b7280);
  font-weight: 800;
}
.category-title .category-subtitle {
  margin: 4px 0 0;
  color: var(--muted, #6b7280);
}
.category-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  background: #f8fafc;
  color: var(--muted, #6b7280);
  font-weight: 600;
}
.category-status .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent, #2563eb);
  display: inline-block;
}
.category-status .dot.muted {
  background: #cbd5e1;
}
.category-status.status-active {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--accent, #2563eb);
}
.discount-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.discount-nav {
  display: inline-flex;
  gap: 8px;
}
.discount-nav button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  color: var(--text, #1f2937);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.discount-nav button:hover:enabled {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--accent, #2563eb);
  transform: translateY(-2px);
}
.discount-nav button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.discount-carousel {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}
.discount-track {
  display: flex;
  gap: 12px;
  min-height: 100%;
}
.discount-card {
  flex: 0 0 280px;
  max-width: 320px;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.discount-card .card-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.discount-card .card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.discount-card .card-title {
  margin: 0;
  font-size: 1.05rem;
}
.discount-card .card-title a {
  color: var(--text, #1f2937);
  text-decoration: none;
}
.discount-card .card-title a:hover {
  color: var(--accent, #2563eb);
}
.discount-card .card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.discount-card .badge-disc {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent, #2563eb);
  font-weight: 700;
  font-size: 0.9rem;
}
.discount-card .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.discount-card .actions .btn {
  flex: 1;
  text-align: center;
}
.cart-panel {
  position: sticky;
  top: 20px;
}
.floating-cart {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--accent, #2563eb);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 10000;
}
.floating-cart-count {
  background: #fff;
  color: var(--accent, #2563eb);
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
}
.floating-cart-total {
  font-weight: 700;
}

.panel h3 {
  margin: 0 0 10px;
}

.detail-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}

.detail-main {
  background: var(--card, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow, var(--card-shadow));
  padding: 16px;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 16px;
}

.detail-image img {
  width: 100%;
  border-radius: var(--card-radius);
  object-fit: cover;
}

.detail-info h1.detail-title {
  margin: 6px 0;
}

.detail-price {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 8px 0 12px;
}

.detail-meta {
  color: var(--muted, #6b7280);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-meta .sep {
  color: var(--muted, #6b7280);
}

.detail-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  color: var(--text, #1f2937);
  font-weight: 600;
}

.detail-desc h3 {
  margin: 10px 0 6px;
}

.detail-side .panel {
  position: sticky;
  top: 20px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.qty-row button {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  cursor: pointer;
}
.qty-row input {
  width: 70px;
  text-align: center;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 8px;
}
.qty-row .stock {
  margin-left: auto;
  color: var(--muted, #6b7280);
  font-size: 0.9rem;
}

.subtotal {
  font-weight: 800;
  margin: 8px 0;
}

.promo-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  margin-bottom: 16px;
}
.promo-track {
  display: flex;
  transition: transform 0.4s ease;
}
.promo-slide {
  min-width: 100%;
  position: relative;
}
.promo-slide img {
  width: 100%;
  display: block;
  height: 220px;
  object-fit: cover;
}
.promo-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.promo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
}
.promo-dot.active {
  background: var(--accent, #2563eb);
}

@media (max-width: 1024px) {
  .detail-wrap {
    grid-template-columns: 1fr;
  }
  .detail-main {
    grid-template-columns: 1fr;
  }
  .detail-side .panel {
    position: static;
  }
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg, #f7f7f7);
  border-radius: 10px;
  border: 1px solid var(--border, #e5e7eb);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-weight: 700;
}

.cart-item-price {
  color: var(--muted, #6b7280);
  font-size: 0.9rem;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  cursor: pointer;
}

.cart-qty input {
  width: 50px;
  text-align: center;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  padding: 6px;
}

.cart-footer {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field input,
.field textarea {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 10px;
  font-size: 1rem;
  background: #fff;
}

.total-line {
  font-weight: 800;
  font-size: 1.1rem;
}

footer.site-footer {
  margin-top: 24px;
  background: var(--footer-top-bg, var(--footer-surface, #f7faff));
  color: var(--text, #1f2937);
  border-top: 1px solid var(--border, #e5e7eb);
  border-bottom: 0;
  padding: 0;
  text-align: left;
}

.site-footer .footer-top,
.site-footer .footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
  padding-top: 52px;
  padding-bottom: 40px;
  align-items: flex-start;
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.site-footer .footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer .footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.site-footer .footer-brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text, #1f2937);
  line-height: 1.3;
}

.site-footer .footer-desc {
  margin: 0;
  color: var(--muted, #6b7280);
  line-height: 1.6;
}

.site-footer .footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer .footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--footer-surface, #ffffff);
  color: var(--muted, #6b7280);
  font-weight: 600;
}

.site-footer .footer-chip.tone {
  background: var(--footer-surface, #ffffff);
  border-color: var(--footer-accent, #2563eb);
  color: var(--footer-accent, #2563eb);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.site-footer .footer-chip-label {
  font-weight: 800;
  color: var(--text, #1f2937);
}

.site-footer .footer-payments {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted, #6b7280);
}

.site-footer .footer-payments img {
  max-width: 260px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.06));
}

.site-footer .footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.site-footer .footer-social {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--footer-surface, #ffffff);
  color: var(--footer-accent, #2563eb);
  font-weight: 800;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
  overflow: hidden;
}

.site-footer .footer-social.brand-wa {
  border-color: #25d366;
  color: #25d366;
}
.site-footer .footer-social.brand-shopee {
  border-color: #ff5b00;
  color: #ff5b00;
}
.site-footer .footer-social.brand-tokopedia {
  border-color: #05c15d;
  color: #05c15d;
}
.site-footer .footer-social.brand-tiktok {
  border-color: #161616;
  color: #161616;
}
.site-footer .footer-social.disabled {
  opacity: 0.5;
  cursor: default;
}
.site-footer .footer-social.disabled:hover {
  transform: none;
  box-shadow: none;
  background: var(--footer-surface, #ffffff);
  color: inherit;
}

.site-footer .footer-social.ghost {
  background: transparent;
  color: var(--footer-accent, #2563eb);
}

.site-footer .footer-social:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  background: currentColor;
  border-color: currentColor;
}

.site-footer .footer-social:hover .footer-social-icon {
  background-color: #ffffff;
}

.site-footer .footer-social-icon {
  display: block;
  width: 22px;
  height: 22px;
  text-indent: -9999px;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
}

.site-footer .icon-wa {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 1.5A10.5 10.5 0 0 0 3.1 17.17L2 22l4.95-1.04A10.5 10.5 0 1 0 12 1.5Zm5.1 13.1c-.25.7-1.25 1.28-1.99 1.45-.53.13-1.22.23-3.55-.76-2.98-1.23-4.89-4.28-5.04-4.48-.15-.2-1.2-1.6-1.2-3.05 0-1.46.76-2.17 1.03-2.47.26-.3.57-.37.76-.37h.56c.18 0 .43-.07.67.51.24.58.82 2 .9 2.15.07.15.12.32.02.52-.1.21-.15.32-.3.5l-.44.52c-.14.14-.3.3-.13.6.16.3.7 1.16 1.5 1.88 1.03.92 1.9 1.21 2.2 1.34.3.13.48.11.66-.07l.43-.5c.2-.26.4-.32.64-.21.24.1 1.52.72 1.78.85.26.13.43.2.5.32.06.12.06.72-.2 1.42Z'/%3E%3C/svg%3E");
}

.site-footer .icon-shopee {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6 7h1.4l.43-1.72A2.6 2.6 0 0 1 10.34 4h3.32a2.6 2.6 0 0 1 2.5 1.97L16.6 7H18a1 1 0 0 1 1 1.06l-.6 10.18a1.8 1.8 0 0 1-1.8 1.71H7.4A1.8 1.8 0 0 1 5.6 18.2L5 8.07A1 1 0 0 1 6 7Zm5.6-2.5c-.36 0-.68.24-.78.59L10.6 7h2.8l-.22-.91a.85.85 0 0 0-.82-.59h-1.76Zm.88 5.1c-1.15.2-1.84 1-1.84 2.09 0 1.08.61 1.74 1.92 2.23.7.25.9.44.9.83 0 .42-.34.7-.94.7-.7 0-1.3-.29-1.8-.71l-.56 1.1c.5.4 1.16.7 1.87.8V18h1.24v-1.17c1.1-.2 1.84-1.02 1.84-2.1 0-1.06-.62-1.7-1.83-2.16-.72-.27-.97-.47-.97-.87 0-.36.3-.64.82-.64.55 0 1.05.22 1.44.47l.52-1.02c-.4-.29-.95-.55-1.6-.63V8.8h-1.24v.8h-.02Z'/%3E%3C/svg%3E");
}

.site-footer .icon-tokopedia {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 8.5A1.5 1.5 0 0 1 6.5 7h1.09l.63-1.35A2.8 2.8 0 0 1 10.65 4h2.7c1 0 1.9.6 2.3 1.52L16.3 7H17.5A1.5 1.5 0 0 1 19 8.5v8A1.5 1.5 0 0 1 17.5 18h-11A1.5 1.5 0 0 1 5 16.5v-8Zm6.36-.17a2 2 0 0 0 1.32-.92 1 1 0 0 0-.85-1.5h-1.63a1 1 0 0 0-.86 1.5 2 2 0 0 0 1.32.92Zm-1.98 3.1a2.2 2.2 0 1 0 2.27 3.79 2.2 2.2 0 0 0-2.27-3.79Zm5.6 0a2.2 2.2 0 1 0 2.27 3.79 2.2 2.2 0 0 0-2.27-3.79Z'/%3E%3C/svg%3E");
}

.site-footer .icon-tiktok {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M13.5 3h2.1c.1 1.05.65 2.04 1.5 2.67.64.5 1.41.82 2.23.92V8.7a6.7 6.7 0 0 1-3.6-1.18v6.17a4.9 4.9 0 1 1-2.1-4.06V3Zm-1.9 7.54a2.8 2.8 0 0 0-1.17-.26 2.85 2.85 0 1 0 2.85 2.85V7.25c.43.4.92.74 1.47.98v6.24a4.9 4.9 0 1 1-3.15-4.4Z'/%3E%3C/svg%3E");
}

.site-footer .footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.site-footer .footer-col-title {
  font-weight: 800;
  color: var(--footer-accent, #2563eb);
  margin-bottom: 10px;
}

.site-footer .footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer .footer-links a {
  color: var(--text, #1f2937);
  text-decoration: none;
  font-weight: 700;
}

.site-footer .footer-links a:hover {
  color: var(--footer-accent, #2563eb);
}

.site-footer .footer-contact-line {
  margin: 0 0 10px;
  color: var(--muted, #6b7280);
}

.site-footer .footer-note {
  margin: 0;
  color: var(--muted, #6b7280);
  font-size: 0.95rem;
}

.site-footer .footer-bottom {
  background: var(--footer-bottom-bg, var(--footer-accent, #2563eb));
  color: var(--footer-contrast, #ffffff);
  padding: 16px 0;
  margin-top: 16px;
}

.site-footer .footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 1024px) {
  .site-footer .footer-top {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
  .site-footer .footer-brand-header {
    align-items: flex-start;
  }
}
