/*
==================================================
  1. FONT IMPORTS & ROOT VARIABLES
==================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Cutive+Mono&display=swap');

@font-face {
  font-family: 'Trolleybus Trial';
  src: url('../Homepage/assets/Trolleybus/CopyrightBolditalicStudio-TrolleybusTrial.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NType82';
  src: url('../Assets/NType82-Regular.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --text-primary: #2D3748;
  --text-secondary: #718096;
  --background-primary: #ffffff;
  --background-secondary: #ffffff;
  --border-color: #E2E8F0;
  --accent-color: #070707;
  --container-gap: 50px;
  --control-radius: 12px;
  --font-family: 'Cutive Mono', monospace;
  --font-family-display: 'Trolleybus Trial', 'Cutive Mono', monospace;
  --font-family-subheading: 'NType82', 'Cutive Mono', monospace;
}

/*
==================================================
  1.5. CROPPER STYLES - MOVABLE CROP BOX + SLIDER SIZE CONTROL
==================================================
*/

/* COMPLETELY DISABLE ALL RESIZE FUNCTIONALITY */

.cropper-container .cropper-crop-box .cropper-point.cropper-point-e,
.cropper-container .cropper-crop-box .cropper-point.cropper-point-n,
.cropper-container .cropper-crop-box .cropper-point.cropper-point-w,
.cropper-container .cropper-crop-box .cropper-point.cropper-point-s,
.cropper-container .cropper-crop-box .cropper-point.cropper-point-ne,
.cropper-container .cropper-crop-box .cropper-point.cropper-point-nw,
.cropper-container .cropper-crop-box .cropper-point.cropper-point-sw,
.cropper-container .cropper-crop-box .cropper-point.cropper-point-se,
.cropper-container .cropper-crop-box .cropper-point {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

/* COMPLETELY DISABLE ALL EDGE HANDLES */

.cropper-container .cropper-crop-box .cropper-line.cropper-line-e,
.cropper-container .cropper-crop-box .cropper-line.cropper-line-n,
.cropper-container .cropper-crop-box .cropper-line.cropper-line-w,
.cropper-container .cropper-crop-box .cropper-line.cropper-line-s,
.cropper-container .cropper-crop-box .cropper-line {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  cursor: move !important;
}

/* FORCE MOVE-ONLY BEHAVIOR ON CROP BOX */

.cropper-container .cropper-crop-box {
  border: 2px solid #007bff !important;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3) !important;
  cursor: move !important;
}

/* OVERRIDE ANY RESIZE CURSORS */

.cropper-container .cropper-crop-box *,
.cropper-container .cropper-crop-box {
  cursor: move !important;
}

/* DISABLE RESIZE CURSORS COMPLETELY */

.cropper-container [style*="cursor: n-resize"],
.cropper-container [style*="cursor: s-resize"],
.cropper-container [style*="cursor: e-resize"],
.cropper-container [style*="cursor: w-resize"],
.cropper-container [style*="cursor: ne-resize"],
.cropper-container [style*="cursor: nw-resize"],
.cropper-container [style*="cursor: se-resize"],
.cropper-container [style*="cursor: sw-resize"] {
  cursor: move !important;
}

/* Make crop box face interactive for moving ONLY */

.cropper-container .cropper-face {
  background: transparent !important;
  cursor: move !important;
  pointer-events: auto !important;
}

/* Show move cursor when hovering over crop area */

.cropper-container .cropper-face:hover {
  background: rgba(0, 123, 255, 0.1) !important;
  cursor: move !important;
}

/* Style the crop box border to be more visible */

.cropper-container .cropper-view-box {
  outline: 2px solid #007bff !important;
  outline-offset: -2px !important;
}

/* Ensure crop box center indicator is visible for reference */

.cropper-container .cropper-center {
  display: block !important;
  opacity: 0.3 !important;
  pointer-events: none !important;
}

/*
==================================================
  2. BASE & GLOBAL STYLES
==================================================
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  background: var(--background-primary);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 0;
  position: relative;
}

/*
==================================================
  3. HEADER & NAVIGATION
==================================================
*/

.legacy-top-banner {
  text-align: center;
  line-height: 40px; /* This vertically centers the text */

height: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #070707;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.5px;
  font-family: 'Cutive Mono', monospace;
}

/* ============================================
   DESKTOP HEADER STYLES (769px and above)
   ============================================ */

/* Desktop header container */

.legacy-page-header {
    background: #ffffff !important;
    width: 100% !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Secondary header with clean styling - NO BORDERS OR SHADOWS */

.legacy-secondary-header {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
      padding: 0 40px !important;
        height: 72px !important;
        position: relative !important;
        background: #ffffff !important;
        box-shadow: none !important;
        /* Explicit border removal */

border: none !important;
        border-bottom: none !important;
        border-top: none !important;
    }

/* Ensure header container has no borders */

.legacy-page-header {
        border: none !important;
        border-bottom: none !important;
        border-top: none !important;
    }

/* Desktop tablet range (769px to 1200px) */

@media (min-width: 769px) and (max-width: 1200px) {
    .legacy-header-title {
        justify-self: start !important;
        font-size: 2.1rem !important;
    }

.legacy-nav {
        display: flex !important;
        justify-self: center !important;
    }

.legacy-cart-nav {
        justify-self: end !important;
    }
    
    
}

/* --- Main Header Container --- */

.legacy-page-header {
  background: var(--background-secondary);
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky; /* Keeps header visible on scroll */

top: 0;
  z-index: 1000;
}

.legacy-secondary-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Left, Center, and Right columns */

align-items: center;
  height: 72px;
  padding: 0 40px;
}

/* --- Logo / Header Title --- */

.legacy-header-title {
  justify-self: start; /* Align title to the far left */

font-family: 'Trolleybus Trial', 'Cutive Mono', monospace;
  font-size: 2.1rem;
  color: #070707;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.legacy-header-title:hover {
  background-image: url('../Homepage/assets/39c7ce68ca5edd7c2caff6038d529c2a.gif');
  background-size: 200% 200%;
  background-position: center;
  background-repeat: no-repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Main Navigation Links --- */

.legacy-nav {
  display: flex;
  gap: 40px; /* Increased gap for more space */
}

.legacy-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  font-family: 'Cutive Mono', monospace;
  position: relative;
  padding: 8px 4px; /* Added horizontal padding for a better hover area */

transition: color 0.3s ease;
}

/* --- Underline Hover Effect --- */

.legacy-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #070707;
  transform: scaleX(0); /* Animate scale instead of width for a smoother effect */

transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.legacy-nav a:hover {
  color: var(--text-primary);
}

.legacy-nav a:hover::after {
  transform: scaleX(1);
}

/* --- Cart Icon & Counter --- */

.legacy-cart-nav {
  justify-self: end; /* Align cart to the far right */

display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}

.legacy-cart-nav:hover svg {
  stroke: var(--accent-color);
}

.legacy-cart-nav:hover .cart-count {
  color: var(--accent-color);
}

.legacy-cart-nav svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
  stroke-width: 2;
  transition: stroke 0.2s ease;
}

