/* ============================================
   PROJECT METADATA FORM - MAIN STYLESHEET
   ============================================ */

/* Import Base Styles (Variables, Reset, Typography, Animations) */
@import url('base.css');

/* Import Layout Styles (Page Structure, Header, Container) */
@import url('layout.css');

/* Import Component Styles (All UI Components) */
@import url('components.css');

/* ============================================
   PAGE OVERRIDES & UTILITIES
   ============================================ */

/* Generic Wrappers */
.input-wrapper {
   position: relative;
}

/* ============================================
   DECORATION TYPES
   ============================================ */
#decorationTypesContainer {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 1rem;
   margin-top: 0.5rem;
}

.decoration-checkbox-label {
   text-transform: none;
   letter-spacing: 0;
   font-weight: 400;
   margin: 0;
   cursor: pointer;
}

/* ============================================
   TOTAL QUANTITY DISPLAY
   ============================================ */
#totalQuantityDisplay {
   margin-top: 1rem;
   display: none;
}

#totalQuantityValue {
   padding: 0.875rem 1rem;
   background: var(--bg-page);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   font-size: 0.9375rem;
   font-weight: 600;
   color: var(--text-strong);
}

/* ============================================
   ADDITIONAL INFO SECTION
   ============================================ */
#shipToAddressContainer {
   display: none;
   margin-top: 0.5rem;
}

.checkbox-label-regular {
   text-transform: none;
   letter-spacing: 0;
   font-weight: 400;
   margin: 0;
   cursor: pointer;
}

.checkbox-group-wrapper {
   margin-bottom: 0.5rem;
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.product-modal-title-custom {
   text-align: left;
   margin-bottom: 0.25rem;
}

.product-modal-header-wrapper {
   margin-bottom: 1rem;
}

.color-selection-label {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   /* Override base label styles from components.css */
   text-transform: none;
   letter-spacing: normal;
   margin-bottom: 0;
}

.color-preview-box {
   display: inline-block;
   width: 24px;
   height: 24px;
   border: 1px solid var(--border-soft);
   border-radius: 3px;
   overflow: hidden;
   background: var(--bg-page);
   flex-shrink: 0;
}

.color-preview-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: none;
}

.color-preview-fallback {
   width: 100%;
   height: 100%;
   background: #f1f5f9;
}

.selected-color-text {
   font-weight: 500;
   color: var(--text-strong);
}

.inventory-section-title {
   font-size: 1rem;
   margin-bottom: 0.5rem;
   margin-top: 0.5rem;
}

.warehouse-title {
   margin-top: 0.75rem;
   margin-bottom: 0.5rem;
   font-size: 1rem;
}

.table-responsive {
   overflow-x: auto;
   max-width: 100%;
   /* Default overflow-x: auto for wrapper div */
}

/* JS Dynamic Classes */
.inventory-loading-text {
   padding: 2rem;
   text-align: center;
   color: var(--text-muted);
}

.inventory-error-text {
   padding: 2rem;
   text-align: center;
   color: #dc2626;
}

.row-special-pricing {
   background: #fef3c7;
   color: #92400e;
}

.text-price-highlight {
   font-weight: 600;
   color: #dc2626;
}

.color-fallback-box {
   width: 100%;
   min-height: 60px;
}

.modal-total-wrapper {
   margin-top: 0.5rem;
   padding: 0.5rem;
   background: var(--bg-page);
   border-radius: 4px;
   text-align: right;
   font-size: 0.875rem;
}

.modal-total-quantity-text {
   font-size: 1rem;
   color: var(--accent);
}

/* ============================================
   CUSTOM PRODUCT MODAL
   ============================================ */
.custom-product-modal {
   max-width: 720px;
   /* Slightly wider for the 2-col layout */
}

.custom-product-form {
   padding: 0.5rem 0;
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
}

/* Layout Grid */
.custom-product-layout {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 2rem;
   align-items: start;
}

@media (max-width: 600px) {
   .custom-product-layout {
      grid-template-columns: 1fr;
      gap: 1rem;
   }
}

.custom-col-left,
.custom-col-right {
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

/* Color Presets - Compact & Sexy */
.color-preset-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
   gap: 8px;
   margin-bottom: 1rem;
}

