:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --border: #d9e0e8;
  --text: #243446;
  --muted: #637487;
  --accent: #155a96;
  --danger: #b42318;
  --ok: #067647;
}

* {
  box-sizing: border-box;
}

html {
  background: #0d0d0e;
  overscroll-behavior-y: auto;
  height: auto;
  overflow-y: auto;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
  overflow-y: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.topbar {
  background: #0f2940;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topbar .title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.topbar nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar nav a {
  color: #e3edf6;
  border: 1px solid #2b4660;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.topbar nav a.active {
  background: #e3edf6;
  color: #0f2940;
}

.topbar nav a.nav-register-cta {
  color: #fff7f7;
  background: linear-gradient(135deg, #d7263d, #b91c1c);
  border-color: #7f1d1d;
  box-shadow: 0 8px 20px rgba(185, 28, 28, 0.24);
  font-weight: 700;
}

.topbar nav a.nav-register-cta:hover {
  color: #ffffff;
  border-color: #7f1d1d;
  background: linear-gradient(135deg, #e23a4f, #c81f1f);
  transform: translateY(-1px);
}

.topbar nav a.nav-register-cta.active {
  color: #ffffff;
  background: linear-gradient(135deg, #d7263d, #991b1b);
  border-color: #7f1d1d;
}

.theme-switch-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-switch-btn {
  border: 1px solid #2b4660;
  background: rgba(255, 255, 255, 0.08);
  color: #e3edf6;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.theme-switch-btn.is-active {
  background: linear-gradient(140deg, #ff6f00 0%, #ff8f1f 56%, #ffab53 100%);
  border-color: transparent;
  color: #1a0f04;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

body.gallery-login-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.gallery-login-wrap {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.gallery-login-row {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(320px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.gallery-login-panel {
  width: 100%;
  margin: 0;
}

.gallery-login-row > .gallery-login-panel {
  min-height: 100%;
  margin: 0;
}

.gallery-login-main {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-pre-registration-panel {
  width: 100%;
  margin: 0;
}

.gallery-pre-registration-panel .gallery-pre-registration-btn {
  margin: 0;
}

.gallery-pre-registration-btn {
  width: 100%;
  border: 1px solid rgba(255, 142, 46, 0.55);
  border-radius: 10px;
  padding: 12px 12px 12px 12px;
  margin: 0;
  background: linear-gradient(150deg, rgba(255, 128, 24, 0.18) 0%, rgba(19, 20, 24, 0.85) 100%);
  color: #ffd8b2;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.gallery-pre-registration-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 160, 85, 0.92);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
}

.gallery-pre-registration-step {
  display: inline-block;
  margin: -2px 0 6px 0;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
  opacity: 0.92;
  color: rgba(255, 216, 178, 0.96);
}

.gallery-pre-registration-label {
  font-size: 18px;
  line-height: 1.15;
  display: inline-block;
}

.gallery-access-step {
  display: inline-block;
  margin: -2px 0 6px 0;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
  color: rgba(255, 210, 178, 0.92);
}

.gallery-access-help {
  margin: 0 0 8px 0;
  font-size: 13px;
  line-height: 1.35;
  font-style: italic;
  color: rgba(245, 221, 198, 0.96);
}

.uploader-auth-wrap {
  max-width: 1200px;
}

.uploader-auth-layout {
  grid-template-columns: 1fr;
  gap: 12px;
}

.uploader-login-panel,
.uploader-register-panel {
  width: 100%;
}

.uploader-register-details {
  border: 1px solid rgba(255, 142, 46, 0.34);
  border-radius: 10px;
  padding: 8px 10px 10px 10px;
  background: rgba(255, 128, 24, 0.08);
  transition: background .18s ease, border-color .18s ease;
}

.uploader-register-details summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
}

.uploader-register-details summary::-webkit-details-marker {
  display: none;
}

.uploader-register-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .26s ease, opacity .2s ease, margin-top .2s ease;
}

.uploader-register-details[open] {
  border-color: rgba(255, 162, 94, 0.7);
  background: rgba(255, 136, 44, 0.14);
}

.uploader-register-details[open] .uploader-register-body {
  max-height: 520px;
  opacity: 1;
  margin-top: 8px;
}

.forgot-pass-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: underline;
  letter-spacing: 0.01em;
}

.reset-request-wrap {
  max-width: none;
  display: flex;
  justify-content: center;
}

.reset-request-panel {
  width: min(520px, 100%);
}

.kindergarten-info-top {
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
}

.kindergarten-info-top-btn {
  width: 100%;
  min-height: 100%;
  border: 1px solid rgba(255, 142, 46, 0.55);
  border-radius: 10px;
  padding: 12px 10px;
  background: linear-gradient(150deg, rgba(255, 128, 24, 0.18) 0%, rgba(19, 20, 24, 0.85) 100%);
  color: #ffd8b2;
  font-weight: 700;
  line-height: 1.32;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.kindergarten-info-top-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 160, 85, 0.92);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
}

@media (max-width: 760px) {
  .gallery-login-row {
    width: min(560px, 100%);
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kindergarten-info-top-btn {
    min-height: 78px;
  }
}

body.kindergarten-info-modal-open {
  overflow: hidden;
}

.kindergarten-info-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.kindergarten-info-modal.open {
  display: flex;
}

.kindergarten-info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.74);
  backdrop-filter: blur(2px);
}

.kindergarten-info-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(840px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px 18px 16px 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 174, 89, 0.12) 0%, transparent 62%),
    linear-gradient(165deg, #12151a 0%, #11131a 100%);
  color: #eef3fb;
  transform: translateY(0) scale(1);
  opacity: 1;
}

.kindergarten-info-modal.open .kindergarten-info-modal-dialog {
  animation: kindergarten-info-pop .26s ease;
}

@keyframes kindergarten-info-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.kindergarten-info-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.kindergarten-info-modal-dialog h3 {
  margin: 0 0 10px 0;
  color: #ffe3c4;
}

.kindergarten-info-modal-text p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.45;
  color: #e7edf8;
}

.kindergarten-info-link-row {
  margin: 8px 0 10px 0;
}

.kindergarten-info-link-row a {
  font-weight: 700;
  color: #ffbf86;
  text-decoration: underline;
}

.kindergarten-info-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.kindergarten-info-image-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.kindergarten-info-image-item img {
  width: 100%;
  height: 108px;
  object-fit: cover;
  display: block;
}

.kindergarten-info-pricelist-wrap {
  margin-top: 12px;
}

.kindergarten-info-price-toggle {
  width: 100%;
  border: 1px solid rgba(255, 164, 93, 0.52);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 151, 64, 0.1);
  color: #ffcf9f;
  font-weight: 700;
  cursor: pointer;
}

.kindergarten-info-price-panel {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(3, 6, 10, 0.38);
}

.kindergarten-price-category h4 {
  margin: 0 0 6px 0;
  color: #ffd8af;
  font-size: 13px;
}

.kindergarten-price-category ul {
  margin: 0 0 10px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.kindergarten-price-category li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.kindergarten-price-category li strong {
  color: #ffcb95;
}

.upload-dock {
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.upload-dock-inner {
  max-width: none;
  margin: 0;
}

.upload-dock::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(33, 88, 150, 0.38), rgba(33, 88, 150, 0));
  pointer-events: none;
}

.upload-dock-head {
  margin-bottom: 10px;
}

.upload-dock-title {
  margin: 0 0 5px 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.upload-dock-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  max-width: 760px;
}

.upload-dock-highlight {
  margin: 4px 0 0 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}

body.gallery-page .upload-dock-head {
  margin-bottom: 8px;
  padding: 8px 12px;
  text-align: center;
  border: 1px solid rgba(255, 122, 0, 0.42);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(255, 168, 80, 0.28), transparent 54%),
    linear-gradient(165deg, rgba(40, 24, 14, 0.9) 0%, rgba(24, 16, 12, 0.88) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.2);
}

body.gallery-page .upload-dock-head::before {
  content: "";
  position: absolute;
  inset: -120% auto auto -40%;
  width: 52%;
  height: 320%;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 214, 170, 0.2) 44%,
    rgba(255, 255, 255, 0) 78%
  );
  transform: translateX(-120%) rotate(12deg);
  animation: gallery-labor-sheen 4.8s ease-in-out infinite;
}

body.gallery-page .upload-dock-title {
  margin: 0;
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #161616;
  text-shadow: none;
}