/* Cart count font styling to match FAQ page */

.legacy-cart-nav .cart-count {
    font-family: 'Cutive Mono', monospace !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.legacy-cart-nav .cart-count {
  color: var(--text-primary);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  min-width: auto;
  height: auto;
  padding: 0;
  transition: color 0.2s ease;
}

/*
==================================================
  4. MAIN PAGE LAYOUT & CONTAINER
==================================================
*/

.container {
  display: flex;
  gap: var(--container-gap);
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 20px 60px;
  justify-content: center;
}

/* --- Frame Preview Area --- */

.frame-container {
  width: 1000px;
  height: 800px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.frame-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
}

#uploadedImage,
#uploadedImagePortrait {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  border-radius: 2px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

#uploadedImage {
  max-width: 83%;
  max-height: 83%;
}

#uploadedImagePortrait {
  max-width: 66%;
  max-height: 66%;
}

#uploadedImage.add-border {
  max-width: 74%;
  max-height: 74%;
}

#uploadedImagePortrait.add-border {
  max-width: 59%;
  max-height: 59%;
}

/*
==================================================
  4.5. WHITE FRAME SPECIFIC POSITIONING
==================================================
*/

/* White frame specific positioning adjustments for desktop */

.white-frame #uploadedImage,
.white-frame #uploadedImagePortrait {
  top: 51% !important;
  left: 50.5% !important;
}

/*
==================================================
  5. CONTROLS & OPTIONS PANEL
==================================================
*/

.upload-container {
  background: var(--background-secondary);
  width: 450px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  border: 1px solid var(--border-color);
}

.upload-container h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  text-transform: none;
  letter-spacing: -0.5px;
  font-family: 'Cutive Mono', monospace;
  text-align: center;
}

/* --- Form Controls: Buttons,
Dropdowns,
etc. --- */

#addToCartButton,
#reopenCropperButton {
  color: #ffffff;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  background: #070707;
  box-shadow: 0 4px 16px rgba(45, 55, 72, 0.2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-family);
}

#addToCartButton {
  font-family: var(--font-family-display) !important;
  font-weight: 400;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
}

#reopenCropperButton {
  padding: 14px;
  font-size: 13px;
  font-weight: 400;
}

#addToCartButton:hover:not(:disabled),
#reopenCropperButton:hover {
  background: #070707;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45, 55, 72, 0.35);
}

#addToCartButton:disabled {
  background-color: #E2E8F0;
  color: #A0AEC0;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.view-cart-link {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  margin-top: -8px;
  padding: 10px 16px;
  color: #070707;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.view-cart-link:hover {
  color: #070707;
  background: #f0f0f0;
}

.view-cart-link:active {
  background: #e0e0e0;
  transform: scale(0.99);
}

.view-cart-link[hidden] {
  display: none !important;
}

.dropdown {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--background-secondary);
  border: 1px solid var(--border-color);
  width: 100%;
  padding: 15px 40px 15px 15px;
  border-radius: var(--control-radius);
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23718096' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  margin: 0;
}

.dropdown:hover {
  border-color: #CBD5E0;
}

.dropdown:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(45, 55, 72, 0.2);
}

.dropdown option:disabled {
  color: #A0AEC0;
}

.color-picker {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0;
}

.color-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-button.selected {
  box-shadow: 0 0 0 2px var(--background-secondary), 0 0 0 4px var(--accent-color);
  transform: scale(1.05);
}

.color-button:hover {
  transform: scale(1.1);
}

#priceDisplay {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
  text-align: center;
  font-family: var(--font-family);
}

/* --- FilePond Uploader Styles --- */

.filepond--root {
  font-family: var(--font-family);
}

.filepond--panel-root {
  background-color: #F7FAFC;
  border-radius: var(--control-radius);
  border: 1px solid var(--border-color);
}

.filepond--drop-label {
  color: var(--text-secondary);
}

.filepond--label-action {
  color: var(--accent-color);
  text-decoration-color: var(--accent-color);
}

/*
==================================================
  6. CROPPER MODAL / OVERLAY - RESPONSIVE DESIGN
==================================================
*/

/* Base Cropper Overlay - Desktop First */

#cropperOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px 20px 0 20px; /* Removed bottom padding */

box-sizing: border-box;
}

#cropperOverlay #cropperContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--background-secondary);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  width: 720px;
  height: 720px;
  max-width: none;
  max-height: none;
  gap: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

/* Top Controls Row */

.cropper-top-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  gap: 16px;
  padding: 0 4px;
  position: relative;
}

/* Bottom Controls Row */

.cropper-bottom-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  padding: 0 4px;
}

.cropper-close {
  background: rgba(248, 249, 250, 0.9);
  border: 1px solid rgba(233, 236, 239, 0.6);
  color: #6c757d;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  letter-spacing: 0;
  position: absolute;
  right: 5px;
  top: 5px;
  z-index: 10;
}

.cropper-close:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(45, 55, 72, 0.4);
  color: var(--accent-color);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 20px rgba(45, 55, 72, 0.15);
}

.cropper-zoom-reset {
  background: rgba(248, 249, 250, 0.9);
  border: 1px solid rgba(233, 236, 239, 0.6);
  color: #6c757d;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  letter-spacing: 0;
}

.cropper-zoom-reset:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(45, 55, 72, 0.4);
  color: var(--accent-color);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 20px rgba(45, 55, 72, 0.15);
}

/* Crop Size Control Styles */

.zoom-control {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(233, 236, 239, 0.6);
  font-family: var(--font-family);
  min-width: 220px;
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.zoom-control label {
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.zoom-control input[type="range"] {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #e9ecef 0%, #e9ecef 100%);
  outline: none;
  appearance: none;
  touch-action: pan-x;
  transition: none;
  cursor: pointer;
}

.zoom-control input[type="range"]:hover {
  background: linear-gradient(to right, #dee2e6 0%, #dee2e6 100%);
}

.zoom-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color) 0%, #495057 100%);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: none;
}

.zoom-control input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.zoom-control input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color) 0%, #495057 100%);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: none;
}

.zoom-control span {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color);
  min-width: 45px;
  text-align: center;
  background: rgba(248, 249, 250, 0.8);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* Mobile responsive zoom control */

#saveCropButton {
  background: #070707;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-family);
  min-width: 100px;
  text-align: center;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(45, 55, 72, 0.2);
}

#saveCropButton:hover {
  background: #070707;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45, 55, 72, 0.35);
}

