@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@400;500&display=swap");

:root {
  --wb-bg: #f7f2ea;
  --wb-bg-soft: #faf6ef;
  --wb-surface: #ffffff;
  --wb-charcoal: #1c1b19;
  --wb-charcoal-2: #272521;
  --wb-gold: #b8945a;
  --wb-gold-soft: #e6d7ba;
  --wb-border: #e2d8c8;
  --wb-title: #162c4f;
  --wb-danger: #a62a2a;
  --wb-text: #2f2d2a;
}

html,
body {
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--wb-text);
  line-height: 1.6;
}

.wb-login-body {
  margin: 0;
  background: radial-gradient(1100px 600px at -10% -20%, #e7e9ff 0%, transparent 58%),
    radial-gradient(900px 500px at 120% 120%, #e9e5ff 0%, transparent 56%), #f6f6fb;
  min-height: 100vh;
}

.wb-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.wb-login-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 22px 34px 0;
}

.wb-login-language {
  border: 1px solid #d7d9e8;
  background: #fff;
  color: #44475f;
  border-radius: 8px;
  height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.wb-login-language svg {
  fill: currentColor;
}

.wb-login-main {
  display: grid;
  place-items: center;
  padding: 8px 18px 42px;
}

.wb-login-card {
  width: min(376px, 100%);
  border: 1px solid #e2e3ea;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(24, 30, 52, 0.05);
  padding: 24px 20px 18px;
}

.wb-login-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 0;
  border: 0;
  padding: 0;
  margin: 0 auto 10px;
  display: block;
  opacity: 0.1;
  filter: grayscale(1);
}

.wb-login-title {
  margin: 0;
  text-align: center;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 600;
  color: #1d1f31;
  letter-spacing: -0.5px;
}

.wb-login-subtitle {
  margin: 6px 0 14px;
  font-size: 11px;
  color: #7b7f98;
  text-align: center;
}

.wb-login-form {
  display: grid;
  gap: 14px;
}

.wb-login-field {
  display: grid;
  gap: 8px;
}

.wb-login-field label {
  font-size: 10px;
  font-weight: 600;
  color: #464b66;
}

.wb-login-field label span {
  color: #d6396f;
  margin-left: 2px;
}

.wb-login-field input {
  width: 100%;
  height: 28px;
  border: 1px solid #d4d8e8;
  border-radius: 2px;
  padding: 0 10px;
  font-size: 11px;
  color: #17192d;
  background: #edf1fb;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.wb-login-field input::placeholder {
  color: #8890ad;
}

.wb-login-field input:focus {
  border-color: #b2b8d0;
  box-shadow: none;
}

.wb-password-wrap {
  position: relative;
}

.wb-password-wrap input {
  padding-right: 30px;
}

.wb-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #8e8ea9;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  font-size: 11px;
  cursor: pointer;
}

.wb-password-toggle span {
  display: none;
}

.wb-remember-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #5f637a;
  margin-top: 0;
}

.wb-remember-row input {
  width: 14px;
  height: 14px;
  accent-color: #6b5ce7;
}

.wb-login-submit {
  margin-top: 0;
  height: 30px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, #5f4fe3 0%, #7a5dff 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.wb-login-submit:hover {
  filter: brightness(1.05);
}

.wb-login-submit:active {
  transform: translateY(1px);
}

