/* /apps/tryon/css/tryon.css */

/* Reuse DressUp base styles */
@import url("/apps/dressup/css/dressup.css");

/* Optional: slightly different accent if you want */
:root {
  --accent: #ff9a2b;
}

/* Brand Logo styling */
.brand-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  max-width: 120px;
}

.brand-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Updated panel design */
.panel {
  width: 280px;  /* Smaller width */
  top: 2px;
}

.panel-card {
  padding: 15px;  /* Reduced padding */
}

.panel-instruction {
  font-size: 13px;  /* Smaller text */
  margin-bottom: 12px;
}

.panel-actions {
  gap: 8px;  /* Reduced gap */
}

.btn {
  padding: 8px 12px;  /* Thinner buttons */
  font-size: 13px;
}

/* Move upload button to bottom right */
.upload-button-container {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}

/* Highlight selected garment in grid */
.slot {
  cursor: pointer;
  position: relative;
}

.slot.selected {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4),
              0 0 12px rgba(0,0,0,0.65);
}

.slot.selected::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 11px;
  color: #ffffff;
  text-shadow: 0 0 3px rgba(0,0,0,0.7);
}






/* ====== Cropping modal ====== */

.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.crop-modal.crop-visible {
  pointer-events: auto;
  opacity: 1;
}

.crop-modal.crop-hidden {
  pointer-events: none;
  opacity: 0;
}

.crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.crop-dialog {
  position: relative;
  z-index: 1;
  width: min(90vw, 420px);
  background: rgba(10, 12, 18, 0.98);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.crop-header {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #e9eaec);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.crop-body {
  padding: 8px 10px;
  flex: 1;
  overflow: hidden;
}

.crop-image-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  position: relative;
  overflow: hidden;
}

.crop-image-wrap img {
  max-width: 100%;
  display: block;
}

.crop-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 10px 12px;
}





/* brand specific tryon styles can go here */

body.brand-yahweh .panel-card {
  border-color: #ff4444;
}

body.brand-yahweh .btn.primary {
  background-color: #ff4444;
  border-color: #ff4444;
}

/* brand specific tryon styles can go here */

body.brand-telfar .panel-card {
  border-color: #232323;
  background-color: #adadad6e;
}

body.brand-telfar .btn.primary {
  background-color: #ff4444;
  border-color: #ff4444;
}

