/* ===================================================
   Ben Franklin Print Co. - Interactive Studio CSS
   Full-Width Responsive Layout
   =================================================== */

:root {
  --studio-dark: #1B3B2B;
  --studio-gold: #C89B3C;
  --studio-bg: #F4F6F8;
  --studio-border: #E2E8F0;
  --studio-radius: 8px;
}

/* Typography & General Utilities */
.font-bebas {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.5px;
}
.tracking-wide {
  letter-spacing: 1px;
}
.extra-small {
  font-size: 0.75rem;
}
.cursor-pointer {
  cursor: pointer;
}
.bg-dark-green {
  background-color: var(--studio-dark) !important;
}
.text-dark-green {
  color: var(--studio-dark) !important;
}
.bg-gold {
  background-color: var(--studio-gold) !important;
}
.text-gold {
  color: var(--studio-gold) !important;
}

.btn-gold {
  background-color: var(--studio-gold);
  color: #1a1a1a;
  border: none;
  transition: all 0.2s ease;
}
.btn-gold:hover {
  background-color: #b58930;
  color: #000;
}

/* Header Banner */
.studio-header-banner {
  background-color: var(--studio-dark);
  color: #ffffff;
}
.banner-title-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem;
  line-height: 1;
}
.banner-title-accent {
  color: var(--studio-gold);
}
.banner-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}
.header-badge-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 155, 60, 0.25);
  border-radius: 8px;
  padding: 10px 6px;
  transition: transform 0.2s ease;
  height:100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.header-badge-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}
.header-badge-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1;
}
.header-badge-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Main Studio Container */
.studio-main-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--studio-dark);
  color: var(--studio-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Product Picker Bar (5 Product Cards) */
.product-picker-bar {
  background: #ffffff;
}
.product-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.product-card-btn {
  border: 2px solid var(--studio-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 105px;
}
.product-card-btn:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}
.product-card-btn.active {
  border-color: var(--studio-dark);
  box-shadow: 0 0 0 2px var(--studio-gold);
  background-color: #f0fdf4;
}
.product-img-box {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-top: 4px;
  text-transform: uppercase;
}

/* Stage Workspace Layout */
.studio-stage-wrapper {
  background-color: #F8FAFC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 640px;
  position: relative;
  flex: 1;
  min-width: 0;
}

.stage-viewport {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 1.15;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.garment-stack-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.garment-layer-canvas,
.garment-layer-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.garment-layer-canvas {
  z-index: 1;
}
#layerTexture {
  z-index: 2;
  mix-blend-mode: multiply;
  opacity: 0.10;
}
#layerHighlight1 {
  z-index: 3;
  mix-blend-mode: screen;
  opacity: 0.7;
}
#layerHighlight2 {
  z-index: 4;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* Print Box Viewport */
.print-box-wrapper {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 60%;
  height: 65%;
  z-index: 5;
  border: 1px dashed rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.print-box-wrapper.hide-guide {
  border-color: transparent !important;
}

.print-guide-img {
  z-index: 6;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.canvas-container {
  width: 100% !important;
  height: 100% !important;
}
canvas#designCanvas {
  width: 100% !important;
  height: 100% !important;
}

.stage-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stage Toolbar */
.stage-toolbar {
  width: 100%;
  max-width: 580px;
}
.view-btn {
  background-color: #ffffff;
  border: 1px solid var(--studio-border);
  color: #475569;
  font-weight: 700;
  padding: 6px 16px;
  font-size: 0.8rem;
}
.view-btn.active {
  background-color: var(--studio-dark);
  color: #ffffff;
  border-color: var(--studio-dark);
}

/* Right Control Panel Sidebar */
.studio-right-panel {
  width: 440px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 991px) {
  .studio-right-panel {
    width: 100%;
    border-left: none !important;
    border-top: 1px solid var(--studio-border);
  }
}

.panel-tabs .nav-link {
  color: #64748b;
  border-radius: 0px;
  padding: 10px 8px;
  border: 1px solid var(--studio-border);
  background: #f8fafc;
  margin: 0 2px;
}

.leftCorner{
  border-top-left-radius: var(--studio-radius) !important;
  border-bottom-left-radius: var(--studio-radius) !important;
}

.rightCorner
{
  border-top-right-radius: var(--studio-radius) !important;
  border-bottom-right-radius: var(--studio-radius) !important;
}
.panel-tabs .nav-link.active {
  background-color: var(--studio-dark);
  color: #ffffff;
  border-color: var(--studio-dark);
}

.control-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e293b;
  letter-spacing: 0.5px;
}

.border-dashed {
  border: 2px dashed #cbd5e1;
}
.upload-dropzone {
  background-color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}
.upload-dropzone:hover {
  background-color: #f0fdf4;
  border-color: var(--studio-dark);
}

/* 20 Garment Colors Grid */
.garment-color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.garment-swatch {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  padding: 0;
}
.garment-swatch:hover {
  transform: scale(1.15);
  z-index: 2;
}
.garment-swatch.active {
  border-color: var(--studio-dark);
  box-shadow: 0 0 0 3px var(--studio-gold);
  transform: scale(1.1);
}

/* Text Color Swatches */
.color-swatch-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: transform 0.15s ease;
  padding: 0;
}
.color-swatch-btn:hover {
  transform: scale(1.15);
}
.color-swatch-btn.active {
  box-shadow: 0 0 0 2px var(--studio-dark);
}

/* Bottom Order Bar */
.studio-order-bar {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.order-summary-thumb {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn {
  flex: 1;
  height: 36px;
  border: 1px solid var(--studio-border);
  background: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 6px;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}
.size-btn:hover {
  background-color: #f1f5f9;
}
.size-btn.active {
  background-color: var(--studio-dark);
  color: #ffffff;
  border-color: var(--studio-dark);
}

.qty-btn {
  width: 34px;
  height: 34px;
  font-weight: bold;
}
#qtyInput {
  width: 44px;
}

/* Upload List Item */
.uploaded-art-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--studio-border);
  border-radius: 6px;
  background: #ffffff;
}
.uploaded-art-thumb {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 4px;
}

/* Responsiveness */
@media (max-width: 576px) {
  .banner-title-main {
    font-size: 2.2rem;
  }
  .product-grid {
    gap: 6px;
  }
  .product-card-btn {
    min-width: 80px;
    padding: 6px 8px;
  }
  .garment-color-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
}