/* ============================================
   DESIGN STUDIO STYLES
   ============================================ */

.design-studio {
  max-width: 1400px;
  margin: 80px auto 40px;
  padding: 20px;
}

.design-studio h1 {
  color: #294962;
  margin-bottom: 10px;
  font-size: 32px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: -60px;
}

.design-studio-subtitle {
  color: #666;
  font-size: 16px;
  margin-bottom: 40px;
}

/*.design-container {
  display: grid;
  grid-template-columns: 1fr 750px;
  gap: 30px;
  align-items: start;
}*/

.design-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: start;
}

/* ============================================
   CANVAS SECTION
   ============================================ */

.canvas-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 500px;
}

.canvas-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.canvas-header h2 {
  color: #294962;
  font-size: 22px;
  margin: 0;
}

/*#design-canvas {
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: crosshair;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 400px;
  height: 500px;
  object-fit: contain;
  background: #f8f9fa;
}*/

#design-canvas {
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: crosshair;
  display: block;
  margin: 0 auto;
  /*width: 100%;
  max-width: 400px;
  height: 500px;*/
  object-fit: contain;
  /*background: #f8f9fa;*/
  background: radial-gradient(circle, #f8f8f8, #352620);
}

/* ============================================
   CONTROLS SECTION
   ============================================ */

.controls-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
    max-height: calc(100vh + 100px);
    max-width: 700px;
    overflow-y: auto;
}

/* ============================================
   COMPACT CONTROL GROUPS
   ============================================ */

.control-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.control-group h3 {
  color: #294962;
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-group h3 i {
  font-size: 16px;
}

.control-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s;
  box-sizing: border-box;
}

.control-input:focus {
  outline: none;
  border-color: #294962;
  box-shadow: 0 0 0 3px rgba(41, 73, 98, 0.1);
}

/* ============================================
   T-SHIRT OPTIONS
   ============================================ */

.tshirt-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tshirt-option {
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  background: #f8f9fa;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tshirt-option:hover {
  border-color: #294962;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.tshirt-option.selected {
  border-color: #e94560;
  background: #fff5f7;
  box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);
}

.tshirt-option img {
  width: 100%;
  max-width: 60px;
  height: auto;
  object-fit: contain;
}

.tshirt-option-name {
  font-size: 10px;
  color: #666;
  margin-top: 5px;
  font-weight: 600;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .tshirt-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tshirt-option img {
    max-width: 50px;
  }

  #design-canvas {
    max-width: 100%;
    height: 400px;
  }
}

/* ============================================
   COLOR OPTIONS
   ============================================ */

.color-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-option {
  width: 50px;
  height: 50px;
  border: 3px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.color-option:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.color-option.selected {
  border-color: #e94560;
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.3);
  transform: scale(1.15);
}

/* ============================================
   DESIGN SLIDER
   ============================================ */

.design-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-nav {
  background: #294962;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-nav:hover {
  background: #1a2f3f;
  transform: scale(1.1);
}

.slider-nav i {
  font-size: 16px;
}

.design-slider-wrapper {
  overflow: hidden;
  flex: 1;
  border-radius: 8px;
  border: 1px solid #eee;
}

.design-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: #294962 #f0f0f0;
}

.design-slider::-webkit-scrollbar {
  height: 8px;
}

.design-slider::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.design-slider::-webkit-scrollbar-thumb {
  background: #294962;
  border-radius: 4px;
}

.design-slider::-webkit-scrollbar-thumb:hover {
  background: #1a2f3f;
}

.design-slide {
  min-width: 120px;
  height: 120px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  flex-shrink: 0;
  padding: 10px;
  box-sizing: border-box;
}

