@import url('/catalog/view/stylesheet/printburo-theme.css?v=3');
* {
  box-sizing:border-box;
}

body {
  margin:0;
  color:var(--pb-text);
  background:var(--pb-bg);
  font:15px var(--pb-font);
}

button,input,select {
  font:inherit;
}

button,a,select {
  cursor:pointer;
}

button {
  border:0;
}

a {
  color:inherit;
  text-decoration:none;
}

button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid var(--pb-blue);
  outline-offset:3px;
}

.wrap {
  width:var(--pb-wrap);
  margin:auto;
}

header {
  background:var(--pb-bg);
  border-bottom:1px solid var(--pb-border);
}

.head {
  display:flex;
  gap:14px;
  align-items:center;
  padding:16px 0;
}

.logo {
  font-size:26px;
  font-weight:900;
  letter-spacing:-1.7px;
  white-space:nowrap;
}

.logo b {
  color:var(--pb-blue);
}

.search {
  flex:1;
  display:flex;
  align-items:center;
  background:#eeede9;
  border-radius:8px;
  padding:0 15px;
  gap:9px;
}

.search input {
  width:100%;
  border:0;
  background:none;
  padding:13px 0;
  outline:none;
}

.action {
  background:none;
  font-weight:650;
  white-space:nowrap;
  padding:8px 0;
}

.head span {
  color:#2344e8;
}
.shop-icon-action { min-width:40px; min-height:40px; color:var(--pb-text); font-size:20px; }
.shop-icon-action #count { font-size:13px; }
@media(max-width:680px) {
  header .head { flex-wrap:wrap; gap:8px; }
  header .head .logo { margin-right:auto; }
  header .head .search { order:1; flex:0 0 100%; }
}

nav {
  display:flex;
  gap:27px;
  overflow:auto;
  align-items:center;
  white-space:nowrap;
  padding:0 0 14px;
}

nav button {
  background:none;
  padding:0;
  font-weight:600;
}

nav .blue {
  color:#2344e8;
}

.hero {
  margin-top:24px;
  min-height:467px;
  border-radius:16px;
  overflow:hidden;
  position:relative;
  background:#1838cc url(./assets/hero.jpg) center 22%/cover no-repeat;
  color:white;
  display:flex;
  align-items:center;
}

.hero:before {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,#132ba7 0%,#132ba7cc 24%,transparent 70%);
}

.hero-body {
  position:relative;
  padding:42px 46px;
}

.label {
  display:inline-block;
  background:#dfff3f;
  color:#161c0b;
  padding:6px 10px;
  border-radius:3px;
  font-size:11px;
  font-weight:850;
  letter-spacing:.12em;
}

.hero h1 {
  font-size:clamp(46px,6.5vw,100px);
  line-height:.88;
  letter-spacing:-.075em;
  margin:22px 0;
  font-weight:900;
}

.hero p {
  margin:0 0 25px;
  line-height:1.45;
  max-width:280px;
  color:#e7ebff;
}

.primary {
  background:var(--pb-lime);
  color:var(--pb-text);
  border-radius:var(--pb-control);
  padding:14px 19px;
  font-weight:800;
  display:inline-block;
}

.primary:hover {
  background:var(--pb-lime-hover);
}
.primary:disabled, .primary:disabled:hover {
  background:var(--pb-soft);
  color:var(--pb-muted);
  cursor:default;
}

.catalog {
  padding:35px 0 58px;
  scroll-margin:15px;
}

.title {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:12px;
}

.title h2 {
  font-size:clamp(30px,4vw,53px);
  letter-spacing:-.065em;
  margin:0;
  font-weight:900;
}

.title select,.sizes {
  border:1px solid #d8d6ce;
  border-radius:8px;
  background:white;
  padding:9px;
}

.filters {
  display:flex;
  gap:8px;
  overflow:auto;
  margin:17px 0 19px;
}

.pill {
  border-radius:50px;
  background:#eeede8;
  padding:9px 15px;
  white-space:nowrap;
}

.pill.active {
  background:#17171c;
  color:white;
}

.grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
}

.card {
  min-width:0;
}

.photo {
  height:auto;
  aspect-ratio:.71;
  position:relative;
  background:#ecebe9;
  border-radius:12px;
  overflow:hidden;
}

.product-photo-visual::before {
  content:'';
  position:absolute;
  inset:0;
  background-image:url(./assets/products.jpg);
  background-size:400% auto;
  background-position:var(--position) center;
  background-repeat:no-repeat;
}

.photo .product-favorite {
  position:absolute;
  right:11px;
  top:11px;
  background:#faf9f6;
  border-radius:50%;
  width:38px;
  height:38px;
  font-size:22px;
}

.photo .product-favorite.on {
  color:#2344e8;
}

.card h3 {
  font-size:17px;
  margin:10px 0 4px;
}

.card p {
  margin:0 0 10px;
  color:#62616a;
  font-size:13px;
}

.buy {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:7px;
  font-weight:800;
  font-size:17px;
}

.buy button,.remove {
  background:#eaeafa;
  border-radius:7px;
  padding:7px 11px;
  color:#2344e8;
  font-weight:750;
}