.color-preset-option {
   width: 32px;
   height: 32px;
   border-radius: 4px;
   cursor: pointer;
   border: 2px solid var(--border-soft);
   position: relative;
   transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.color-preset-option:hover {
   transform: scale(1.15);
   z-index: 2;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.color-preset-option.selected {
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 37, 99, 235), 0.2);
   transform: scale(1.1);
}

/* Custom Tooltip for Colors */
.color-preset-option::after {
   content: attr(title);
   position: absolute;
   bottom: 110%;
   left: 50%;
   transform: translateX(-50%) translateY(5px);
   background: #1e293b;
   color: white;
   padding: 6px 10px;
   border-radius: 6px;
   font-size: 0.75rem;
   font-weight: 500;
   white-space: nowrap;
   opacity: 0;
   pointer-events: none;
   transition: all 0.2s;
   z-index: 10;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.color-preset-option:hover::after {
   opacity: 1;
   transform: translateX(-50%) translateY(0);
}

/* Custom Color Input Wrapper */
.custom-color-input-wrapper {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   background: var(--bg-surface);
   padding: 0.5rem 0.75rem;
   border-radius: var(--radius-sm);
   border: 1px solid var(--border-soft);
   transition: border-color 0.2s;
}

.custom-color-input-wrapper:focus-within {
   border-color: var(--primary);
}

.custom-color-input-wrapper .radio-wrapper {
   margin: 0;
   font-size: 0.85rem;
}

.custom-color-input-wrapper input[type="text"] {
   border: none;
   background: transparent;
   padding: 0.25rem;
   height: auto;
   font-size: 0.9rem;
   box-shadow: none;
   /* Remove default input shadow/border */
}

.custom-color-input-wrapper input[type="text"]:focus {
   box-shadow: none;
   outline: none;
}

.custom-color-input-wrapper input[type="text"]:disabled {
   background: transparent;
   cursor: default;
   color: var(--text-muted);
}

/* Size Grid - Clean & Table-like */
.size-section label {
   margin-bottom: 0.75rem;
}

.size-grid-wrapper {
   background: var(--bg-surface);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-md);
   padding: 1.25rem;
}

.size-grid-container {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
   gap: 1rem 0.75rem;
}

.size-grid-item {
   display: flex;
   flex-direction: column;
   gap: 0.25rem;
   align-items: center;
}

.size-grid-item label {
   font-size: 0.75rem;
   font-weight: 600;
   text-align: center;
   color: var(--text-muted);
   margin: 0;
   text-transform: uppercase;
}

.size-grid-item input {
   text-align: center;
   padding: 0.5rem 0.25rem;
   border: 1px solid var(--border-medium);
   border-radius: var(--radius-sm);
   font-weight: 500;
   font-size: 0.95rem;
   transition: all 0.2s;
}

.size-grid-item input:focus {
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 37, 99, 235), 0.1);
   transform: translateY(-1px);
}

.size-grid-item input:not(:placeholder-shown) {
   border-color: var(--border-strong);
   background: #fff;
}

.size-grid-item.custom-added-size {
   grid-column: span 2;
}

.btn-text-action.small {
   font-size: 0.8rem;
   margin-top: 1rem;
   display: inline-flex;
   align-items: center;
   gap: 0.25rem;
   padding: 0.25rem 0.5rem;
   border-radius: 4px;
}

.btn-text-action.small:hover {
   background: var(--bg-surface-hover);
   text-decoration: none;
}

/* Secondary Button Style */
.btn-secondary {
   background: white;
   color: var(--primary);
   border: 1px solid var(--primary);
   padding: 0.5rem 1rem;
   border-radius: var(--radius-sm);
   font-weight: 600;
   font-size: 0.85rem;
   cursor: pointer;
   transition: all 0.2s;
}

.btn-secondary:hover {
   background: #f0f9ff;
   transform: translateY(-1px);
}

/* ============================================
   PRODUCT SEARCH & CUSTOM BUTTON
   ============================================ */

/* Product Search Row Layout */
.product-search-row {
   display: flex;
   gap: 0.5rem;
   align-items: stretch;
}

.product-search-container {
   flex: 1;
}

/* Ensure input fills height */
.product-search-container input {
   height: 100%;
}

