/* Auriga Product Builder Styles */
.auriga-product-builder {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background-color: #F9FAFB;
    min-height: calc(100vh - 96px);
}

/* Top Bar */
.auriga-top-bar {
    display: flex;
    flex-direction: row;
	justify-content: center;
    gap: 16px;
    padding: 8px;
    background-color: #ffffff;
    text-align: center;
}

.auriga-mobile-trigger {
    display: none;
}

.auriga-toggle-sidebar {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auriga-toggle-sidebar .nav-icon {
    background: #4B5563;
    display: block;
    height: 2px;
    width: 24px;
    position: relative;
    transition: background .2s ease-out;
}

.auriga-toggle-sidebar .nav-icon:before,
.auriga-toggle-sidebar .nav-icon:after {
    background: #4B5563;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.auriga-toggle-sidebar .nav-icon:before {
    top: 6px;
}

.auriga-toggle-sidebar .nav-icon:after {
    top: -6px;
}

.auriga-toggle-sidebar.active .nav-icon {
    background: transparent;
}

.auriga-toggle-sidebar.active .nav-icon:before {
    transform: rotate(-45deg);
}

.auriga-toggle-sidebar.active .nav-icon:after {
    transform: rotate(45deg);
}

.auriga-toggle-sidebar.active .nav-icon:before,
.auriga-toggle-sidebar.active .nav-icon:after {
    top: 0;
}

.auriga-nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.auriga-nav-link {
    width: 100%;
    max-width: 120px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 20px;
    color: #C8A75E;
    transition: all 0.3s ease;
}

.auriga-nav-link.active {
    background-color: #F4EDDF;
}

.auriga-nav-link:hover {
    background-color: #F4EDDF;
}

/* Main Content */
.auriga-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

/* Left Sidebar */
.auriga-sidebar {
    width: 20%;
    min-width: 320px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    padding: 24px;
    overflow-y: auto;
}

.auriga-accordion {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.auriga-accordion-item {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 24px;
    margin-bottom: 0;
}

.auriga-accordion-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.auriga-accordion-number {
    width: 56px;
    height: 56px;
    background-color: #C8A75E;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
	font-family: 'Arial';
    font-size: 32px;
    margin-right: 15px;
}

.auriga-accordion-title-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.auriga-accordion-title {
    flex: 1;
    font-size: var(--text-24);
    font-weight: 600;
    color: #1F2937;
}

.auriga-accordion-icon,
.auriga-accordion-icon svg {
    width: 24px;
    height: 24px;
}

.auriga-accordion-icon {
    transition: transform 0.3s ease;
}

.auriga-accordion-item.active .auriga-accordion-icon {
    transform: rotate(180deg);
}

.auriga-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.auriga-accordion-item.active .auriga-accordion-content {
    max-height: 1000px;
    padding-top: 24px;
}

/* Model List */
.auriga-model-list,
.auriga-trim-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auriga-model-item,
.auriga-trim-item {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auriga-model-item:hover,
.auriga-trim-item:hover {
    background-color: #FAF6EF;
    border-color: #d4af37;
}

.auriga-model-item.active,
.auriga-trim-item.active {
    background-color: #FAF6EF;
}

.auriga-model-thumb,
.auriga-trim-thumb {
    width: 80px;
    height: 80px;
    margin-right: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auriga-model-thumb img,
.auriga-trim-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auriga-model-title {
    flex: 1;
    font-size: var(--text-18);
    font-weight: 500;
    color: #1F2937;
}

.auriga-model-check,
.auriga-trim-check {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auriga-model-item.active .auriga-model-check,
.auriga-trim-item.active .auriga-trim-check {
    opacity: 1;
}

/* Main Canvas */
.auriga-canvas {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auriga-product-image {
    max-width: 100%;
    max-height: 100%;
    text-align: center;
}

.auriga-product-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.auriga-placeholder {
    width: 400px;
    height: 300px;
    background-color: #f0f0f0;
    border: 2px dashed #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-size: var(--text-16);
}

/* Bottom Bar */
.auriga-bottom-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    background-color: #ffffff;
    padding: 16px;
}

.auriga-btn {
    width: 100%;
    max-width: 200px;
    padding: 16px 24px;
    font-size: var(--text-16);
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.auriga-btn-secondary {
    background-color: #FAF6EF;
    color: #C8A75E;
}

.auriga-btn-secondary:hover {
    background-color: #C8A75E;
    color: #ffffff;
}

.auriga-btn-primary {
    background-color: #C8A75E;
    color: #ffffff;
}

.auriga-btn-primary:hover {
    background-color: #C8A75E;
}

/* Loading States */
.auriga-loading {
    opacity: 0.6;
    pointer-events: none;
}

.auriga-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #d4af37;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Prevent body scroll when sidebar is open on mobile */
body.auriga-sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auriga-sidebar {
        position: absolute;
        top: 56px;
        left: 0;
        z-index: 20;
        transform: translateX(-350px);
        width: 100%;
        height: calc(100% - 56px);
        max-width: 350px;
        transition: transform .3s ease;
    }

    .auriga-sidebar.active {
        transform: translateX(0);
    }

    .auriga-mobile-trigger {
        display: flex;
    }

    .auriga-top-bar {
        justify-content: flex-start;
    }

    .auriga-btn {
        flex: 1;
        padding: 12px;
    }
}

/* Custom Scrollbar */
.auriga-sidebar::-webkit-scrollbar {
    width: 6px;
}

.auriga-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.auriga-sidebar::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 3px;
}

.auriga-sidebar::-webkit-scrollbar-thumb:hover {
    background: #c19b2a;
}

/* Color & Trim Tabs */
.auriga-color-tabs,
.auriga-trim-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auriga-color-tab,
.auriga-trim-tab {
    padding: 2px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #C8A75E;
    background-color: #F4EDDF;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.auriga-color-tab:hover,
.auriga-trim-tab:hover {
    color: #fff;
    background-color: #C8A75E;
}

.auriga-color-tab.active,
.auriga-trim-tab.active {
    color: #ffffff;
    background-color: #C8A75E;
}

/* Color Content */
.auriga-color-content,
.auriga-trim-content {
    margin-top: 24px;
}

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

.auriga-color-swatch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auriga-color-swatch:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auriga-color-circle {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    transition: all 0.3s ease;
}

.auriga-color-circle.active {
    border-color: #C8A75E;
    box-shadow: 0 0 0 3px rgba(200, 167, 94, 0.3);
}

.auriga-color-check {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #C8A75E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auriga-color-swatch.active .auriga-color-check {
    opacity: 1;
}

.auriga-color-check svg {
    width: 12px;
    height: 12px;
}

.auriga-color-name {
    position: absolute;
    left: 50%;
    bottom: 3px;
    transform: translateX(-50%);
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
}

/* Loading state for colors */
.auriga-color-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #666666;
    font-style: italic;
}

.auriga-color-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #d4af37;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* No colors message */
.auriga-no-colors {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 40px 20px;
}

/* Trim Tabs */
.auriga-accordion-item--trim .auriga-trim-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.auriga-accordion-item--trim .auriga-trim-tab {
    position: relative;
    padding: 0;
    background-color: transparent;
    text-align: center;
    white-space: normal;
}

.auriga-trim-tab.active .auriga-color-check {
    opacity: 1;
}

.auriga-accordion-item--trim .auriga-trim-tabs .auriga-trim-name {
    position: absolute;
    bottom: 3px;
	left: 50%;
	transform: translateX(-50%);
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    line-height: 1.1;
}

/* Trim Content */
.auriga-trim-item {
    padding: 10px;
}

.auriga-trim-item .auriga-trim-thumb {
    height: auto;
}

.auriga-trim-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #666666;
    font-size: 12px;
    text-align: center;
}

.auriga-trim-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
    color: #1F2937;
}

.auriga-trim-item .auriga-trim-check {
    margin-right: 0;
}

/* Loading state for trim */
.auriga-trim-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #666666;
    font-style: italic;
}

.auriga-trim-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #d4af37;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* No trim message */
.auriga-no-trims {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 40px 20px;
}

/* Cooktop Items */
.auriga-cooktop-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auriga-cooktop-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auriga-cooktop-item:hover {
    background-color: #FAF6EF;
    border-color: #C8A75E;
    box-shadow: 0 2px 8px rgba(200, 167, 94, 0.1);
}

.auriga-cooktop-item.active {
    background-color: #FAF6EF;
}

.auriga-cooktop-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 16px;
    overflow: hidden;
}