body.gallery-page .upload-dock-lead {
  margin: 4px auto 0 auto;
  max-width: 720px;
  font-size: 11px;
  line-height: 1.3;
  color: #ffbb80;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

body.gallery-page .upload-dock-highlight {
  margin: 4px auto 0 auto;
  max-width: 720px;
  font-size: 12px;
  line-height: 1.25;
  color: #ffe0b8;
  text-shadow:
    0 0 14px rgba(255, 140, 33, 0.26),
    0 1px 8px rgba(0, 0, 0, 0.3);
}

body.gallery-page .upload-dock:hover .upload-dock-head {
  border-color: rgba(255, 171, 83, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 16px 30px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 122, 0, 0.18);
}

@keyframes gallery-labor-sheen {
  0%,
  35% {
    transform: translateX(-130%) rotate(12deg);
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  70% {
    transform: translateX(260%) rotate(12deg);
    opacity: 0;
  }
  100% {
    transform: translateX(260%) rotate(12deg);
    opacity: 0;
  }
}

.upload-dock-toggle {
  display: none;
}

.upload-dock-panel {
  display: block;
}

body.gallery-page .upload-dock-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.22s ease,
    margin-top 0.22s ease;
}

body.gallery-page .upload-dock:hover .upload-dock-panel,
body.gallery-page .upload-dock:focus-within .upload-dock-panel,
body.gallery-page .upload-dock-panel.open {
  max-height: 960px;
  opacity: 1;
  margin-top: 8px;
  transform: translateY(0);
  pointer-events: auto;
}

body.gallery-page.uploader-flow .upload-dock-toggle {
  display: none;
}

body.gallery-page.uploader-flow .upload-dock-panel {
  max-height: 960px;
  opacity: 1;
  margin-top: 8px;
  transform: translateY(0);
  pointer-events: auto;
}

.upload-dock-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  border-top: 1px solid #d7e0e9;
  padding-top: 10px;
}

.upload-dock-file {
  flex: 1;
  min-width: 240px;
}

.upload-dock-action {
  flex: 0 0 auto;
}

.upload-dock-order {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  min-width: 260px;
}

.upload-dock-order select {
  min-width: 260px;
}

.upload-dock-order-hint {
  max-width: 340px;
  font-size: 12px;
  line-height: 1.4;
}

.upload-dock-buttons {
  display: grid;
  gap: 8px;
}

.upload-dock-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#openCartFromUploadBtn {
  display: none;
}

.btn-icon {
  line-height: 1;
  font-size: 14px;
}

.upload-dock-action .primary {
  min-width: 170px;
}

.upload-dock-hint {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.panel h2,
.panel h3 {
  margin: 0 0 10px 0;
}

.gallery-head-main {
  min-width: 0;
}

.gallery-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  flex-wrap: wrap;
}

.gallery-head-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.album-entry-panel {
  margin-top: 10px;
  padding: 10px 12px;
}

.album-entry-row {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.album-entry-row .primary {
  min-width: 184px;
}

.album-entry-copy {
  min-width: 240px;
  flex: 1 1 280px;
}

.album-bulk-panel {
  margin-top: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  position: relative;
  z-index: 0;
}

.album-bulk-panel.is-hidden {
  display: none;
}

.album-bulk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

#bulkOrderInfo {
  margin-bottom: 8px;
}

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

.bulk-category-tabs button {
  width: 100%;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}

.bulk-category-tabs button.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
}

.bulk-category-dropdown {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  background: var(--panel);
}

.bulk-category-dropdown.is-hidden {
  display: none;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.danger {
  color: var(--danger);
}

.ok {
  color: var(--ok);
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.gallery-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

.gallery-cart-panel {
  position: sticky;
  top: 12px;
}

.gallery-cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #d5dbe3;
  background: #f4f6f9;
  color: #34495f;
}

.gallery-cart-panel.flash {
  animation: cart-panel-flash 0.32s ease;
}

@keyframes cart-panel-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 90, 150, 0.35);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(21, 90, 150, 0);
  }
}

.gallery-photo-panel {
  max-height: none;
  overflow: visible;
}

.gallery-filter-bar {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(140px, 0.8fr) minmax(220px, 1.2fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.gallery-filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #516078;
}

.gallery-filter-field span {
  font-weight: 700;
}

.gallery-filter-field select,
.gallery-filter-field input {
  width: 100%;
}

.gallery-filter-search {
  min-width: 0;
}

.gallery-bulk-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bulk-product-panel {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 111, 198, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 248, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.bulk-product-panel.is-hidden {
  display: none;
}

.bulk-product-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.bulk-product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-product-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 120px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(15, 111, 198, 0.24);
  background: #fff;
  color: #13233a;
  cursor: pointer;
}

.bulk-product-btn strong {
  font-size: 13px;
}

.bulk-product-btn span {
  font-size: 12px;
  color: #516078;
}

.bulk-product-btn:hover {
  border-color: #0f6fc6;
  box-shadow: 0 8px 18px rgba(15, 111, 198, 0.14);
}

.gallery-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.gallery-thumb-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: visible;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.gallery-thumb-card.is-selected {
  border-color: #0f6fc6;
  box-shadow: 0 0 0 2px rgba(15, 111, 198, 0.18);
}

.gallery-thumb-upload {
  border-color: #d98f47;
}

.gallery-thumb-media-wrap {
  position: relative;
}

.gallery-select-check {
  position: absolute;
  left: 7px;
  top: 7px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 74, 122, 0.2);
  color: #16243a;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  cursor: pointer;
}

.gallery-select-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #0f6fc6;
}

.gallery-watermark-surface {
  position: relative;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.gallery-page img,
.gallery-page .gallery-thumb-card,
.gallery-page .gallery-watermark-surface,
.gallery-page .media-lightbox,
.gallery-page .photo-modal {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.gallery-watermark-surface.has-watermark-text::after {
  content: attr(data-watermark-text);
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(92%, 560px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  user-select: none;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.58);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 22px;
  opacity: var(--wm-opacity, 0.24);
  transform: translate(-50%, -50%) rotate(var(--wm-rotation, -22deg))
    scale(clamp(0.5, calc(var(--wm-scale, 0.22) * 2.2), 2.2));
}

.gallery-watermark-surface.has-watermark-image::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(92%, 560px);
  height: min(92%, 360px);
  pointer-events: none;
  user-select: none;
  opacity: var(--wm-opacity, 0.24);
  background-image: var(--wm-image-landscape, none);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translate(-50%, -50%) rotate(var(--wm-rotation, -22deg))
    scale(clamp(0.5, calc(var(--wm-scale, 0.22) * 2.2), 2.2));
}

.gallery-watermark-surface.has-watermark-image[data-wm-orientation="portrait"]::before {
  background-image: var(--wm-image-portrait, var(--wm-image-landscape, none));
}

.gallery-thumb-button {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-thumb-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-bulk-select-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(14, 16, 20, 0.62);
  color: #f5f7fb;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.gallery-bulk-select-btn:hover {
  transform: scale(1.06);
}

.gallery-bulk-select-btn.active {
  font-weight: 800;
  color: #ff8a33;
  border-color: rgba(255, 161, 91, 0.9);
  background: rgba(18, 10, 6, 0.78);
}

.gallery-bulk-hint-cloud {
  position: absolute;
  left: 4px;
  top: -74px;
  z-index: 30;
  width: 360px;
  max-width: min(560px, calc(100vw - 28px));
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: #111827;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 14px;
  padding: 9px 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.gallery-bulk-hint-cloud::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(17, 24, 39, 0.18);
  border-bottom: 1px solid rgba(17, 24, 39, 0.18);
}

.gallery-favorite-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(14, 16, 20, 0.62);
  color: #f5f7fb;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.gallery-favorite-btn:hover {
  transform: scale(1.06);
}

.gallery-favorite-btn.active {
  color: #ff8a33;
  border-color: rgba(255, 161, 91, 0.9);
  background: rgba(18, 10, 6, 0.78);
}

.gallery-favorite-btn.gallery-favorite-btn-shifted {
  right: 46px;
}

.gallery-upload-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 212, 0.55);
  background: rgba(122, 20, 20, 0.72);
  color: #fff3f3;
  font-size: 23px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.gallery-upload-delete-btn:hover {
  transform: scale(1.06);
  background: rgba(145, 26, 26, 0.86);
}

.gallery-thumb-meta {
  font-size: 12px;
}

.photo-modal,
.media-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.photo-modal.open,
.media-lightbox.open {
  display: flex;
}

.photo-modal-backdrop,
.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.72);
}

.photo-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.photo-modal-content {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.05fr);
  gap: 14px;
  padding: 16px;
}

.photo-modal-preview img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.photo-modal-preview {
  text-align: center;
}

.modal-image-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 0 auto 8px auto;
}

.modal-image-stage.gallery-watermark-surface.has-watermark-text::after {
  font-size: 28px;
  width: min(94%, 760px);
}

.modal-image-stage.gallery-watermark-surface.has-watermark-image::before {
  width: min(94%, 760px);
  height: min(94%, 540px);
}