.cropper-image-container {
  width: 100%;
  height: 520px;
  background: rgba(248, 249, 250, 0.6);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(233, 236, 239, 0.4);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.cropper-image-wrapper {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

#cropperOverlay #cropperImage {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.cropper-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  background: #f8f9fa;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.cropper-zoom-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
}

.cropper-zoom-slider {
  width: 80%;
  max-width: 300px;
  height: 8px;
  border-radius: 4px;
  background: #e9ecef;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cropper-zoom-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.cropper-zoom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cropper-zoom-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.cropper-zoom-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.cropper-zoom-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #E2E8F0;
  border: none;
}

.cropper-zoom-slider:focus {
  outline: none;
}

.cropper-zoom-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(7, 7, 7, 0.2), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cropper-zoom-values {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 0;
}

.cropper-zoom-reset {
  background: #ffffff;
  border: 2px solid #e9ecef;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
  white-space: nowrap;
}

.cropper-zoom-reset:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Cropper Drag Box Visibility - Make fully visible */

.cropper-drag-box {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px dashed rgba(255, 255, 255, 0.6) !important;
}

.cropper-crop-box {
  border: 2px solid #007bff !important;
  background: rgba(0, 123, 255, 0.1) !important;
}

.cropper-view-box {
  outline: 2px solid rgba(255, 255, 255, 0.8) !important;
  outline-width: 2px !important;
}

#cropperOverlay #saveCropButton {
  background: #070707;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 140px;
  width: 100%;
  max-width: 200px;
  box-shadow: 0 6px 24px rgba(45, 55, 72, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-family);
  backdrop-filter: blur(10px);
}

#cropperOverlay #saveCropButton:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(45, 55, 72, 0.4);
  background: #070707;
}

/* Large Desktop (1200px+) */

@media (min-width: 1200px) {
  #cropperOverlay #cropperContainer {
    width: 720px;
    height: 720px;
    padding: 20px;
  }

#cropperOverlay #cropperImage {
    max-height: calc(520px - 20px);
  }

.cropper-zoom-container {
    max-width: 300px;
  }

.cropper-zoom-values {
    max-width: 350px;
  }
}

/* Desktop/Laptop (769px - 1199px) */

@media (min-width: 769px) and (max-width: 1199px) {
  #cropperOverlay #cropperContainer {
    width: 720px;
    height: 720px;
    padding: 20px;
  }

#cropperOverlay #cropperImage {
    max-height: calc(520px - 20px);
  }
}

/* Tablet Portrait & Small Laptop (481px - 768px) */


/* Mobile Landscape (601px - 900px height) */

@media (max-height: 900px) and (min-width: 769px) {
  #cropperOverlay #cropperContainer {
    max-height: 80vh;
  }

#cropperOverlay #cropperImage {
    max-height: calc(250px - 20px);
  }
}

/* Very Small Mobile (360px and below) */


/* Mobile Landscape Orientation (height < 500px) */

@media (max-height: 500px) and (orientation: landscape) {
  #cropperOverlay {
    padding: 5px 5px 0 5px; /* Removed bottom padding */
  }

#cropperOverlay #cropperContainer {
    flex-direction: row;
    max-width: 95vw;
    max-height: 95vh;
    padding: 15px 15px 0 15px; /* Removed bottom padding */

gap: 20px;
    align-items: center;
  }

#cropperOverlay #cropperImage {
    max-height: none;
    max-width: calc(60% - 20px);
    height: auto;
    flex-shrink: 0;
  }

.cropper-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
  }

.cropper-controls {
    align-items: flex-start;
    gap: 8px;
  }

.cropper-zoom-container {
    max-width: 150px;
    gap: 8px;
  }

.cropper-zoom-values {
    max-width: 150px;
  }

.cropper-zoom-label {
    font-size: 11px;
    min-width: 25px;
  }

#cropperOverlay #saveCropButton {
    margin-top: 0;
    width: 100%;
    max-width: 150px;
  }
}

/* Tablet Landscape (768px - 1024px width, landscape) */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  #cropperOverlay #cropperContainer {
    max-width: 85vw;
    flex-direction: row;
    gap: 30px;
    align-items: center;
  }

#cropperOverlay #cropperImage {
    max-width: calc(60% - 20px);
    max-height: calc(70vh - 20px);
  }

.cropper-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
  }

.cropper-controls {
    align-items: flex-start;
  }

.cropper-zoom-container {
    max-width: 200px;
  }

.cropper-zoom-values {
    max-width: 200px;
  }
}

/* High DPI / Retina Displays */

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  #cropperOverlay #cropperContainer {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  }
}

/* Close Button for Mobile - REMOVED */


/* --- Cropper.js Library Overrides --- */

.cropper-view-box,
.cropper-face {
  background: transparent !important;
}

.cropper-dashed,
.cropper-line,
.cropper-point {
  display: block !important;
}

.cropper-dashed {
  border-color: rgba(45, 55, 72, 0.5) !important;
}

/* Note: .cropper-line and .cropper-point styles moved to section 1.5 for corner-only resizing */

/*
==================================================
  7. CART LIGHTBOX (MODAL)
==================================================
*/

#cartLightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

#cartContainer {
  background: #FFFFFF;
  border-radius: 18px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease;
}

#cartContainer.is-updating .cart-items {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@keyframes fadeIn {from {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
  }

to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
  font-size: 24px;
  color: var(--text-primary);
}

.close-cart {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #A0AEC0;
  transition: color 0.3s ease;
}

.close-cart:hover {
  color: var(--text-primary);
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}

.cart-item:last-child {
  border-bottom: none;
}

/* BRUTE FORCE CART IMAGE STYLES - OVERRIDE EVERYTHING */