/* Custom Product Button - Compact & Styled */
.btn-custom-product {
   background: var(--bg-card);
   color: var(--text-strong);
   border: 1px solid var(--border-soft);
   padding: 0 1rem;
   border-radius: var(--radius-sm);
   font-weight: 600;
   font-size: 0.85rem;
   cursor: pointer;
   transition: all 0.2s;
   white-space: nowrap;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
   margin-top: 0 !important;
   /* Override default button margin */
   width: auto !important;
   /* Override default button width */
}

.btn-custom-product:hover {
   background: var(--bg-page);
   border-color: var(--accent);
   color: var(--accent);
   transform: translateY(-1px);
}

/* ============================================
   CUSTOM COLOR PICKER BUTTON
   ============================================ */
.custom-color-picker-btn {
   width: 32px;
   height: 32px;
   border-radius: 4px;
   cursor: pointer;
   border: 2px dashed #94a3b8;
   background: #f8fafc;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
   flex-shrink: 0;
}

.custom-color-picker-btn:hover {
   transform: scale(1.15);
   border-color: var(--primary);
   background: var(--bg-card);
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-color-picker-btn.has-color {
   border-style: solid;
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 37, 99, 235), 0.2);
}

.custom-color-picker-btn .custom-color-plus {
   font-size: 1.25rem;
   font-weight: 300;
   color: var(--text-muted);
   line-height: 1;
}

.custom-color-picker-btn:hover .custom-color-plus {
   color: var(--primary);
}

.custom-color-picker-btn.selected {
   border-style: solid;
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 37, 99, 235), 0.2);
   transform: scale(1.1);
}

/* ============================================
   COLOR PICKER MODAL
   ============================================ */
.color-picker-modal-overlay {
   z-index: 1100;
}

.color-picker-modal {
   background: var(--bg-card);
   border-radius: var(--radius-lg);
   max-width: 380px;
   width: 90%;
   max-height: 90vh;
   overflow: hidden;
   position: relative;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.color-picker-modal-content {
   padding: 1.5rem;
}

.color-picker-form {
   display: flex;
   flex-direction: column;
   gap: 1.25rem;
   margin-top: 1rem;
}

.color-picker-container {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   background: var(--bg-surface);
   padding: 0.75rem;
   border-radius: var(--radius-md);
   border: 1px solid var(--border-soft);
}

.color-input-native {
   width: 48px;
   height: 48px;
   padding: 0;
   border: none;
   border-radius: var(--radius-sm);
   cursor: pointer;
   -webkit-appearance: none;
   appearance: none;
   background: transparent;
}

.color-input-native::-webkit-color-swatch-wrapper {
   padding: 0;
}

.color-input-native::-webkit-color-swatch {
   border: 2px solid var(--border-soft);
   border-radius: var(--radius-sm);
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-input-native::-moz-color-swatch {
   border: 2px solid var(--border-soft);
   border-radius: var(--radius-sm);
}

.color-preview-large {
   width: 48px;
   height: 48px;
   border-radius: var(--radius-sm);
   border: 2px solid var(--border-soft);
   background: #6366f1;
   box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
   transition: background-color 0.2s;
}

.color-hex-input {
   flex: 1;
   font-family: 'SF Mono', Monaco, Consolas, monospace;
   font-size: 0.9rem;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   padding: 0.5rem 0.75rem;
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   background: var(--bg-card);
}

.color-hex-input:focus {
   border-color: var(--primary);
   outline: none;
   box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 37, 99, 235), 0.1);
}

/* ============================================
   PRODUCT PRINT LOCATIONS
   ============================================ */

/* Hide the main Print Locations form group */
.print-locations-form-group-hidden {
   display: none !important;
}

/* Print Locations Section in Product Widget */
.product-print-locations-section {
   margin-top: 0.75rem;
   padding-top: 0.75rem;
   border-top: 1px solid var(--border-soft);
}

.product-print-locations-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 0.75rem;
   margin-bottom: 0.75rem;
   flex-wrap: nowrap;
}

.product-print-locations-label {
   font-size: 11px;
   font-weight: 600;
   color: var(--text-muted);
   text-transform: uppercase;
   letter-spacing: 0.05em;
   flex-shrink: 0;
   white-space: nowrap;
}