.modal-image-nav {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.modal-nav-btn {
  width: 42px;
  height: 88px;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(6, 8, 11, 0.56);
  color: #fff;
}

.modal-nav-btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.modal-photo-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.modal-photo-title-row h3 {
  margin: 0;
}

.modal-favorite-btn {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  white-space: nowrap;
}

.modal-favorite-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #ff8a33, #ff9b54);
  border-color: #ff9b54;
}

.modal-image-button {
  border: 0;
  padding: 0;
  margin: 0;
  width: auto;
  max-width: 100%;
  cursor: zoom-in;
  background: transparent;
  display: inline-block;
}

.modal-close-wide {
  display: block;
  width: 100%;
  height: 32px;
  border-radius: 12px;
  margin: 0 0 10px 0;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0 12px;
  font-weight: 600;
}

.modal-retouch-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 10px 0;
}

.modal-retouch-block.is-hidden {
  display: none;
}

.modal-retouch-btn {
  display: block;
  width: 100%;
  height: 32px;
  border-radius: 12px;
  margin: 0;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0 12px;
  font-weight: 600;
}

.modal-retouch-btn.active {
  border-color: var(--accent);
}

.modal-retouch-btn.is-requested {
  border-color: #2fbb69;
  background: linear-gradient(135deg, #2fbf6b 0%, #229a57 100%);
  color: #f4fff7;
}

.modal-retouch-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-retouch-info {
  margin: 0;
  padding: 0 2px;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.86;
}

.product-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-product-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-product-toolbar input {
  flex: 1;
}

.modal-category-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.modal-category-filters button {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.modal-category-filters button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.modal-product-hint {
  margin-bottom: 8px;
  font-size: 11px;
}

.product-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.product-section summary {
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.product-section summary::-webkit-details-marker {
  display: none;
}

.product-section-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px 10px;
}

.product-option-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 8px;
}

.product-thumb-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  align-self: start;
  width: 58px;
  height: 58px;
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.product-option-name {
  font-weight: 600;
  margin-bottom: 2px;
  overflow-wrap: break-word;
  word-break: normal;
}

.product-option-code {
  font-size: 11px;
  opacity: 0.85;
  overflow-wrap: anywhere;
}

.product-option-price {
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.product-option-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.product-option-short-info {
  width: auto;
  font-size: 10px;
  line-height: 1.2;
  margin: 2px 0;
  text-align: left;
  opacity: 0.85;
}

.product-option-actions input {
  width: 68px;
}

.digital-package-panel {
  gap: 6px;
  padding: 0;
}

.digital-package-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 6px 8px;
  gap: 10px;
}

.digital-package-row .product-option-name {
  font-size: 13px;
  margin-bottom: 1px;
}

.digital-package-row .product-option-code {
  font-size: 10px;
}

.digital-package-row .product-option-price {
  font-size: 12px;
  margin-top: 1px;
}

.digital-package-row .muted {
  font-size: 9.5px;
  line-height: 1.2;
}

button.digital-package-row-btn {
  width: 100%;
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(255, 154, 85, 0.72);
  background: linear-gradient(140deg, rgba(255, 130, 35, 0.22), rgba(255, 154, 84, 0.16));
  padding: 5px 7px;
  gap: 4px;
}

button.digital-package-row-btn:hover {
  border-color: rgba(255, 138, 51, 0.95);
  background: linear-gradient(140deg, rgba(255, 138, 51, 0.3), rgba(255, 166, 98, 0.24));
}

.digital-package-main {
  min-width: 0;
}

.digital-package-note {
  margin-top: 1px;
  font-size: 10px;
  font-weight: 700;
  color: #ffb775;
}

.qty-presets {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
}

.qty-presets button {
  min-width: 28px;
  padding: 4px 7px;
  font-size: 12px;
}

.modal-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
}

.media-lightbox-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 14px;
}

.media-lightbox-content.gallery-watermark-surface.has-watermark-text::after {
  font-size: 34px;
  width: min(95%, 820px);
}

.media-lightbox-content.gallery-watermark-surface.has-watermark-image::before {
  width: min(95%, 820px);
  height: min(95%, 620px);
}

.media-lightbox-content .modal-close-btn {
  z-index: 5;
}

.media-lightbox-content img {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.gallery-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d9e2ec;
}

.gallery-card .info {
  padding: 8px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.product-code {
  font-size: 12px;
  color: var(--muted);
}

.product-name {
  font-weight: 600;
  margin: 4px 0;
}

.product-price {
  font-weight: 700;
  margin-bottom: 8px;
}

label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c7d2df;
  border-radius: 8px;
  padding: 8px 9px;
}

textarea {
  resize: vertical;
  min-height: 64px;
}

input[type="file"] {
  padding: 6px;
}

input[type="file"]::file-selector-button {
  border: 1px solid #c7d2df;
  background: #f3f7fb;
  color: #22384e;
  border-radius: 8px;
  padding: 7px 11px;
  margin-right: 8px;
  font-weight: 600;
  cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
  border: 1px solid #c7d2df;
  background: #f3f7fb;
  color: #22384e;
  border-radius: 8px;
  padding: 7px 11px;
  margin-right: 8px;
  font-weight: 600;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
  background: #e8f1f9;
  border-color: #a8bccf;
}

#customerUploadFilesInfo {
  margin-top: 4px;
  font-size: 12px;
}

input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: 0;
}

