/* ============================================================
   Tinzry Studio — Digital Product Store
   Clean · Compact · Premium · Product-focused
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --card: #FFFFFF;
  --text: #111827;
  --muted: #64748B;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-soft: #EFF6FF;
  --dark: #0F172A;
  --border: #E2E8F0;
  --border-hover: #CBD5E1;
  --success: #059669;
  --wa: #25D366;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.06);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --t: 180ms ease;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-hover); }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
h1,h2,h3,h4 { font-weight: 600; line-height: 1.25; color: var(--text); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 14px;
}
@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

/* ========== NAVBAR ========== */
.tz-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t);
}
.tz-nav.is-scrolled { border-bottom-color: var(--border); }
.tz-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 14px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) {
  .tz-nav-inner { height: 58px; padding: 0 24px; }
}
.tz-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text) !important;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.tz-brand span { color: var(--primary); }
.tz-nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
.tz-nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
}
.tz-nav-links a:hover,
.tz-nav-links a.is-active { color: var(--text); background: var(--bg-alt); }
.tz-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tz-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
}
.tz-burger:hover { background: var(--bg-alt); }
@media (min-width: 900px) {
  .tz-nav-links { display: flex; }
  .tz-burger { display: none; }
}

/* Mobile drawer */
.tz-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15,23,42,.4);
}
.tz-drawer.open { display: block; }
.tz-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 88vw);
  height: 100%;
  background: var(--bg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: -8px 0 24px rgba(0,0,0,.08);
  animation: slideIn .2s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.tz-drawer-close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-alt);
  border-radius: 8px;
  color: var(--text);
  margin-bottom: 12px;
}
.tz-drawer-panel a {
  display: block;
  padding: 12px 14px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
}
.tz-drawer-panel a:hover { background: var(--bg-alt); }
.tz-drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff !important; }
.btn-outline {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text); background: var(--bg-alt); }
.btn-ghost {
  background: transparent;
  color: var(--muted) !important;
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text) !important; background: var(--bg-alt); }
.btn-dark {
  background: var(--dark);
  color: #fff !important;
}
.btn-dark:hover { background: #1e293b; color: #fff !important; }
.btn-wa {
  background: var(--wa);
  color: #fff !important;
  border-color: var(--wa);
}
.btn-wa:hover { background: #1da851; color: #fff !important; }
.btn-sm { padding: 5px 10px; font-size: .78rem; }
.btn-lg { padding: 11px 22px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ========== HERO (compact) ========== */
.hero {
  padding: 28px 0 24px;
  text-align: center;
  background: var(--bg);
}
@media (min-width: 768px) {
  .hero { padding: 48px 0 36px; }
}
.hero h1 {
  font-size: clamp(1.35rem, 4.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 560px;
  margin: 0 auto 10px;
}
.hero-desc {
  font-size: .9rem;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 18px;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .hero-desc { font-size: .98rem; }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.hero-stat .lbl {
  font-size: .72rem;
  color: var(--muted);
}

/* ========== CATEGORY CHIPS ========== */
.cat-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  transition: all var(--t);
}
.cat-chip:hover,
.cat-chip.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff !important;
}

/* ========== SECTION ========== */
.section {
  padding: 28px 0;
}
@media (min-width: 768px) {
  .section { padding: 40px 0; }
}
.section-alt { background: var(--bg-alt); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .section-head h2 { font-size: 1.35rem; }
}
.section-head p {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 2px;
}
.section-head .link-more {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ========== PRODUCT GRID — 3 COL MOBILE ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
}

/* ========== PRODUCT CARD (compact) ========== */
.p-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}
.p-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.p-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #F1F5F9;
  overflow: hidden;
}
.p-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}
.p-card:hover .p-card-img img { transform: scale(1.04); }
.p-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  font-size: 1.4rem;
}
.p-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--dark);
  color: #fff;
  border-radius: 4px;
  line-height: 1.3;
}
.p-card-body {
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}
@media (min-width: 640px) {
  .p-card-body { padding: 10px 10px 12px; }
}
.p-card-name {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.9em;
}
@media (min-width: 640px) {
  .p-card-name { font-size: .82rem; }
}
.p-card-price {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}
@media (min-width: 640px) {
  .p-card-price { font-size: .88rem; }
}
.p-card-price del {
  font-size: .68rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
}
.p-card-btn {
  margin-top: 6px;
  display: block;
  text-align: center;
  padding: 5px 0;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all var(--t);
}
.p-card-btn:hover {
  background: var(--dark);
  color: #fff !important;
  border-color: var(--dark);
}
@media (min-width: 640px) {
  .p-card-btn { font-size: .75rem; padding: 6px 0; }
}

