.pro-body {
  background: var(--cream);
  min-height: 100vh;
}

[hidden] { display: none !important; }

/* ── Écran de connexion ── */
.pro-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pro-login-box {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.pro-login-box .logo {
  justify-content: center;
  margin-bottom: 28px;
}

.pro-login-box h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.pro-login-sub {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.pro-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pro-login-form input {
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.94rem;
  font-family: inherit;
  width: 100%;
}

.pro-login-form input:focus {
  outline: none;
  border-color: var(--blue);
}

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

.pro-password-wrap input {
  padding-right: 44px;
}

.pro-toggle-password {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  padding: 6px;
  line-height: 1;
}

.pro-caps-warning {
  color: #B45309;
  font-size: 0.8rem;
  text-align: left;
  margin-top: -6px;
}

.pro-login-error {
  color: #DC2626;
  font-size: 0.84rem;
  min-height: 18px;
}

.pro-login-form .btn-primary {
  border: none;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}

.pro-back-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--text-light);
  font-size: 0.84rem;
  text-decoration: none;
}

.pro-back-link:hover { color: var(--blue); }

/* ── Tableau de bord ── */
.pro-dashboard {
  padding: 40px 0 80px;
}

.pro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pro-header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pro-header-title {
  font-size: 0.92rem;
  color: var(--text-light);
  font-weight: 500;
}

.pro-header-right .btn-secondary {
  cursor: pointer;
  background: white;
  padding: 10px 20px;
  font-size: 0.86rem;
}

.pro-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.pro-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pro-subtabs .pro-tab {
  padding: 7px 18px;
  font-size: 0.8rem;
  opacity: 0.85;
}

.pro-subtabs .pro-tab.active {
  opacity: 1;
}

.pro-tab {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pro-tab:hover { border-color: var(--blue); }

.pro-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.pro-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.pro-list-col h2,
.pro-form-col h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 18px;
}

.pro-product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pro-product-row {
  background: white;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.pro-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.pro-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}

.pro-product-info {
  flex: 1;
  min-width: 0;
}

.pro-product-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-product-price {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 2px;
}

.pro-product-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pro-edit-btn, .pro-delete-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pro-edit-btn {
  background: var(--cream);
  color: var(--blue);
}

.pro-delete-btn {
  background: #FEE2E2;
  color: #DC2626;
}

.pro-edit-btn:hover, .pro-delete-btn:hover { opacity: 0.75; }

.pro-empty {
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 20px 0;
}

.pro-form {
  background: white;
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(37, 99, 235, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pro-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pro-form-group label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--dark);
}

.pro-form-group input[type="text"],
.pro-form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

.pro-form-group input:focus,
.pro-form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.pro-form-group input[type="file"] {
  font-size: 0.84rem;
}

.pro-photo-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 8px;
}

.pro-remove-photo-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: #DC2626;
  font-size: 0.82rem;
  cursor: pointer;
  margin-top: 6px;
  text-decoration: underline;
  padding: 0;
}

.pro-form-actions {
  display: flex;
  gap: 12px;
}

.pro-form-actions .btn-primary,
.pro-form-actions .btn-secondary {
  border: none;
  cursor: pointer;
}

@media (max-width: 900px) {
  .pro-content { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .pro-header { flex-direction: column; align-items: flex-start; }
  .pro-tabs { flex-wrap: wrap; }
}