button {
  border: 1px solid #c7d2df;
  background: #f7f9fc;
  border-radius: 8px;
  padding: 8px 11px;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

button.success {
  background: linear-gradient(135deg, #1ea86a 0%, #168b58 55%, #0f6d46 100%);
  color: #fff;
  border-color: #168b58;
}

button.success:hover {
  background: linear-gradient(135deg, #24b474 0%, #1c9e65 55%, #137f52 100%);
}

button.primary:hover {
  filter: brightness(1.06);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc((5 * 112px) + (4 * 8px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.cart-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}

.cart-item-main {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.cart-item-thumb {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--border);
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-body {
  min-width: 0;
  flex: 1;
}

.cart-item-controls {
  margin-top: 8px;
}

.cart-item h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.cart-item .meta {
  color: var(--muted);
  font-size: 12px;
}

.customer-upload-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.customer-upload-queue {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 240px;
  overflow: auto;
  padding-right: 2px;
}

.customer-upload-queue:empty {
  display: none;
}

.customer-upload-queue-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 8px;
  background: #fff;
}

.customer-upload-queue-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.customer-upload-queue-name {
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-upload-queue-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.customer-upload-queue-status {
  font-size: 11px;
  color: var(--muted);
}

.customer-upload-queue-percent {
  font-size: 11px;
  font-weight: 700;
  color: #9a5a1f;
  min-width: 36px;
  text-align: right;
}

.customer-upload-queue-bar {
  margin-top: 6px;
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
  background: #ebeff5;
}

.customer-upload-queue-bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a00 0%, #ff9d3d 48%, #ffb058 100%);
  transition: width 0.15s ease;
}

.customer-upload-queue-item.is-active .customer-upload-queue-status {
  color: #9a5a1f;
}

.customer-upload-queue-item.is-ok .customer-upload-queue-status {
  color: #1f8f5d;
}

.customer-upload-queue-item.is-ok .customer-upload-queue-percent {
  color: #1f8f5d;
}

.customer-upload-queue-item.is-error .customer-upload-queue-status {
  color: #c84e4e;
}

.customer-upload-queue-item.is-error .customer-upload-queue-percent {
  color: #c84e4e;
}

.customer-upload-queue-item.is-error .customer-upload-queue-bar > span {
  background: linear-gradient(90deg, #d34545 0%, #f37777 100%);
}

.customer-upload-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}

.customer-upload-thumb {
  position: relative;
  cursor: pointer;
}

.customer-upload-thumb img {
  width: 100%;
  max-height: 130px;
  object-fit: cover;
  border-radius: 8px;
}

.customer-upload-thumb-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 212, 0.55);
  background: rgba(122, 20, 20, 0.72);
  color: #fff3f3;
  font-size: 21px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.customer-upload-meta {
  margin-top: 6px;
  font-size: 12px;
}

.customer-upload-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 68px auto;
  gap: 6px;
  align-items: center;
}

.customer-upload-actions-delete {
  grid-template-columns: 1fr;
}

.customer-upload-delete-btn {
  border: 1px solid #d85f5f;
  background: rgba(216, 95, 95, 0.12);
  color: #c84e4e;
}

.customer-upload-delete-btn:hover {
  background: rgba(216, 95, 95, 0.18);
}

.total-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.total-box .sum {
  font-size: 24px;
  font-weight: 800;
}

.gallery-cart-panel .total-box {
  display: grid;
  gap: 6px;
  align-items: stretch;
}

.gallery-cart-panel .total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.gallery-cart-panel .total-line.is-hidden {
  display: none;
}

.gallery-cart-panel .total-line-final {
  border-top: 1px dashed var(--border);
  margin-top: 2px;
  padding-top: 6px;
}

.gallery-cart-panel .sum-sm {
  font-size: 16px;
  font-weight: 700;
}

.gallery-cart-panel .total-hint {
  font-size: 11px;
  line-height: 1.35;
}

.panel-subsection {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.consent-box {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  gap: 8px;
}

.consent-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.consent-row input {
  margin-top: 2px;
}

.consent-row span {
  flex: 1;
}

.status-msg {
  margin-top: 8px;
  font-size: 13px;
}

.order-prefix-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--prefix-color, #8796a5);
  background: #ffffff;
  color: #23384d;
}

.order-prefix-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  margin-bottom: 6px;
  padding: 4px 8px;
  border: 1px solid #d9e0e8;
  border-radius: 999px;
  background: #f7fafc;
  font-size: 12px;
}

tr.prefix-row td:first-child {
  box-shadow: inset 4px 0 0 var(--prefix-color, transparent);
}

.gallery-toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1100;
  max-width: min(420px, calc(100vw - 28px));
  border-radius: 10px;
  border: 1px solid #bfd7ee;
  background: #eaf4ff;
  color: #11416a;
  padding: 9px 12px;
  font-size: 13px;
  box-shadow: 0 10px 26px rgba(5, 24, 40, 0.16);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.gallery-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.gallery-toast.danger {
  border-color: #f1b9b9;
  background: #fff1f1;
  color: #8f1d1d;
}

.mobile-cart-fab,
.mobile-cart-backdrop,
.mobile-cart-close {
  display: none;
}

.mobile-cart-fab {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1250;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid #d86b0b;
  background: linear-gradient(140deg, #ff7a00 0%, #ff9c31 100%);
  box-shadow: 0 10px 26px rgba(6, 24, 40, 0.24);
  padding: 8px 12px;
  color: #261304;
}

.mobile-cart-fab-label {
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.mobile-cart-fab-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(0, 0, 0, 0.2);
  font-size: 12px;
  font-weight: 700;
  color: #fff9f3;
}

.mobile-cart-fab.flash {
  animation: mobile-cart-fab-flash 0.3s ease;
}

@keyframes mobile-cart-fab-flash {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.mobile-cart-close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  line-height: 1;
  font-size: 20px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

body.admin-page {
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #e4e9ef;
  padding: 8px;
  white-space: nowrap;
}

tr:hover td {
  background: #f7fbff;
}

tr.selected td {
  background: #eaf4ff;
}

.qr-links-table-wrap {
  overflow-x: auto;
}

.qr-links-table {
  width: 100%;
  table-layout: fixed;
  font-size: 12px;
}

.qr-links-table th,
.qr-links-table td {
  white-space: normal;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.qr-links-table th:nth-child(1),
.qr-links-table td:nth-child(1) {
  width: 12%;
}

.qr-links-table th:nth-child(2),
.qr-links-table td:nth-child(2) {
  width: 14%;
}

.qr-links-table th:nth-child(3),
.qr-links-table td:nth-child(3) {
  width: 22%;
}

.qr-links-table th:nth-child(4),
.qr-links-table td:nth-child(4) {
  width: 11%;
  text-align: center;
}

.qr-links-table th:nth-child(5),
.qr-links-table td:nth-child(5) {
  width: 11%;
  text-align: center;
}

.qr-links-table th:nth-child(6),
.qr-links-table td:nth-child(6) {
  width: 12%;
}

.qr-links-table th:nth-child(7),
.qr-links-table td:nth-child(7) {
  width: 18%;
}

.qr-links-table code,
.qr-links-table a {
  word-break: break-all;
}

.qr-links-table td:nth-child(7) button {
  margin: 2px 4px 2px 0;
  padding: 5px 8px;
  font-size: 11px;
}

.admin-product-image-col {
  white-space: normal;
  min-width: 68px;
  width: 68px;
  text-align: center;
}

.admin-product-drag-cell {
  width: 46px;
  text-align: center;
  vertical-align: middle;
}

.admin-product-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: grab;
  user-select: none;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 1px;
  color: #5e6778;
  background: #f3f6fb;
  border: 1px solid #d8e0eb;
}

.admin-product-drag-handle:active {
  cursor: grabbing;
}

#productsBody tr.is-dragging {
  opacity: 0.58;
}

#productsBody tr.drag-over-before {
  box-shadow: inset 0 2px 0 #3e8ef7;
}

#productsBody tr.drag-over-after {
  box-shadow: inset 0 -2px 0 #3e8ef7;
}

.admin-product-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d2dbe5;
  background: #f4f7fb;
  display: block;
}

.admin-product-thumb-btn {
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}

.admin-product-thumb-btn:hover .admin-product-thumb {
  border-color: #3e8ef7;
  box-shadow: 0 0 0 3px rgba(62, 142, 247, 0.2);
}

.admin-product-file-hidden {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.admin-collapsible {
  border: 1px solid #e4e9ef;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.admin-collapsible-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.admin-collapsible-summary::-webkit-details-marker {
  display: none;
}

.admin-collapsible-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e1eb;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #4a5968;
  background: #f5f8fc;
  white-space: nowrap;
}

.admin-collapsible-state::before {
  content: "+ Nyitás";
}

.admin-collapsible[open] .admin-collapsible-state::before {
  content: "- Csukás";
}

.admin-collapsible-body {
  border-top: 1px solid #e4e9ef;
  padding: 0 12px 12px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 12px;
}

@media (min-width: 981px) {
  .photo-modal-dialog {
    width: min(1320px, calc(100vw - 36px));
  }

  .photo-modal-content {
    grid-template-columns: minmax(560px, 1.55fr) minmax(300px, 0.8fr);
    gap: 12px;
    padding: 14px 14px 12px;
  }

  .photo-modal-preview img {
    max-height: calc(100vh - 170px);
  }

  .photo-modal-products {
    max-height: calc(100vh - 160px);
    overflow: auto;
    padding-right: 2px;
    font-size: 13px;
  }

  .photo-modal-products h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
  }

  .photo-modal-products .modal-product-toolbar {
    gap: 6px;
    margin-bottom: 6px;
  }

  .photo-modal-products .modal-product-hint {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .photo-modal-products .product-sections {
    gap: 8px;
  }

  .photo-modal-products .product-section summary {
    padding: 8px 10px;
    font-size: 13px;
  }

  .photo-modal-products .product-section-list {
    gap: 6px;
    padding: 0 8px 8px;
  }

  .photo-modal-products .product-option-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 6px;
  }

  .photo-modal-products .product-thumb-btn {
    width: 48px;
    height: 48px;
  }

  .photo-modal-products .product-option-name {
    font-size: 12px;
    margin-bottom: 1px;
  }

  .photo-modal-products .product-option-code {
    font-size: 10px;
  }

  .photo-modal-products .product-option-price {
    font-size: 11px;
    margin-top: 2px;
  }

  .photo-modal-products .product-option-actions {
    gap: 4px;
  }

  .photo-modal-products .product-option-actions input {
    width: 54px;
    height: 30px;
    padding: 4px 6px;
    font-size: 12px;
  }

  .photo-modal-products .product-option-actions button {
    padding: 5px 8px;
    font-size: 11px;
  }

  .photo-modal-products .qty-presets {
    gap: 3px;
  }

  .photo-modal-products .qty-presets button {
    min-width: 24px;
    padding: 3px 6px;
    font-size: 11px;
  }

  .photo-modal-products .digital-package-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 4px 6px;
    gap: 6px;
  }

  .photo-modal-products button.digital-package-row-btn {
    grid-template-columns: minmax(0, 1fr);
    padding: 5px 7px;
    gap: 5px;
  }

  .photo-modal-products .digital-package-note {
    font-size: 10.5px;
    line-height: 1.2;
  }
}

