* {
    box-sizing: border-box;
}

/* Direct Design Body Styles - High specificity to override modern layout */
/* Target body when design-container exists - using high specificity */
html body.direct-design-body,
body.direct-design-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f5f5f5 !important;
    color: #222 !important;
    padding-top: 80px !important;
    /* Space for fixed navbar */
    overflow-x: hidden !important;
}

/* Ensure main tag doesn't interfere with direct design */
body.direct-design-body main {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    min-height: auto !important;
}

/* Fallback: if body doesn't have class, target via design-container parent */
.design-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation Styles */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 800;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    font-size: 2.5rem !important;
}

.navbar-brand img {
    border-radius: 8px;
    object-fit: contain;
    height: 60px !important;
}

.nav-link {
    font-weight: 500;
    color: #000000 !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    color: #ffd700 !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffd700 !important;
}

.nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    transition: width 0.3s ease;
}

.nav-link:not(.dropdown-toggle):hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown-toggle::after {
    display: inline-block !important;
    margin-left: 0.35em !important;
    vertical-align: 0.255em !important;
    content: "" !important;
    border-top: 0.3em solid !important;
    border-right: 0.3em solid transparent !important;
    border-bottom: 0 !important;
    border-left: 0.3em solid transparent !important;
    position: relative !important;
    top: 0 !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #ffd700;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Base font-size chỉ áp dụng cho design container để không ảnh hưởng header/footer */
.design-container {
    display: flex;
    height: calc(100vh - 80px);
    background: #fff;
    width: 100%;
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    /* Font size chỉ áp dụng cho phần design container */
}

/* Left Sidebar - Design Tools */
.left-sidebar {
    width: 300px;
    background: #fff;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    padding: 15px;
}

.sidebar-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.sidebar-tab {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}

.sidebar-tab.active {
    color: #19a3ff;
    border-bottom-color: #19a3ff;
    font-weight: 600;
}

.tool-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #333;
}

.tool-item:hover {
    background: #f0f0f0;
}

.tool-item.active {
    background: #e7f3ff;
    color: #19a3ff;
}

.tool-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.layers-panel {
    margin-top: 20px;
    background: #f8f8f8;
    border-radius: 6px;
    overflow: hidden;
}

.layers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f0f0f0;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #ddd;
}

.layers-header:hover {
    background: #e8e8e8;
}

.layers-header-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.layers-header-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s;
}

.layers-header.collapsed .layers-header-icon {
    transform: rotate(-90deg);
}

.layers-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.layers-list.empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.layer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin-bottom: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.layer-item:hover {
    background: #f5f5f5;
    border-color: #19a3ff;
}

.layer-item.active {
    background: #e7f3ff;
    border-color: #19a3ff;
}

.layer-item.dragging {
    opacity: 0.5;
}

.layer-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #ddd;
}

.layer-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layer-thumbnail.text-icon {
    font-size: 20px;
    color: #666;
    background: #e8f4fd;
}

.layer-thumbnail.image-icon {
    font-size: 20px;
    color: #666;
    background: #f0f0f0;
}

.layer-info {
    flex: 1;
    min-width: 0;
}

.layer-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layer-type {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.layer-actions {
    display: flex;
    gap: 5px;
    opacity: 1;
    /* Always visible */
}

.layer-action-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
}

.layer-action-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.layer-action-btn.toggle-visibility {
    color: #666;
}

.layer-action-btn.toggle-visibility:hover {
    background: #e3f2fd;
    color: #1976d2;
}

.layer-action-btn.delete:hover {
    background: #ffebee;
    color: #f44336;
}

.layer-item[style*="opacity: 0.5"] {
    opacity: 0.5 !important;
}

.layer-drag-handle {
    cursor: move;
    color: #999;
    font-size: 16px;
    padding: 0 5px;
}

.layer-drag-handle:hover {
    color: #333;
}

/* Center Canvas Area */
.center-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.top-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}

.toolbar-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #19a3ff;
    color: #19a3ff;
}