.custom {
  border-radius:14px;
  background:#dfff3f;
  padding:26px 34px;
  margin-bottom:32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.custom h2 {
  margin:0;
  font-size:30px;
  letter-spacing:-.055em;
}

.custom .custom-link {
  background:#17171c;
  color:white;
  border-radius:8px;
  padding:12px 16px;
}

footer {
  padding:23px 0;
  border-top:1px solid #e9e7e2;
  color:#5b5a60;
}

dialog {
  width:min(510px,calc(100% - 28px));
  border:0;
  border-radius:16px;
  padding:25px;
  color:#17171c;
  background:#faf9f6;
}

dialog::backdrop {
  background:#13132299;
}

dialog h2 {
  margin:0 42px 15px 0;
}

.close {
  position:absolute;
  right:14px;
  top:12px;
  background:none;
  font-size:25px;
}

.line {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  padding:10px 0;
  border-top:1px solid #ddd;
}

.preview[hidden] {
  display:none;
}

.preview {
  max-width:100%;
  max-height:220px;
  display:block;
  margin:12px auto;
}

.total {
  font-weight:850;
}

.toast {
  position:fixed;
  bottom:20px;
  right:20px;
  background:#17171c;
  color:white;
  padding:12px 17px;
  border-radius:8px;
  z-index:1;
}

.toast:empty {
  display:none;
}

@media(max-width:820px) {
  .wrap {
    width:calc(100% - 32px);
  }
  .head {
    gap:15px;
  }
  .grid {
    grid-template-columns:repeat(2,1fr);
  }
  .hero {
    min-height:385px;
  }
  .hero-body {
    padding:29px;
  }
  .logo {
    font-size:22px;
  }
}

@media(max-width:540px) {
  .head {
    flex-wrap:wrap;
    gap:12px;
    padding:14px 0;
  }
  .logo {
    margin-right:auto;
  }
  .search {
    order:4;
    flex-basis:100%;
  }
  nav {
    gap:16px;
    font-size:13px;
  }
  .hero {
    margin-top:14px;
    min-height:375px;
    background-position:57% center;
  }
  .hero:before {
    background:linear-gradient(90deg,#132ba7e8,#132ba76b 76%,transparent);
  }
  .grid {
    gap:12px;
  }
  .hero-body {
    padding:21px;
  }
  .buy {
    font-size:14px;
  }
  .buy button {
    padding:7px;
  }
  .title select {
    max-width:130px;
  }
  .custom {
    padding:20px;
    align-items:flex-start;
    flex-direction:column;
  }
}


.auth-form { display: grid; gap: 14px; }
.auth-form label, .builder-settings > label { display: grid; gap: 6px; font-weight: 600; }
.auth-form input, .builder-settings select { width: 100%; border: 1px solid #d8d6ce; border-radius: 8px; padding: 9px; background: white; }
#authError, .auth-error, #builderStatus, .cart-error { color: #963126; }
#authError:empty, .auth-error:empty, #builderStatus:empty { display: none; }
.builder { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.builder-canvas { display: block; width: 100%; height: auto; border-radius: 10px; background: #eae9e5; }
.builder-canvas.has-print { cursor: grab; touch-action: none; }
.builder-canvas.has-print:active { cursor: grabbing; }
.builder-settings { display: grid; gap: 11px; min-width: 0; }
.builder-settings input { min-width: 0; max-width: 100%; }
.builder-settings fieldset { margin: 0; padding: 0; border: 0; }
#swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.swatch { width: 31px; height: 31px; border: 1px solid #2224; border-radius: 50%; }
.swatch[aria-pressed=true] { outline: 2px solid #2344e8; outline-offset: 2px; }
.builder-help { margin: 0; color: #62616a; font-size: 13px; }
button:disabled { opacity: .55; cursor: default; }
@media (max-width: 600px) {
  .builder { grid-template-columns: 1fr; gap: 14px; }
  .builder-canvas { width: min(100%, 340px); margin-inline: auto; }
  .head .action { font-size: 13px; }
}

#account { display:inline-flex; align-items:center; gap:7px; }
.user-label { max-width:clamp(108px,24vw,240px); overflow:hidden; text-overflow:ellipsis; }

.print-upload legend { padding: 0; font-weight: 600; }
.print-upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin: 6px 0;
  padding: 10px 14px;
  border: 1px solid #bfc9ff;
  border-radius: 8px;
  background: #eaefff;
  color: #213bbd;
  font-weight: 750;
}
.print-upload-button:hover { background: #dae3ff; border-color: #2344e8; }
.print-upload-button span:first-child { font-size: 19px; line-height: 1; }
#printFileInfo { overflow-wrap: anywhere; }

.vk-button { background:#0077ff; color:#fff; border-radius:8px; padding:12px 16px; font-weight:750; }
.vk-button:hover:not(:disabled) { background:#005fc9; }
#modalContent > .vk-button { margin:0 10px 8px 0; }

.order-detail { margin: 10px 0; border-bottom: 1px solid #ddd; }
.order-detail summary { padding: 10px 0; cursor: pointer; font-weight: 650; }

.profile-page { padding-block: 35px 60px; }
.profile-page h1 { margin: 0 0 22px; font-size: clamp(32px,5vw,50px); letter-spacing: -.055em; }
.profile-content:not([hidden]) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.65fr); gap: 18px; align-items: start; }
.profile-panel { padding: 22px; border: 1px solid #e6e4de; border-radius: 14px; background: #fff; }
.profile-heading, .order-top { display: flex; align-items: center; gap: 12px; }
.profile-heading { margin-bottom: 18px; }
.profile-heading h2, .order-top h3 { margin: 0; }
.profile-heading h2 { font-size: 22px; letter-spacing: -.03em; }
.profile-orders-heading, .order-top { justify-content: space-between; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.profile-feedback { margin: 8px 0; color: #366142; }
.profile-feedback:empty { display: none; }
.profile-feedback.is-error, #profileStatus.is-error { color: #963126; }
.profile-order { border: 1px solid #ecebe7; border-radius: 10px; padding: 15px; margin-bottom: 12px; }
.order-state { padding: 5px 8px; border-radius: 6px; background: #eaefff; color: #213bbd; font-weight: 700; white-space: nowrap; }
.order-progress { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; margin: 15px 0; padding: 0; gap: 5px; }
.order-progress li { padding-top: 6px; border-top: 3px solid #e9e8e5; color: #66636c; font-size: 12px; overflow-wrap: anywhere; }
.order-progress li.done, .order-progress li.current { border-color: #2344e8; }
.order-progress li.current { color: #213bbd; font-weight: 750; }
.profile-order summary { cursor: pointer; font-weight: 650; }
.order-items { list-style: none; margin: 10px 0 0; padding: 0; }
@media (max-width: 800px) { .profile-content:not([hidden]) { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .profile-panel { padding: 14px; } .profile-head { justify-content: space-between; } }


.staff-login { max-width: 480px; }
.staff-login h2 { margin-top: 0; }
.admin-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.admin-filters label { display: grid; gap: 5px; font-weight: 650; }
.admin-filters input,.admin-filters select { padding: 10px; border-radius: 8px; border: 1px solid #d8d6ce; background: white; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th,.admin-table td { padding: 10px; border-bottom: 1px solid #e6e4de; }
.admin-order-link { background: transparent; color: #213bbd; font-weight: 750; white-space: nowrap; }
#staffMore { margin-top: 12px; }
#staffDetail { width: min(740px,calc(100% - 24px)); max-height: 90dvh; }
#staffDetailStatus { overflow-wrap: anywhere; }
.print-file-item { margin: 8px 0 14px; border: 1px solid #e6e4de; border-radius: 8px; padding: 10px 12px; }
.print-file-item h4 { margin: 0 0 6px; }
.print-file-item ul { margin: 6px 0; padding-left: 20px; overflow-wrap: anywhere; }
.print-file-item a { color: #213bbd; text-decoration: underline; }
.print-file-upload { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.print-file-upload input { max-width: 100%; font: inherit; }

.picking-panel { border-top: 1px solid #e6e4de; margin-top: 24px; padding-top: 22px; }
.picking-panel .profile-heading { flex-wrap: wrap; }
#pickingRows { list-style: none; margin: 0 0 10px; padding: 0; }
#pickingRows li { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; border-bottom: 1px solid #e6e4de; padding: 10px 0; }
#pickingRows a { color: #213bbd; font-weight: 700; text-decoration: underline; }

.admin-navigation:not([hidden]) { display:flex; padding:0; justify-content:space-between; gap:12px; margin-bottom:16px; }
.admin-navigation div { display:flex; gap:8px; }
.admin-product-forms { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.admin-product-list { margin-top:16px; }
.product-import-help { margin-bottom:12px; line-height:1.5; }
#moreProducts { margin-top:12px; }
.product-photo-visual:has(.product-image)::before { display:none; }
.product-image { position:absolute; inset:0; height:100%; width:100%; object-fit:contain; }
@media(max-width:760px) { .admin-product-forms { grid-template-columns:1fr; } }


.builder-studio { grid-template-columns:minmax(0,1.22fr) minmax(0,1fr); }
.builder-stage { min-width:0; position:sticky; top:0; }
.layer-controls,.builder-actions,.picking-downloads { display:flex; flex-wrap:wrap; gap:8px; }
.layer-controls { margin:10px 0 6px; }
.layer-controls [aria-pressed=true] { background:#25386c; color:white; }
.picking-downloads { gap:14px; }
.builder-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.builder-fields label { display:grid; gap:5px; font-weight:600; }
.builder-settings textarea { resize:vertical; min-height:48px; width:100%; font:inherit; border:1px solid #d8d6ce; border-radius:8px; padding:9px; }
.builder-settings input[type=color] { min-height:38px; width:100%; border:1px solid #d8d6ce; border-radius:8px; background:#fff; padding:3px; }
.preset-tray { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-top:7px; }
.preset-print { display:grid; justify-items:center; gap:3px; color:#fff; background:#242839; padding:5px; border-radius:7px; min-width:0; font-size:12px; }
.preset-print canvas { width:min(100%,56px); height:auto; }
.preset-print[aria-pressed=true] { outline:2px solid #2344e8; outline-offset:2px; }
.builder-upload-row { display:flex; align-items:center; gap:8px; }
.builder-upload-row .print-upload-button { margin:0; }
.builder-actions .primary { flex:1; }
@media(max-width:700px) { .builder-studio { grid-template-columns:1fr; }.builder-stage { position:static; } }

.picking-date-filters { display:flex; flex-wrap:wrap; align-items:end; gap:10px; }
.picking-quick-filters { display:flex; flex-wrap:wrap; gap:6px; }
.picking-date-filters label { display:grid; gap:4px; font-size:13px; font-weight:650; }
.picking-date-filters input { border:1px solid #d8d6ce; border-radius:8px; padding:7px; background:#fff; }
.picking-filter-help { margin:8px 0 14px; }
.picking-day h3 { font-size:16px; margin:14px 0 1px; }
.picking-day-header { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; }
.picking-day ul { list-style:none; margin:0; padding:0; }
.picking-day + .picking-day { margin-top:20px; }

.order-color-key { display:flex; flex-wrap:wrap; gap:7px 16px; list-style:none; padding:0; margin:0 0 10px; color:#555464; font-size:13px; }
.order-color-key li { display:flex; align-items:center; gap:6px; }
.order-color-key span { display:inline-block; width:12px; height:12px; border:1px solid #0002; border-radius:3px; }
#staffOrders [data-sort-orders] { background:transparent; color:inherit; padding:3px 0; font-weight:inherit; white-space:nowrap; text-align:left; }
#staffOrders [data-sort-orders] span { color:#626171; font-size:12px; margin-left:4px; }
#staffOrders th[aria-sort] span { color:#213bbd; }
.order-processing td,.color-processing { background:#fff4bd; }
.order-shipped td,.color-shipped { background:#ffe4c9; }
.order-delivered td,.color-delivered { background:#dff4dd; }

.order-picking-number { color:#545363; white-space:nowrap; }

.admin-navigation div { flex-wrap:wrap; }
#staffUsersMore { margin-top:12px; }

.admin-navigation[hidden] { display:none; }

.user-disclosure { display:inline-flex; align-items:center; gap:8px; padding:3px 0; text-align:left; white-space:normal; }
.user-disclosure::before { content:'▸'; display:inline-block; color:#666780; }
.user-disclosure[aria-expanded=true]::before { transform:rotate(90deg); }
.user-details-row[hidden] { display:none; }
.user-details-row > td { background:#f8f9fd; padding:14px; }
.user-order { background:#fff; border:1px solid #e1e4ee; padding:12px 14px; border-radius:9px; margin-bottom:9px; }
.user-order-heading { display:flex; flex-wrap:wrap; align-items:center; gap:7px 13px; font-size:14px; }
.user-order-heading button { padding:2px 0; }
.user-order-body { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:16px; margin-top:10px; }
.user-order-body h4 { margin:0 0 5px; }
.user-order-items,.user-order-timeline { list-style:none; padding:0; margin:0; }
.user-order-items li { display:flex; justify-content:space-between; align-items:start; gap:8px; padding:5px 0; }
.user-order-items small,.user-order-timeline time,.user-order-timeline small { display:block; color:#58576a; margin-top:2px; overflow-wrap:anywhere; }
.user-order-timeline li { padding:4px 0 6px 9px; border-left:2px solid #dfe1e8; }
.user-order-timeline li[aria-current=step] { border-color:#2344e8; }
@media(max-width:620px) { .user-order-body { grid-template-columns:1fr; } }

.inventory-table input { width:100%; min-width:78px; max-width:125px; border:1px solid #d8d6ce; border-radius:8px; background:#fff; padding:8px; }
.inventory-photo { display:block; width:54px; height:64px; border-radius:7px; object-fit:contain; background-color:#eeede9; }
.inventory-photo-sprite { background-image:url(./assets/products.jpg); background-size:400% auto; background-repeat:no-repeat; }
.inventory-item { min-width:150px; }
.inventory-item span,.inventory-item small { display:block; margin-top:3px; }
.inventory-item small { color:#58576a; }
#inventoryMore { margin-top:12px; }
#inventorySummary p { margin:0 0 8px; }


.product-photo-visual { position:absolute; inset:0; transform-origin:center 43%; transition:transform .18s ease; }
.product-photo-visual.is-zoomed { transform:scale(1.65); }
.product-open { position:absolute; inset:0; width:100%; height:100%; background:transparent; border-radius:inherit; cursor:zoom-in; }
.product-open:focus-visible { outline-offset:-4px; }
.product-favorite { z-index:1; }
dialog:has(.product-detail) { width:min(710px,calc(100% - 24px)); max-height:92dvh; }
.product-detail { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); gap:22px; align-items:start; }
.product-gallery .photo { max-height:480px; }
.product-gallery-controls { display:flex; justify-content:center; flex-wrap:wrap; gap:6px; margin-top:8px; }
.product-gallery-controls button { font-size:13px; }
.product-detail-options { display:grid; align-content:start; gap:10px; min-width:0; }
.product-detail-options p { margin:0; }
.product-detail-options label { font-weight:700; }
.product-detail-type,#variantDetails { color:#5f5e69; }
.product-detail-price { font-size:25px; font-weight:850; }
.product-detail-price:empty { display:none; }
@media(max-width:560px) {
 .product-detail { grid-template-columns:1fr; gap:13px; }
 .product-gallery .photo { width:min(100%,280px); margin-inline:auto; }
}
@media(prefers-reduced-motion:reduce) { .product-photo-visual { transition:none; } }

.builder-studio { grid-template-columns:88px minmax(0,1fr) minmax(270px,32%); grid-template-areas:"tools canvas settings" "checkout checkout checkout"; gap:12px; }
.designer-tools { grid-area:tools; display:grid; align-content:start; gap:6px; padding:7px; border:1px solid #e3e4eb; border-radius:12px; background:#f1f1f5; overflow:visible; }
.designer-tools button { display:grid; gap:3px; justify-items:center; width:100%; padding:9px 3px; border-radius:7px; font-size:12px; color:#3d4057; }
.designer-tools button span { font-size:21px; line-height:1; }
.designer-tools button[aria-pressed=true] { background:#e1e7ff; color:#1939bc; }
.builder-studio .builder-stage { grid-area:canvas; position:static; padding:9px; background:#edf0f6; border:1px solid #dfe3ee; border-radius:12px; }
.designer-stage-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:5px; margin-bottom:5px; }
.designer-stage-bar div { display:flex; flex-wrap:wrap; gap:5px; }
.designer-stage-bar button { font-size:12px; background:#fff; padding:7px 8px; }
.designer-stage-bar button[aria-pressed=true] { background:#dbe4ff; color:#1939bc; }
.designer-canvas-wrap { display:grid; place-items:center; min-width:0; background:radial-gradient(ellipse,#fff 10%,#e3e8f4 100%); border-radius:8px; }
.designer-canvas-wrap .builder-canvas { width:min(100%,56vh); background:transparent; }
.designer-help { padding:7px 3px 0; }
.builder-studio .builder-settings { grid-area:settings; display:block; min-width:0; }
.designer-panel:not([hidden]) { display:grid; gap:11px; padding:13px; background:#fff; border:1px solid #e3e4eb; border-radius:12px; }
.designer-panel[hidden] { display:none; }
.designer-panel h3 { font-size:17px; margin:0; }
.designer-panel > label { display:grid; gap:4px; font-weight:600; }
.designer-panel label:has(output) { grid-template-columns:1fr auto; }
.designer-panel label:has(output) input { grid-column:1/-1; }
.designer-panel legend { padding:0; font-weight:600; }
.designer-checkout { grid-area:checkout; position:sticky; bottom:0; display:flex; flex-wrap:wrap; gap:8px 12px; justify-content:space-between; align-items:center; background:#faf9f6; padding:9px 0 1px; border-top:1px solid #e3e4eb; }
.designer-checkout #builderStatus { margin:3px 0 0; }
.designer-checkout .primary { min-width:190px; }
@media(max-width:800px) {
 .builder-studio { grid-template-columns:minmax(0,1fr); grid-template-areas:"tools" "canvas" "settings" "checkout"; gap:8px; }
 .designer-tools { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .designer-canvas-wrap .builder-canvas { width:min(100%,42vh); }
 .designer-checkout .primary { flex:1; }
}


.custom .custom-link { display:inline-block; }
.constructor-head .constructor-back { margin-right:auto; }
.constructor-workspace { width:min(1320px,calc(100% - 48px)); padding:24px 0 22px; }
.constructor-workspace h1 { margin:0 0 15px; font-size:clamp(26px,4vw,40px); letter-spacing:-.045em; }
.constructor-workspace .designer-canvas-wrap .builder-canvas { width:min(100%,60vh); }
.constructor-workspace .designer-checkout { padding:12px 0; z-index:2; }
@media(max-width:800px) {
 .constructor-workspace { width:calc(100% - 24px); padding-top:15px; }
 .constructor-workspace .designer-canvas-wrap .builder-canvas { width:min(100%,42vh); }
}
@media(max-width:480px) {
 .constructor-head .logo { margin-right:0; }
 .constructor-head .constructor-back { order:4; flex-basis:100%; padding-block:2px; }
}

.model-stage { display:grid; grid-template-columns:82px minmax(0,1fr); gap:8px; }
.model-sides { display:flex; flex-direction:column; gap:7px; }
.model-sides button { display:grid; justify-items:center; align-content:start; gap:2px; border:1px solid #dfe3ee; border-radius:8px; background:#fff; color:#424764; font-size:12px; padding:3px 3px 5px; }
.model-sides button canvas { width:100%; height:auto; }
.model-sides button[aria-pressed=true] { border-color:#2547e2; box-shadow:inset 0 0 0 1px #2547e2; color:#1939bc; }
.model-sides button.has-design span::after { content:'•'; color:#2547e2; margin-left:4px; }
.design-layers { display:grid; gap:5px; max-height:180px; overflow:auto; padding:2px; }
.design-layers button { text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.design-layers button[aria-pressed=true] { background:#e1e7ff; color:#1939bc; }
#sideLayerTitle { font-size:13px; color:#5f6682; }
@media(max-width:800px) {
 .model-stage { grid-template-columns:minmax(0,1fr); }
 .model-sides { flex-direction:row; }
 .model-sides button { grid-template-columns:34px auto; align-items:center; padding:2px 6px; }
}

.section-catalog h1 { margin:0; font-size:clamp(31px,4vw,48px); letter-spacing:-.05em; }
.section-description { margin:6px 0 21px; color:#5e5d68; }
.section-catalog .filters[hidden] { display:none; }
.creator-card { min-width:0; }
.design-grid { margin-bottom:32px; }
.creator-unavailable { overflow:hidden; border-radius:12px; background:#efeee9; }
.creator-unavailable .creator-content { flex-direction:column; align-items:flex-start; gap:4px; }
.creator-unavailable .creator-content span { height:auto; background:none; color:#595963; font-size:13px; }
.creator-card > a { display:flex; flex-direction:column; height:100%; overflow:hidden; border-radius:12px; background:#243bd1; color:#fff; }
.creator-image { aspect-ratio:.71; position:relative; overflow:hidden; background:#e9e9e7; }
.creator-image > img { width:100%; height:100%; object-fit:cover; display:block; }
.creator-image .photo { height:100%; border-radius:0; }
.creator-content { display:flex; align-items:center; justify-content:space-between; flex:1; gap:8px; padding:11px; }
.creator-content span { border-radius:50%; background:#e6ff44; color:#171717; min-width:27px; height:27px; display:grid; place-items:center; }
.locked-preview-shape.photo-background {
 width:min(100%,58dvh); margin:auto; border-radius:2px;
 background:#dedacf; border:1px solid #b4b0a5; box-shadow:0 15px 32px #31354424;
}
.locked-preview-shape.photo-background.has-eyelets {
 background:
  radial-gradient(circle, #dedacf 2px, #77746c 3px 4px, transparent 5px) top 5px left 5px / 10px 10px no-repeat,
  radial-gradient(circle, #dedacf 2px, #77746c 3px 4px, transparent 5px) top 5px right 5px / 10px 10px no-repeat,
  radial-gradient(circle, #dedacf 2px, #77746c 3px 4px, transparent 5px) bottom 5px left 5px / 10px 10px no-repeat,
  radial-gradient(circle, #dedacf 2px, #77746c 3px 4px, transparent 5px) bottom 5px right 5px / 10px 10px no-repeat,
  #dedacf;
}
.locked-preview-shape.shoe-bag {
 width:min(72%,35dvh); aspect-ratio:3/4; margin:auto; position:relative;
 border-radius:5% 5% 3% 3%;
 background:linear-gradient(172deg,#53576a 0 6%,transparent 8%),linear-gradient(110deg,#394155,#262c3d 60%,#33384b);
 box-shadow:0 15px 30px #282f4436;
}
.locked-preview-shape.shoe-bag[data-shape=rounded] { width:min(65%,32dvh); border-radius:5% 5% 26% 26%; }
.locked-preview-shape.shoe-bag::before {
 content:''; position:absolute; top:8%; left:-7%; right:-7%; height:88%;
 border:3px solid #666e86; border-radius:12px 12px 38% 38%; pointer-events:none;
}
@font-face { font-family:Lobster; src:url('/assets/Lobster-Regular.ttf') format('truetype'); font-display:swap; }
.graduation-artwork { position:relative; width:min(100%,720px); }
.graduation-artwork img { display:block; width:100%; height:auto; }
.graduation-artwork svg { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.graduation-artwork text { font-family:Lobster,cursive; filter:drop-shadow(0 4px 4px #1b0e09); }
.studio-page { background:var(--pb-stage); min-height:100dvh; }
.studio-workspace { width:100%; padding:0; }
.studio-loading-title,.studio-loading-title + #builderRoot > #builderLoading { padding-inline:20px; }
.studio-grid {
 display:grid; grid-template-columns:minmax(270px,340px) minmax(0,1fr);
 grid-template-areas:"sidebar stage"; align-items:stretch; gap:0;
 background:radial-gradient(ellipse at 62% 36%,var(--pb-surface),var(--pb-stage));
}
.studio-sidebar {
 grid-area:sidebar; display:grid; align-content:start; gap:14px; min-width:0;
 padding:20px; background:color-mix(in srgb,var(--pb-bg) 84%,transparent); backdrop-filter:blur(14px);
 border:0; border-right:1px solid var(--pb-border); border-radius:0;
}
.studio-sidebar h1 { margin:0; font-size:clamp(22px,2.4vw,32px); }
.studio-sidebar h2 { font-size:15px; margin:0 0 8px; }
.studio-sidebar > label { font-weight:700; }
.studio-size-label { display:grid; gap:5px; }
.studio-size-label select { background:#fff; border:1px solid #d8d6ce; border-radius:8px; padding:8px; }
.studio-template-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.studio-template-card {
 display:grid; align-content:start; text-align:left; min-width:0; gap:7px;
 background:#fff; border:1px solid #d6dbe8; border-radius:9px;
 padding:5px 5px 8px; color:#22263a; font-size:13px; font-weight:650; overflow-wrap:anywhere;
}
.studio-template-card:hover,.studio-template-card[aria-pressed=true] { border-color:#2344e8; }
.studio-template-card[aria-pressed=true] { box-shadow:inset 0 0 0 1px #2344e8; color:#1939bc; }
.studio-template-cover { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:5px; background:#e6eaf5; }
span.studio-template-cover { display:grid; place-items:center; color:#2344e8; }
span.studio-template-cover::before { content:'＋'; font-size:27px; }
.studio-stage,.builder-studio .studio-stage {
 grid-area:stage; min-width:0; padding:clamp(12px,2vw,28px);
 background:transparent; border:0; border-radius:0;
}
.studio-stage .graduation-artwork { width:min(100%,calc((100dvh - 155px) * var(--artwork-ratio,1.3333))); }
.studio-stage .studio-text-zone {
 position:absolute; padding:0; border:2px dashed #f0df9b; border-radius:5px; background:transparent;
 box-shadow:0 0 0 1px #252b51; color:#17234e; cursor:text;
}
.studio-text-zone > span {
 position:absolute; left:0; bottom:100%; margin-bottom:3px; padding:3px 6px; white-space:nowrap;
 border-radius:4px; background:#f7e7a9; font-size:clamp(9px,1vw,13px); font-weight:750;
}
.studio-text-zone:focus-visible { outline:3px solid #2344e8; outline-offset:3px; }
.studio-uploaded-artwork text { font-family:Inter,Arial,sans-serif; font-weight:750; fill:white; filter:drop-shadow(0 1px 2px #151624); }
.studio-sidebar .designer-tools { grid-template-columns:repeat(4,minmax(0,1fr)); white-space:normal; }
.studio-sidebar > :is(.designer-tools,.builder-settings,.designer-checkout) { grid-area:auto; }
.studio-sidebar .model-sides { display:grid; grid-template-columns:repeat(2,minmax(0,70px)); }
.studio-sidebar .model-sides button { display:grid; grid-template-columns:1fr; }
.studio-sidebar .designer-checkout { position:static; background:transparent; }
.studio-stage .designer-canvas-wrap { background:none; }
.studio-workspace .studio-stage .builder-canvas { width:min(100%,calc(100dvh - 190px)); }
.builder-studio .template-stage {
 display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:12px; padding-bottom:96px;
}
.template-stage .designer-stage-bar { margin:0; }
.template-stage .designer-help { margin:0; }
.template-canvas { min-height:0; }
.template-mockup { width:100%; display:grid; place-items:center; gap:14px; }
.template-mockup-caption,.studio-empty-stage span { color:var(--pb-muted); font-size:14px; text-align:center; }
.studio-empty-stage { display:grid; justify-items:center; gap:6px; text-align:center; padding:16px; }
.studio-empty-stage strong { font-size:clamp(19px,3vw,24px); }
.designer-panel label { font-weight:700; }
.studio-product-options h2 { margin:0; }
.studio-choice-buttons { display:flex; flex-wrap:wrap; gap:6px; }
.studio-choice-buttons button {
 min-height:32px; padding:4px 9px; border:1px solid var(--pb-border);
 border-radius:var(--pb-control); background:var(--pb-surface);
 color:var(--pb-text); font-size:13px; font-weight:650; white-space:nowrap;
}
.studio-choice-buttons button:hover { border-color:var(--pb-blue); }
.studio-choice-buttons button[aria-pressed=true] {
 border-color:var(--pb-blue); background:var(--pb-blue-soft); color:var(--pb-blue-dark);
}
#templateTextPanel input {
 width:100%; min-width:0; padding:10px; background:var(--pb-surface);
 border:1px solid var(--pb-border); border-radius:var(--pb-control);
}
.template-stage .studio-text-zone { border-color:var(--pb-blue); box-shadow:0 0 0 1px rgb(255 255 255 / 70%); }
.template-stage .studio-text-zone > span { background:var(--pb-blue-soft); color:var(--pb-blue-dark); }
.template-canvas[data-preview-only] .studio-text-zone { border-color:transparent; box-shadow:none; pointer-events:none; }
.template-canvas[data-preview-only] .studio-text-zone > span { display:none; }
.designer-stage-bar button:disabled { background:var(--pb-soft); color:var(--pb-muted); cursor:default; }
.template-zone-settings { min-width:0; margin:16px 0; padding:16px; border:1px solid var(--pb-border); border-radius:var(--pb-card); }
.template-zone-settings h3 { margin:0 0 6px; }
.template-zone-canvas { width:fit-content; max-width:100%; margin:12px auto; position:relative; touch-action:none; cursor:crosshair; user-select:none; }
.template-zone-canvas img { max-width:100%; max-height:min(62vh,650px); display:block; pointer-events:none; }
.template-zone-outline { position:absolute; display:grid; place-items:center; border:2px solid #fff; box-shadow:0 0 0 1px var(--pb-blue),inset 0 0 0 1px var(--pb-blue); background:#4664d833; cursor:move; }
.template-zone-sample { max-width:100%; overflow:hidden; white-space:nowrap; pointer-events:none; color:#fff; font-weight:750; text-shadow:0 1px 4px #17171c; }
.template-gallery-admin { display:flex; flex-wrap:wrap; gap:10px; margin:10px 0; }
.template-gallery-admin > div { display:grid; gap:4px; }
.template-gallery-admin img { width:90px; height:90px; object-fit:cover; border-radius:6px; }
#templateSectionLabel[hidden], #templateVariantLabel[hidden], #bagVariantChoices[hidden], .bag-upload-field[hidden], #bagPhotoSettings[hidden] { display:none !important; }
.bag-variant-choices { margin:0; padding:0; border:0; min-width:0; }
.bag-variant-choices legend { padding:0; margin-bottom:5px; font-weight:650; }
.bag-variant-choices > div { display:flex; flex-wrap:wrap; gap:8px; }
.bag-variant-choice { display:grid; justify-items:center; gap:5px; width:150px; min-height:145px; padding:8px; border:2px solid #d8d6ce; border-radius:10px; background:#fff; color:var(--pb-text); font:inherit; font-size:13px; font-weight:650; cursor:pointer; }
.bag-variant-choice[aria-pressed="true"] { border-color:var(--pb-blue); background:var(--pb-blue-soft); }
.bag-variant-choice:focus-visible { outline:2px solid var(--pb-blue); outline-offset:3px; }
.bag-variant-choice img { width:90px; height:100px; object-fit:contain; filter:grayscale(1) brightness(.65); }
.template-zone-handle { position:absolute; width:16px; height:16px; background:var(--pb-blue); border:2px solid white; border-radius:50%; transform:translate(-50%,-50%); }
.template-zone-handle[data-handle="nw"],.template-zone-handle[data-handle="se"] { cursor:nwse-resize; }
.template-zone-handle[data-handle="ne"],.template-zone-handle[data-handle="sw"] { cursor:nesw-resize; }
.template-zone-handle[data-handle^="n"] { top:0; }
.template-zone-handle[data-handle^="s"] { top:100%; }
.template-zone-handle[data-handle$="w"] { left:0; }
.template-zone-handle[data-handle$="e"] { left:100%; }
.template-zone-toolbar { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.template-zone-coordinates { display:grid; grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); gap:8px; max-width:540px; margin-top:10px; }
.template-zone-coordinates input { min-width:0; width:100%; }
@media(min-width:801px) {
 .studio-page { display:flex; flex-direction:column; height:100dvh; }
 .studio-workspace { flex:1; min-height:0; }
 .studio-workspace #builderRoot,.studio-grid { height:100%; }
 .studio-sidebar,.studio-stage { overflow:auto; min-height:0; }
 .template-canvas { container-type:size; }
 .template-canvas .graduation-artwork { width:min(100%,calc(100cqh * var(--artwork-ratio,1.3333))); }
}
@media(max-width:800px) {
 .studio-grid { grid-template-columns:minmax(0,1fr); grid-template-areas:"stage" "sidebar"; }
 .studio-sidebar { border-right:0; border-top:1px solid #ced5e4; }
 .studio-workspace .studio-stage .builder-canvas { width:min(100%,40svh); }
 .studio-stage .graduation-artwork { width:min(100%,calc(42svh * var(--artwork-ratio,1.3333))); }
 .builder-studio .template-stage { grid-template-rows:auto minmax(190px,auto) auto; padding-bottom:16px; }
 #templateWorkspace .studio-sidebar { padding-bottom:104px; }
 .template-mockup { max-width:380px; }
}

.constructor-topbar {
 position:relative; z-index:20; display:flex; align-items:center; min-height:68px;
 padding:10px clamp(16px,2.2vw,34px); background:#fff; border-bottom:1px solid #dfe3ec;
}
.constructor-topbar .logo { margin:0; }
.constructor-history {
 position:absolute; left:50%; top:50%; display:flex; gap:12px; transform:translate(-50%,-50%);
}
.constructor-history button {
 width:44px; height:44px; padding:0; border-radius:50%; background:#eef1f6;
 color:#232943; font-size:27px; line-height:1;
}
.constructor-history button:not(:disabled):hover { background:#dfe6ff; color:#2344e8; }
.constructor-history button:disabled { color:#b9bec9; cursor:default; }
.designer-stage-bar { justify-content:flex-end; }
.designer-checkout,.template-checkout {
 position:fixed; right:22px; bottom:18px; z-index:25; display:flex; align-items:center; gap:14px;
 max-width:min(560px,calc(100vw - 44px)); padding:12px; border:1px solid #d7dce7;
 border-radius:14px; background:#ffffffed; box-shadow:0 12px 34px #242b442b; backdrop-filter:blur(12px);
}
.designer-total { display:grid; justify-items:end; min-width:0; }
.designer-total strong,.template-checkout strong { font-size:24px; white-space:nowrap; }
.designer-total > span { max-width:250px; color:#626779; font-size:12px; text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.designer-total #builderStatus { max-width:250px; margin:2px 0 0; font-size:12px; text-align:right; }
.designer-checkout .primary,.template-checkout .primary { min-width:190px; }
.studio-sidebar > :is(.designer-tools,.builder-settings,.designer-checkout) { grid-area:auto; }
.studio-sidebar .designer-checkout { position:fixed; background:#ffffffed; }
.studio-stage { padding-bottom:96px; }
@media(max-width:700px) {
 .constructor-topbar { min-height:58px; padding-block:7px; }
 .constructor-topbar .logo { font-size:21px; }
 .constructor-history { gap:7px; }
 .constructor-history button { width:38px; height:38px; font-size:23px; }
 .designer-checkout,.template-checkout {
  right:10px; bottom:10px; left:10px; max-width:none; justify-content:flex-end; padding:9px;
 }
 .designer-total { margin-right:auto; justify-items:start; }
 .designer-total > span,.designer-total #builderStatus { max-width:135px; text-align:left; }
 .designer-checkout .primary,.template-checkout .primary { min-width:0; }
}
/* Storefront cards and design selection */
body:has(.catalog) .catalog{padding-block:38px 20px}body:has(.catalog) .title h1{font-size:clamp(32px,4vw,48px);letter-spacing:-1.7px;margin:0}body:has(.catalog) .section-description{color:var(--pb-muted);margin:12px 0 28px}body:has(.catalog) .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 20px}body:has(.catalog) .photo,body:has(.catalog) .creator-image{aspect-ratio:1.12;background:var(--pb-soft)}.creator-card>a{background:transparent;color:var(--pb-text)}.creator-card .creator-image{border-radius:14px}.creator-content{padding:16px 0;font-size:17px}.creator-content span{background:var(--pb-lime)}.card .buy button{background:var(--pb-lime);color:var(--pb-text);padding:10px 14px}.profile-page{padding-top:38px}.profile-panel{border-radius:14px;border-color:var(--pb-border);box-shadow:none}
@media(max-width:700px){body:has(.catalog) .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.creator-content{font-size:14px}.card h3{font-size:15px}.buy{flex-wrap:wrap;font-size:16px}}