.cart-item-image {
  width: 100px !important;
  height: 100px !important;
  border-radius: 12px !important;
  margin-right: 20px !important;
  background: #f9f9f9 !important;
  border: 1px solid var(--border-color) !important;
  overflow: hidden !important;
  position: relative !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.cart-item-image img {
  display: none !important;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.cart-item-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cart-item-price {
  font-weight: 600;
  color: var(--text-primary);
}

.remove-item {
  position: absolute;
  top: 15px;
  right: 0;
  background: none;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  font-size: 18px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.remove-item:hover {
  background: rgba(255, 77, 77, 0.1);
}

.cart-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cart-actions {
  display: flex;
  gap: 10px;
}

.cart-button {
  flex: 1;
  padding: 14px;
  border-radius: var(--control-radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  border: 1.5px solid transparent;
}

.continue-shopping {
  background: #EDF2F7;
  color: var(--text-primary);
  border-color: #EDF2F7;
}

.continue-shopping:hover {
  background: #E2E8F0;
  border-color: #E2E8F0;
}

.checkout-button {
  background: var(--accent-color);
  color: var(--background-secondary);
  border-color: var(--accent-color);
}

.checkout-button:hover {
  opacity: 0.85;
}

/*
==================================================
  8. FOOTER
==================================================
*/

.footer {
  background: #070707;
  color: #ffffff;
  padding: 40px 20px 20px 20px; /* Added horizontal padding */

font-family: 'Cutive Mono', monospace;
  font-size: 16px;
  margin-top: 0;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 120px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-col {
  min-width: 180px;
  text-align: center;
}

.footer-col h3 {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 16px;
  font-family: 'Cutive Mono', monospace;
  color: #ffffff;
  text-decoration: underline;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'Cutive Mono', monospace;
  font-weight: 300;
}

.footer-col a:hover {
  font-weight: bold;
}

.footer-col p {
  margin: 0 0 8px 0;
  color: #ffffff;
  font-family: 'Cutive Mono', monospace;
  font-weight: 400;
}

.footer-title {
  font-family: 'Cutive Mono', monospace;
  font-weight: 300;
}

/*
==================================================
  8.5. PRODUCT INFORMATION SECTION
==================================================
*/

.product-info-section {
  background: #070707;
  padding: 40px 0;
  margin-top: 60px;
  width: 100%;
  height: 266px;
  display: flex;
  align-items: center;
}

.product-info-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  align-items: start;
}

.info-card {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  transition: none;
  text-align: center;
}

.info-card:hover {
  transform: none;
  box-shadow: none;
}

.info-card h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 16px;
  font-family: 'Cutive Mono', monospace;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}

.size-details p {
  color: #ffffff;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 8px;
  text-align: center;
  font-family: 'Cutive Mono', monospace;
  font-weight: 300;
}

.size-details strong {
  color: #ffffff;
  font-weight: normal;
}

.materials-list,
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.materials-list li {
  color: #ffffff;
  margin-bottom: 8px;
  padding-left: 0;
  position: relative;
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: center;
  font-family: 'Cutive Mono', monospace;
  font-weight: 300;
}

.materials-list li::before {
  content: none;
}

.benefits-list li {
  color: #ffffff;
  margin-bottom: 8px;
  display: block;
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: center;
  font-family: 'Cutive Mono', monospace;
  font-weight: 300;
}

.benefits-list .icon {
  display: none;
}

/* Responsive Design */

@media (max-width: 1000px) {
  .product-info-section {
    padding: 60px 0;
  }

.product-info-container {
    padding: 0 20px;
  }

.info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

.info-card {
    padding: 24px 20px;
  }

.info-card h3 {
    font-size: 1.5rem;
  }
}

/*
==================================================
  8.6. FEATURE SECTION
==================================================
*/

.feature-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 40px;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item.reverse {
  direction: rtl;
}

.feature-item.reverse > * {
  direction: ltr;
}

.text-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #070707;
  line-height: 1.2;
  margin-bottom: 24px;
  font-family: 'Trolleybus Trial', 'Cutive Mono', monospace;
  letter-spacing: -0.03em;
}

.text-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #070707;
  margin-bottom: 20px;
  font-family: 'Cutive Mono', monospace;
  letter-spacing: -0.03em;
}

.text-content p:last-child {
  margin-bottom: 0;
}

.image-content {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-content img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* Responsive Design for Feature Section */

@media (max-width: 900px) {
  .feature-section {
    margin: 60px auto;
    padding: 0 20px;
  }

.feature-item {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
    text-align: center;
  }

.feature-item.reverse {
    direction: ltr;
  }

.text-content h2 {
    font-size: 2rem;
    color: #070707;
    letter-spacing: -0.03em;
  }

.text-content p {
    font-size: 1rem;
    color: #070707;
    letter-spacing: -0.03em;
  }
}

/*
==================================================
  9. RESPONSIVE MEDIA QUERIES
==================================================
*/

@media (max-width: 1100px) {
  .footer-content {
    gap: 40px;
  }
}

/* Laptop - 1024px breakpoint for portrait mode fix */

@media (max-width: 1024px) and (min-width: 769px) {
  #uploadedImagePortrait {
    max-width: 55% !important;
    max-height: 60% !important;
  }

#uploadedImagePortrait.add-border {
    max-width: 48% !important;
    max-height: 53% !important;
  }
}

@media (max-width: 900px) {.container {
    flex-direction: column;
    gap: 32px;
  }

.footer-content {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
}

/*
==================================================
  10. COMPREHENSIVE MOBILE OPTIMIZATION
==================================================
*/

















/* Migrated from page head styles */

/* ✅ FOOTER FIX: Make footer stick to bottom */

html,
body {
            height: 100%;
            margin: 0;
            padding: 0;
        }

body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

/* Make main content grow to fill available space */

.container {
            flex: 1;
        }

/* Ensure footer stays at bottom */

.footer {
            margin-top: auto;
        }

/* Remove extra spacing that might cause white space */

.product-info-section,
.feature-section {
            margin: 0 !important;
            padding: 0 !important;
        }

/* ✅ NEW: Cropper header styling */

.cropper-header {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 0;
            padding: 0;
        }

/* ✅ UPDATED: Cropper slider controls styling */

.cropper-controls {
            position: static; /* Changed from absolute */

display: flex;
            flex-direction: row;
            align-items: center;
            gap: 12px;
            justify-content: center;
            background: rgba(0, 0, 0, 0.85);
            padding: 12px 20px;
            border-radius: 8px;
            backdrop-filter: blur(15px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

.crop-size-label {
            color: white;
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
            user-select: none;
        }

.crop-size-slider {
            width: 120px;
            height: 6px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 3px;
            outline: none;
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;
            /* Removed direction: rtl - we'll handle direction in JavaScript */
        }

.crop-size-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            background: white;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            transition: all 0.2s ease;
        }

.crop-size-slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
        }

.crop-size-slider::-moz-range-thumb {
            width: 18px;
            height: 18px;
            background: white;
            border-radius: 50%;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            transition: all 0.2s ease;
        }

.crop-size-slider::-moz-range-thumb:hover {
            transform: scale(1.1);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
        }

.reset-button {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.4);
            padding: 6px 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            font-weight: 500;
            transition: all 0.3s ease;
            user-select: none;
            white-space: nowrap;
        }

.reset-button:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.6);
            transform: translateY(-1px);
        }

.reset-button svg {
            flex-shrink: 0;
            width: 14px;
            height: 14px;
        }

.orientation-toggle-button {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.4);
            padding: 6px 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            font-weight: 500;
            transition: all 0.3s ease;
            user-select: none;
            white-space: nowrap;
        }

.orientation-toggle-button:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.6);
            transform: translateY(-1px);
        }

.orientation-toggle-button svg {
            flex-shrink: 0;
            width: 16px;
            height: 16px;
        }

/* Ensure cropper container has proper positioning */