.toolbar-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.toolbar-btn.active {
    background: #19a3ff;
    border-color: #19a3ff;
    color: #fff;
}

.toolbar-btn.active:hover {
    background: #0d8ce8;
    border-color: #0d8ce8;
}

.main-canvas-wrapper {
    flex: 1;
    display: flex;
    padding: 35px;
    position: relative;
    overflow: auto;
    /* Allow scrolling */
    min-height: 0;
}

.canvas-inner-centered {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#tshirt-canvas {
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: crosshair;
    /* CRITICAL: Do not set max-width/height or height: auto, as it overrides the canvas pixel dimensions */
    max-width: none !important;
    max-height: none !important;
    /* width: auto !important; remove this to respect attribute */
    /* height: auto !important; remove this to respect attribute */
    display: block;
    /* Remove inline spacing */
}

/* Ensure the wrapping canvas-container from Fabric also doesn't restrict it */
.canvas-container {
    background-color: #fff !important;
    /* Match canvas bg */
    max-width: none !important;
    max-height: none !important;
    position: relative !important;
    /* Fabric needs this */
}

/* Specific styling for Fabric's canvas elements to prevent global CSS interference */
.canvas-container canvas {
    max-width: none !important;
    max-height: none !important;
}

.view-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
    align-items: center;
}

.view-btn {
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
    min-width: 80px;
    white-space: nowrap;
    flex-shrink: 0;
}

.view-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.view-btn:hover {
    border-color: #19a3ff;
}

/* Right Sidebar - Product Options */
.right-sidebar {
    width: 300px;
    background: #fff;
    border-left: 1px solid #ddd;
    overflow-y: auto;
    padding: 20px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.product-name {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #f8f8f8;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    text-indent: -9999px;
    font-size: 0;
    line-height: 0;
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-swatch.active {
    border-color: #19a3ff;
    border-width: 3px;
}

.color-swatch.active::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    text-indent: 0;
    font-size: 16px;
    line-height: 1;
}

.size-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.size-inputs.size-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.size-inputs>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 70px;
}

.size-input {
    width: 60px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
}

.size-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
    display: block;
    font-weight: 500;
}

.size-swatch {
    width: 100%;
    min-height: 60px;
    border-radius: 8px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    background: #fff;
    text-align: center;
}

.size-swatch:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.size-swatch.active {
    border-color: #19a3ff;
    border-width: 3px;
    background: #f0f8ff;
}

.size-swatch.active::after {
    content: '\2713';
    position: absolute;
    top: 4px;
    right: 4px;
    color: #19a3ff;
    font-weight: bold;
    font-size: 14px;
}

.size-swatch-label {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
}

.size-swatch-price {
    font-size: 11px;
    color: #666;
}

.collapsible-section {
    margin-bottom: 15px;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.collapsible-content {
    display: none;
    padding: 10px;
    font-size: 13px;
    color: #666;
}

.collapsible-section.active .collapsible-content {
    display: block;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 6px;
    margin-bottom: 15px;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.refresh-icon {
    cursor: pointer;
    color: #666;
    font-size: 18px;
}

.avg-price {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.buy-now-btn {
    width: 100%;
    padding: 15px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.buy-now-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Modal Styles - Direct Design Specific - High specificity to override modern layout */
#product-select-modal.modal-overlay,
#my-designs-modal.modal-overlay,
#design-name-modal.modal-overlay,
#auth-modal.modal-overlay,
.modal-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 10000 !important;
    /* Higher than modern layout header (1000) */
    justify-content: center !important;
    align-items: center !important;
}

/* Active state must have higher specificity than base state */
#product-select-modal.modal-overlay.active,
#my-designs-modal.modal-overlay.active,
#design-name-modal.modal-overlay.active,
#auth-modal.modal-overlay.active,
.modal-overlay.active {
    display: flex !important;
}

/* Direct Design Modal Content - Override modern layout styles */
#product-select-modal .modal-content,
#my-designs-modal .modal-content,
#design-name-modal .modal-content,
#auth-modal .modal-content,
.modal-overlay .modal-content {
    background: #fff !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 700px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    /* Override modern layout flex styles - Always column, never row */
    display: flex !important;
    flex-direction: column !important;
}

/* Override modern layout media query that changes flex-direction to row */
@media (min-width: 768px) {

    #product-select-modal .modal-content,
    #my-designs-modal .modal-content,
    #design-name-modal .modal-content,
    #auth-modal .modal-content,
    .modal-overlay .modal-content {
        flex-direction: column !important;
        max-height: 90vh !important;
    }
}

/* Direct Design Modal Header - Override modern layout */
.modal-overlay .modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 25px !important;
    border-bottom: 1px solid #eee !important;
    position: relative !important;
}

.modal-overlay .modal-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
    /* Override modern layout absolute positioning for image modal */
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    z-index: auto !important;
}

/* Override h2 typography from modern layout */
.modal-overlay h2.modal-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #333 !important;
}

