/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Mobile-first responsive design */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text h1 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.logo-text p {
    color: #6b7280;
    margin: 0;
    font-size: 0.875rem;
}

.price-section {
    text-align: right;
}

.price-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: #7c3aed;
    margin: 0;
}

/* Progress Bar Styles */
.progress-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.progress-step {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.progress-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.progress-circle.active {
    background-color: #7c3aed;
    color: white;
}

.progress-circle.inactive {
    background-color: #e5e7eb;
    color: #6b7280;
}

.progress-line {
    width: 3rem;
    height: 0.25rem;
    margin: 0 0.5rem;
}

.progress-line.completed {
    background-color: #7c3aed;
}

.progress-line.incomplete {
    background-color: #e5e7eb;
}

.progress-title {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1rem;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.product-card {
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.product-name {
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.product-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.product-price {
    color: #7c3aed;
    font-weight: 600;
}

/* Size Selection */
.size-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.size-option {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.size-option:hover,
.size-option.selected {
    border-color: #7c3aed;
    background-color: #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.size-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-name {
    font-weight: 600;
    font-size: 1.125rem;
}

.size-multiplier {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Material Grid */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.material-card {
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
}

.material-card:hover,
.material-card.selected {
    border-color: #7c3aed;
    background-color: #f9fafb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.material-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.material-icon {
    font-size: 1.875rem;
}

.material-name {
    font-weight: bold;
    font-size: 1.25rem;
}

.material-desc {
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.material-price {
    color: #7c3aed;
    font-weight: 600;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.color-option {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-option:hover,
.color-option.selected {
    border-color: #7c3aed;
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.color-swatch {
    width: 100%;
    height: 5rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #d1d5db;
}

.color-name {
    font-weight: 600;
    text-align: center;
    font-size: 0.875rem;
}

/* Extras Grid */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.extra-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.extra-option:hover,
.extra-option.selected {
    border-color: #7c3aed;
    background-color: #f9fafb;
}

.extra-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.extra-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #7c3aed;
}

.extra-name {
    font-weight: 600;
}

.extra-price {
    color: #7c3aed;
    font-weight: 600;
}

/* Summary Styles */
.summary-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4c1d95;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #d1d5db;
    margin-bottom: 0.75rem;
}

.summary-label {
    font-weight: 600;
}

.summary-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-indicator {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
}

.extras-list {
    margin-top: 0.5rem;
}

.extras-list li {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.total-section {
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.total-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.25rem;
    font-weight: 600;
}

.total-price {
    font-size: 2.5rem;
    font-weight: bold;
}

.total-note {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Info Box */
.info-box {
    background: #dbeafe;
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 1.5rem;
}

.info-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-list {
    margin: 0;
    padding-left: 1rem;
}

.info-list li {
    margin-bottom: 0.25rem;
}

/* Buttons */
.btn {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #7c3aed;
    color: white;
}

.btn-primary:hover {
    background-color: #6d28d9;
}

.btn-success {
    background-color: #059669;
    color: white;
}

.btn-success:hover {
    background-color: #047857;
}

.btn-secondary {
    border: 2px solid #d1d5db;
    color: #374151;
    background-color: white;
}

.btn-secondary:hover {
    background-color: #f9fafb;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navigation {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.navigation .btn {
    flex: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }

    .header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .price-value {
        font-size: 1.75rem;
    }

    .progress-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .progress-bar {
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .progress-circle {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }

    .progress-line {
        width: 1.5rem;
        margin: 0 0.25rem;
    }

    .progress-title {
        font-size: 1rem;
        margin-top: 0.75rem;
    }

    .main-content {
        padding: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .product-card {
        padding: 1rem;
        text-align: center;
    }

    .product-icon {
        font-size: 2.5rem;
    }

    .material-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .color-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .color-swatch {
        height: 3rem;
    }

    .extras-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .total-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .total-price {
        font-size: 2rem;
    }

    .navigation {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        align-items: stretch;
    }

    .price-section {
        text-align: center;
    }

    .progress-circle {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.625rem;
    }

    .progress-line {
        width: 1rem;
        margin: 0 0.125rem;
    }

    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