#cropperContainer {
            position: relative;
            width: 100%;
            height: 100%;
            touch-action: none !important; /* Disable all touch gestures including zoom */

overflow: hidden; /* Prevent scrolling that could trigger zoom */

margin: 0 !important;
            padding: 0 !important;
        }

/* ✅ FORCE: Remove ALL spacing from cropper elements */

#cropperImage {
            margin: 0 !important;
            padding: 0 !important;
            display: block;
        }

#saveCropButton {
            margin: 0 !important;
            padding: 8px 16px !important;
            border: none;
            background: #007cba;
            color: white;
            border-radius: 4px;
            cursor: pointer;
            display: block;
        }

.cropper-footer {
            margin: 0 !important;
            padding: 0 !important;
        }

/* ✅ NEW: Prevent zooming on cropper overlay */

#cropperOverlay {
            touch-action: none !important; /* Disable all touch gestures including zoom */

overflow: hidden; /* Prevent scrolling */
        }

/* ✅ NEW: Prevent zooming on all cropper elements */

.cropper-container {
            touch-action: none !important; /* Disable all touch gestures including zoom */
        }

.cropper-container * {
            touch-action: none !important; /* Disable all touch gestures on cropper children */
        }

/* ✅ NEW: Completely disable cropper resize handles and interactions */

.cropper-view-box,
.cropper-face {
            cursor: move !important; /* Only allow moving, not resizing */
        }

/* Hide all resize handles completely */

.cropper-point {
            display: none !important; /* Hide corner and edge resize handles */
        }

.cropper-line {
            cursor: move !important; /* Make lines non-resizable */
        }

/* Ensure crop box is only movable,
not resizable */

.cropper-crop-box {
            cursor: move !important;
        }

/* Hide any resize cursors that might appear */

.cropper-container * {
            cursor: move !important;
        }

.cropper-container .cropper-crop-box * {
            cursor: move !important;
        }

/* ✅ RESPONSIVE CROPPER: Base styles for all screen sizes */

.cropper-container {
            max-width: 90vw;
            max-height: 70vh;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        }

.cropper-canvas {
            max-width: 100%;
            max-height: 100%;
        }

.cropper-canvas img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

#cropperImage {
            max-width: 90vw;
            max-height: 70vh;
            object-fit: contain;
            border-radius: 8px;
        }

/* ✅ LARGE DESKTOP: 1440px and above */

@media (min-width: 1440px) {
            .cropper-container {
                max-width: 1200px;
                max-height: 800px;
            }

#cropperImage {
                max-width: 1200px;
                max-height: 800px;
            }

.cropper-controls {
                gap: 16px;
                padding: 16px 24px;
            }

.crop-size-slider {
                width: 200px;
                height: 8px;
            }

.crop-size-label {
                font-size: 14px;
            }
        }

/* ✅ STANDARD DESKTOP: 1024px to 1439px */

@media (min-width: 1024px) and (max-width: 1439px) {
            .cropper-container {
                max-width: 900px;
                max-height: 600px;
            }

#cropperImage {
                max-width: 900px;
                max-height: 600px;
            }

.cropper-controls {
                gap: 14px;
                padding: 14px 20px;
            }

.crop-size-slider {
                width: 160px;
                height: 7px;
            }

.crop-size-label {
                font-size: 13px;
            }
        }

/* ✅ SMALL DESKTOP/LAPTOP: 769px to 1023px */

@media (min-width: 769px) and (max-width: 1023px) {
            .cropper-container {
                max-width: 85vw;
                max-height: 65vh;
            }

#cropperImage {
                max-width: 85vw;
                max-height: 65vh;
            }

.cropper-controls {
                gap: 12px;
                padding: 12px 16px;
            }

.crop-size-slider {
                width: 140px;
                height: 6px;
            }

.crop-size-label {
                font-size: 12px;
            }

.reset-button, .orientation-toggle-button {
                padding: 8px 12px;
                font-size: 11px;
            }
        }

/* ✅ LANDSCAPE ORIENTATIONS: Adjustments for all landscape modes */

@media (orientation: landscape) and (max-height: 600px) {
            .cropper-container {
                max-height: 60vh !important;
            }

#cropperImage {
                max-height: 60vh !important;
            }
        }

@media (orientation: landscape) and (max-height: 500px) {.cropper-container {
                max-height: 55vh !important;
            }

#cropperImage {
                max-height: 55vh !important;
            }
        }

/* ✅ ULTRA-WIDE SCREENS: 1920px and above */

@media (min-width: 1920px) {
            .cropper-container {
                max-width: 1400px;
                max-height: 900px;
            }

#cropperImage {
                max-width: 1400px;
                max-height: 900px;
            }

.cropper-controls {
                gap: 20px;
                padding: 18px 28px;
            }

.crop-size-slider {
                width: 240px;
                height: 10px;
            }

.crop-size-label {
                font-size: 16px;
            }

.reset-button, .orientation-toggle-button {
                padding: 10px 16px;
                font-size: 13px;
            }
        }

/* Hide the close button - COMPREHENSIVE TARGETING */