.btn-print-locations {
   display: inline-flex;
   align-items: center;
   gap: 0.35rem;
   padding: 6px 12px;
   font-size: 11px;
   font-weight: 600;
   background: var(--accent);
   color: var(--bg-card);
   border: 1px solid var(--accent);
   border-radius: var(--radius-sm);
   cursor: pointer;
   transition: all 0.2s;
   text-transform: uppercase;
   letter-spacing: 0.05em;
   box-shadow: none;
   white-space: nowrap;
   flex-shrink: 0;
   width: auto;
   min-width: auto;
   max-width: none;
}

.btn-print-locations:hover {
   background: var(--accent-soft);
   border-color: var(--accent-soft);
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
}

.btn-print-locations svg {
   width: 14px;
   height: 14px;
}

.product-print-locations-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
   min-height: 1.5rem;
   align-items: flex-start;
}

.product-location-tag {
   display: inline-flex;
   align-items: center;
   padding: 0.3rem 0.6rem;
   background: linear-gradient(135deg, #ecfdf5, #d1fae5);
   color: #047857;
   font-size: 0.7rem;
   font-weight: 600;
   border-radius: 4px;
   border: 1px solid #a7f3d0;
   text-transform: uppercase;
   letter-spacing: 0.3px;
}

.no-locations-text {
   font-size: 11px;
   color: var(--text-muted);
   font-style: italic;
}

/* ============================================
   PRODUCT PRINT LOCATIONS MODAL
   ============================================ */
.product-pl-modal-overlay {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.5);
   backdrop-filter: blur(4px);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 1050;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
}

.product-pl-modal-overlay.show {
   opacity: 1;
   visibility: visible;
}

.product-pl-modal {
   background: var(--bg-card);
   border-radius: var(--radius-lg);
   max-width: 520px;
   width: 90%;
   max-height: 85vh;
   overflow: hidden;
   position: relative;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
   transform: scale(0.95) translateY(20px);
   transition: transform 0.3s ease;
}

.product-pl-modal-overlay.show .product-pl-modal {
   transform: scale(1) translateY(0);
}

.product-pl-modal-close {
   position: absolute;
   top: 0.75rem;
   right: 0.75rem;
   background: none;
   border: none;
   font-size: 1.75rem;
   color: var(--text-muted);
   cursor: pointer;
   line-height: 1;
   padding: 0.5rem;
   border-radius: 4px;
   transition: all 0.2s;
   z-index: 10;
   width: auto;
   height: auto;
   min-width: 2rem;
   min-height: 2rem;
   display: flex;
   align-items: center;
   justify-content: center;
}

.product-pl-modal-close:hover {
   color: var(--text-strong);
   background: var(--bg-surface);
}

.product-pl-modal-content {
   padding: 1.5rem;
   overflow-y: auto;
   max-height: calc(85vh - 80px);
}

.product-pl-modal-title {
   font-size: 1.1rem;
   font-weight: 700;
   color: var(--text-strong);
   margin: 0 0 1.25rem 0;
   padding-right: 3.5rem;
   /* Increased padding to prevent overlap with close button */
   line-height: 1.4;
}

.product-pl-checkboxes {
   display: flex;
   flex-direction: column;
   gap: 1.25rem;
}

.product-pl-section {
   background: var(--bg-surface);
   border-radius: var(--radius-md);
   padding: 1rem;
   border: 1px solid var(--border-soft);
}

.product-pl-section h5 {
   font-size: 0.75rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 1px;
   color: var(--text-muted);
   margin: 0 0 0.75rem 0;
   padding-bottom: 0.5rem;
   border-bottom: 1px solid var(--border-soft);
}

.product-pl-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 0.5rem;
}

@media (max-width: 480px) {
   .product-pl-grid {
      grid-template-columns: 1fr;
   }
}

.product-pl-option {
   display: flex;
   align-items: center;
   gap: 0.6rem;
   padding: 0.6rem 0.75rem;
   background: var(--bg-card);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   cursor: pointer;
   transition: all 0.2s;
}

.product-pl-option:hover {
   border-color: var(--primary);
   background: #f0f9ff;
}