.modal-overlay .modal-close {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    color: #999 !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s !important;
    /* Override modern layout absolute positioning */
    position: static !important;
    top: auto !important;
    right: auto !important;
    z-index: auto !important;
}

.modal-overlay .modal-close:hover {
    background: #f0f0f0 !important;
    color: #333 !important;
}

.modal-overlay .modal-body {
    padding: 25px !important;
}

/* Direct Design Modal Form Elements */
.modal-overlay .modal-category-select {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    margin-bottom: 25px !important;
    background: #fff !important;
    cursor: pointer !important;
}

.modal-overlay .product-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 25px !important;
}

.modal-overlay .product-card {
    border: 2px solid #ddd !important;
    border-radius: 10px !important;
    padding: 20px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    background: #fff !important;
    text-align: center !important;
}

.modal-overlay .product-card:hover {
    border-color: #19a3ff !important;
    box-shadow: 0 4px 12px rgba(25, 163, 255, 0.2) !important;
}

.modal-overlay .product-card.selected {
    border-color: #19a3ff !important;
    background: #e7f3ff !important;
    box-shadow: 0 4px 12px rgba(25, 163, 255, 0.3) !important;
}

.modal-overlay .product-card-image {
    width: 100% !important;
    height: 250px !important;
    background: #f5f5f5 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 15px !important;
    font-size: 48px !important;
    color: #ccc !important;
    overflow: hidden !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}

.modal-overlay .product-card-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}

.modal-overlay .product-card-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.modal-overlay .modal-footer {
    padding: 20px 25px !important;
    border-top: 1px solid #eee !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.modal-overlay .modal-btn {
    padding: 10px 24px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.modal-overlay .modal-btn-close {
    background: #f0f0f0 !important;
    color: #333 !important;
}

.modal-overlay .modal-btn-close:hover {
    background: #e0e0e0 !important;
}

.modal-overlay .modal-btn-confirm {
    background: #19a3ff !important;
    color: #fff !important;
}

.modal-overlay .modal-btn-confirm:hover {
    background: #0d8ce8 !important;
}

/* Edit Text Popup Styles */
.edit-text-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.edit-text-modal.active {
    display: flex;
}

.edit-text-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.edit-text-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.edit-text-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.edit-text-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.edit-text-close:hover {
    background: #f0f0f0;
    color: #333;
}

.edit-text-body {
    padding: 20px;
}

.edit-text-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 20px;
    resize: vertical;
    min-height: 80px;
}

.edit-text-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.edit-text-label {
    font-size: 13px;
    color: #666;
    min-width: 100px;
}

.edit-text-select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-input {
    width: 50px;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}

.style-buttons {
    display: flex;
    gap: 8px;
}

.style-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
}

.style-btn:hover {
    background: #f0f0f0;
}

.style-btn.active {
    background: #19a3ff;
    color: #fff;
    border-color: #19a3ff;
}

.align-buttons {
    display: flex;
    gap: 8px;
}

