:root {
  --bg: #fff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #f9fafb;
  --accent: #111827;
  --danger: #b91c1c;
  --ok: #047857;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
textarea,
select {
  font: inherit;
}
.container {
  max-width: var(--max);
  margin: auto;
  padding: 0 18px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  font-weight: 800;
  font-size: 1.2rem;
}
.nav-links {
  display: flex;
  gap: 16px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: #374151;
}
.nav-links a:hover {
  color: #000;
}
.search {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 420px;
  margin-left: 12px;
}
.search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 15px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.btn.secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.danger {
  background: var(--danger);
}
.hero {
  margin: 26px 0;
  border-radius: 18px;
  overflow: hidden;
  min-height: 300px;
  background: #111827;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}
.hero-copy {
  padding: 44px;
}
.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 14px;
}
.hero-copy p {
  color: #d1d5db;
  max-width: 620px;
}
.hero-media {
  min-height: 300px;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 34px 0 16px;
}
.section-head h2 {
  margin: 0;
}
.muted {
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.card-media {
  aspect-ratio: 1/1;
  background: #f3f4f6;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 14px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.price {
  font-weight: 800;
}
.small {
  font-size: 0.9rem;
}
.page {
  padding: 30px 0 70px;
}
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.gallery-main {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 1/1;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.thumb {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}
.qty input {
  width: 90px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.buy-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.notice {
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.form {
  display: grid;
  gap: 14px;
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.form textarea {
  min-height: 120px;
  resize: vertical;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.cart-row img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
}
.summary {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}
.split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}
.status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 0.85rem;
  font-weight: 700;
}
.status.received {
  color: #92400e;
}
.status.awaiting_payment {
  color: #7c2d12;
}
.status.payment_confirmed {
  color: var(--ok);
}
.status.shipped {
  color: #1d4ed8;
}
.status.cancelled {
  color: var(--danger);
}
.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 30px 0;
  color: var(--muted);
}
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 360px;
  background: #111827;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  display: none;
  z-index: 50;
}
.hidden {
  display: none !important;
}
.admin-shell {
  min-height: 100vh;
  background: #f8fafc;
}
.admin-top {
  background: #111827;
  color: #fff;
  padding: 14px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 56px);
}
.admin-side {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 18px;
}
.admin-main {
  padding: 24px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.table th,
.table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  font-size: 0.85rem;
  background: #f9fafb;
}
.pill {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
}
.stack {
  display: grid;
  gap: 10px;
}
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.slider-nav {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  border: 0;
}
.slider-dot.active {
  background: #111827;
}
.payment-option {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 10px;
}
.payment-option input {
  width: auto;
}
.pay-logo {
  width: 58px;
  height: 34px;
  object-fit: contain;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.step {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
}
.step.current {
  font-weight: 800;
  border-color: #111827;
  background: #f9fafb;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-layout,
  .split,
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-media {
    min-height: 220px;
  }
  .nav {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .search {
    order: 3;
    max-width: none;
    margin: 0;
    width: 100%;
  }
  .nav-links {
    margin-left: auto;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 620px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .buy-row .btn {
    flex: 1;
  }
  .cart-row {
    grid-template-columns: 60px 1fr;
  }
  .cart-row > .cart-actions {
    grid-column: 2;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy {
    padding: 28px;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    overflow: auto;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

/* Mobile / touch refinements */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
}
button,
.btn,
input,
select,
textarea {
  touch-action: manipulation;
}
.btn {
  min-height: 44px;
}
.search input,
.form input,
.form select,
.form textarea {
  min-height: 44px;
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.section-head.compact {
  margin: 0 0 14px;
  align-items: center;
}
.admin-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-subcard {
  border: 1px solid var(--line);
  background: #fbfbfc;
  border-radius: 14px;
  padding: 16px;
}
.slab-list {
  display: grid;
  gap: 10px;
}
.slab-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  padding: 12px;
  background: #fff;
  border-radius: 12px;
}
.slab-row label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}
.slab-row input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.summary-line.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 1.1rem;
}
.payment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.payment-option {
  min-height: 56px;
  cursor: pointer;
}
.payment-panel {
  margin-top: 12px;
}
.qr-box {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}
.qr-box img {
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: auto;
}
.details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 14px 0;
}
.details dt {
  font-weight: 800;
}
.details dd {
  margin: 0;
}
.order-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.order-meta > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.payment-record {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}
.tracking-code {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  word-break: break-word;
}

@media (max-width: 760px) {
  .container {
    padding-inline: 14px;
  }
  .nav {
    gap: 10px;
    min-height: 60px;
  }
  .brand {
    font-size: 1.05rem;
  }
  .nav-links {
    gap: 12px;
    font-size: 0.92rem;
  }
  .nav-links a {
    white-space: nowrap;
  }
  .search {
    margin-left: 0;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card-body {
    padding: 12px;
  }
  .hero {
    margin-top: 16px;
  }
  .hero-copy {
    padding: 24px;
  }
  .hero-copy h1 {
    font-size: 2.15rem;
  }
  .product-layout {
    gap: 20px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cart-row {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }
  .cart-row > .cart-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
  }
  .cart-row > .cart-actions input {
    flex: 0 0 90px;
  }
  .table-wrap {
    border-radius: 10px;
  }
  .admin-main {
    padding: 14px;
  }
  .admin-card {
    padding: 14px;
  }
  .slab-row {
    grid-template-columns: 1fr 1fr;
  }
  .slab-row label:nth-child(3) {
    grid-column: 1 / -1;
  }
  .slab-row .slab-remove {
    grid-column: 1 / -1;
    width: 100%;
  }
  .order-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .nav-links {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
  }
  .section-head {
    margin-top: 24px;
  }
  .buy-row {
    flex-direction: column;
  }
  .buy-row .btn {
    width: 100%;
  }
  .payment-tabs {
    grid-template-columns: 1fr;
  }
  .order-meta {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .btn {
    width: 100%;
  }
}
.whatsapp-btn {
  background: #25d366;
  color: #fff;
  text-align: center;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
}

@media (max-width: 620px) {
  .buy-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .buy-row .btn {
    width: 100%;
  }
}
