/* Print Designer - Complete CSS Reset and Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    overflow: hidden;
    background: #f3f4f6;
}

.print-designer-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f3f4f6;
}

/* Top Purple Header */
.designer-header {
    height: 56px;
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.designer-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.designer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.designer-logo i {
    font-size: 18px;
}

.header-nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.header-icon-btn i {
    font-size: 14px;
}

.designer-header-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zoom-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zoom-display {
    background: white;
    color: #1f2937;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.header-toggle-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.header-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.header-toggle-btn i {
    font-size: 16px;
}

.header-text-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.header-text-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.header-text-btn i {
    font-size: 14px;
}

.designer-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-save {
    background: white;
    color: #8b5cf6;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-save:hover {
    background: #f9fafb;
}

.btn-save i {
    font-size: 14px;
}

.btn-export {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-export:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-cart {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-cart:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-cart i {
    font-size: 16px;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Secondary Top Bar */
.canvas-controls-bar {
    height: 44px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 20px;
}

.control-info {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Main Content Area */
.designer-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Left Icon Sidebar */
.designer-left-sidebar {
    width: 48px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    gap: 2px;
}

.sidebar-tool-btn {
    width: 100%;
    height: 48px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}

.sidebar-tool-btn:hover {
    background: #f9fafb;
    color: #8b5cf6;
}

.sidebar-tool-btn.active {
    background: #f3e8ff;
    color: #8b5cf6;
}

.sidebar-tool-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: #8b5cf6;
    border-radius: 0 2px 2px 0;
}

.sidebar-tool-btn i {
    font-size: 18px;
}

/* Secondary Sidebar (Tools/Layers) */
.designer-secondary-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.secondary-sidebar-tabs {
    height: 48px;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
}

.sidebar-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.sidebar-tab:hover {
    color: #374151;
    background: rgba(139, 92, 246, 0.05);
}

.sidebar-tab.active {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
    background: white;
}

.secondary-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Layers List */
.layers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.layer-item:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.layer-item.active {
    background: #f3e8ff;
    border-color: #a78bfa;
}

.layer-icon {
    color: #8b5cf6;
    font-size: 14px;
    width: 16px;
}

.layer-name {
    flex: 1;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.layer-actions {
    display: flex;
    gap: 4px;
}

.layer-action-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
}

.layer-action-btn:hover {
    background: white;
    color: #6b7280;
}

/* Canvas Area */
.designer-canvas-area {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.canvas-wrapper {
    position: absolute;
    background: transparent;
    box-shadow: none;
    border: none;
    isolation: isolate;
    pointer-events: auto;
}

.canvas-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: 
        repeating-linear-gradient(0deg, #e5e7eb 0px, #e5e7eb 1px, transparent 1px, transparent 30px),
        repeating-linear-gradient(90deg, #e5e7eb 0px, #e5e7eb 1px, transparent 1px, transparent 30px);
    background-size: 30px 30px;
}

#mockupBackground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

#designCanvas {
    position: relative;
    z-index: 3;
    background: transparent;
}

/* Right Sidebar (Properties) */
.designer-right-sidebar {
    width: 320px;
    background: white;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.right-sidebar-header {
    height: 48px;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.right-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
}

.properties-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 13px;
}

.property-section {
    margin-bottom: 24px;
}

.property-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info-card {
    margin-top: 8px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 16px;
}

.property-group {
    margin-bottom: 16px;
}

.property-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    display: block;
}

.color-swatches {
    display: flex;
    gap: 8px;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

.color-swatch:hover {
    transform: scale(1.08);
}

.color-swatch.active {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.size-buttons {
    display: flex;
    gap: 8px;
}

.size-btn {
    flex: 1;
    padding: 8px 4px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.size-btn.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

.specifications {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.7;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 16px;
}

.add-to-cart-btn:hover {
    background: #7c3aed;
}

/* Scrollbar Styles */
.secondary-sidebar-content::-webkit-scrollbar,
.right-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.secondary-sidebar-content::-webkit-scrollbar-track,
.right-sidebar-content::-webkit-scrollbar-track {
    background: #f9fafb;
}

.secondary-sidebar-content::-webkit-scrollbar-thumb,
.right-sidebar-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.secondary-sidebar-content::-webkit-scrollbar-thumb:hover,
.right-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}