.cropper-close,
.cropper-modal .cropper-close,
.cropper-container .cropper-close,
.cropper-modal button,
.cropper-container button:not(#saveCropButton),
button[data-method="destroy"],
.cropper-canvas button,
.cropper-crop-box button,
*[aria-label*="close"],
*[title*="close"],
button:contains("×"),
span:contains("×"),
div:contains("×") {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
            width: 0 !important;
            height: 0 !important;
            overflow: hidden !important;
        }

/* Hide Product Information Section */

.product-info-section {
            display: none !important;
        }

/* Hide Feature Sections */

.feature-section {
            display: none !important;
        }

/* Mobile styles */
        

/* Legacy inline header styles removed;homepage header lives in the final desktop override block below. */

.footer {
                background: #070707 !important;
                color: #f9f2e6 !important;
                padding: 40px 28px !important;
                font-family: 'Cutive Mono', monospace !important;
                font-size: 16px !important;
                margin-top: 0 !important;
                width: 100% !important;
            }

.footer,
.footer * {
                color: #f9f2e6 !important;
            }

.footer-content {
                display: grid !important;
                grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
                align-items: flex-start !important;
                gap: 32px 72px !important;
                max-width: 980px !important;
                margin: 0 auto !important;
            }

.footer-col {
                min-width: 0 !important;
                text-align: center !important;
                display: flex !important;
                flex-direction: column !important;
                gap: 14px !important;
            }

.footer-col h3,
.footer-title {
                font-size: 18px !important;
                font-weight: 400 !important;
                margin-bottom: 0 !important;
                font-family: 'Trolleybus Trial', 'Cutive Mono', monospace !important;
                letter-spacing: 0.05em !important;
                line-height: 1.1 !important;
                color: #f9f2e6 !important;
                text-decoration: none !important;
            }

.footer-col ul {
                list-style: none !important;
                padding: 0 !important;
                margin: 0 !important;
                display: flex !important;
                flex-direction: column !important;
                gap: 10px !important;
            }

.footer-col ul li {
                margin-bottom: 0 !important;
            }

.footer a,
.footer p,
.footer li,
.footer-col a,
.footer-col p {
                font-family: 'Cutive Mono', monospace !important;
                font-weight: 400 !important;
                letter-spacing: -0.05em !important;
                line-height: 1.1 !important;
                text-decoration: none !important;
                color: #f9f2e6 !important;
            }

.footer-col p {
                margin: 0 !important;
            }

.footer-dropdown-header,
.footer-dropdown-content,
.footer-dropdown-arrow {
                display: none !important;
            }

/* Final homepage desktop header override */
@media (min-width: 769px) {
  .top-banner {
    text-align: center !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    font-weight: 300 !important;
    font-family: var(--font-family-subheading) !important;
    font-variant-caps: normal !important;
    color: #f9f2e6 !important;
    background-color: #070707 !important;
    border-bottom: 1px solid #E2E8F0 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
  }

  header {
    background: #ffffff !important;
    width: 100% !important;
    border-bottom: 1px solid #E2E8F0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  }

  .secondary-header {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    height: auto !important;
    padding: 10px 40px !important;
  }

  .secondary-header {
    background: #ffffff !important;
  }

  .header-title {
    justify-self: start !important;
    font-family: 'Trolleybus Trial', 'Cutive Mono', monospace !important;
    font-size: 2.35rem !important;
    letter-spacing: 0.05em !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    font-variant-caps: normal !important;
    text-transform: none !important;
    color: #070707 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
  }

  .nav {
    display: flex !important;
    gap: 40px !important;
    justify-self: center !important;
  }

  .nav a {
    color: #070707 !important;
    text-decoration: none !important;
    font-size: 1.08rem !important;
    font-weight: 400 !important;
    font-family: 'Cutive Mono', monospace !important;
    font-variant-caps: normal !important;
    text-transform: none !important;
    letter-spacing: -0.05em !important;
    line-height: 1 !important;
    position: relative !important;
    padding: 8px 4px !important;
    transition: color 0.3s ease !important;
  }

  .nav a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: #070707 !important;
    transform: scaleX(0) !important;
    transform-origin: center !important;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1) !important;
  }

  .nav a:hover {
    color: #2D3748 !important;
  }

  .nav a:hover::after {
    transform: scaleX(1) !important;
  }

  .cart-nav {
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-family: 'Cutive Mono', monospace !important;
  }

  .cart-nav:hover svg {
    stroke: #070707 !important;
  }

  .cart-nav:hover .cart-count {
    color: #070707 !important;
  }

  .cart-nav svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #2D3748 !important;
    stroke-width: 2 !important;
    transition: stroke 0.2s ease !important;
  }

  .cart-nav .cart-count {
    font-family: 'Cutive Mono', monospace !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    letter-spacing: -0.05em !important;
    line-height: 1.1 !important;
    font-variant-caps: normal !important;
  }

  .cart-nav .cart-count {
    color: #2D3748 !important;
    background: transparent !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    min-width: auto !important;
    height: auto !important;
    padding: 0 !important;
    transition: color 0.2s ease !important;
  }
}

/* Desktop-only: keep mobile navigation UI hidden here. */

.burger-menu,
.legacy-burger-menu,
.mobile-nav,
.legacy-mobile-nav,
.mobile-nav-overlay,
.legacy-mobile-nav-overlay,
.mobile-nav-close,
.legacy-mobile-nav-close,
.legacy-mobile-nav-toggle {
  display: none !important;
}

#addToCartButton,
#reopenCropperButton,
#saveCropButton,
.cart-button,
.checkout-button,
.continue-shopping,
.reset-button,
.orientation-toggle-button,
.remove-item {
  font-family: 'Trolleybus Trial', 'Cutive Mono', monospace !important;
  letter-spacing: 0.05em !important;
}

#addToCartButton,
#priceDisplay {
  letter-spacing: 0 !important;
}

#addToCartButton {
  font-family: var(--font-family-display) !important;
  letter-spacing: 0.05em !important;
}

#priceDisplay {
  font-family: var(--font-family) !important;
}

/* Shared desktop header */
header,
.legacy-page-header {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  background: #ffffff !important;
  color: #070707 !important;
  border: 0 !important;
  box-shadow: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

.top-banner,
.legacy-top-banner {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 40px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 20px !important;
  background: #070707 !important;
  background-color: #070707 !important;
  color: #f9f2e6 !important;
  border: 0 !important;
  text-align: center !important;
  font-family: 'NType82', 'Cutive Mono', 'Even Mono Trial', 'Roboto Mono', monospace !important;
  font-size: 1rem !important;
  font-weight: 300 !important;
  font-style: normal !important;
  font-variant-caps: normal !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
}

.secondary-header,
.legacy-secondary-header {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 40px !important;
  background: #ffffff !important;
  color: #070707 !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 999 !important;
}

.header-title,
.legacy-header-title {
  justify-self: start !important;
  margin: 0 !important;
  color: #070707 !important;
  text-decoration: none !important;
  font-family: 'Trolleybus Trial', 'Cutive Mono', 'Even Mono Trial', 'Roboto Mono', monospace !important;
  font-size: 2.35rem !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-variant-caps: normal !important;
  text-transform: none !important;
  letter-spacing: 0.05em !important;
  line-height: 1 !important;
}

.header-title:hover,
.legacy-header-title:hover {
  color: #070707 !important;
  text-decoration: none !important;
}

.nav,
.legacy-nav {
  display: flex !important;
  align-items: center !important;
  justify-self: center !important;
  gap: 40px !important;
  margin: 0 !important;
}

.nav a,
.legacy-nav a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 4px !important;
  color: #070707 !important;
  text-decoration: none !important;
  font-family: 'Cutive Mono', 'Even Mono Trial', 'Roboto Mono', monospace !important;
  font-size: 1.08rem !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-variant-caps: normal !important;
  text-transform: none !important;
  letter-spacing: -0.05em !important;
  line-height: 1 !important;
  transition: color 0.3s ease !important;
}

.nav a::after,
.legacy-nav a::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background: #070707 !important;
  transform: scaleX(0) !important;
  transform-origin: center !important;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.nav a:hover,
.legacy-nav a:hover {
  color: #2D3748 !important;
}

.nav a:hover::after,
.legacy-nav a:hover::after {
  transform: scaleX(1) !important;
}

.cart-nav,
.legacy-cart-nav {
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  color: #2D3748 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.cart-nav svg,
.legacy-cart-nav svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #2D3748 !important;
  stroke-width: 2 !important;
  transition: stroke 0.2s ease !important;
}

