}

:root {
  --ink: #162126;
  --muted: #66747c;
  --line: #dce5e8;
  --paper: #f7faf8;
  --surface: #ffffff;
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --accent: #d64b31;
  --warn: #b42318;
  --shadow: 0 18px 45px rgba(17, 32, 38, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 54px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand-logo {
  width: 150px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--brand);
  color: white;
  font-weight: 900;
}
.site-nav { display: flex; gap: 6px; margin-left: auto; }
.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
}
.site-nav a.active, .site-nav a:hover { background: #e3f4f1; color: var(--brand-dark); }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 26px; margin-left: auto; }
.whatsapp-icon-link,
.footer-whatsapp-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #21a366;
  color: white;
  box-shadow: 0 10px 24px rgba(33, 163, 102, .26);
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-icon-link:hover,
.footer-whatsapp-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(33, 163, 102, .34);
}
.whatsapp-icon-link .bx,
.footer-whatsapp-icon .bx {
  font-size: 28px;
  line-height: 1;
}
.header-whatsapp {
  flex: 0 0 auto;
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(32px, 6vw, 78px) clamp(16px, 5vw, 70px);
  background:
    linear-gradient(115deg, rgba(15, 118, 110, .08), rgba(214, 75, 49, .08)),
    radial-gradient(circle at top right, rgba(246, 200, 112, .42), transparent 32%),
    var(--paper);
}
.hero h1 { font-size: clamp(42px, 7vw, 86px); line-height: .95; margin: 8px 0 20px; letter-spacing: 0; }
.hero p { max-width: 680px; color: var(--muted); font-size: 18px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions.centered { justify-content: center; }
.btn {
  border: 0;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.btn.primary { background: var(--brand); color: white; }
.btn.secondary { background: #e6efec; color: var(--brand-dark); }
.btn.danger { background: #fee4e2; color: var(--warn); }
.btn.small { padding: 8px 10px; min-height: 34px; font-size: 13px; }
.btn.full { width: 100%; }

.shirt-showcase {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.mock-shirt {
  position: absolute;
  width: min(280px, 48vw);
  aspect-ratio: 4 / 5;
  border-radius: 42px 42px 18px 18px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  clip-path: polygon(18% 0, 34% 7%, 66% 7%, 82% 0, 100% 18%, 86% 36%, 78% 28%, 78% 100%, 22% 100%, 22% 28%, 14% 36%, 0 18%);
}
.mock-shirt span { border: 2px dashed currentColor; padding: 28px; border-radius: 50%; font-weight: 900; }
.white-shirt { right: 24%; top: 8%; background: white; color: var(--brand); }
.black-shirt { right: 0; top: 26%; background: #101820; color: white; }

.price-strip, .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px clamp(16px, 5vw, 70px);
}
.price-strip article, .feature-grid article, .form-panel, .summary-panel, .order-detail, .admin-card, .success-panel, .login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(17, 32, 38, .06);
}
.price-strip article { padding: 18px; display: flex; justify-content: space-between; align-items: center; }
.price-strip strong { font-size: 24px; color: var(--brand-dark); }
.feature-grid article { padding: 24px; }
.feature-grid h2 { margin-top: 0; }

.page-heading { padding: 36px clamp(16px, 5vw, 70px) 10px; }
.page-heading.compact h1 { margin: 0; font-size: clamp(32px, 5vw, 56px); letter-spacing: 0; }
.page-heading p { color: var(--muted); }
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  padding: 18px clamp(16px, 5vw, 70px) 50px;
  align-items: start;
}
.wizard { display: grid; gap: 18px; }
.form-panel, .summary-panel, .order-detail, .admin-card, .success-panel { padding: 22px; }
.form-panel h2, .summary-panel h2 { margin-top: 0; font-size: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 7px; font-weight: 700; }
.field-optional { font-weight: 400; font-size: 13px; color: var(--muted); }

  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: white;
  color: var(--ink);
}
textarea { resize: vertical; }

.choice-grid, .position-grid, .design-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.choice-card, .position-card, .design-card, .segmented label {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  background: white;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.choice-card:hover, .position-card:hover, .design-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(17, 32, 38, .09); }
.choice-card input, .position-card input, .design-card input, .segmented input { position: absolute; opacity: 0; pointer-events: none; }
.selected { border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(15, 118, 110, .14); }
.shirt-chip {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.shirt-chip.white { background: linear-gradient(135deg, #fff, #edf2f4); }
.shirt-chip.black { background: linear-gradient(135deg, #111820, #424b55); }
.mini-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #e3f4f1;
  color: var(--brand-dark);
  font-weight: 900;
}
.segmented { display: flex; gap: 10px; margin-bottom: 16px; }
.segmented label { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; }
.design-gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.design-card img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: #edf2f4; }
.design-card span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.empty-state { grid-column: 1 / -1; padding: 14px; background: #f1f6f4; border-radius: var(--radius); color: var(--muted); }
.position-card { min-height: 112px; }
.position-icon {
  width: 54px;
  height: 54px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.position-icon::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.pos-top-center::after { top: 18%; }
.pos-top-left::after { left: 18%; top: 18%; }
.pos-top-right::after { left: 82%; top: 18%; }
.pos-bottom-center::after { top: 82%; }
.pos-bottom-left::after { left: 18%; top: 82%; }
.pos-bottom-right::after { left: 82%; top: 82%; }
.hidden { display: none !important; }

.summary-panel { position: sticky; top: 88px; }
#liveSummary { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 14px; }
#liveSummary dt { color: var(--muted); }
#liveSummary dd { margin: 0; overflow-wrap: anywhere; }
.summary-total { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: flex; justify-content: space-between; font-size: 22px; }
.summary-price-stack { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.summary-price-stack del { color: var(--muted); font-size: 14px; font-weight: 600; }
.promo-summary-price { color: #047857; }
.customer-notifications { width: min(1180px, calc(100% - 32px)); margin: 16px auto 0; display: grid; gap: 10px; }
.customer-notification { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: var(--radius); color: #065f46; }
.customer-notification > i { font-size: 22px; margin-top: 1px; }
.customer-notification p { margin: 3px 0 0; }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-actions form { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #d9e7e4;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 14px auto 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed;
  right: 18px;
  bottom: 92px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: .2s ease;
  z-index: 30;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--warn); }

.success-panel { max-width: 720px; margin: 44px auto; text-align: center; }
.success-icon { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; background: #e3f4f1; color: var(--brand); font-size: 42px; font-weight: 900; }
.order-number { font-size: 22px; }
.track-layout { padding: 18px clamp(16px, 5vw, 70px) 50px; display: grid; gap: 18px; }
.notice { padding: 12px 14px; border-radius: var(--radius); background: #e3f4f1; color: var(--brand-dark); border: 1px solid var(--line); }
.notice.error { background: #fee4e2; color: var(--warn); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.detail-grid div { padding: 12px; background: #f7faf8; border-radius: var(--radius); }
.detail-grid dt { color: var(--muted); font-size: 13px; }
.detail-grid dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.status-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.item-list { display: grid; gap: 12px; }
.item-list > * { padding: 14px; background: #f7faf8; border-radius: var(--radius); }
pre { white-space: pre-wrap; font-family: inherit; background: white; padding: 10px; border-radius: var(--radius); }

.sticky-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: 58px;
  height: 58px;
}
.sticky-whatsapp .bx { font-size: 35px; }
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  padding: 28px clamp(16px, 5vw, 70px);
  background: #111820;
  color: white;
}
.site-footer p { margin: 3px 0; color: #b8c4c8; }
.site-footer a { color: white; }

.login-body { min-height: 100vh; display: grid; place-items: center; padding: 18px; background: linear-gradient(135deg, #e3f4f1, #fff4ef); }
.login-card { width: min(420px, 100%); padding: 28px; display: grid; gap: 14px; }
.login-logo {
  width: min(260px, 100%);
  height: 76px;
  object-fit: contain;
  object-position: left center;
}
.admin-body { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: #111820; padding: 20px; color: white; }
.admin-sidebar .brand { color: white; margin-bottom: 24px; }
.admin-sidebar .brand-logo {
  width: 145px;
  height: 48px;
  background: white;
  border-radius: var(--radius);
  padding: 6px;
}
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.admin-sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .22s ease; }
.admin-body.mobile-sidebar-open .admin-sidebar-backdrop { display: block; opacity: 1; }
.admin-sidebar { transition: transform .24s ease, opacity .24s ease; }
.admin-sidebar a { color: white; padding: 10px; border-radius: var(--radius); }
.admin-sidebar nav a:hover { background: rgba(255, 255, 255, .1); }
.admin-main { padding: 24px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat-card span { color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; font-size: 26px; margin-top: 6px; }
.section-head, .filter-bar, .row-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; background: #f7faf8; }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #e3f4f1; color: var(--brand-dark); font-weight: 800; font-size: 12px; }
.inline-update { display: contents; }
.pagination { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pagination a { padding: 8px 11px; border-radius: var(--radius); background: #edf4f2; color: var(--ink); }
.pagination a.active { background: var(--brand); color: white; }
.admin-card.narrow { max-width: 760px; }
.settings-form { display: grid; gap: 14px; }
.timeline { display: grid; gap: 10px; }
.timeline div { border-left: 3px solid var(--brand); padding-left: 12px; }
.timeline span { display: block; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .site-nav { display: none; order: 3; width: 100%; flex-direction: column; margin-left: 0; }
  .site-nav.open { display: flex; }
  .header-whatsapp { display: none; }
  .hero, .order-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .shirt-showcase {
    min-height: 320px;
    width: min(100%, 500px);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }
  .mock-shirt {
    position: relative;
    inset: auto;
    width: min(220px, 42vw);
    transform: none;
  }
  .white-shirt, .black-shirt { right: auto; top: auto; }
  .white-shirt { transform: rotate(-6deg); }
  .black-shirt { transform: rotate(6deg); }
  .summary-panel { position: static; }
  .price-strip, .feature-grid { grid-template-columns: 1fr; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(260px, 80vw);
    transform: translateX(-110%);
    opacity: 0;
    pointer-events: none;
    box-shadow: 6px 0 28px rgba(0, 0, 0, .22);
    z-index: 40;
  }
  .admin-body.mobile-sidebar-open .admin-sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .admin-sidebar nav {
    grid-template-columns: 1fr;
    overflow-y: auto;
    max-height: calc(100vh - 180px);
    padding-bottom: 10px;
  }
  .admin-sidebar nav a { display: block; }
  .admin-topbar {
    flex-wrap: wrap;
    align-items: center;
  }
  .admin-topbar h1 { margin: 0; }
  .filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
  }
  .filter-bar input,
  .filter-bar select,
  .filter-bar button { width: 100%; min-width: 0; }
  .table-wrap table { min-width: unset; }
  .row-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .site-footer { grid-template-columns: 1fr; }
  .hero { min-height: auto; gap: 24px; }
  .hero h1 { font-size: 42px; }
  .shirt-showcase {
    min-height: 240px;
    width: 100%;
    gap: 10px;
  }
  .mock-shirt { width: min(148px, 44vw); }
  .white-shirt { transform: rotate(-4deg); }
  .black-shirt { transform: rotate(4deg); }
  .segmented { flex-direction: column; }
  #liveSummary { grid-template-columns: 1fr; }
  .status-head { flex-direction: column; }
  .admin-main { padding: 14px; }
  .admin-actions { width: 100%; justify-content: space-between; }
  .admin-topbar { gap: 12px; align-items: stretch; }
  .filter-bar { grid-template-columns: 1fr; }
}

@media print {
  .admin-sidebar, .admin-topbar, .no-print { display: none !important; }
  .admin-body { display: block; }
  .admin-main { padding: 0; }
  .admin-card { border: 0; box-shadow: none; }
}

/* Premium refinement layer inspired by clean SaaS interfaces. */
:root {
  --ink: #0d1117;
  --muted: #57606a;
  --line: #d0d7de;
  --paper: #f6f8fa;
  --surface: #ffffff;
  --brand: #1f883d;
  --brand-dark: #116329;
  --accent: #24292f;
  --shadow: 0 16px 42px rgba(31, 35, 40, .08);
  --radius: 10px;
}

body { background: var(--paper); color: var(--ink); }
a:hover { color: var(--brand-dark); }

.site-header {
  padding-block: 12px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 1px 0 rgba(208, 215, 222, .7);
}
.site-nav a { font-size: 14px; transition: background .18s ease, color .18s ease; }
.brand-logo { width: 150px; height: 42px; }

.hero {
  min-height: 76vh;
  grid-template-columns: minmax(0, .95fr) minmax(300px, 1.05fr);
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
  border-bottom: 1px solid var(--line);
}
.hero-copy { display: grid; justify-items: center; text-align: center; }
.hero-logo-wrap {
  display: grid;
  place-items: center;
  width: min(440px, 90vw);
  padding: 22px 26px;
  margin: 8px auto 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}
.hero-logo {
  width: min(360px, 78vw);
  height: auto;
  object-fit: contain;
}
.hero p { font-size: 17px; }

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .hero-copy {
    justify-items: start;
    text-align: left;
    max-width: 720px;
    width: 100%;
  }
  .shirt-showcase {
    position: relative;
    min-height: 320px;
    width: min(100%, 500px);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }
  .mock-shirt {
    position: relative;
    inset: auto;
    width: min(220px, 42vw);
    transform: none;
    margin: 0;
  }
  .white-shirt, .black-shirt {
    right: auto;
    top: auto;
  }
  .white-shirt { transform: rotate(-6deg); }
  .black-shirt { transform: rotate(6deg); }
}

@media (max-width: 640px) {
  .hero {
    gap: 24px;
    padding-inline: 16px;
  }
  .hero-copy {
    justify-items: center;
    text-align: center;
  }
  .shirt-showcase {
    min-height: 240px;
    width: 100%;
    gap: 10px;
  }
  .mock-shirt {
    width: min(148px, 44vw);
  }
  .white-shirt { transform: rotate(-4deg); }
  .black-shirt { transform: rotate(4deg); }
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #eaf7ee;
  color: var(--brand);
  font-size: 25px;
}

.price-strip, .feature-grid, .order-layout, .track-layout, .page-heading {
  max-width: 1240px;
  margin-inline: auto;
}
.price-strip article, .feature-grid article, .form-panel, .summary-panel, .order-detail, .admin-card, .success-panel, .login-card {
  border-color: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.form-panel, .summary-panel, .order-detail, .admin-card, .success-panel { padding: clamp(20px, 3vw, 30px); }
.btn { border-radius: 8px; gap: 8px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31, 35, 40, .12); }
.btn.primary { background: var(--brand); }
.btn.primary:hover { background: var(--brand-dark); color: #fff; }
.btn.secondary { background: #f6f8fa; border: 1px solid var(--line); color: var(--ink); }
input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 136, 61, .16);
  outline: none;
}

.mockup-panel { overflow: hidden; }
.mockup-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
  align-items: start;
}
.preview-shirt {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f6f8fa;
}
.preview-shirt::before {
  content: "";
  width: min(230px, 70%);
  aspect-ratio: 4 / 5;
  border-radius: 42px 42px 20px 20px;
  clip-path: polygon(18% 0, 34% 7%, 66% 7%, 82% 0, 100% 18%, 86% 36%, 78% 28%, 78% 100%, 22% 100%, 22% 28%, 14% 36%, 0 18%);
  box-shadow: 0 18px 36px rgba(31, 35, 40, .16);
}
.preview-shirt.white-preview::before { background: linear-gradient(145deg, #fff, #f0f3f6); border: 1px solid #d8dee4; }
.preview-shirt.black-preview::before { background: linear-gradient(145deg, #0d1117, #30363d); }
.preview-side-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.preview-print {
  position: absolute;
  z-index: 3;
  width: 92px;
  min-height: 42px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.black-preview .preview-print { color: white; }
.preview-print img { width: 100%; max-height: 96px; object-fit: contain; }
.preview-text {
  max-width: 130px;
  padding: 6px;
  border: 1px dashed currentColor;
  border-radius: 8px;
  white-space: pre-line;
  background: rgba(255, 255, 255, .18);
}
.preview-print.pos-center { top: 48%; left: 50%; transform: translate(-50%, -50%); }
.preview-print.pos-top-center { top: 32%; left: 50%; transform: translate(-50%, -50%); }
.preview-print.pos-top-left { top: 34%; left: 39%; transform: translate(-50%, -50%); }
.preview-print.pos-top-right { top: 34%; left: 61%; transform: translate(-50%, -50%); }
.preview-print.pos-bottom-center { top: 66%; left: 50%; transform: translate(-50%, -50%); }
.preview-print.pos-bottom-left { top: 64%; left: 39%; transform: translate(-50%, -50%); }
.preview-print.pos-bottom-right { top: 64%; left: 61%; transform: translate(-50%, -50%); }

.design-options-layout { display: block; }
.design-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfd;
  transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.design-section {
  border-color: rgba(31, 136, 61, .45);
  box-shadow: 0 0 0 3px rgba(31, 136, 61, .08);
}
.design-section h3 { font-size: 18px; margin-bottom: 14px; }
.design-gallery { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.design-card { padding: 10px; }
.design-card img { background: #fff; border: 1px solid #eaeef2; }

.site-footer {
  display: block;
  padding: 0;
  background: #0d1117;
  color: #f0f6fc;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px clamp(16px, 5vw, 70px);
}
.site-footer h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: #f0f6fc; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer li, .site-footer p { color: #8b949e; }
.site-footer a { color: #f0f6fc; }
.footer-brand img {
  width: min(220px, 100%);
  padding: 8px;
  border-radius: 10px;
  background: white;
  margin-bottom: 16px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #30363d;
  border-radius: 8px;
}
.footer-payment { margin-top: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px clamp(16px, 5vw, 70px);
  border-top: 1px solid #30363d;
}

.admin-sidebar { background: #0d1117; }
.admin-sidebar nav { gap: 6px; }
.admin-topbar h1 { font-weight: 800; }
.stat-card, .admin-card { box-shadow: var(--shadow); }
.design-manager-grid {
  display: block;
}
.manager-tabs { margin: 18px 0; }
.design-manager-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfd;
}
.upload-box, .manager-actions { display: grid; gap: 10px; }
.manager-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.manager-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.manager-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f8fa;
}

@media (max-width: 980px) {
  .mockup-stage, .design-options-layout, .design-manager-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom { display: grid; }
}

/* =========================================================
   Quantity Stepper
   ========================================================= */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(31,35,40,.07);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.qty-stepper:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31,136,61,.16);
}
.qty-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  display: grid;
  place-items: center;
  transition: background .15s ease, color .15s ease;
  line-height: 1;
}
.qty-btn:hover:not(:disabled) { background: #eaf7ee; }
.qty-btn:disabled { color: var(--line); cursor: not-allowed; }
.qty-display {
  min-width: 64px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0 12px;
  line-height: 50px;
  user-select: none;
}
.qty-hint { margin-top: 8px; font-size: 13px; }

/* Preview Order button */
.preview-btn {
  background: linear-gradient(135deg, #1f883d 0%, #116329 100%);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(31,136,61,.28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.preview-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(31,136,61,.38);
  background: linear-gradient(135deg, #116329 0%, #0a3d1f 100%);
}
.preview-btn .bx { font-size: 20px; }

/* =========================================================
   Preview / Order Modal
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13,17,23,.7);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .28s ease;
}
.modal-overlay.open { opacity: 1; }
.modal-overlay[hidden] { display: none !important; }

.modal-box {
  background: white;
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(13,17,23,.38);
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(.97);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1);
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  z-index: 2;
}
.modal-header h2 { margin: 4px 0 0; font-size: 22px; }
.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
  line-height: 1;
}
.modal-close:hover { background: #fee4e2; color: var(--warn); border-color: #fca5a5; }

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 28px;
}

/* Modal shirt mockup */
.modal-mockup-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.modal-shirt-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.modal-shirt-wrap .preview-side-label {
  position: static;
  margin-bottom: 4px;
}
.modal-shirt {
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 42px 42px 20px 20px;
  clip-path: polygon(18% 0, 34% 7%, 66% 7%, 82% 0, 100% 18%, 86% 36%, 78% 28%, 78% 100%, 22% 100%, 22% 28%, 14% 36%, 0 18%);
  box-shadow: 0 18px 36px rgba(31,35,40,.18);
  display: grid;
  place-items: center;
  transition: background .25s ease;
}
.modal-shirt-white { background: linear-gradient(145deg, #fff, #f0f3f6); }
.modal-shirt-black { background: linear-gradient(145deg, #0d1117, #30363d); }
.modal-shirt.hidden { display: none !important; }

.modal-print {
  position: absolute;
  z-index: 3;
  width: 80px;
  min-height: 40px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.modal-shirt-black .modal-print { color: white; }
.modal-print img { width: 100%; max-height: 80px; object-fit: contain; }
/* Reuse position classes */
.modal-print.pos-center      { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.modal-print.pos-top-center  { top: 33%; left: 50%; transform: translate(-50%, -50%); }
.modal-print.pos-top-left    { top: 35%; left: 39%; transform: translate(-50%, -50%); }
.modal-print.pos-top-right   { top: 35%; left: 61%; transform: translate(-50%, -50%); }
.modal-print.pos-bottom-center { top: 67%; left: 50%; transform: translate(-50%, -50%); }
.modal-print.pos-bottom-left { top: 65%; left: 39%; transform: translate(-50%, -50%); }
.modal-print.pos-bottom-right{ top: 65%; left: 61%; transform: translate(-50%, -50%); }

/* Modal summary */
.modal-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-summary h3 { margin: 0 0 10px; font-size: 17px; }
.modal-detail-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 12px;
  font-size: 14px;
  flex: 1;
}
.modal-detail-list dt { color: var(--muted); font-weight: 600; }
.modal-detail-list dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.modal-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
  font-size: 20px;
  font-weight: 800;
}
.modal-price-row strong { color: var(--brand); font-size: 24px; }

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: white;
  border-radius: 0 0 20px 20px;
}
.modal-footer .btn { min-width: 160px; justify-content: center; gap: 8px; }
.modal-footer .btn .bx { font-size: 18px; }

/* Responsive modal */
@media (max-width: 780px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
  .modal-mockup-stage {
    grid-template-columns: 1fr 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}
@media (max-width: 520px) {
  .modal-header, .modal-body, .modal-footer { padding-inline: 18px; }
  .modal-footer { flex-direction: column-reverse; }
  .modal-footer .btn { min-width: 0; width: 100%; }
  .modal-mockup-stage { grid-template-columns: 1fr; max-width: 200px; }
}

/* =========================================================
   Promo Banner  -  Customer Order Page
   ========================================================= */
.promo-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto 20px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #0f766e 0%, #0b4f4a 100%);
  color: white;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 118, 110, .3);
  animation: promoBannerIn .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes promoBannerIn {
  from { opacity: 0; transform: translateY(-12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.promo-inner { flex: 1; display: grid; gap: 4px; }
.promo-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.18);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  width: max-content;
}
.promo-msg { margin: 6px 0 4px; font-size: 15px; line-height: 1.5; opacity: .92; }
.promo-prices { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.promo-old { font-size: 16px; font-weight: 700; text-decoration: line-through; opacity: .6; }
.promo-now { font-size: 22px; font-weight: 900; color: #a7f3d0; }
.promo-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(255,255,255,.18);
  color: white;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background .15s ease;
}
.promo-close:hover { background: rgba(255,255,255,.3); }

/* =========================================================
   WhatsApp Preview Notice  -  Order Sidebar
   ========================================================= */
.whatsapp-preview-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  margin: 14px 0;
}
.whatsapp-preview-notice .bx {
  font-size: 28px;
  color: #16a34a;
  flex-shrink: 0;
  line-height: 1.3;
}
.whatsapp-preview-notice strong {
  font-size: 14px;
  font-weight: 700;
  color: #14532d;
  display: block;
  margin-bottom: 3px;
}
.whatsapp-preview-notice p { margin: 0; font-size: 13px; color: #166534; line-height: 1.4; }
.order-assurance, .assurance-copy { padding: 14px 16px; border-radius: 12px; background: #effaf2; border: 1px solid #9ed9ac; color: #14532d; line-height: 1.5; }
.price-assurance { max-width: 1240px; margin: 14px auto 0; }
.design-source { flex-wrap: wrap; }
.design-source label { flex: 1 1 150px; }
.confidence-section { max-width: 1240px; margin: 48px auto; padding: 0 clamp(16px, 5vw, 70px); text-align: center; }
.confidence-grid article { text-align: left; }
.confidence-grid h3 { margin: 0; font-size: 16px; }
.shirt-config { display: grid; gap: 20px; padding: 20px; border: 2px solid var(--line); border-radius: 16px; margin-bottom: 20px; }
.add-shirt-btn { width: 100%; margin: 4px 0 20px; }

/* =========================================================
   Admin Order  -  Design Thumbnail
   ========================================================= */
.order-design-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafcff;
  margin-bottom: 12px;
}
.order-design-item:last-child { margin-bottom: 0; }
.order-design-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #f6f8fa;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.order-design-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.design-thumb-missing { font-size: 11px; color: var(--muted); text-align: center; padding: 8px; }
.order-design-info { flex: 1; min-width: 0; }
.order-design-info strong { font-size: 15px; display: block; margin-bottom: 8px; }
.order-design-info p { margin: 0 0 4px; font-size: 13px; }
.detail-label { font-weight: 600; color: var(--muted); }
.order-custom-text {
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 4px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}
@media (max-width: 600px) {
  .order-design-item { flex-direction: column; }
  .order-design-thumb { width: 100%; height: 180px; }
}

/* =========================================================
   Admin Settings  -  Promo Section
   ========================================================= */
.settings-section-head { margin: 24px 0 14px; }
.settings-section-head h3 { font-size: 17px; font-weight: 800; margin: 0 0 4px; color: var(--ink); }
.settings-section-head p { margin: 0; font-size: 13px; }
.settings-divider { border: none; border-top: 2px solid var(--line); margin: 28px 0 20px; }
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-weight: 600;
  cursor: pointer;
  gap: 12px;
}
.settings-toggle-row input[type="checkbox"] {
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.field-optional { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input[type="file"] {
  padding: 10px;
  background: #f7faf8;
  border: 1px dashed var(--line);
}
textarea { resize: vertical; min-height: 110px; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
  background: white;
}
.settings-form,
.filter-bar,
.login-card,
.admin-card {
  display: grid;
  gap: 14px;
}
.settings-form label,
.filter-bar label,
.login-card label,
.admin-card label {
  gap: 8px;
}

@media (max-width: 640px) {
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select {
    min-height: 48px;
    font-size: 16px;
  }
}

/* =========================================================
   Admin Sidebar Toggle & Responsive Enhancements
   ========================================================= */

/* Desktop view: Hide the admin sidebar toggle button */
.admin-nav-toggle {
  display: none !important;
}

/* Sidebar active link styling */
.admin-sidebar nav a.active {
  background: var(--brand) !important;
  color: white !important;
  font-weight: 600;
}

@media (max-width: 900px) {
  /* Mobile view: Show and style the admin sidebar toggle button */
  .admin-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .admin-nav-toggle:hover,
  .admin-nav-toggle:focus {
    background: var(--paper);
    border-color: var(--brand);
    color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
  }

  /* Improve mobile sidebar aesthetics */
  .admin-sidebar {
    width: 280px;
    background: #0d1117;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .admin-sidebar nav a {
    padding: 12px 16px;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;

  /* Improve the overlay backdrop with modern blur */
  .admin-sidebar-backdrop {
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.25s ease;
  }
}

/* =========================================================
   Four-Tab Segmented Control
   ========================================================= */
.segmented.four-tab {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.segmented.four-tab label {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 9px 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  color: var(--muted);
  transition: border-color .2s, background .2s, color .2s;
  white-space: nowrap;
}
.segmented.four-tab label:hover { border-color: var(--brand); color: var(--brand); }
.segmented.four-tab label.selected {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}
.segmented.four-tab input[type="radio"] { display: none; }

/* =========================================================
   Design Options Layout
   ========================================================= */
.design-options-layout { margin: 14px 0 0; }

/* =========================================================
   Upload Dropzone
   ========================================================= */
.upload-dropzone {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}
.upload-dropzone.drag-over {
  border-color: var(--brand);
  background: rgba(15, 118, 110, .06);
}
.upload-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.upload-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
}
.upload-icon { font-size: 2.8rem; color: var(--brand); line-height: 1; }
.upload-label { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.upload-hint  { margin: 0; font-size: 12px; }
.upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}
.upload-preview img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.upload-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #fca5a5;
  background: #fff5f5;
  color: #dc2626;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.upload-remove-btn:hover { background: #fee2e2; border-color: #ef4444; }

/* =========================================================
   Description Textarea (Design)
   ========================================================= */
.design-description-textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
.design-description-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
  background: white;
}
.field-hint { margin: 6px 0 0; font-size: 12px; text-align: right; }

/* =========================================================
   Design Card Image Pop-Out & Zoom (Hover & Select)
   ========================================================= */
.shirt-config,
.side-config,
.design-options-layout,
.design-section,
.design-gallery {
  overflow: visible !important;
}

.design-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 14px;
  padding: 8px 4px;
}

.design-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface);
  cursor: pointer;
  z-index: 1;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              background-color 0.25s ease;
  user-select: none;
}

.design-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #edf2f4;
}

.design-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover overlay and zoom hint */
.design-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 118, 110, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
  border-radius: 8px;
}

.zoom-hint-btn {
  background: white;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transform: translateY(6px);
  transition: transform 0.22s ease;
}

.design-card:hover .design-card-hover-overlay {
  opacity: 1;
}

.design-card:hover .zoom-hint-btn {
  transform: translateY(0);
}

/* Card Hover effect: scale up card & lift */
.design-card:hover {
  transform: translateY(-8px) scale(1.15);
  border-color: var(--brand);
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.28), 0 0 0 2px var(--brand);
  z-index: 120 !important;
  background: white;
}

.design-card:hover img {
  transform: scale(1.08);
}

/* Selected badge checkmark */
.selected-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Card Selected state */
.design-card.selected {
  border: 2.5px solid var(--brand);
  background: rgba(15, 118, 110, 0.06);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.2), 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: scale(1.08);
  z-index: 50;
}

.design-card.selected .selected-badge {
  opacity: 1;
  transform: scale(1);
}

/* Hover over an already selected card */
.design-card.selected:hover {
  transform: translateY(-8px) scale(1.22);
  box-shadow: 0 20px 45px rgba(15, 118, 110, 0.35), 0 0 0 3px var(--brand);
  z-index: 150 !important;
}

/* =========================================================
   Selected Design Large Preview Panel
   ========================================================= */
.selected-design-large-preview {
  margin: 18px 0;
  padding: 16px;
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
  border: 2px solid var(--brand);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
  transition: all 0.3s ease;
}

.large-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.large-preview-title {
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.large-preview-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.large-preview-img-container {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: white;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.large-preview-img-container:hover {
  transform: scale(1.05);
}

.large-preview-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.large-preview-info {
  flex: 1;
  min-width: 0;
}

.large-preview-info h4 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--ink);
}

.large-preview-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: #e3f4f1;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 8px;
}

.large-preview-hint {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 540px) {
  .large-preview-body {
    flex-direction: column;
    text-align: center;
  }
  .large-preview-img-container {
    width: 180px;
    height: 180px;
  }
}