.product-pl-option input[type="checkbox"] {
   width: 18px;
   height: 18px;
   accent-color: var(--primary);
   cursor: pointer;
   flex-shrink: 0;
}

.product-pl-option span {
   font-size: 0.85rem;
   font-weight: 500;
   color: var(--text-strong);
}

.product-pl-option:has(input:checked) {
   border-color: var(--primary);
   background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.product-pl-modal-actions {
   display: flex;
   justify-content: flex-end;
   gap: 0.75rem;
   margin-top: 1.5rem;
   padding-top: 1rem;
   border-top: 1px solid var(--border-soft);
}

/* Custom Locations Section */
.product-pl-custom-section {
   margin-top: 0.75rem;
   background: var(--bg-surface);
   border-radius: var(--radius-md);
   padding: 1rem;
   border: 1px solid var(--border-soft);
}

.product-pl-custom-input-group {
   display: flex;
   flex-direction: row;
   gap: 0.75rem;
   margin-bottom: 0.75rem;
   align-items: center;
   width: 100%;
}

.product-pl-custom-input {
   flex: 1 1 auto;
   min-width: 200px;
   width: 100%;
   height: 42px;
   padding: 0 1rem;
   font-size: 0.9rem;
   border: 1px solid #e2e8f0;
   border-radius: var(--radius-sm);
   background: #ffffff;
   color: #1e293b;
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
   box-sizing: border-box;
}

.product-pl-custom-input:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.product-pl-custom-input::placeholder {
   color: #94a3b8;
   opacity: 1;
}

.btn-add-custom-location {
   flex: 0 0 auto;
   min-width: 80px;
   width: auto;
   height: 42px;
   padding: 0 1.5rem;
   font-size: 0.9rem;
   font-weight: 600;
   color: #ffffff !important;
   background-color: #3b82f6 !important;
   border: none;
   border-radius: var(--radius-sm);
   cursor: pointer;
   white-space: nowrap;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   box-sizing: border-box;
}

.btn-add-custom-location:hover {
   background-color: #2563eb !important;
   transform: translateY(-1px);
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-add-custom-location:active {
   transform: translateY(0);
   box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.product-pl-custom-list {
   display: flex;
   flex-direction: column;
   gap: 0.5rem;
   max-height: 200px;
   overflow-y: auto;
}

.product-pl-custom-item {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0.6rem 0.75rem;
   background: var(--bg-card);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   font-size: 0.85rem;
   color: var(--text-strong);
}

.product-pl-custom-item span {
   flex: 1;
   font-weight: 500;
}

.product-pl-custom-remove {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 24px;
   height: 24px;
   padding: 0;
   background: transparent;
   border: none;
   border-radius: var(--radius-sm);
   color: var(--text-muted);
   cursor: pointer;
   transition: all 0.2s;
   flex-shrink: 0;
}

.product-pl-custom-remove:hover {
   background: var(--error-light);
   color: var(--error);
}

.product-pl-custom-remove svg {
   width: 14px;
   height: 14px;
}

/* ============================================
   PRODUCT PRINT LOCATION DETAILS MODAL
   ============================================ */
.product-pl-details-modal-overlay {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.5);
   backdrop-filter: blur(4px);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 1100;
   opacity: 1;
   visibility: visible;
   transition: all 0.3s ease;
}

.product-pl-details-modal-overlay.hidden {
   opacity: 0;
   visibility: hidden;
}

.product-pl-details-modal {
   background: var(--bg-card);
   border-radius: var(--radius-lg);
   max-width: 480px;
   width: 90%;
   max-height: 85vh;
   overflow: hidden;
   position: relative;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
   padding: 1.5rem;
   display: flex;
   flex-direction: column;
}

.product-pl-details-subtitle {
   font-size: 1rem;
   font-weight: 600;
   color: var(--accent);
   margin: 0 0 1.25rem 0;
   padding-bottom: 0.75rem;
   border-bottom: 2px solid var(--border-soft);
}

.product-pl-details-modal-content {
   overflow-y: auto;
   flex: 1;
   display: flex;
   flex-direction: column;
   gap: 1.25rem;
}

.product-pl-details-section {
   background: var(--bg-surface);
   border-radius: var(--radius-md);
   padding: 1rem;
   border: 1px solid var(--border-soft);
}

.product-pl-details-section-title {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-size: 0.85rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   color: var(--text-strong);
   margin: 0 0 1rem 0;
}

.product-pl-details-section-title svg {
   color: var(--accent);
}

/* Imprint Size Inputs */
.product-pl-imprint-size-inputs {
   display: flex;
   align-items: flex-end;
   gap: 0.75rem;
}

.product-pl-imprint-size-field {
   flex: 1;
}

.product-pl-imprint-size-field label {
   display: block;
   font-size: 0.75rem;
   font-weight: 600;
   color: var(--text-muted);
   margin-bottom: 0.35rem;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.product-pl-imprint-size-input-wrapper {
   display: flex;
   align-items: center;
   background: var(--bg-card);
   border: 1px solid var(--border-medium);
   border-radius: var(--radius-sm);
   overflow: hidden;
   transition: border-color 0.2s;
}

.product-pl-imprint-size-input-wrapper:focus-within {
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.product-pl-imprint-size-input-wrapper input {
   flex: 1;
   border: none;
   padding: 0.6rem 0.75rem;
   font-size: 1rem;
   font-weight: 500;
   background: transparent;
   text-align: center;
   min-width: 0;
   height: auto;
   box-shadow: none;
}

.product-pl-imprint-size-input-wrapper input:focus {
   outline: none;
   box-shadow: none;
}

.product-pl-imprint-size-unit {
   padding: 0 0.75rem 0 0;
   font-size: 0.9rem;
   color: var(--text-muted);
   font-weight: 500;
}

.product-pl-imprint-size-separator {
   font-size: 1.25rem;
   color: var(--text-muted);
   font-weight: 300;
}

/* Ink Color Search */
.product-pl-ink-color-search-container {
   position: relative;
   margin-bottom: 0.75rem;
}

.product-pl-ink-color-search-input {
   width: 100%;
   padding: 0.65rem 1rem;
   font-size: 0.9rem;
   border: 1px solid var(--border-medium);
   border-radius: var(--radius-sm);
   background: var(--bg-card);
   transition: border-color 0.2s, box-shadow 0.2s;
}

.product-pl-ink-color-search-input:focus {
   border-color: var(--primary);
   outline: none;
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.product-pl-ink-color-dropdown {
   position: absolute;
   top: 100%;
   left: 0;
   right: 0;
   background: var(--bg-card);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
   max-height: 200px;
   overflow-y: auto;
   z-index: 100;
   margin-top: 4px;
}

.product-pl-ink-color-dropdown.hidden {
   display: none;
}

.product-pl-ink-color-dropdown-item {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   padding: 0.65rem 1rem;
   cursor: pointer;
   transition: background 0.15s;
}

.product-pl-ink-color-dropdown-item:hover {
   background: var(--bg-surface);
}

.product-pl-ink-color-dropdown-item__swatch {
   width: 20px;
   height: 20px;
   border-radius: 3px;
   border: 1px solid rgba(0, 0, 0, 0.1);
   flex-shrink: 0;
}

.product-pl-ink-color-dropdown-item__name {
   font-size: 0.85rem;
   font-weight: 500;
   color: var(--text-strong);
}

.product-pl-ink-color-dropdown-empty {
   padding: 1rem;
   text-align: center;
   color: var(--text-muted);
   font-size: 0.85rem;
}

.product-pl-ink-color-dropdown-add-custom {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.75rem 1rem;
   background: #f0f9ff;
   border-top: 1px solid var(--border-soft);
   cursor: pointer;
   font-size: 0.85rem;
   font-weight: 600;
   color: var(--primary);
   transition: background 0.15s;
}

.product-pl-ink-color-dropdown-add-custom:hover {
   background: #dbeafe;
}

/* Selected Ink Colors List */
.product-pl-ink-colors-list {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
   min-height: 2rem;
}

.product-pl-ink-colors-empty {
   font-size: 0.85rem;
   color: var(--text-muted);
   font-style: italic;
   padding: 0.5rem 0;
}

.product-pl-ink-color-chip {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.4rem 0.6rem;
   background: var(--bg-card);
   border: 1px solid var(--border-soft);
   border-radius: 999px;
   font-size: 0.8rem;
   font-weight: 500;
   transition: all 0.2s;
}

.product-pl-ink-color-chip:hover {
   border-color: var(--border-medium);
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-pl-ink-color-chip__number {
   min-width: 18px;
   height: 18px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 0.7rem;
   font-weight: 700;
   background: var(--accent);
   color: var(--bg-card);
   border-radius: 50%;
}

.product-pl-ink-color-chip__swatch {
   width: 16px;
   height: 16px;
   border-radius: 3px;
   border: 1px solid rgba(0, 0, 0, 0.1);
   flex-shrink: 0;
}

.product-pl-ink-color-chip__name {
   color: var(--text-strong);
}

.product-pl-ink-color-chip__remove {
   background: none;
   border: none;
   padding: 0;
   margin: 0;
   width: 18px;
   height: 18px;
   min-width: 18px;
   min-height: 18px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   cursor: pointer;
   color: var(--text-muted);
   transition: all 0.15s;
}

.product-pl-ink-color-chip__remove:hover {
   background: #fee2e2;
   color: #dc2626;
}

.product-pl-ink-color-chip__remove svg {
   width: 14px;
   height: 14px;
}

.product-pl-details-modal-actions {
   display: flex;
   justify-content: flex-end;
   gap: 0.75rem;
   margin-top: 1.25rem;
   padding-top: 1rem;
   border-top: 1px solid var(--border-soft);
}

/* ============================================
   PRODUCT WIDGET - ENHANCED LOCATION CARDS
   ============================================ */
.product-location-cards {
   display: flex;
   flex-direction: column;
   gap: 0.5rem;
   margin-top: 0.5rem;
}

.product-location-card {
   background: var(--bg-surface);
   border: 1px solid var(--border-soft);
   border-radius: var(--radius-sm);
   padding: 0.6rem 0.75rem;
   transition: all 0.2s;
}

.product-location-card:hover {
   border-color: var(--border-medium);
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-location-card__main {
   display: flex;
   align-items: center;
   gap: 0.75rem;
}

.product-location-card__position {
   font-size: 0.8rem;
   font-weight: 700;
   color: var(--text-strong);
   text-transform: uppercase;
   letter-spacing: 0.3px;
}

.product-location-card__size-badge {
   font-size: 0.7rem;
   padding: 0.2rem 0.5rem;
   background: linear-gradient(135deg, #ecfdf5, #d1fae5);
   color: #047857;
   border-radius: 4px;
   border: 1px solid #a7f3d0;
   font-weight: 600;
}

.product-location-card__size-badge--empty {
   background: var(--bg-surface);
   color: var(--text-muted);
   border-color: var(--border-soft);
}

.product-location-card__edit-btn {
   margin-left: auto;
   background: none;
   border: none;
   padding: 0.3rem;
   border-radius: 4px;
   cursor: pointer;
   color: var(--text-muted);
   transition: all 0.15s;
   width: auto;
   min-width: auto;
   height: auto;
   min-height: auto;
   display: flex;
   align-items: center;
   justify-content: center;
}

.product-location-card__edit-btn:hover {
   background: var(--bg-card);
   color: var(--accent);
}

.product-location-card__edit-btn svg {
   width: 16px;
   height: 16px;
}

.product-location-card__colors-section {
   margin-top: 0.5rem;
   padding-top: 0.5rem;
   border-top: 1px dashed var(--border-soft);
}

.product-location-card__colors-list {
   display: flex;
   flex-wrap: wrap;
   gap: 0.35rem;
}

.product-location-card__color-item {
   display: inline-flex;
   align-items: center;
   gap: 0.35rem;
   font-size: 0.7rem;
   padding: 0.15rem 0.4rem;
   background: var(--bg-card);
   border-radius: 3px;
}

.product-location-card__color-swatch {
   width: 10px;
   height: 10px;
   border-radius: 2px;
   border: 1px solid rgba(0, 0, 0, 0.1);
   flex-shrink: 0;
}

.product-location-card__color-name {
   color: var(--text-muted);
   font-weight: 500;
}

.product-location-card__no-colors {
   font-size: 0.7rem;
   color: var(--text-muted);
   font-style: italic;
   margin-top: 0.35rem;
}