.cart-count,
.cart-nav .cart-count,
.legacy-cart-nav .cart-count {
  min-width: auto !important;
  height: auto !important;
  padding: 0 !important;
  color: #2D3748 !important;
  background: transparent !important;
  font-family: 'Cutive Mono', 'Even Mono Trial', 'Roboto Mono', monospace !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-variant-caps: normal !important;
  text-transform: none !important;
  letter-spacing: -0.05em !important;
  line-height: 1.1 !important;
  transition: color 0.2s ease !important;
}

.cart-nav:hover,
.legacy-cart-nav:hover,
.cart-nav:hover .cart-count,
.legacy-cart-nav:hover .cart-count {
  color: #070707 !important;
}

.cart-nav:hover svg,
.legacy-cart-nav:hover svg {
  stroke: #070707 !important;
}

.burger-menu,
.legacy-burger-menu,
.mobile-nav,
.legacy-mobile-nav,
.mobile-nav-overlay,
.legacy-mobile-nav-overlay,
.mobile-nav-close,
.legacy-mobile-nav-close,
.legacy-mobile-nav-toggle {
  display: none !important;
}

/* Shared desktop footer */
.footer {
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  margin-top: auto !important;
  padding: 40px 28px !important;
  background: #070707 !important;
  color: #f9f2e6 !important;
  border: 0 !important;
  font-size: 16px !important;
}

.footer,
.footer * {
  color: #f9f2e6 !important;
}

.footer-content {
  box-sizing: border-box !important;
  width: min(980px, 100%) !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
  align-items: flex-start !important;
  gap: 32px 72px !important;
}

.footer-col {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  text-align: center !important;
}

.footer-col h3,
.footer h3,
.footer-title {
  margin: 0 !important;
  color: #f9f2e6 !important;
  font-family: 'Trolleybus Trial' !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 0.05em !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
}

.footer-col ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.footer-col li {
  margin: 0 !important;
  padding: 0 !important;
}

.footer a,
.footer p,
.footer li,
.footer-col a,
.footer-col p {
  margin: 0 !important;
  color: #f9f2e6 !important;
  font-family: 'Cutive Mono' !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: -0.05em !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

.footer-col a:hover {
  color: #f9f2e6 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.footer-dropdown-header,
.footer-dropdown-content,
.footer-dropdown-arrow {
  display: none !important;
}

/* Shared desktop body font spacing */
:root {
  --body-font-spacing: -0.05em;
}

body,
p,
li,
label,
input,
select,
textarea,
.nav a,
.legacy-nav a,
.cart-count,
.cart-nav .cart-count,
.legacy-cart-nav .cart-count,
.footer a,
.footer p,
.footer li,
.footer-col a,
.footer-col p {
  letter-spacing: var(--body-font-spacing) !important;
}

/* Shared desktop title and subheading spacing */
:root {
  --title-font-spacing: 0.05em;
  --subheading-font-spacing: 0;
  --homepage-font-title-spacing: var(--title-font-spacing);
  --homepage-font-subheading-spacing: var(--subheading-font-spacing);
}

h1,
h2,
h3,
.header-title,
.legacy-header-title,
.footer-col h3,
.footer h3,
.footer-title,
.intro h2,
.price-item h3,
.about-intro h1,
.about-panel-copy h2,
.editorial-index,
.editorial-heading h1,
.editorial-card h2,
.section-header h2,
.card-body h3,
.stat-number,
.frame-guide-title,
.frame-guide-box h3,
.text-content h2,
.upload-container h2,
.cart-header h2,
.cart-item-title {
  letter-spacing: var(--title-font-spacing) !important;
}

.top-banner,
.legacy-top-banner,
.info-bar,
.info-bar div,
.hero-left h1,
.hero-section.reverse .hero-right h1,
.mobile-section-content h2,
[class*="kicker"],
[class*="label"],
[class*="badge"],
[class*="tag"],
[class*="eyebrow"],
[class*="subheading"],
[class*="subtitle"] {
  letter-spacing: var(--subheading-font-spacing) !important;
}

/* Print frame image fit */
#uploadedImage,
#uploadedImagePortrait {
  object-fit: contain !important;
  object-position: center center !important;
  -webkit-clip-path: inset(var(--frame-image-clip-top, 0) var(--frame-image-clip-right, 0) var(--frame-image-clip-bottom, 0) var(--frame-image-clip-left, 0));
  clip-path: inset(var(--frame-image-clip-top, 0) var(--frame-image-clip-right, 0) var(--frame-image-clip-bottom, 0) var(--frame-image-clip-left, 0));
}

.white-frame.full-image-frame #uploadedImage,
.white-frame.full-image-frame #uploadedImagePortrait {
  top: 51% !important;
  left: 50.5% !important;
}

.white-frame.border-frame.landscape-frame #uploadedImage {
  top: 51% !important;
  left: 52.5% !important;
}

.white-frame.border-frame.portrait-frame #uploadedImagePortrait {
  top: 51% !important;
  left: 48.3% !important;
}

.portrait-frame.full-image-frame #uploadedImagePortrait {
  top: 49.95% !important;
  max-width: 65.25% !important;
  max-height: 65.25% !important;
}

.white-frame.portrait-frame #uploadedImagePortrait {
  left: 50% !important;
}

.natural-frame.portrait-frame #uploadedImagePortrait,
.raw-frame.portrait-frame #uploadedImagePortrait {
  left: 50% !important;
}

.frame-container.portrait-frame.full-image-frame #uploadedImagePortrait {
  top: 50% !important;
  left: 50% !important;
  max-width: 63% !important;
  max-height: 63% !important;
  --frame-image-clip-top: 0;
}

.frame-container.portrait-frame.border-frame #uploadedImagePortrait,
.frame-container.portrait-frame #uploadedImagePortrait.add-border {
  top: 50% !important;
  left: 50% !important;
  max-width: 57% !important;
  max-height: 57% !important;
  --frame-image-clip-top: 0;
}

.frame-container.white-frame.landscape-frame.full-image-frame #uploadedImage {
  top: 50% !important;
  left: 50% !important;
  max-width: 83% !important;
  max-height: 83% !important;
}

.frame-container.white-frame.landscape-frame.border-frame #uploadedImage {
  top: 50% !important;
  left: 50% !important;
  max-width: 74% !important;
  max-height: 74% !important;
}

#cropperCancelButton {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 10030;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(7, 7, 7, 0.45);
  font-family: var(--font-family);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer !important;
  touch-action: manipulation !important;
  box-shadow: none;
}

#cropperCancelButton:hover {
  background: transparent;
  color: rgba(7, 7, 7, 0.78);
}

#cropperOverlay .cropper-top-controls {
  display: none !important;
}

#cropperOverlay .cropper-container .cropper-crop-box .cropper-line {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