@media (max-width: 980px) {
  .layout,
  .admin-layout,
  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .gallery-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(460px, 100vw);
    height: 100dvh;
    max-height: 100dvh;
    overflow: auto;
    transform: translateX(108%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 4200;
    border-radius: 14px 0 0 14px;
  }

  .cart-list {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    padding-right: 0;
  }

  .gallery-photo-panel {
    max-height: none;
    overflow: visible;
  }

  .photo-modal-content {
    grid-template-columns: 1fr;
  }

  .gallery-head-actions {
    justify-content: flex-start;
  }

  .album-entry-row {
    align-items: flex-start;
  }

  .album-entry-row .primary {
    min-width: 160px;
  }

  .modal-photo-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-option-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .product-thumb-btn {
    width: 48px;
    height: 48px;
  }

  .product-option-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 2px;
  }

  .digital-package-row.product-option-row {
    grid-template-columns: 1fr;
  }

  .digital-package-row .product-option-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .mobile-cart-fab {
    display: inline-flex;
    z-index: 4300;
  }

  .mobile-cart-close {
    display: inline-flex;
  }

  .mobile-cart-backdrop {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 4190;
    border: 0;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    opacity: 0;
    pointer-events: none;
    background: transparent;
    transition: opacity 0.2s ease;
  }

  body.mobile-cart-open {
    overflow: hidden;
  }

  body.mobile-cart-open .gallery-cart-panel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .gallery-cart-panel.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.mobile-cart-open .mobile-cart-backdrop {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .mobile-cart-backdrop.is-open {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.mobile-cart-open .mobile-cart-fab {
    opacity: 0;
    pointer-events: none;
  }

  .media-lightbox-content .modal-close-btn {
    width: 44px;
    height: 44px;
    top: 8px;
    right: 8px;
    bottom: auto;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
    padding: 0;
  }

  .modal-image-nav {
    left: 3px;
    right: 3px;
  }

  .modal-nav-btn {
    width: 36px;
    height: 76px;
    font-size: 28px;
  }

  .modal-close-wide {
    height: 34px;
    font-size: 12px;
    margin: 0 0 12px 0;
  }

  .upload-dock {
    padding: 12px;
  }

  .upload-dock-toggle {
    display: none;
  }

  .upload-dock-panel {
    display: block;
    margin-top: 0;
  }

  .upload-dock-panel.open {
    display: block;
  }

  .upload-dock-row {
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .upload-dock-file {
    min-width: 0;
  }

  .upload-dock-action .primary {
    width: 100%;
  }

  .upload-dock-order {
    min-width: 0;
    width: 100%;
  }

  .upload-dock-order select,
  .upload-dock-order-hint {
    width: 100%;
    max-width: none;
  }

  .upload-dock-buttons {
    width: 100%;
  }

  .upload-dock-buttons button {
    width: 100%;
  }

  #openCartFromUploadBtn {
    display: inline-flex;
  }

  body.gallery-page .upload-dock-toggle {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  body.gallery-page .upload-dock-panel {
    display: none;
    max-height: none;
    opacity: 1;
    margin-top: 8px;
    transform: none;
    pointer-events: auto;
  }

  body.gallery-page .upload-dock-panel.open {
    display: block;
  }

  body.gallery-page.uploader-flow .upload-dock-toggle {
    display: none;
  }

  body.gallery-page.uploader-flow .upload-dock-panel {
    display: block;
  }
}

/* =========================
   Shop Theme (orange/black)
========================= */
body.shop-theme {
  --shop-bg-0: #0d0d0e;
  --shop-bg-1: #171718;
  --shop-bg-2: #22160f;
  --shop-panel-0: #111112;
  --shop-panel-1: #19191b;
  --shop-border: #2d2d31;
  --shop-border-accent: #5b3518;
  --shop-text: #f9f2e9;
  --shop-muted: #d0b79f;
  --shop-accent: #ff7a00;
  --shop-accent-2: #ffab53;
  --shop-ok: #67dea8;
  --shop-danger: #ff8d8d;
  --shop-logo-url: url("/web/assets/logo.png?v=20260220n");
  margin: 0;
  min-height: 100vh;
  position: relative;
  background-color: #0d0d0e;
  font-family: "Trebuchet MS", "Avenir Next", "Gill Sans", "Segoe UI", sans-serif;
  color: var(--shop-text);
  background:
    radial-gradient(1100px 700px at 100% -10%, rgba(255, 122, 0, 0.22), transparent 58%),
    radial-gradient(900px 620px at -8% 118%, rgba(255, 122, 0, 0.17), transparent 62%),
    linear-gradient(165deg, var(--shop-bg-0) 0%, var(--shop-bg-1) 58%, var(--shop-bg-2) 100%);
}

body.shop-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.28;
}

body.shop-theme .upload-dock,
body.shop-theme .topbar,
body.shop-theme .wrap {
  position: relative;
  z-index: 1;
}

body.shop-theme .upload-dock {
  border-color: rgba(255, 122, 0, 0.28);
  background: linear-gradient(150deg, #121214 0%, #19191b 62%, #22150f 100%);
}

body.shop-theme .upload-dock::before {
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.54), rgba(255, 122, 0, 0));
}

body.shop-theme .upload-dock-head {
  margin-bottom: 8px;
  border-color: rgba(222, 159, 96, 0.72);
  background: linear-gradient(165deg, #ffd9b3 0%, #ffcca0 52%, #ffbc88 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 16px rgba(0, 0, 0, 0.16);
}

body.shop-theme .upload-dock-head::before {
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.52) 44%,
    rgba(255, 255, 255, 0) 78%
  );
}

body.shop-theme .upload-dock-title {
  color: #161616;
  text-shadow: none;
}

body.shop-theme .upload-dock-lead {
  color: #2a2a2a;
  text-shadow: none;
}

body.shop-theme .upload-dock-highlight {
  color: #1f1f1f;
  text-shadow: none;
}

body.shop-theme .album-entry-panel {
  border-color: rgba(255, 149, 64, 0.35);
  background: linear-gradient(148deg, rgba(25, 20, 17, 0.95) 0%, rgba(18, 15, 12, 0.93) 100%);
}

body.shop-theme .album-entry-copy strong {
  color: #ffe2c1;
}

body.shop-theme .upload-dock-row {
  border-top-color: #473426;
}

body.shop-theme .upload-dock-hint {
  color: #c7a381;
}

body.shop-theme #customerUploadFilesInfo {
  color: #d3b18f;
}