.design-slide:hover {
  border-color: #294962;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.design-slide.selected {
  border-color: #e94560;
  background: #fff5f7;
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.design-slide img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

.design-slide-name {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.custom-upload-slide {
  cursor: pointer;
  text-align: center;
  padding: 15px;
}

.custom-upload-slide:hover {
  background: #e8f4f8;
}

/* ============================================
   POSITION CONTROLS (D-PAD STYLE)
   ============================================ */

.position-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.position-row {
  display: flex;
  gap: 3px;
}

.position-controls .control-btn {
  width: 45px;
  height: 45px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #294962;
}

.position-controls .control-btn:hover {
  border-color: #294962;
  background: #f0f8ff;
  transform: scale(1.05);
}

.position-controls .control-btn i {
  font-size: 18px;
}

/* ============================================
   DESIGN CONTROLS
   ============================================ */

/* ============================================
   COMPACT POSITION CONTROLS
   ============================================ */

.position-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.position-row {
  display: flex;
  gap: 3px;
}

.position-controls .control-btn {
  width: 45px;
  height: 45px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #294962;
}

.position-controls .control-btn:hover {
  border-color: #294962;
  background: #f0f8ff;
  transform: scale(1.05);
}

.position-controls .control-btn i {
  font-size: 18px;
}

.control-btn {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #555;
  font-weight: 600;
}

.control-btn:hover {
  border-color: #294962;
  background: #f0f8ff;
  transform: translateY(-2px);
}

.control-btn:active {
  transform: translateY(0);
}

.control-btn i {
  font-size: 20px;
  color: #294962;
}

/* ============================================
   INSTRUCTIONS
   ============================================ */

.instructions {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 25px;
}

.instructions h4 {
  color: #856404;
  margin: 0 0 10px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instructions ul {
  margin: 0;
  padding-left: 20px;
  color: #856404;
  font-size: 13px;
  line-height: 1.8;
}

.instructions li {
  margin: 5px 0;
}

/* ============================================
   COMPACT PRICE DISPLAY
   ============================================ */

.price-display {
    background: linear-gradient(135deg, #294962 0%, #1a2f3f 100%);
    padding: 15px;
    border-radius: 8px;
    /* text-align: center; */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.price-label {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  margin-bottom: 3px;
}

.price-amount {
  color: white;
  font-size: 24px;
  font-weight: 700;
}


/* ============================================
   ADD TO CART BUTTON
   ============================================ */

.add-to-cart-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #e94560 0%, #d63851 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

.add-to-cart-btn i {
  font-size: 20px;
}


/* ==========================================
   INSTRUCTIONS HOVER - SPACE SAVING VERSION
   ADD THIS TO: /var/www/romeezgear/css/design.css
   ========================================== */

.control-group {
  position: relative;
}

.instructions-trigger {
  position: relative;
  display: inline-block;
}

.instructions-trigger h3 {
  margin: 0;
  cursor: help;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.help-icon {
  font-size: 16px;
  color: #294962;
  cursor: help;
  transition: all 0.2s ease;
}

.help-icon:hover {
  color: #20c997;
  transform: scale(1.15);
}

.instructions-content {
  /* Hidden by default */
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  
  /* Styling */
  background: white;
  border: 2px solid #294962;
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 300px;
  max-width: 400px;
  
  /* Animation */
  animation: slideDown 0.2s ease;

  min-width: 300px;  /* Change to 350px */
  max-width: 400px;  /* Change to 450px */  
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* DESKTOP: Show on hover */
@media (min-width: 769px) {
  .instructions-trigger:hover .instructions-content {
    display: block;
  }
}

/* MOBILE: Show on click (handled by JS) */
@media (max-width: 768px) {
  .instructions-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 350px;
  }
  
  .instructions-content.show {
    display: block;
  }
  
  .help-icon {
    font-size: 18px;
  }
}

/* Instructions list styling */
.instructions-content ul {
  margin: 0;
  padding-left: 20px;
}

.instructions-content li {
  margin: 6px 0;
  line-height: 1.5;
  color: #333;
  font-size: 13px;
}

/* Arrow pointer (optional - makes it look nicer) */
.instructions-content::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #294962;
}

.instructions-content::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 21px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid white;
}


/* ==========================================
   DESIGN GUIDELINES - ALWAYS VISIBLE
   ========================================== */

.design-guidelines {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border-left: 4px solid #294962;
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 0;
}

.design-guidelines h4 {
  color: #294962;
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.design-guidelines h4 i {
  font-size: 16px;
  color: #e94560;
}

.design-guidelines ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.design-guidelines li {
  margin: 6px 0;
  line-height: 1.6;
  color: #333;
  font-size: 13px;
  position: relative;
  padding-left: 8px;
}

.design-guidelines li::before {
  content: '✓';
  position: absolute;
  left: -12px;
  color: #28a745;
  font-weight: bold;
}

.design-guidelines strong {
  color: #294962;
  font-weight: 600;
}



/* ==========================================
   CATEGORY FILTER
   ========================================== */

.category-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.category-btn {
  flex: 1;
  min-width: 120px;
  padding: 15px 20px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #666;
}

.category-btn i {
  font-size: 24px;
  color: #294962;
}

.category-btn:hover {
  border-color: #20c997;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(32, 201, 151, 0.2);
}

.category-btn.active {
  background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
  color: white;
  border-color: #20c997;
}

.category-btn.active i {
  color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .category-filter {
    flex-direction: column;
  }
  
  .category-btn {
    flex-direction: row;
    justify-content: center;
    min-width: auto;
  }
}