.align-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.align-btn:hover {
    background: #f0f0f0;
}

.align-btn.active {
    background: #19a3ff;
    color: #fff;
    border-color: #19a3ff;
}

.dimension-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    flex: 1;
    min-width: 0;
}

.dimension-input {
    width: 80px;
    min-width: 60px;
    max-width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    flex-shrink: 0;
}

.dimension-label {
    font-size: 12px;
    color: #666;
    min-width: 30px;
    white-space: nowrap;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.number-input-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.number-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.number-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.arrow-btn {
    width: 20px;
    height: 15px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border-radius: 3px;
}

.arrow-btn:hover {
    background: #f0f0f0;
}

.refresh-icon-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: 5px;
}

.refresh-icon-btn:hover {
    background: #f0f0f0;
}

/* Upload Image Modal Styles */
.upload-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    justify-content: center;
    align-items: center;
}

.upload-image-modal.active {
    display: flex;
}

.upload-image-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.upload-image-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

/* Override modal-title styles for upload image modal */
.upload-image-modal .modal-title,
.upload-image-header .modal-title,
.upload-image-modal h2.modal-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
    /* Override modern layout absolute positioning for image modal */
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    z-index: auto !important;
    line-height: 1.2 !important;
}

/* Override modal-close button styles for upload image modal */
.upload-image-modal .modal-close,
.upload-image-header .modal-close {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    color: #999 !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s !important;
    /* Override modern layout absolute positioning */
    position: static !important;
    top: auto !important;
    right: auto !important;
    z-index: auto !important;
}

.upload-image-modal .modal-close:hover,
.upload-image-header .modal-close:hover {
    background: #f0f0f0 !important;
    color: #333 !important;
}

.upload-image-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    padding: 0 20px;
}

.upload-image-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.upload-image-tab.active {
    color: #ff0000;
    border-bottom-color: #ff0000;
}

.upload-image-body {
    padding: 25px;
}

.upload-tab-content {
    display: none;
}