.auriga-cooktop-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auriga-cooktop-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auriga-cooktop-name {
    font-size: var(--text-18);
    font-weight: 600;
    color: #1F2937;
    line-height: 1.2;
}

.auriga-cooktop-description {
    font-size: 14px;
    line-height: 1.2;
}

.auriga-cooktop-description ul {
    margin: 0;
    padding-left: 16px;
    list-style-type: disc;
}

.auriga-cooktop-description li {
    margin-bottom: 2px;
}

.auriga-cooktop-check {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.auriga-cooktop-item.active .auriga-cooktop-check {
    opacity: 1;
}

/* Loading state for cooktop */
.auriga-cooktop-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #666666;
    font-style: italic;
}

.auriga-cooktop-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #C8A75E;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* No cooktop message */
.auriga-no-cooktops {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 40px 20px;
}

/* Responsive Style */
@media (max-width: 768px) {
	.auriga-accordion {
		gap: 16px;
	}
	
	.auriga-accordion-item {
		padding-bottom: 16px;
	}
	
	.auriga-accordion-item.active .auriga-accordion-content {
		padding-top: 12px;
	}
	
	.auriga-model-list, 
	.auriga-trim-items {
		gap: 8px;
	}
	
	.auriga-model-thumb, 
	.auriga-trim-thumb,
	.auriga-cooktop-preview {
		width: 60px;
		height: 60px;
	}
	
	.auriga-color-content, 
	.auriga-trim-content {
		margin-top: 12px;
	}
}

/* Print Styles */
@media print {
    .print-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 30px;
        border-bottom: 2px solid #C8A75E;
        padding-bottom: 20px;
    }

    .print-logo {
        max-width: 150px;
        height: auto;
    }

    .print-title-section h1 {
        margin: 0;
        color: #C8A75E;
        font-size: 28px;
        font-weight: bold;
    }

    .print-title-section .date {
        margin: 5px 0 0 0;
        color: #666;
        font-size: 14px;
    }

    .print-trim-image {
        text-align: center;
        margin: 30px 0;
    }

    .print-trim-image img {
        max-width: 100%;
        max-height: 400px;
        object-fit: contain;
    }

    .print-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-top: 30px;
    }

    .print-section {
        border: 1px solid #ddd;
        padding: 20px;
    }

    .print-section h3 {
        margin: 0 0 15px 0;
        color: #C8A75E;
        font-size: 18px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .print-item {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

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

    .print-item img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin-right: 15px;
        border: 1px solid #ddd;
    }

    .print-item .item-info h4 {
        margin: 0 0 5px 0;
        font-size: 16px;
        color: #333;
    }

    .print-item .item-info p {
        margin: 0;
        color: #666;
        font-size: 14px;
    }

    .color-preview-img {
        width: 60px;
        height: 60px;
        margin-right: 15px;
        border: 1px solid #ddd;
    }
}