/* ========== PORTFOLIO GRID ========== */
.port-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 640px) {
  .port-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 1024px) {
  .port-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.port-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border, #E2E8F0);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.port-card:hover {
  border-color: #93C5FD;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}
.port-card--text {
  aspect-ratio: auto;
}
.port-card-img {
  aspect-ratio: 16 / 10;
  background: #F1F5F9;
  overflow: hidden;
}
.port-card-img img,
.port-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 280ms ease;
}
.port-card:hover .port-card-img img,
.port-card:hover > img { transform: scale(1.04); }
.port-ph {
  width: 100%;
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 1.4rem;
  background: #F1F5F9;
}
.port-card-body {
  padding: 10px 12px 12px;
}
.port-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text, #111827);
  line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.port-card-cat {
  font-size: 0.72rem;
  color: var(--muted, #64748B);
}
.port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.75) 0%, rgba(15,23,42,.15) 45%, transparent 70%);
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.port-card:not(.port-card--text):hover .port-overlay {
  opacity: 1;
}
.port-overlay h3 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== WHY ========== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.why-item {
  padding: 14px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.why-item .ico {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 8px;
  font-size: .85rem;
  margin-bottom: 10px;
}
.why-item h3 {
  font-size: .85rem;
  margin-bottom: 3px;
}
.why-item p {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* ========== TESTIMONIALS ========== */
.testi-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.testi-scroll::-webkit-scrollbar { display: none; }
.testi-card {
  flex: 0 0 min(260px, 78vw);
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (min-width: 768px) {
  .testi-card { flex: 0 0 280px; }
}
.testi-stars {
  color: #F59E0B;
  font-size: .75rem;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.testi-card blockquote {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 8px;
}
.testi-card cite {
  font-size: .75rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

/* ========== FAQ ACCORDION ========== */
.faq-list { max-width: 640px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  background: none;
  border: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.faq-q i {
  font-size: .7rem;
  color: var(--muted);
  transition: transform var(--t);
}
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 0 14px;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }

/* ========== CTA ========== */
.cta-block {
  background: var(--dark);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
}
@media (min-width: 768px) {
  .cta-block { padding: 40px 32px; }
}
.cta-block h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
@media (min-width: 768px) {
  .cta-block h2 { font-size: 1.4rem; }
}
.cta-block p {
  color: #94A3B8;
  font-size: .85rem;
  max-width: 400px;
  margin: 0 auto 16px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.cta-block .btn-primary {
  background: #fff;
  color: var(--dark) !important;
  border-color: #fff;
}
.cta-block .btn-primary:hover { background: #E2E8F0; border-color: #E2E8F0; }
.cta-block .btn-outline {
  border-color: #475569;
  color: #E2E8F0 !important;
}
.cta-block .btn-outline:hover { border-color: #fff; color: #fff !important; background: transparent; }

/* ========== FOOTER ========== */
.tz-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 32px 0 20px;
  margin-top: 8px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand .tz-brand { font-size: 1rem; }
.footer-brand p {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 8px;
  max-width: 260px;
  line-height: 1.5;
}
.footer-col h4 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: .85rem;
  color: var(--text);
  padding: 3px 0;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
}

/* ========== PRODUCT DETAIL ========== */
.pd-wrap { padding: 20px 0 40px; }
.pd-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .pd-layout { grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
}
.pd-image {
  aspect-ratio: 1 / 1;
  background: #F1F5F9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.pd-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
@media (min-width: 768px) {
  .pd-info h1 { font-size: 1.55rem; }
}
.pd-cat {
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.pd-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin: 10px 0 16px;
}
.pd-price del {
  font-size: .9rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
.pd-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.pd-features {
  margin: 20px 0;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.pd-features h3 {
  font-size: .9rem;
  margin-bottom: 10px;
}
.pd-features li {
  font-size: .85rem;
  color: var(--muted);
  padding: 4px 0 4px 18px;
  position: relative;
}
.pd-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
}
.pd-process {
  margin: 20px 0;
}
.pd-process h3 { font-size: .9rem; margin-bottom: 10px; }
.pd-process ol {
  padding-left: 18px;
  list-style: decimal;
}
.pd-process li {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
@media (min-width: 480px) {
  .pd-actions { flex-direction: row; }
}

/* ========== ORDER SUCCESS ========== */
.order-ok {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 14px;
}
.order-ok-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 20px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.order-ok-icon {
  font-size: 2.2rem;
  color: var(--success);
  margin-bottom: 10px;
}
.order-ok-card h1 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.order-ok-card > p {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.order-meta {
  text-align: left;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 20px;
}
.order-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.order-meta-row:last-child { border-bottom: none; }
.order-meta-row .lbl { color: var(--muted); }
.order-meta-row .val { font-weight: 500; text-align: right; }
.order-meta-row .val.price { font-weight: 700; color: var(--primary); }
.badge-st {
  display: inline-block;
  padding: 2px 8px;
  font-size: .7rem;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
}
.order-note {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
}
.order-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 18px;
}
.order-links a {
  font-size: .8rem;
  color: var(--muted) !important;
}
.order-links a:hover { color: var(--primary) !important; }

/* ========== AUTH ========== */
.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 14px;
}
.auth-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
}
.auth-box h1 {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 4px;
}
.auth-box .sub {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 9px 12px;
  font-size: .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--t);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.auth-foot {
  text-align: center;
  margin-top: 16px;
  font-size: .85rem;
  color: var(--muted);
}

/* ========== USER DASHBOARD ========== */
.dash {
  padding: 24px 0 40px;
}
.dash-hi {
  margin-bottom: 20px;
}
.dash-hi h1 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.dash-hi p {
  font-size: .85rem;
  color: var(--muted);
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.dash-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
}
.dash-stat .n {
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
}
.dash-stat .l {
  font-size: .7rem;
  color: var(--muted);
}
.order-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.order-item h3 {
  font-size: .9rem;
  margin: 0 0 2px;
}
.order-item .meta {
  font-size: .78rem;
  color: var(--muted);
}

/* ========== FLASH ========== */
.flash-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 14px 0;
}
.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 8px;
}
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ========== UTILS ========== */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Page title for listing pages */
.page-title {
  padding: 20px 0 8px;
}
.page-title h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .page-title h1 { font-size: 1.5rem; }
}
.page-title p {
  font-size: .88rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ========== BRAND LOGO IMAGE ========== */
.tz-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
}
.tz-brand-logo {
  height: 28px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}
.tz-brand-logo--compact {
  height: 24px;
  max-width: 110px;
}
.tz-brand-logo--admin {
  height: 30px;
  max-width: 140px;
}
@media (min-width: 768px) {
  .tz-brand-logo { height: 32px; max-width: 150px; }
}

.tz-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.auth-logo-wrap {
  text-align: center;
  margin-bottom: 16px;
}
.auth-logo-img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.cat-section {
  padding: 0 0 4px;
}

.empty-inline {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 24px 0;
}

/* Ensure product grid stays 3 cols on mobile */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
}

/* Compact product cards */
.p-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: border-color var(--t), box-shadow var(--t);
}
.p-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.p-card-img {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.p-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  font-size: 1.4rem;
}
.p-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.p-card-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.p-card-name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}
@media (min-width: 640px) {
  .p-card-name { font-size: 0.82rem; }
  .p-card-body { padding: 10px; }
}
.p-card-price {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}
.p-card-price del {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.65rem;
  margin-left: 3px;
}
.p-card-btn {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 4px;
}

/* Hide hero stats if any remnant */
.hero-stats { display: none !important; }

/* Body overflow safety - only for intentional scroll areas */
.cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-decoration: none !important;
  white-space: nowrap;
}
.cat-chip.is-active,
.cat-chip:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #BFDBFE;
}


/* ========== TITIP PESAN & LAGU ========== */
.home-titip-card {
  display:flex; align-items:center; gap:14px; padding:16px;
  border:1px solid var(--border); border-radius:14px; background:var(--card);
  color:var(--text); text-decoration:none; box-shadow:var(--shadow); transition:all var(--t);
}
.home-titip-card:hover { border-color:#CBD5E1; box-shadow:var(--shadow-md); color:var(--text); transform:translateY(-1px); }
.home-titip-icon { width:44px; height:44px; flex:0 0 44px; border-radius:11px; background:var(--primary-soft); color:var(--primary); display:flex; align-items:center; justify-content:center; }
.home-titip-body { min-width:0; flex:1; }
.home-titip-kicker { display:block; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--primary); margin-bottom:2px; }
.home-titip-body h2 { font-size:1rem; margin:0 0 3px; }
.home-titip-body p { font-size:.8rem; color:var(--muted); margin:0; }
.home-titip-arrow { font-size:.8rem; font-weight:600; color:var(--primary); white-space:nowrap; }
@media (max-width:520px) { .home-titip-card { align-items:flex-start; } .home-titip-arrow { margin-left:auto; } .home-titip-body p { line-height:1.4; } }