#cropperOverlay .cropper-container .cropper-crop-box .cropper-point {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

#cropperOverlay .cropper-container .cropper-crop-box .cropper-point.point-ne,
#cropperOverlay .cropper-container .cropper-crop-box .cropper-point.cropper-point-ne,
#cropperOverlay .cropper-container .cropper-crop-box .cropper-point[data-cropper-action="ne"] {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  opacity: 1 !important;
  border: 2px solid #007bff !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28) !important;
  cursor: ne-resize !important;
  touch-action: none !important;
  z-index: 3 !important;
}

#cropperResizeHandle {
  position: absolute;
  display: none !important;
  z-index: 10025;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border: 2px solid #007bff;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  cursor: nesw-resize;
  touch-action: none;
  pointer-events: none !important;
}

#cropperOverlay {
  padding: 16px !important;
}

#cropperOverlay #cropperContainer {
  width: min(720px, calc(100vw - 32px)) !important;
  height: min(720px, calc(100vh - 32px)) !important;
  padding: 14px !important;
  gap: 10px !important;
  box-sizing: border-box !important;
}

#cropperOverlay .cropper-top-controls {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

#cropperOverlay .cropper-image-container {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

#cropperOverlay .cropper-image-wrapper {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#cropperOverlay .cropper-bottom-controls {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 42px !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
}

#cropperOverlay #saveCropButton {
  width: auto !important;
  min-width: 150px !important;
  height: 42px !important;
  margin: 0 auto !important;
  padding: 10px 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  background: #070707 !important;
  color: #ffffff !important;
  line-height: 1 !important;
}

/* Responsive frame options: keep each visible control clickable and contained. */
.upload-container {
  max-width: min(450px, calc(100vw - 32px)) !important;
  overflow: visible !important;
}

.upload-container > .filepond--root {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.upload-container > .dropdown,
.upload-container > .color-picker,
.upload-container > #priceDisplay,
.upload-container > #addToCartButton,
.upload-container > #reopenCropperButton {
  position: relative !important;
  z-index: 2 !important;
  pointer-events: auto !important;
}

.dropdown {
  display: block !important;
  min-height: 54px !important;
  touch-action: manipulation !important;
}

.filepond--file {
  min-width: 0 !important;
}

.filepond--file-info,
.filepond--file-status {
  min-width: 0 !important;
}

.filepond--file-info-main,
.filepond--file-status-main,
.filepond--file-status-sub {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#addToCartButton {
  font-family: 'NType82', 'Helvetica Neue', Arial, sans-serif !important;
  text-transform: none !important;
  font-variant-caps: normal !important;
  letter-spacing: 0 !important;
}

/* Cropper final layout pass */
#cropperOverlay {
  padding: 24px !important;
  align-items: center !important;
}

#cropperOverlay #cropperContainer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: min(720px, calc(100vw - 48px)) !important;
  height: min(760px, calc(100vh - 48px)) !important;
  max-height: calc(100vh - 48px) !important;
  padding: 18px !important;
  gap: 14px !important;
}

#cropperOverlay .cropper-top-controls {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

#cropperOverlay .zoom-control {
  display: none !important;
}

#cropperOverlay .cropper-image-container {
  flex: 1 1 0 !important;
  width: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 8px 8px 12px !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
}

#cropperOverlay .cropper-image-wrapper,
#cropperOverlay .cropper-container {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

#cropperOverlay #cropperImage {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

#cropperOverlay .cropper-bottom-controls {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#reopenCropperButton,
#cropperOverlay #saveCropButton {
  text-transform: none !important;
  font-variant-caps: normal !important;
  letter-spacing: 0 !important;
}

#cropperOverlay #saveCropButton {
  min-width: 150px !important;
  height: 46px !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  line-height: 1 !important;
}
.size-quality-message {
  width: 100%;
  max-width: 420px;
  margin: -4px 0 8px;
  color: #9b2c2c;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Authoritative frame opening geometry, populated from measured overlay bounds. */
#frameContainer.frame-preview {
  position: relative !important;
}

#frameContainer.frame-preview > .frame-image-area {
  position: absolute !important;
  left: var(--frame-opening-left, 0px) !important;
  top: var(--frame-opening-top, 0px) !important;
  width: var(--frame-opening-width, 0px) !important;
  height: var(--frame-opening-height, 0px) !important;
  transform: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

#frameContainer.frame-preview > .frame-image-area > #uploadedImage.customer-image,
#frameContainer.frame-preview > .frame-image-area > #uploadedImagePortrait.customer-image,
#frameContainer.frame-preview > .frame-image-area > canvas {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform-origin: center center !important;
  vertical-align: top !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  z-index: 1 !important;
}

#frameContainer.frame-preview.landscape-frame > .frame-image-area > #uploadedImage.customer-image,
#frameContainer.frame-preview.portrait-frame > .frame-image-area > #uploadedImagePortrait.customer-image {
  display: block !important;
}

#frameContainer.frame-preview.landscape-frame > .frame-image-area > #uploadedImagePortrait.customer-image,
#frameContainer.frame-preview.portrait-frame > .frame-image-area > #uploadedImage.customer-image {
  display: none !important;
}

#frameContainer.frame-preview > .frame-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
.print-size-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: -16px;
  color: #070707;
  font-family: var(--font-family);
  font-size: 0.86rem;
  line-height: 1;
}

.quality-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
}

.quality-info-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.quality-info-button:hover,
.quality-info-button:focus-visible {
  background: transparent;
  outline: 2px solid rgba(7, 7, 7, 0.2);
  outline-offset: 2px;
}

.quality-info-button:hover img {
  opacity: 0.75;
}

.size-quality-message.is-success {
  color: #2f6f44;
}

.quality-info-overlay[hidden],
.quality-info-panel[hidden] {
  display: none !important;
}

.quality-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 7, 7, 0.4);
}

.quality-info-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow-y: auto;
  padding: 32px;
  border: 1px solid rgba(7, 7, 7, 0.14);
  border-radius: 14px;
  background: #ffffff;
  color: #070707;
  box-shadow: 0 24px 70px rgba(7, 7, 7, 0.22);
  font-family: var(--font-family);
}

.quality-info-panel h3 {
  margin: 0 40px 18px 0;
  font-family: var(--font-family-display);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.1;
}

.quality-info-panel h4 {
  margin: 22px 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.quality-info-panel p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.quality-info-panel ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.quality-info-panel li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.quality-info-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #070707;
  font: 400 24px/1 var(--font-family);
  cursor: pointer;
}

@media (max-width: 768px) {
  .quality-info-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .quality-info-panel {
    width: 100%;
    max-height: min(82vh, 720px);
    padding: 28px 22px 24px;
    border-radius: 16px 16px 0 0;
  }

  .quality-info-panel h3 {
    font-size: 1.55rem;
  }
}