body.shop-theme .upload-dock-toggle {
  width: 100%;
  border-color: #ce9a68;
  background: linear-gradient(180deg, #ffd8b2 0%, #ffc896 100%);
  color: #111111;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14);
}

body.shop-theme .upload-dock-toggle:hover {
  border-color: #b57738;
  background: linear-gradient(180deg, #ffe2c2 0%, #ffd0a7 100%);
}

body.shop-theme .mobile-cart-fab {
  border-color: transparent;
  background: linear-gradient(140deg, #ff6f00 0%, #ff8f1f 56%, #ffab53 100%);
  color: #1a0f04;
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.28);
}

body.shop-theme .mobile-cart-fab-count {
  border-color: rgba(255, 243, 229, 0.38);
  background: rgba(0, 0, 0, 0.24);
  color: #fff5e7;
}

body.shop-theme a {
  color: #ffbe81;
}

body.shop-theme .topbar {
  background: linear-gradient(96deg, #0b0b0c 0%, #151516 52%, #281707 100%);
  border-bottom: 1px solid rgba(255, 122, 0, 0.34);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
}

body.shop-theme .topbar .title {
  color: #ffe2c2;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 12px;
}

body.shop-theme .brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.shop-theme .brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 0, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  background:
    var(--shop-logo-url) center / cover no-repeat,
    radial-gradient(circle at 38% 34%, #ffab53 0%, #ff7a00 62%, #cb5800 100%);
  flex: 0 0 auto;
}

body.shop-theme .brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

body.shop-theme .brand-name {
  color: #ffe2c2;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 12px;
}

body.shop-theme .brand-sub {
  color: #d2ae87;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.shop-theme .topbar nav a {
  color: #f2cda8;
  border-color: #533217;
  background: rgba(0, 0, 0, 0.32);
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

body.shop-theme .topbar nav a:hover {
  color: #fff2e4;
  border-color: var(--shop-accent);
  transform: translateY(-1px);
}

body.shop-theme .topbar nav a.active {
  color: #1c1006;
  border-color: transparent;
  background: linear-gradient(135deg, var(--shop-accent), var(--shop-accent-2));
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
}

body.shop-theme .topbar nav a.nav-register-cta,
body.shop-theme .topbar nav a.nav-register-cta.active {
  color: #fff6f6;
  border-color: rgba(127, 29, 29, 0.95);
  background: linear-gradient(135deg, #d7263d, #991b1b);
  box-shadow: 0 10px 24px rgba(153, 27, 27, 0.32);
}

body.shop-theme .topbar nav a.nav-register-cta:hover {
  color: #ffffff;
  border-color: rgba(127, 29, 29, 1);
  background: linear-gradient(135deg, #ea4358, #b91c1c);
}

body.shop-theme .theme-switch-inline {
  padding: 2px;
  border-radius: 10px;
  border: 1px solid rgba(255, 171, 106, 0.3);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.shop-theme .theme-switch-btn {
  color: #f2cda8;
  border-color: #533217;
  background: rgba(0, 0, 0, 0.32);
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

body.shop-theme .theme-switch-btn:hover {
  color: #fff2e4;
  border-color: var(--shop-accent);
  transform: translateY(-1px);
}

body.shop-theme .theme-switch-btn.is-active {
  color: #1c1006;
  border-color: transparent;
  background: linear-gradient(135deg, var(--shop-accent), var(--shop-accent-2));
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
}

body.shop-theme .wrap {
  max-width: 1240px;
  padding-top: 18px;
}

body.shop-theme .gallery-login-wrap {
  max-width: none;
  padding-top: 24px;
}

body.shop-theme .panel {
  border: 1px solid var(--shop-border);
  border-radius: 16px;
  background: linear-gradient(155deg, var(--shop-panel-0) 0%, var(--shop-panel-1) 100%);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.shop-theme .panel h2,
body.shop-theme .panel h3 {
  color: #fff4e8;
  letter-spacing: 0.01em;
}

body.shop-theme .uploader-register-details {
  border-color: rgba(255, 148, 74, 0.42);
  background: rgba(255, 122, 0, 0.06);
}

body.shop-theme .forgot-pass-link {
  color: #ffbf86;
}

body.shop-theme label {
  color: #e4c6a6;
}

body.shop-theme .muted {
  color: var(--shop-muted);
}

body.shop-theme .consent-box {
  border-color: #4a3f34;
  background: rgba(255, 255, 255, 0.03);
}

body.shop-theme .danger {
  color: var(--shop-danger);
}

body.shop-theme .ok {
  color: var(--shop-ok);
}

body.shop-theme .shop-hero {
  margin-bottom: 14px;
}

body.shop-theme .shop-hero h1 {
  margin: 0;
  font-size: clamp(24px, 3.1vw, 34px);
  letter-spacing: 0.01em;
}

body.shop-theme .shop-hero .lead {
  margin: 10px 0 0 0;
  max-width: 760px;
  color: var(--shop-muted);
  line-height: 1.5;
}

body.shop-theme .chip-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.shop-theme .shop-chip {
  font-size: 12px;
  border-radius: 999px;
  padding: 5px 11px;
  border: 1px solid var(--shop-border-accent);
  color: #ffce9b;
  background: rgba(255, 122, 0, 0.12);
}

body.shop-theme .hero-side {
  margin-top: 12px;
  font-size: 12px;
  color: #ffd7b1;
  border-left: 3px solid rgba(255, 122, 0, 0.56);
  padding-left: 12px;
}

body.shop-theme input,
body.shop-theme textarea,
body.shop-theme select {
  color: #fff4e6;
  border: 1px solid #4c2f17;
  border-radius: 10px;
  background: #101011;
}

body.shop-theme input::placeholder,
body.shop-theme textarea::placeholder {
  color: #9f8d7a;
}

body.shop-theme input:focus,
body.shop-theme textarea:focus,
body.shop-theme select:focus {
  outline: none;
  border-color: var(--shop-accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.21);
}

body.shop-theme input[type="file"]::file-selector-button,
body.shop-theme input[type="file"]::-webkit-file-upload-button {
  border-color: #6a3f1d;
  background: linear-gradient(180deg, #23160f 0%, #1a120d 100%);
  color: #ffd9b3;
}

body.shop-theme input[type="file"]::file-selector-button:hover,
body.shop-theme input[type="file"]::-webkit-file-upload-button:hover {
  border-color: var(--shop-accent);
  background: linear-gradient(180deg, #2d1b11 0%, #21140d 100%);
}

body.shop-theme button {
  color: #ffe8d2;
  border: 1px solid #3a3a3e;
  border-radius: 10px;
  background: linear-gradient(180deg, #1c1c1e 0%, #151517 100%);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

body.shop-theme button:hover {
  transform: translateY(-1px);
  border-color: #606066;
  background: linear-gradient(180deg, #252528 0%, #18181a 100%);
}

body.shop-theme button.digital-package-row-btn {
  transform: none;
  border-color: rgba(255, 171, 112, 0.9);
  background: linear-gradient(145deg, rgba(255, 124, 30, 0.36), rgba(255, 152, 74, 0.26));
  color: #ffe8d2;
}

body.shop-theme button.digital-package-row-btn:hover {
  transform: none;
  border-color: #ffb06c;
  background: linear-gradient(145deg, rgba(255, 134, 40, 0.48), rgba(255, 168, 90, 0.34));
}

body.shop-theme .digital-package-note {
  color: #ffe3bf;
}

body.shop-theme button.primary {
  color: #1a0f04;
  border-color: transparent;
  background: linear-gradient(140deg, #ff6f00 0%, #ff8f1f 56%, #ffab53 100%);
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.28);
  font-weight: 700;
}

body.shop-theme button.success {
  color: #eefcf3;
  border-color: #1f8f5d;
  background: linear-gradient(140deg, #209863 0%, #35b475 100%);
  box-shadow: 0 10px 22px rgba(24, 120, 74, 0.26);
  font-weight: 700;
}

body.shop-theme button.success:hover {
  border-color: #39be7d;
  background: linear-gradient(140deg, #24a66b 0%, #3dc380 100%);
}

body.shop-theme button.primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

body.shop-theme .modal-category-filters button {
  border-color: #5a3418;
  background: rgba(0, 0, 0, 0.28);
  color: #ffd4ad;
}

body.shop-theme .modal-category-filters button.active {
  border-color: transparent;
  background: linear-gradient(140deg, #ff6f00 0%, #ff8f1f 56%, #ffab53 100%);
  color: #1a0f04;
}

body.shop-theme .qty-presets button {
  border-color: #5a3418;
  background: #21140d;
  color: #ffd5b3;
}

body.shop-theme .qty-presets button:hover {
  border-color: var(--shop-accent);
  background: #2d1a11;
}

body.shop-theme .product-card,
body.shop-theme .gallery-card,
body.shop-theme .cart-item,
body.shop-theme .gallery-thumb-card,
body.shop-theme .customer-upload-card,
body.shop-theme .customer-upload-queue-item {
  border-color: #323236;
  border-radius: 12px;
  background: linear-gradient(150deg, #131315 0%, #1a1a1d 100%);
}

body.shop-theme .customer-upload-queue-bar {
  background: #2a2a2e;
}

body.shop-theme .customer-upload-queue-status {
  color: #d2b293;
}

body.shop-theme .customer-upload-queue-percent {
  color: #ffb46f;
}

body.shop-theme .customer-upload-queue-item.is-ok .customer-upload-queue-status,
body.shop-theme .customer-upload-queue-item.is-ok .customer-upload-queue-percent {
  color: #88e4b6;
}

body.shop-theme .customer-upload-queue-item.is-error .customer-upload-queue-status,
body.shop-theme .customer-upload-queue-item.is-error .customer-upload-queue-percent {
  color: #ff9f9f;
}

body.shop-theme .gallery-thumb-upload {
  border-color: #7a4619;
}

body.shop-theme .product-code {
  color: #ffbf87;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.shop-theme .product-name {
  color: #fff1e3;
}

body.shop-theme .product-price {
  color: #ffb069;
}

body.shop-theme .cart-item .meta {
  color: #caa889;
}

body.shop-theme .gallery-card img {
  background: #1a1a1c;
}

body.shop-theme .gallery-thumb-meta {
  color: #d7b495;
}

body.shop-theme .gallery-favorite-btn {
  border-color: rgba(255, 193, 139, 0.56);
  background: rgba(10, 8, 7, 0.7);
}

body.shop-theme .gallery-favorite-btn.active {
  color: #ff9b54;
  border-color: rgba(255, 173, 110, 0.95);
  background: rgba(34, 17, 8, 0.86);
}

body.shop-theme .photo-modal-dialog,
body.shop-theme .media-lightbox-content {
  border-color: #3a3a40;
  background: linear-gradient(150deg, #111214 0%, #1a1a1e 100%);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.46);
}

body.shop-theme .product-section,
body.shop-theme .product-option-row {
  border-color: #36363b;
  background: #161619;
}

body.shop-theme .product-section summary:hover {
  background: rgba(255, 122, 0, 0.11);
}

body.shop-theme .product-option-code {
  color: #c69f7d;
}

body.shop-theme .product-option-price {
  color: #ffb069;
}

body.shop-theme .modal-close-btn {
  border-color: #5e381b;
  background: #1a120d;
  color: #ffd5ad;
}

body.shop-theme .modal-nav-btn {
  border-color: rgba(255, 176, 105, 0.62);
  background: rgba(21, 14, 10, 0.74);
  color: #ffd9b5;
}

body.shop-theme .modal-close-wide {
  border-color: rgba(255, 150, 70, 0.7);
  background: linear-gradient(135deg, #2b1a10 0%, #21140d 100%);
  color: #ffd8b3;
}

body.shop-theme .modal-retouch-btn {
  border-color: rgba(255, 150, 70, 0.7);
  background: linear-gradient(135deg, #2b1a10 0%, #21140d 100%);
  color: #ffd8b3;
}

body.shop-theme .modal-retouch-btn.active {
  border-color: #ff9d57;
  background: linear-gradient(135deg, #3d2313 0%, #2e190e 100%);
  color: #ffe2c6;
}

body.shop-theme .modal-retouch-btn.is-requested {
  border-color: #3bc878;
  background: linear-gradient(135deg, #2eab65 0%, #248652 100%);
  color: #f3fff8;
}

body.shop-theme .modal-retouch-info {
  color: #d8b18b;
}

body.shop-theme .modal-close-btn:hover {
  border-color: var(--shop-accent);
  background: #2a1a10;
}

body.shop-theme .modal-favorite-btn.active {
  color: #1a0f04;
}

body.shop-theme .total-box {
  border-top-color: #38383d;
}

body.shop-theme .total-box .sum {
  color: #ff9c41;
}

body.shop-theme .gallery-cart-panel .sum-sm {
  color: #ffd2a9;
}

body.shop-theme .gallery-cart-panel .total-line-final {
  border-top-color: #3d3d42;
}

body.shop-theme .status-msg {
  color: #ffcf9f;
}

body.shop-theme .status-msg.ok {
  color: var(--shop-ok);
}

body.shop-theme .status-msg.danger {
  color: var(--shop-danger);
}

body.shop-theme .cart-count-pill {
  border-color: #5e381b;
  background: rgba(255, 122, 0, 0.2);
  color: #ffd6ad;
}

body.shop-theme .gallery-toast {
  border-color: #5f391c;
  background: #21140d;
  color: #ffd3ab;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

body.shop-theme .gallery-toast.danger {
  border-color: #783333;
  background: #251112;
  color: #ffbdbd;
}

body.shop-theme table {
  color: #f8ecde;
}

body.shop-theme th,
body.shop-theme td {
  border-bottom-color: #35353a;
}

body.shop-theme tr:hover td {
  background: rgba(255, 122, 0, 0.09);
}

body.shop-theme tr.selected td {
  background: rgba(255, 122, 0, 0.18);
}

body.shop-theme .gallery-photo-panel {
  border-color: #2d2d31;
}

body.shop-theme .panel,
body.shop-theme .product-card,
body.shop-theme .gallery-card {
  animation: shop-fade-up 0.42s ease both;
}

/* =========================
   Shop Theme Light Mode
========================= */
body.shop-theme[data-ui-mode="light"] {
  --shop-bg-0: #f7f9fc;
  --shop-bg-1: #eef3f8;
  --shop-bg-2: #e7edf5;
  --shop-panel-0: #ffffff;
  --shop-panel-1: #f8fbff;
  --shop-border: #d1dae5;
  --shop-border-accent: #d8be9f;
  --shop-text: #203043;
  --shop-muted: #5f7186;
  --shop-accent: #ff7a00;
  --shop-accent-2: #ffab53;
  --shop-ok: #067647;
  --shop-danger: #b42318;
  background-color: #f2f6fb;
  background:
    radial-gradient(1100px 700px at 100% -10%, rgba(255, 122, 0, 0.16), transparent 58%),
    radial-gradient(900px 620px at -8% 118%, rgba(255, 122, 0, 0.12), transparent 62%),
    linear-gradient(165deg, var(--shop-bg-0) 0%, var(--shop-bg-1) 58%, var(--shop-bg-2) 100%);
}

body.shop-theme[data-ui-mode="light"]::before {
  background:
    linear-gradient(rgba(16, 24, 40, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.08) 1px, transparent 1px);
  opacity: 0.14;
}

body.shop-theme[data-ui-mode="light"] a {
  color: #1f4f82;
}

body.shop-theme[data-ui-mode="light"] .topbar {
  background: linear-gradient(96deg, #ffffff 0%, #f4f8fd 52%, #fdf1e6 100%);
  border-bottom: 1px solid rgba(200, 210, 222, 0.9);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.12);
}

body.shop-theme[data-ui-mode="light"] .brand-logo {
  border-color: rgba(255, 122, 0, 0.38);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

body.shop-theme[data-ui-mode="light"] .brand-name {
  color: #1c2f44;
}

body.shop-theme[data-ui-mode="light"] .brand-sub {
  color: #5f7083;
}

body.shop-theme[data-ui-mode="light"] .theme-switch-inline {
  border-color: rgba(157, 169, 184, 0.72);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

body.shop-theme[data-ui-mode="light"] .theme-switch-btn {
  color: #22344a;
  border-color: #c8d3df;
  background: rgba(244, 247, 252, 0.95);
}

body.shop-theme[data-ui-mode="light"] .theme-switch-btn:hover {
  color: #111827;
  border-color: #9db2c8;
}

body.shop-theme[data-ui-mode="light"] .topbar nav a {
  color: #22344a;
  border-color: #c8d3df;
  background: rgba(248, 250, 253, 0.96);
}

body.shop-theme[data-ui-mode="light"] .topbar nav a:hover {
  color: #111827;
  border-color: #9db2c8;
}

body.shop-theme[data-ui-mode="light"] .topbar nav a.active,
body.shop-theme[data-ui-mode="light"] .theme-switch-btn.is-active {
  color: #1c1006;
  border-color: transparent;
  background: linear-gradient(135deg, var(--shop-accent), var(--shop-accent-2));
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.22);
}

body.shop-theme[data-ui-mode="light"] .topbar nav a.nav-register-cta,
body.shop-theme[data-ui-mode="light"] .topbar nav a.nav-register-cta.active {
  color: #fff8f8;
  border-color: #991b1b;
  background: linear-gradient(135deg, #d7263d, #b91c1c);
  box-shadow: 0 8px 20px rgba(185, 28, 28, 0.26);
}

body.shop-theme[data-ui-mode="light"] .topbar nav a.nav-register-cta:hover {
  color: #ffffff;
  border-color: #7f1d1d;
  background: linear-gradient(135deg, #e23a4f, #c81f1f);
}

body.shop-theme[data-ui-mode="light"] .panel,
body.shop-theme[data-ui-mode="light"] .product-card,
body.shop-theme[data-ui-mode="light"] .gallery-card,
body.shop-theme[data-ui-mode="light"] .cart-item,
body.shop-theme[data-ui-mode="light"] .gallery-thumb-card,
body.shop-theme[data-ui-mode="light"] .customer-upload-card,
body.shop-theme[data-ui-mode="light"] .customer-upload-queue-item,
body.shop-theme[data-ui-mode="light"] .photo-modal-dialog,
body.shop-theme[data-ui-mode="light"] .media-lightbox-content,
body.shop-theme[data-ui-mode="light"] .product-section,
body.shop-theme[data-ui-mode="light"] .product-option-row {
  border-color: #d1dae5;
  background: linear-gradient(155deg, #ffffff 0%, #f7fbff 100%);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.shop-theme[data-ui-mode="light"] .gallery-watermark-surface.has-watermark-text::after {
  color: rgba(21, 33, 48, 0.88);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.64);
}

body.shop-theme[data-ui-mode="light"] .panel h2,
body.shop-theme[data-ui-mode="light"] .panel h3,
body.shop-theme[data-ui-mode="light"] label {
  color: #203043;
}

body.shop-theme[data-ui-mode="light"] .uploader-register-details {
  border-color: #e2c09d;
  background: rgba(255, 144, 48, 0.09);
}

body.shop-theme[data-ui-mode="light"] .forgot-pass-link {
  color: #1f4f82;
}

body.shop-theme[data-ui-mode="light"] .muted {
  color: #5f7186;
}

body.shop-theme[data-ui-mode="light"] .consent-box {
  border-color: #d1dae5;
  background: rgba(15, 23, 42, 0.02);
}

body.shop-theme[data-ui-mode="light"] .upload-dock,
body.shop-theme[data-ui-mode="light"] .album-entry-panel {
  border-color: rgba(225, 196, 166, 0.86);
  background: linear-gradient(150deg, #fff8f1 0%, #fff1e3 62%, #ffe9d4 100%);
}

body.shop-theme[data-ui-mode="light"] .upload-dock-row {
  border-top-color: rgba(201, 176, 147, 0.66);
}

body.shop-theme[data-ui-mode="light"] .upload-dock-title,
body.shop-theme[data-ui-mode="light"] .album-entry-copy strong {
  color: #161616;
}

body.shop-theme[data-ui-mode="light"] .upload-dock-lead,
body.shop-theme[data-ui-mode="light"] .upload-dock-hint,
body.shop-theme[data-ui-mode="light"] #customerUploadFilesInfo {
  color: #2a2a2a;
}

body.shop-theme[data-ui-mode="light"] .upload-dock-highlight {
  color: #1f1f1f;
}

body.shop-theme[data-ui-mode="light"] .upload-dock-toggle {
  border-color: #ce9a68;
  background: linear-gradient(180deg, #ffd8b2 0%, #ffc896 100%);
  color: #111111;
}

body.shop-theme[data-ui-mode="light"] .upload-dock-toggle:hover {
  border-color: #b57738;
  background: linear-gradient(180deg, #ffe2c2 0%, #ffd0a7 100%);
}

body.shop-theme[data-ui-mode="light"] input,
body.shop-theme[data-ui-mode="light"] textarea,
body.shop-theme[data-ui-mode="light"] select {
  color: #1f2f42;
  border-color: #c5cfdb;
  background: #ffffff;
}

body.shop-theme[data-ui-mode="light"] input::placeholder,
body.shop-theme[data-ui-mode="light"] textarea::placeholder {
  color: #7b899b;
}

body.shop-theme[data-ui-mode="light"] input[type="file"]::file-selector-button,
body.shop-theme[data-ui-mode="light"] input[type="file"]::-webkit-file-upload-button {
  border-color: #c8d3df;
  background: linear-gradient(180deg, #fdfefe 0%, #edf3f9 100%);
  color: #26405d;
}

body.shop-theme[data-ui-mode="light"] input[type="file"]::file-selector-button:hover,
body.shop-theme[data-ui-mode="light"] input[type="file"]::-webkit-file-upload-button:hover {
  border-color: #a9bacd;
  background: linear-gradient(180deg, #ffffff 0%, #e4edf7 100%);
}

body.shop-theme[data-ui-mode="light"] button {
  color: #1f2f42;
  border-color: #bdc9d8;
  background: linear-gradient(180deg, #ffffff 0%, #eef3f9 100%);
}

body.shop-theme[data-ui-mode="light"] button:hover {
  border-color: #9db2c8;
  background: linear-gradient(180deg, #ffffff 0%, #e8f0f8 100%);
}

body.shop-theme[data-ui-mode="light"] button.digital-package-row-btn {
  border-color: rgba(255, 171, 112, 0.9);
  background: linear-gradient(145deg, rgba(255, 124, 30, 0.26), rgba(255, 152, 74, 0.18));
  color: #5a2f0f;
}

body.shop-theme[data-ui-mode="light"] .digital-package-note {
  color: #7b5b3c;
}

body.shop-theme[data-ui-mode="light"] .modal-category-filters button,
body.shop-theme[data-ui-mode="light"] .qty-presets button,
body.shop-theme[data-ui-mode="light"] .modal-close-btn,
body.shop-theme[data-ui-mode="light"] .modal-nav-btn,
body.shop-theme[data-ui-mode="light"] .modal-close-wide,
body.shop-theme[data-ui-mode="light"] .modal-retouch-btn {
  border-color: #c9d3de;
  background: #f5f9fd;
  color: #24405c;
}

body.shop-theme[data-ui-mode="light"] .modal-retouch-btn.active {
  border-color: #ff9d57;
  background: #fff3e6;
  color: #6a3b17;
}

body.shop-theme[data-ui-mode="light"] .modal-retouch-btn.is-requested {
  border-color: #2faa69;
  background: linear-gradient(135deg, #32b26d 0%, #2a975d 100%);
  color: #f4fff9;
}

body.shop-theme[data-ui-mode="light"] .kindergarten-info-top-btn {
  border-color: rgba(229, 157, 99, 0.7);
  background: linear-gradient(145deg, #fff8f1 0%, #ffe9d4 100%);
  color: #4a321f;
}

body.shop-theme[data-ui-mode="light"] .gallery-pre-registration-btn {
  border-color: rgba(229, 157, 99, 0.7);
  background: linear-gradient(145deg, #fff8f1 0%, #ffe9d4 100%);
  color: #4a321f;
}

body.shop-theme[data-ui-mode="light"] .gallery-pre-registration-step {
  color: #8e5426;
}

body.shop-theme[data-ui-mode="light"] .gallery-access-step {
  color: #8e5426;
}

body.shop-theme[data-ui-mode="light"] .gallery-access-help {
  color: #6f4729;
}

body.shop-theme[data-ui-mode="light"] .kindergarten-info-modal-dialog {
  border-color: #d6dce5;
  background: linear-gradient(155deg, #ffffff 0%, #f7fbff 100%);
  color: #233346;
}

body.shop-theme[data-ui-mode="light"] .kindergarten-info-modal-dialog h3 {
  color: #233346;
}

body.shop-theme[data-ui-mode="light"] .kindergarten-info-modal-text p {
  color: #30455c;
}

body.shop-theme[data-ui-mode="light"] .kindergarten-info-link-row a {
  color: #1c4d80;
}

body.shop-theme[data-ui-mode="light"] .kindergarten-info-price-toggle {
  border-color: #cfb08e;
  background: #fff4e8;
  color: #4b3421;
}

body.shop-theme[data-ui-mode="light"] .kindergarten-info-price-panel {
  border-color: #d6dce5;
  background: #f6f9fd;
}

body.shop-theme[data-ui-mode="light"] .product-code,
body.shop-theme[data-ui-mode="light"] .product-price {
  color: #9a5a28;
}

body.shop-theme[data-ui-mode="light"] .product-name,
body.shop-theme[data-ui-mode="light"] .cart-item .meta,
body.shop-theme[data-ui-mode="light"] .gallery-thumb-meta,
body.shop-theme[data-ui-mode="light"] .modal-retouch-info {
  color: #4f657d;
}

body.shop-theme[data-ui-mode="light"] .gallery-card img {
  background: #edf3fa;
}

body.shop-theme[data-ui-mode="light"] .gallery-favorite-btn {
  border-color: rgba(152, 164, 179, 0.78);
  background: rgba(255, 255, 255, 0.9);
}

body.shop-theme[data-ui-mode="light"] .gallery-favorite-btn.active {
  color: #d96d1c;
  border-color: rgba(255, 173, 110, 0.95);
  background: #fff1e4;
}

body.shop-theme[data-ui-mode="light"] .total-box {
  border-top-color: #d1dae5;
}

body.shop-theme[data-ui-mode="light"] .total-box .sum {
  color: #cb610e;
}

body.shop-theme[data-ui-mode="light"] .gallery-cart-panel .sum-sm {
  color: #2d4661;
}

body.shop-theme[data-ui-mode="light"] .gallery-cart-panel .total-line-final {
  border-top-color: #cbd5e1;
}

body.shop-theme[data-ui-mode="light"] .status-msg {
  color: #95501a;
}

body.shop-theme[data-ui-mode="light"] .status-msg.ok {
  color: #067647;
}

body.shop-theme[data-ui-mode="light"] .status-msg.danger {
  color: #b42318;
}

body.shop-theme[data-ui-mode="light"] .cart-count-pill {
  border-color: rgba(255, 152, 76, 0.7);
  background: rgba(255, 122, 0, 0.12);
  color: #854515;
}

body.shop-theme[data-ui-mode="light"] .gallery-toast {
  border-color: #d1dae5;
  background: #ffffff;
  color: #26405d;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

body.shop-theme[data-ui-mode="light"] .gallery-toast.danger {
  border-color: #e7b3b3;
  background: #fff2f2;
  color: #a12222;
}

body.shop-theme[data-ui-mode="light"] table {
  color: #23364a;
}

body.shop-theme[data-ui-mode="light"] th,
body.shop-theme[data-ui-mode="light"] td {
  border-bottom-color: #d4dde7;
}

body.shop-theme[data-ui-mode="light"] tr:hover td {
  background: rgba(255, 122, 0, 0.08);
}

body.shop-theme[data-ui-mode="light"] tr.selected td {
  background: rgba(255, 122, 0, 0.14);
}

@keyframes shop-fade-up {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.shop-theme *,
  body.shop-theme *::before,
  body.shop-theme *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 760px) {
  .gallery-filter-bar {
    grid-template-columns: 1fr;
  }

  .gallery-bulk-actions {
    align-items: stretch;
  }

  .gallery-bulk-actions button {
    flex: 1 1 100%;
  }

  .bulk-product-panel {
    padding: 10px;
  }

  .bulk-product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bulk-product-btn {
    width: 100%;
    min-width: 0;
  }

  .gallery-select-check {
    left: 5px;
    top: 5px;
    padding: 4px 6px;
    font-size: 10px;
  }

  .gallery-select-check span {
    display: none;
  }

  .gallery-thumb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .gallery-thumb-card {
    padding: 5px;
    gap: 5px;
    border-radius: 10px;
  }

  .gallery-thumb-meta {
    font-size: 10px;
    line-height: 1.2;
  }

  .gallery-thumb-card .primary {
    padding: 6px 4px;
    font-size: 11px;
    border-radius: 8px;
  }

  .gallery-photo-panel {
    padding: 9px;
  }

  body.shop-theme .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  body.shop-theme .brand-sub {
    white-space: normal;
  }
}

body.gallery-page img,
body.gallery-page canvas,
body.gallery-page video {
  -webkit-touch-callout: none;
  user-select: none;
}

body.gallery-page img {
  -webkit-user-drag: none;
}