.upload-tab-content.active {
    display: block;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.file-input-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.file-input-btn:hover {
    background: #e0e0e0;
}

.file-input-text {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #999;
    background: #fff;
}

.file-requirements {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.file-requirements strong {
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.copyright-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.copyright-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.copyright-checkbox label {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

.copyright-link {
    color: #19a3ff;
    text-decoration: underline;
    cursor: pointer;
}

.copyright-link:hover {
    color: #0d8ce8;
}

.copyright-warning {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    padding-left: 28px;
}

.upload-btn {
    width: 100%;
    padding: 12px;
    background: #19a3ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}

.upload-btn:hover:not(:disabled) {
    background: #0d8ce8;
}

.upload-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.uploaded-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.uploaded-image-item {
    aspect-ratio: 1;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.uploaded-image-item:hover {
    border-color: #19a3ff;
    box-shadow: 0 4px 12px rgba(25, 163, 255, 0.2);
}

.uploaded-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uploaded-image-placeholder {
    color: #999;
    font-size: 48px;
}

.image-delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}

.uploaded-image-item:hover .image-delete-btn {
    opacity: 1;
}

/* QR Code Modal Styles */
.qrcode-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.qrcode-create-btn {
    padding: 10px 20px;
    background: #19a3ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    margin-left: auto;
    /* Push button to the right */
}

.qrcode-create-btn:hover {
    background: #0d8ce8;
}

.qrcode-create-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.qrcode-display {
    width: 100%;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    padding: 20px;
}

.qrcode-display canvas,
.qrcode-display img {
    max-width: 100%;
    height: auto;
}

.qrcode-display.empty {
    color: #999;
    font-size: 14px;
}

/* Add Art Modal Styles */
.add-art-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    min-height: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.add-art-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.add-art-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.add-art-menu-btn {
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.add-art-menu-btn:hover {
    background: #e0e0e0;
}

.add-art-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.add-art-search-btn {
    padding: 10px 20px;
    background: #19a3ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.add-art-search-btn:hover {
    background: #0d8ce8;
}

.add-art-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.add-art-sidebar {
    width: 250px;
    background: #f8f8f8;
    border-right: 1px solid #eee;
    overflow-y: auto;
    padding: 15px 0;
    transition: width 0.3s, opacity 0.3s;
}

.add-art-sidebar.hidden {
    width: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
}

.add-art-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.add-art-category {
    padding: 12px 20px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.add-art-category:hover {
    background: #f0f0f0;
    color: #333;
}

.add-art-category.active {
    background: #e7f3ff;
    color: #19a3ff;
    border-left-color: #19a3ff;
    font-weight: 600;
}

.add-art-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.add-art-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 150px));
    gap: 15px 15px;
    row-gap: 5px;
    padding: 20px;
    overflow-y: auto;
    justify-content: start;
    align-content: start;
}

.add-art-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    width: 150px;
    height: auto;
    align-self: start;
}

.add-art-item:hover {
    border-color: #19a3ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.add-art-item-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #f5f5f5;
}

.add-art-item-info {
    padding: 10px;
}

.add-art-item-text {
    font-size: 12px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.add-art-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #19a3ff;
}

.add-art-show-more {
    margin: 20px auto;
    padding: 12px 30px;
    background: #19a3ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.add-art-show-more:hover {
    background: #0d8ce8;
}

/* Review Modal Styles */
.review-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.review-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.review-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 20px;
    padding: 20px;
}

.review-preview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.review-canvas-wrapper {
    background: #f5f5f5;
    border-radius: 8px;
    /* padding: 20px; */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

#review-canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-view-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.review-view-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.review-view-btn:hover {
    background: #e0e0e0;
}

.review-view-btn.active {
    background: #19a3ff;
    color: #fff;
    border-color: #19a3ff;
}

.review-info-panel {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid #eee;
    padding-left: 20px;
}

.review-info-section {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.review-info-section:last-child {
    border-bottom: none;
}

.review-info-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.review-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.review-info-item label {
    color: #666;
    font-weight: 500;
}

.review-info-item span {
    color: #333;
}

.review-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 6px;
}

.review-price-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.review-price-value {
    font-size: 20px;
    font-weight: 700;
    color: #19a3ff;
}

.review-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.review-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.review-btn-secondary:hover {
    background: #e0e0e0;
}

.review-btn-primary {
    background: #19a3ff;
    color: #fff;
}

.review-btn-primary:hover {
    background: #0d8ce8;
}

/* My Designs Modal Styles */
.my-design-item {
    transition: all 0.3s ease;
}

.my-design-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.my-design-item .btn {
    border: none;
    cursor: pointer;
}

.my-design-item .btn:hover {
    opacity: 0.9;
}

.my-designs-controls {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.my-designs-controls .form-control {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.my-designs-controls .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.my-designs-controls .btn-primary {
    background: #19a3ff;
    color: white;
}

.my-designs-controls .btn-primary:hover {
    background: #0d8ce8;
}

/* Auth Modal Styles */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    gap: 5px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.auth-tab.active {
    color: #333;
    background: white;
    border-bottom-color: #FFD700;
    border-bottom-width: 3px;
    font-weight: 700;
}

.auth-tab:hover:not(.active) {
    color: #333;
    background: #f0f0f0;
}

.auth-form {
    margin-top: 10px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

/* Form Control - Copy from login page */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    width: 100%;
}

.form-control:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.15);
    background: white;
    transform: translateY(-1px);
    outline: none;
}

.auth-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FF6B35 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.auth-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#auth-error-message {
    display: none;
    padding: 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #c33;
    font-size: 14px;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Large Screens (Scale lớn - > 1400px) */
@media (min-width: 1401px) {
    .design-container {
        width: 100%;
    }

    .canvas-container {
        padding: 50px;
    }

    .view-controls {
        gap: 15px;
        margin-top: 40px;
    }

    .view-btn {
        padding: 12px 24px;
        font-size: 15px;
        min-width: 90px;
    }
}

/* Desktop Standard 1080p (1025px - 1920px) - Kích thước tiêu chuẩn */
@media (min-width: 1025px) and (max-width: 1920px) {
    .design-container {
        height: calc(100vh - 80px);
        overflow: hidden;
        max-height: calc(100vh - 80px);
    }

    .center-area {
        overflow: hidden;
        min-height: 0;
    }

    .canvas-container {
        padding: 25px 20px;
        overflow: hidden;
        max-height: calc(100vh - 80px);
        min-height: 0;
    }

    .view-controls {
        margin-top: 15px;
        gap: 8px;
        flex-shrink: 0;
    }

    .view-btn {
        padding: 8px 14px;
        font-size: 13px;
        min-width: 65px;
    }

    .top-toolbar {
        padding: 8px 15px;
        flex-shrink: 0;
    }

    #tshirt-canvas {
        max-width: 100%;
        max-height: calc(100vh - 250px);
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .left-sidebar,
    .right-sidebar {
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* Desktop (1025px - 1400px) - Default styles apply for larger than 1920px */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .design-container {
        max-width: 100%;
    }

    .left-sidebar {
        width: 250px;
    }

    .right-sidebar {
        width: 250px;
    }

    .canvas-container {
        padding: 30px 20px;
    }

    .view-controls {
        gap: 8px;
        margin-top: 25px;
    }

    .view-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 70px;
    }

    .top-toolbar {
        padding: 8px 15px;
        gap: 8px;
    }

    .toolbar-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .design-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 80px);
    }

    .left-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        max-height: 300px;
        order: 3;
    }

    .center-area {
        order: 1;
        min-height: 400px;
    }

    .right-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #ddd;
        order: 2;
        max-height: 400px;
    }

    .canvas-container {
        padding: 20px 10px;
        min-height: 350px;
    }

    #tshirt-canvas {
        max-width: calc(100% - 20px);
        width: 100%;
        max-height: 500px;
        object-fit: contain;
    }

    .view-controls {
        gap: 6px;
        margin-top: 20px;
        padding: 0 10px;
        width: 100%;
    }

    .view-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 60px;
        flex: 1 1 auto;
        max-width: calc(50% - 3px);
    }

    .top-toolbar {
        padding: 8px 10px;
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .toolbar-btn {
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .toolbar-btn i {
        font-size: 12px;
    }

    .product-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .color-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .review-view-controls {
        gap: 6px;
    }

    .review-view-btn {
        padding: 6px 12px;
        font-size: 12px;
        flex: 1 1 auto;
        max-width: calc(50% - 3px);
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .canvas-container {
        padding: 15px 5px;
    }

    #tshirt-canvas {
        max-width: 100%;
        max-height: 400px;
    }

    .view-controls {
        gap: 5px;
        margin-top: 15px;
    }

    .view-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 55px;
    }

    .top-toolbar {
        padding: 6px 8px;
        gap: 4px;
    }

    .toolbar-btn {
        padding: 5px 8px;
        font-size: 10px;
    }

    .toolbar-btn i {
        font-size: 11px;
    }

    .color-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .color-swatch {
        width: 35px;
        height: 35px;
    }

    .left-sidebar,
    .right-sidebar {
        padding: 10px;
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    .review-view-btn {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 55px;
    }
}

/* Very Large Screens (4K và lớn hơn - > 1920px) */
@media (min-width: 1921px) {
    .design-container {
        width: 100%;
    }

    .canvas-container {
        padding: 60px;
    }

    .view-controls {
        gap: 20px;
        margin-top: 50px;
    }

    .view-btn {
        padding: 14px 28px;
        font-size: 16px;
        min-width: 100px;
    }
}

/* Landscape Orientation on Tablets */
@media (max-width: 1024px) and (orientation: landscape) {

    .left-sidebar,
    .right-sidebar {
        max-height: calc(100vh - 80px);
    }

    .canvas-container {
        min-height: calc(100vh - 200px);
    }
}