:root {
  --navy: #10253f;
  --blue: #183b61;
  --gold: #e7ab28;
  --cream: #f6f2e8;
  --ink: #17212d;
  --muted: #697586;
  --line: #dce2e8;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: #fff;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: #fff;
  padding: 0.75rem;
}
.topbar {
  background: #09182a;
  color: #dbe7f3;
  font-size: 0.82rem;
  padding: 0.52rem 0;
}
.social {
  display: flex;
  gap: 1rem;
}
.social a {
  color: #fff;
}
.navbar {
  background: #fff;
  box-shadow: 0 4px 24px rgba(16, 37, 63, 0.08);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  font-weight: 700;
}
.navbar-brand small {
  display: block;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.brand-mark {
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.nav-link {
  color: var(--navy);
  font-weight: 600;
}
.btn-gold {
  background: var(--gold);
  color: #15120a;
  border: 1px solid #cb8d0f;
  font-weight: 700;
}
.btn-gold:hover {
  background: #f3be49;
}
.hero {
  background: linear-gradient(120deg, #0b1d33, #183b61);
  color: #fff;
  padding: 6rem 0;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.98;
  max-width: 650px;
}
.hero p {
  font-size: 1.2rem;
  color: #d9e4ef;
  max-width: 610px;
}
.eyebrow,
.section-heading span,
.page-head span,
.studio-head span,
.dash-head span,
.auth-intro > span {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}
.trust-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  color: #d8e6f3;
  font-size: 0.88rem;
}
.trust-row i {
  color: var(--gold);
}
.hero-art {
  height: 430px;
  position: relative;
}
.canvas-mini {
  position: absolute;
  inset: 50px 60px;
  background: var(--cream);
  border-radius: 24px;
  box-shadow: 0 30px 80px #0008;
  transform: rotate(-3deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--navy);
  border: 12px solid #fff;
}
.canvas-mini span {
  font-size: 4rem;
  font-weight: 700;
}
.canvas-mini small {
  font-size: 1.1rem;
}
.product-card {
  position: absolute;
  z-index: 2;
  background: #fff;
  color: var(--navy);
  width: 120px;
  height: 120px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 50px #0006;
}
.product-card i {
  font-size: 2.5rem;
  color: var(--gold);
}
.product-card b {
  margin-top: -18px;
}
.pc-one {
  left: 0;
  top: 20px;
  transform: rotate(-8deg);
}
.pc-two {
  right: 0;
  top: 125px;
  transform: rotate(8deg);
}
.pc-three {
  left: 40px;
  bottom: 0;
  transform: rotate(4deg);
}
.section-heading {
  margin-bottom: 2.2rem;
}
.section-heading h2 {
  font-size: 2.4rem;
  color: var(--navy);
}
.category-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px #10253f18;
}
.category-card > i {
  font-size: 2.4rem;
  color: var(--gold);
}
.category-card h3 {
  margin-top: 1.2rem;
  color: var(--navy);
}
.category-card span {
  font-weight: 700;
  color: var(--blue);
}
.how {
  background: var(--cream);
  padding: 5rem 0;
}
.step {
  text-align: center;
}
.step > b {
  width: 54px;
  height: 54px;
  margin: auto;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  font-size: 1.3rem;
}
.step h3 {
  margin-top: 1rem;
}
.page-head {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0;
}
.page-head h1 {
  font-size: 3.5rem;
}
.page-head p {
  color: #d5e0eb;
}
.catalog-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  background: #fff;
}
.catalog-card > div:last-child {
  padding: 1.5rem;
}
.catalog-icon {
  height: 200px;
  background: linear-gradient(135deg, var(--cream), #dce7ef);
  display: grid;
  place-items: center;
}
.catalog-icon i {
  font-size: 5rem;
  color: var(--navy);
}
.studio-head {
  background: var(--navy);
  color: #fff;
  padding: 1rem;
}
.studio-head .container-fluid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.studio-head h1 {
  font-size: 1.3rem;
  margin: 0;
}
.autosave {
  font-size: 0.9rem;
  color: #cae7d2;
}
.studio {
  display: grid;
  grid-template-columns: 90px 1fr 320px;
  min-height: 720px;
  background: #e9edf1;
}
.toolbox {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.toolbox h2 {
  text-align: center;
}
.toolbox button,
.tool-upload {
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 0.25rem;
  text-align: center;
  cursor: pointer;
}
.toolbox button:hover,
.tool-upload:hover {
  background: var(--cream);
}
.toolbox i {
  display: block;
  font-size: 1.3rem;
  color: var(--blue);
}
.toolbox span {
  font-size: 0.75rem;
}
.studio-main {
  min-width: 0;
}
.studio-toolbar {
  height: 58px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  overflow-x: auto;
}
.studio-toolbar button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 0.45rem 0.65rem;
}
.studio-toolbar label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}
.canvas-stage {
  padding: 3rem;
  display: grid;
  place-items: center;
  overflow: auto;
  min-height: 620px;
}
.product-surface {
  position: relative;
  padding: 48px;
  background: #f4f1e8;
  border-radius: 45% 45% 18% 18%;
  box-shadow: 0 25px 60px #17212d2b;
}
.product-surface canvas {
  background: #fff;
  border: 2px dashed #d24b4b;
}
.guide-label {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #a54444;
}
.config-panel {
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 1.25rem;
  overflow: auto;
}
.config-panel label,
.auth-card label,
.panel form label {
  display: block;
  font-weight: 700;
  margin-bottom: 1rem;
}
.price-box {
  background: var(--cream);
  padding: 1rem;
  border-radius: 12px;
  margin: 1rem 0;
}
.price-result {
  display: grid;
  gap: 0.5rem;
}
.price-result span {
  display: flex;
  justify-content: space-between;
}
.preflight {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.preflight h3 {
  font-size: 1rem;
}
.preflight p {
  font-size: 0.78rem;
  margin: 0.4rem 0;
}
.preflight .fa-circle-check {
  color: #23864b;
}
.auth-page {
  background: var(--cream);
  padding: 5rem 1rem;
}
.auth-card {
  max-width: 960px;
  margin: auto;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 24px 60px #10253f20;
}
.auth-intro {
  background: var(--navy);
  color: #fff;
  padding: 4rem;
}
.auth-intro h1 {
  font-size: 2.7rem;
}
.auth-intro p {
  color: #d8e4ef;
}
.auth-card form {
  padding: 4rem;
}
.auth-card form h2 {
  color: var(--navy);
  margin-bottom: 2rem;
}
.empty-state {
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: 18px;
  padding: 4rem;
}
.empty-state > i {
  font-size: 3rem;
  color: var(--gold);
}
.empty-state.compact {
  padding: 2rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.cart-thumb {
  height: 80px;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--blue);
}
.order-summary,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  background: #fff;
}
.order-summary p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.order-summary small {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--muted);
}
.dashboard {
  background: #f3f5f7;
  min-height: 650px;
  padding: 4rem 0;
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.dash-head h1 {
  color: var(--navy);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.metric-grid > div {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.4rem;
  border-radius: 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
}
.metric-grid i {
  grid-row: 1/3;
  font-size: 2rem;
  color: var(--gold);
  align-self: center;
}
.metric-grid b {
  font-size: 1.5rem;
}
.metric-grid span {
  color: var(--muted);
  font-size: 0.85rem;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.admin-grid article {
  background: #fff;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.admin-grid article > i {
  font-size: 1.8rem;
  color: var(--gold);
}
.admin-grid h2 {
  font-size: 1.3rem;
  margin-top: 1rem;
}
.help-link {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.help-link i {
  color: var(--gold);
  font-size: 1.5rem;
}
.help-link span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}
.policy {
  max-width: 900px;
}
.policy h2 {
  margin-top: 2rem;
  color: var(--navy);
}
footer {
  background: #09182a;
  color: #d8e4ef;
  padding: 4rem 0 1.5rem;
}
footer a {
  display: block;
  color: #d8e4ef;
  text-decoration: none;
  margin: 0.35rem 0;
}
footer a:hover {
  color: var(--gold);
}
footer h2,
footer h3 {
  color: #fff;
}
@media (max-width: 1100px) {
  .studio {
    grid-template-columns: 78px 1fr;
  }
  .config-panel {
    grid-column: 1/3;
    border-left: 0;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .hero {
    padding: 4rem 0;
  }
  .hero-art {
    display: none;
  }
  .page-head h1 {
    font-size: 2.5rem;
  }
  .auth-card {
    grid-template-columns: 1fr;
  }
  .auth-intro,
  .auth-card form {
    padding: 2rem;
  }
  .studio {
    display: block;
  }
  .toolbox {
    flex-direction: row;
    overflow: auto;
    border: 0;
  }
  .toolbox h2 {
    display: none;
  }
  .studio-toolbar {
    position: sticky;
    top: 71px;
    z-index: 5;
  }
  .canvas-stage {
    padding: 1rem;
    justify-content: start;
  }
  .product-surface {
    padding: 25px;
  }
  .config-panel {
    border-top: 1px solid var(--line);
  }
  .metric-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .dash-head {
    align-items: flex-start;
    gap: 1rem;
    flex-direction: column;
  }
  .topbar .container > span:first-child {
    display: none;
  }
}
:root {
  --navy: #10253f;
  --blue: #183b61;
  --gold: #e7ab28;
  --cream: #f6f2e8;
  --ink: #17212d;
  --muted: #697586;
  --line: #dce2e8;
}
.toolbox h2 {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 0.65rem 0.25rem;
  margin: 0 0 0.35rem;
  text-align: center;
}
.studio.setup-hidden {
  grid-template-columns: 90px 1fr 0;
}
.studio.setup-hidden .config-panel {
  opacity: 0;
  visibility: hidden;
  padding: 0;
  border: 0;
  overflow: hidden;
}
.config-panel {
  transition: opacity 0.2s ease;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.studio-help {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #eef4fa;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
}
.studio-help h3 {
  font-size: 1rem;
}
.studio-help p {
  font-size: 0.85rem;
}
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.quantity-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}
.quantity-controls .remove {
  color: #a51d2d;
  margin-left: 0.5rem;
}
.promotion-form {
  padding: 1rem 0;
}
.ticket-card {
  margin-bottom: 1rem;
}
.ticket-thread {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}
.ticket-message {
  max-width: 85%;
  background: #f3f5f7;
  padding: 1rem;
  border-radius: 12px;
}
.ticket-message.admin {
  margin-left: auto;
  background: #e8f1fb;
}
.ticket-message p {
  margin: 0.35rem 0;
}
.cart-count-pop {
  transform: scale(1.35);
  transition: 0.2s;
}
html, body { max-width: 100%; overflow-x: hidden; }
.studio-logo { background: transparent !important; padding: 0 !important; min-height: 76px; display: grid; place-items: center; }
.studio-logo img { display: block; width: auto; height: auto; max-width: 76px; max-height: 76px; object-fit: contain; }
.studio-toolbar { height: auto; min-height: 58px; flex-wrap: wrap; overflow: visible; }
.canvas-stage { padding: clamp(.75rem, 2vw, 2rem); overflow: hidden; min-width: 0; }
.product-surface { width: min(100%, 720px); padding: clamp(18px, 4vw, 48px); }
.canvas-container { max-width: 100%; height: auto !important; aspect-ratio: 620 / 480; }
.canvas-container canvas { width: 100% !important; height: 100% !important; }
.config-panel { overflow: visible; }
.quantity-controls button { border: 0; background: transparent; box-shadow: none; }
.quantity-controls button:hover { color: var(--blue); background: transparent; }
.quantity-controls button:focus-visible { outline: 3px solid #2463a4; outline-offset: 2px; }
.order-summary h2 { font-size: clamp(1rem, 2vw, 1.35rem); white-space: nowrap; }
@media (max-width: 767px) {
  .toolbox { flex-wrap: wrap; overflow: visible; }
  .toolbox button, .tool-upload { flex: 1 1 64px; }
  .canvas-stage { justify-content: center; }
  .product-surface { border-radius: 22px; }
}
footer h2 i,
footer h3 i {
  color: var(--gold);
  margin-right: 0.35rem;
}
.footer-policy-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.footer-policy-links a {
  display: inline-block;
}

/* Application-style Interactive Product Designer */
.designer-shell { --designer-rail: 92px; --designer-panel: 300px; background: #f4f6f8; min-height: calc(100vh - 118px); border-top: 1px solid var(--line); }
.designer-commandbar { min-height: 68px; padding: .55rem .8rem; background: #fff; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(210px, 310px) auto 1fr; align-items: center; gap: .8rem; position: sticky; top: 71px; z-index: 20; }
.designer-title { display: flex; align-items: center; gap: .65rem; padding-right: .8rem; border-right: 1px solid var(--line); }
.designer-title img { width: 48px; height: 48px; object-fit: contain; }
.designer-title span { color: var(--blue); font-size: .68rem; font-weight: 700; letter-spacing: .11em; }
.designer-title h1 { margin: 0; color: var(--navy); font-size: 1rem; white-space: nowrap; }
.designer-product-picker { display: flex; align-items: center; gap: .5rem; }
.designer-product-picker .form-select { border: 0; box-shadow: none; font-weight: 700; }
.designer-history, .designer-command-actions, .studio-zoom { display: flex; align-items: center; gap: .45rem; }
.designer-history button, .designer-shell .studio-toolbar button { min-width: 36px; min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); }
.designer-history button:hover, .designer-shell .studio-toolbar button:hover { background: #edf2f6; }
.designer-history button:focus-visible, .designer-shell .studio-toolbar button:focus-visible, .designer-shell .toolbox button:focus-visible, .designer-shell .tool-upload:focus-within, .designer-shell .tool-color:focus-within { outline: 3px solid #2463a4; outline-offset: 2px; }
.designer-command-actions { justify-content: flex-end; }
.designer-command-actions .autosave { color: #357148; white-space: nowrap; }
.designer-shell .studio { min-height: calc(100vh - 186px); grid-template-columns: var(--designer-rail) minmax(0, 1fr) var(--designer-panel); background: #eef1f4; }
.designer-shell .toolbox { padding: .6rem .45rem; gap: .25rem; border-right: 1px solid var(--line); box-shadow: 2px 0 8px rgba(16,37,63,.05); z-index: 4; }
.designer-shell .toolbox h2 { background: transparent; color: var(--muted); font-size: .68rem; padding: .3rem 0; }
.designer-shell .toolbox button, .designer-shell .tool-upload, .designer-shell .tool-color { min-height: 60px; padding: .5rem .2rem; margin: 0; border: 0; border-radius: 7px; background: transparent; display: grid; place-items: center; align-content: center; gap: .25rem; cursor: pointer; text-align: center; color: var(--ink); }
.designer-shell .toolbox button:hover, .designer-shell .tool-upload:hover, .designer-shell .tool-color:hover { background: #eaf4fb; color: var(--blue); }
.designer-shell .toolbox i { font-size: 1.05rem; }
.designer-shell .toolbox span { font-size: .68rem; line-height: 1.1; }
.tool-color input[type="color"] { width: 28px; height: 20px; padding: 0; border: 0; background: transparent; }
.designer-shell .studio-main { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.designer-shell .studio-toolbar { min-height: 48px; padding: .35rem 1rem; justify-content: space-between; color: var(--muted); font-size: .82rem; }
.designer-shell .canvas-stage { min-height: 590px; padding: clamp(1rem, 4vw, 4rem); background-color: #f3f4f5; background-image: radial-gradient(#cfd6dc .65px, transparent .65px); background-size: 18px 18px; }
.designer-shell .product-surface { width: min(100%, 760px); padding: clamp(30px, 5vw, 58px); border-radius: 14px; background: #fff; border: 1px solid #cfd7df; box-shadow: 0 18px 45px rgba(16,37,63,.16); }
.designer-shell .guide-label { top: 14px; color: #357148; border: 1px solid #6bb985; border-radius: 20px; padding: .16rem .45rem; background: #effaf2; }
.designer-shell .config-panel { padding: 1.1rem; border-left: 1px solid var(--line); box-shadow: -2px 0 8px rgba(16,37,63,.04); max-height: calc(100vh - 186px); overflow-y: auto; }
.designer-shell .config-panel h2 { font-size: 1.05rem; }
.designer-shell .config-panel label { font-size: .82rem; margin-bottom: .75rem; }
.designer-shell .preflight { margin-top: 1rem; }
@media (max-width: 1180px) {
  .designer-commandbar { grid-template-columns: auto minmax(190px, 1fr) auto; }
  .designer-title h1 { display: none; }
  .designer-command-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .designer-shell .studio { grid-template-columns: 82px minmax(0, 1fr); }
  .designer-shell .config-panel { grid-column: 1 / -1; max-height: none; }
}
@media (max-width: 767px) {
  .designer-commandbar { position: static; grid-template-columns: 1fr auto; }
  .designer-title { border-right: 0; }
  .designer-product-picker { grid-column: 1 / -1; }
  .designer-command-actions { justify-content: stretch; flex-wrap: wrap; }
  .designer-command-actions .autosave { width: 100%; }
  .designer-command-actions .btn { flex: 1; }
  .designer-shell .studio { display: block; }
  .designer-shell .toolbox { flex-wrap: nowrap; overflow-x: auto; }
  .designer-shell .toolbox h2 { display: none; }
  .designer-shell .toolbox button, .designer-shell .tool-upload, .designer-shell .tool-color { min-width: 68px; min-height: 58px; }
  .designer-shell .canvas-stage { min-height: 430px; }
}

/* Design Studio toolbar/modal refinements */
.designer-shell {
  --designer-rail: 92px;
}
.designer-commandbar {
  grid-template-columns: auto minmax(430px, 1fr) auto auto;
}
.designer-product-picker {
  min-width: 0;
  flex-wrap: wrap;
}
.designer-product-picker .form-select {
  min-width: 190px;
  flex: 1 1 220px;
}
.designer-utility-btn {
  min-height: 38px;
  padding: .4rem .65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .78rem;
  white-space: nowrap;
}
.designer-utility-btn:hover {
  background: #edf2f6;
  color: var(--blue);
}
.designer-shell .studio {
  grid-template-columns: var(--designer-rail) minmax(0, 1fr);
}
.designer-shell .canvas-stage {
  overflow: auto;
  align-items: flex-start;
}
.designer-shell .product-surface {
  position: relative;
  width: max-content;
  min-width: min(100%, 760px);
  max-width: none;
}
.designer-shell .canvas-container {
  margin-inline: auto;
}
.product-placeholder {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(76%, 420px);
  min-height: 250px;
  padding: 1.25rem;
  border: 2px dashed #b8c6d2;
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  display: grid;
  place-items: center;
  align-content: center;
  gap: .6rem;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
  z-index: 3;
}
.product-placeholder[hidden] {
  display: none !important;
}
.product-placeholder i {
  font-size: 4.5rem;
  color: #8fa4b8;
}
.product-placeholder strong {
  color: var(--navy);
  font-size: 1.15rem;
}
.product-placeholder span {
  max-width: 320px;
  font-size: .9rem;
}
.designer-shell .canvas-container {
  z-index: 2;
}
#productSetupModal .price-box {
  padding: .85rem;
  border-radius: 10px;
  background: #f7f9fb;
  border: 1px solid var(--line);
}
#printQualityModal .preflight p {
  margin-bottom: .7rem;
}

@media (max-width: 1280px) {
  .designer-commandbar {
    grid-template-columns: auto minmax(320px, 1fr) auto;
  }
  .designer-command-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  .designer-commandbar {
    grid-template-columns: 1fr auto;
  }
  .designer-product-picker {
    grid-column: 1 / -1;
  }
  .designer-product-picker .form-select {
    flex-basis: 100%;
  }
  .designer-utility-btn {
    flex: 1 1 calc(50% - .25rem);
    justify-content: center;
  }
  .designer-command-actions > .btn,
  .designer-command-actions > a.btn {
    flex: 1 1 auto;
  }
}

/* Native HTML5 Canvas interaction support (no Fabric.js). */
#designCanvas {
  display: block;
  max-width: none;
  touch-action: none;
  cursor: default;
  user-select: none;
}

/* CSP-safe modal fallback used by the native designer when Bootstrap JS is unavailable. */
.designer-shell ~ .modal.show,
.modal.show[aria-modal="true"] {
  overflow-x: hidden;
  overflow-y: auto;
}


/* Designer enhancements: text editing, panoramic views, proof approval, and pricing labels. */
.designer-shell .tool-select {
  min-height: 76px;
  padding: .45rem .2rem;
  margin: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  display: grid;
  place-items: center;
  gap: .25rem;
  color: var(--ink);
}
.designer-shell .tool-select span { font-size: .68rem; }
.designer-shell .tool-select .form-select { width: 82px; font-size: .68rem; padding: .2rem 1.5rem .2rem .3rem; }
.panoramic-controls { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.panoramic-controls > span { color: var(--muted); font-weight: 700; }
.pricing-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; font-weight: 700; color: var(--navy); }
.pricing-labels span { display: flex; align-items: center; gap: .4rem; }
#printQualityModal .preflight p { font-size: 18px; line-height: 1.45; }
.designer-brown-message { color: #4b2e1f !important; }
.proof-description { color: #4b2e1f; font-size: 1rem; line-height: 1.6; }
.signature-wrap { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; background: #faf9f7; }
#proofSignatureCanvas { width: 100%; height: 160px; display: block; border: 1px dashed #8d7b6b; border-radius: 8px; background: #fff; touch-action: none; }
@media (max-width: 767px) {
  .pricing-labels { grid-template-columns: 1fr; }
  .panoramic-controls { width: 100%; }
}

/* 2026-09-07 Design Studio tool enhancements. */
.designer-shell .design-tools-icon {
  min-height: 48px;
  display: grid;
  place-items: center;
  margin: 0;
}
.designer-shell .design-tools-icon i {
  font-size: 2rem;
  color: var(--ink);
}
.panoramic-controls .product-side .fa-check {
  pointer-events: none;
}

/* Designer toolbox recognition and alignment enhancements. */
.designer-shell .toolbox {
  align-items: center;
  justify-content: flex-start;
  gap: .55rem;
  text-align: center;
}
.designer-shell .toolbox .design-tools-icon {
  width: 100%;
  display: grid;
  place-items: center;
  margin: 0 0 .15rem;
}
.designer-shell .designer-tools-main-icon {
  font-size: 2.35rem;
  line-height: 1;
}
.designer-shell .toolbox button,
.designer-shell .toolbox .tool-upload,
.designer-shell .toolbox .tool-select,
.designer-shell .toolbox .tool-color {
  width: calc(100% - .5rem);
  min-height: 66px;
  margin: 0 auto;
  border: 1px solid #cfd8e2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(16, 37, 63, .08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .3rem;
}
.designer-shell .toolbox button:hover,
.designer-shell .toolbox button:focus-visible,
.designer-shell .toolbox .tool-upload:hover,
.designer-shell .toolbox .tool-upload:focus-within,
.designer-shell .toolbox .tool-select:hover,
.designer-shell .toolbox .tool-select:focus-within,
.designer-shell .toolbox .tool-color:hover,
.designer-shell .toolbox .tool-color:focus-within {
  background: #eef7fc;
  border-color: #2463a4;
  box-shadow: 0 4px 12px rgba(36, 99, 164, .16);
  animation: toolbox-recognition-vibrate .16s linear 2;
}
.designer-shell .toolbox i,
.designer-shell .toolbox span {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.designer-shell .toolbox span {
  width: 100%;
  font-weight: 700;
}
.designer-shell .toolbox select {
  width: calc(100% - .5rem);
  margin: 0 auto;
  text-align: center;
  text-align-last: center;
}
.designer-shell .toolbox input[type="color"] {
  display: block;
  margin: 0 auto;
}
@keyframes toolbox-recognition-vibrate {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .designer-shell .toolbox button:hover,
  .designer-shell .toolbox button:focus-visible,
  .designer-shell .toolbox .tool-upload:hover,
  .designer-shell .toolbox .tool-upload:focus-within,
  .designer-shell .toolbox .tool-select:hover,
  .designer-shell .toolbox .tool-select:focus-within,
  .designer-shell .toolbox .tool-color:hover,
  .designer-shell .toolbox .tool-color:focus-within {
    animation: none;
  }
}

/* Even footer columns. */
footer .footer-columns-even > [class*="col-"] {
  display: flex;
  flex-direction: column;
}


/* Global Back to Top control. */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink, #183153);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 1080;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover, .back-to-top:focus-visible { background: #2463a4; color: #fff; }

/* Vivid, centered, uniquely identifiable designer tools. */
.designer-shell .toolbox { justify-content: center; }
.designer-shell .toolbox > button,
.designer-shell .toolbox > label { position: relative; overflow: hidden; }
.designer-shell .toolbox > button::before,
.designer-shell .toolbox > label::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--tool-accent, #2463a4);
}
.designer-shell .toolbox [data-toolbox-id="uploads"] { --tool-accent: #0d6efd; }
.designer-shell .toolbox [data-toolbox-id="text"] { --tool-accent: #6f42c1; }
.designer-shell .toolbox [data-toolbox-id="edit-text"] { --tool-accent: #d63384; }
.designer-shell .toolbox [data-toolbox-id="font"] { --tool-accent: #198754; }
.designer-shell .toolbox [data-toolbox-id="shapes"] { --tool-accent: #fd7e14; }
.designer-shell .toolbox [data-toolbox-id="emojis"] { --tool-accent: #20c997; }
.designer-shell .toolbox [data-toolbox-id="duplicate"] { --tool-accent: #0dcaf0; }
.designer-shell .toolbox [data-toolbox-id="delete"] { --tool-accent: #dc3545; }
.designer-shell .toolbox [data-toolbox-id="text-color"] { --tool-accent: #ffc107; }
.designer-shell .toolbox [data-toolbox-id="background-color"] { --tool-accent: #6610f2; }
.designer-shell .toolbox > button i,
.designer-shell .toolbox > label i { color: var(--tool-accent, #2463a4); }

/* Toolbox item identity badges: centered, vivid, and visually distinct. */
.designer-shell .toolbox > button,
.designer-shell .toolbox > label {
  isolation: isolate;
}
.designer-shell .toolbox > button::after,
.designer-shell .toolbox > label::after {
  content: attr(data-toolbox-number);
  position: absolute;
  top: .3rem;
  right: .35rem;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .25rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--tool-accent, #2463a4);
  color: #fff;
  font: 700 .62rem/1 Georgia, "Times New Roman", serif;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.designer-shell .toolbox > button:hover,
.designer-shell .toolbox > label:hover {
  transform: translateY(-1px);
}
@media (max-width: 767.98px) {
  .designer-shell .toolbox {
    justify-content: flex-start;
  }
}


/* 2026-09-08: final Designer toolbox centering and label treatment. */
.designer-shell .toolbox {
  box-sizing: border-box;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-left: .55rem !important;
  padding-right: .55rem !important;
}
.designer-shell .toolbox > button,
.designer-shell .toolbox > label {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
  text-align: center !important;
}
.designer-shell .toolbox > button > i,
.designer-shell .toolbox > label > i,
.designer-shell .toolbox > button > span,
.designer-shell .toolbox > label > span {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
.designer-shell .toolbox span {
  font-weight: 400 !important;
}
.back-to-top {
  right: 1.25rem;
  bottom: 1.25rem;
  border-radius: 50% !important;
}

/* 2026-09-08: definitive Designer toolbox centering and bold labels. */
.designer-shell .toolbox {
  box-sizing: border-box;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.designer-shell .toolbox > button,
.designer-shell .toolbox > label {
  box-sizing: border-box;
  width: 74px !important;
  min-width: 74px !important;
  max-width: 74px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  align-self: center !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
.designer-shell .toolbox > button > i,
.designer-shell .toolbox > label > i,
.designer-shell .toolbox > button > span,
.designer-shell .toolbox > label > span {
  display: block;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
.designer-shell .toolbox span {
  font-weight: 700 !important;
}
.designer-shell .toolbox select {
  display: block;
  width: 62px !important;
  max-width: 62px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: .25rem;
  padding-right: 1.35rem;
  text-align: center;
}
.designer-shell .toolbox input[type="color"] {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 767.98px) {
  .designer-shell .toolbox > button,
  .designer-shell .toolbox > label {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
  }
}

/* 2026-09-08: site-wide round Back to Top button. */
.back-to-top {
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2147483000 !important;
}
.back-to-top.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.back-to-top i {
  margin: 0 !important;
  line-height: 1;
}