.wb-login-error {
  margin: 8px 0 0;
  color: var(--wb-danger);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.wb-forgot-link {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: #5d61a7;
  text-decoration: none;
  text-align: center;
}

.wb-forgot-link:hover {
  text-decoration: underline;
}

.wb-hidden {
  display: none;
}

.wb-dashboard-body {
  background: #f9f7f3;
  color: var(--wb-text);
}

.wb-wrapper {
  width: min(1480px, calc(100% - 24px));
  margin: 12px auto;
  border-radius: 18px;
  min-height: calc(100vh - 24px);
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: none;
  padding: 0 20px 26px;
}

.wb-brand-strip {
  margin-top: 12px;
  background: #171614;
  border-radius: 10px;
  padding: 10px 0;
}

.wb-brand-title {
  margin: 0;
  color: #f8eee0;
  font-size: clamp(28px, 3vw, 40px);
  text-align: center;
  letter-spacing: 1.8px;
  font-weight: 500;
  line-height: 1.2;
  text-shadow: none;
}

.wb-menu-zone {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.wb-menu-shell {
  width: min(1100px, 100%);
}

.wb-main-menu,
.wb-main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wb-main-menu {
  display: flex;
  flex-wrap: wrap;
  background: #1f1d1a;
  border: 1px solid #2d2924;
  border-radius: 12px;
  overflow: visible;
}

.wb-main-menu > li {
  position: relative;
}

.wb-main-menu > li > a {
  display: block;
  color: #f3ebdf;
  font-size: 11px;
  font-weight: 500;
  padding: 12px 13px;
  border-right: 1px solid #2f2b26;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  transition: all 0.25s ease;
}

.wb-main-menu li > a:hover {
  background: #2a2723;
  color: #fff8ed;
}

.wb-main-menu li ul {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 240px;
  background: #24221f;
  border: 1px solid #39342d;
  border-radius: 10px;
  display: block;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  pointer-events: none;
  z-index: 40;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wb-main-menu li:hover > ul {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.wb-main-menu li ul li {
  position: relative;
}

.wb-main-menu li ul a {
  display: block;
  color: #f3ebdf;
  font-size: 11px;
  font-weight: 500;
  padding: 11px 12px;
  border-bottom: 1px solid #312d28;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wb-main-menu li ul li:last-child > a {
  border-bottom: 0;
}

.wb-main-menu li ul li ul {
  top: -1px;
  left: calc(100% + 6px);
}

.wb-content-zone {
  margin-top: 28px;
}

.wb-page-title {
  margin: 0 0 6px;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.05;
  color: var(--wb-title);
  font-family: "Playfair Display", serif;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.wb-legacy-btn {
  border: 1px solid var(--wb-gold);
  border-radius: 4px;
  box-shadow: none;
  padding: 0 16px;
  font-weight: 500;
  background: transparent !important;
  color: var(--wb-charcoal) !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.wb-legacy-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.wb-current-user {
  margin: 12px 0 20px;
  color: #5e564a;
  font-size: 13px;
  font-weight: 400;
}

.wb-catalog-sections {
  display: grid;
  gap: 28px;
}

.wb-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.wb-show-btn {
  min-width: 90px;
  height: 30px;
  line-height: 28px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--wb-charcoal);
  border-radius: 4px;
  background: var(--wb-charcoal);
  color: #f8f4ee;
  cursor: pointer;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.wb-show-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.wb-group-title {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 48px);
  font-family: "Playfair Display", serif;
  font-weight: 500;
  color: var(--wb-charcoal);
  line-height: 1.04;
}

.wb-table-wrap {
  margin: 8px 0 14px;
  padding: 0 16px;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  background: #fff;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wb-table-wrap.is-open {
  max-height: 5000px;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  padding: 16px;
}

.wb-catalog-table {
  background: var(--wb-surface);
  min-width: 1120px;
  border: 0;
}

.wb-catalog-table thead {
  background: var(--wb-bg-soft);
}

.wb-catalog-table th {
  color: var(--wb-title);
  font-size: 11px;
  font-weight: 500;
  padding: 14px 10px;
  border-bottom: 1px solid var(--wb-border);
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

.wb-catalog-table td {
  padding: 14px 10px;
  font-size: 12px;
  color: #2c2924;
  font-weight: 400;
  line-height: 1.6;
  transition: background-color 0.2s ease;
}

.wb-catalog-table tbody tr:nth-child(even) {
  background: #fdfcf9;
}

.wb-catalog-table tbody tr:hover {
  background: #f8f4ec;
}

.wb-thumb {
  width: 68px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.wb-model-name {
  font-weight: 500;
  color: #171512;
}

.wb-line-name {
  color: #6e6557;
  font-weight: 500;
}

.wb-actions {
  display: flex;
  gap: 6px;
}

.wb-actions .btn-flat {
  min-width: auto;
  height: auto;
  line-height: 1.2;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--wb-text);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.wb-actions .btn-flat:hover {
  color: var(--wb-gold);
  text-decoration: underline;
  background: transparent;
}

.wb-gallery-page .wb-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.wb-upload-card {
  margin: 12px 0 24px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  background: #fff;
}

.wb-upload-head {
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 10px;
  color: var(--wb-title);
}

.wb-upload-controls {
  display: grid;
  gap: 10px;
}

.wb-select {
  max-width: 320px;
  border: 1px solid var(--wb-border);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}

.wb-dropzone {
  border: 1px dashed var(--wb-gold);
  border-radius: 10px;
  min-height: 76px;
  display: grid;
  place-items: center;
  background: #fcfaf6;
}

.wb-dropzone span {
  color: #7a7063;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.wb-gallery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.wb-gallery-item {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
}

.wb-gallery-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.wb-gallery-meta {
  min-width: 0;
}

.wb-gallery-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--wb-charcoal);
  margin-bottom: 6px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wb-gallery-spec {
  font-size: 11px;
  color: #7b7266;
  line-height: 1.5;
  letter-spacing: 0.35px;
}

.wb-gallery-item .wb-actions {
  align-self: flex-start;
  display: grid;
  gap: 8px;
}

@media (max-width: 1080px) {
  .wb-main-menu {
    border-radius: 10px;
  }

  .wb-main-menu > li > a {
    padding: 10px 11px;
    font-size: 10px;
  }
}

@media (max-width: 820px) {
  .wb-wrapper {
    padding: 0 12px 18px;
  }

  .wb-menu-zone {
    justify-content: flex-start;
  }

  .wb-main-menu {
    flex-direction: column;
  }

  .wb-main-menu > li > a {
    border-right: 0;
    border-bottom: 1px solid #3a362f;
  }

  .wb-main-menu li ul,
  .wb-main-menu li ul li ul {
    position: static;
    display: block;
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #272420;
    margin-left: 14px;
  }

  .wb-page-title {
    font-size: clamp(34px, 8.5vw, 48px);
  }
}
