* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.products-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.products-grid-second-row {
    justify-content: center;
    margin-bottom: 40px;
}

.product-card {
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    flex: 1;
    min-width: 120px;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #f0f0f0;
}

.product-card.selected {
    border-color: #10AB96;
    border-width: 6px;
}

.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.order-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.order-section.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.tag-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 35px;
    margin-top: 25px;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tag-section.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.tag-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: left;
}

.tag-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #333;
    font-size: 1rem;
}

.tag-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #10AB96;
}

.tag-option span {
    user-select: none;
}

#customTagGroup {
    max-width: 600px;
    margin-top: 15px;
}

.selected-product {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.selected-product span {
    color: #10AB96;
    font-weight: 600;
}

.customization-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 25px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.customization-section.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.customization-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: left;
}

.customization-split-container {
    display: flex;
    gap: 30px;
}

.customization-split-container.accessories-only {
    justify-content: flex-start;
}

.customization-column {
    flex: 1;
}

.customization-column:only-child {
    flex: 1;
    max-width: 100%;
}

#accessoriesColumn {
    display: none;
    border-left: 1px solid #e0e0e0;
    padding-left: 30px;
}

#accessoriesColumn.visible {
    display: block;
}

#accessoriesColumn.full-width {
    flex: 1;
    max-width: 100%;
    border-left: none;
    padding-left: 0;
}

.customization-split-container.accessories-only #productsColumn {
    display: none;
}

#accessoriesColumn.full-width .customization-row {
    justify-content: center;
}

#accessoriesColumn.full-width .quantity-group {
    flex: 0 0 auto;
    max-width: none;
}

#customizationFields {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.product-customization-container {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.product-customization-container:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-title {
    color: #10AB96;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.customization-fields-container {
    margin-top: 15px;
}

#orderForm {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.customization-row .quantity-group {
    flex: 0 0 150px;
    max-width: 150px;
}

.customization-row .form-group:not(.quantity-group) {
    flex: 1;
}

.quantity-controls {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    height: 44.5px;
}

.quantity-btn {
    background: #10AB96;
    color: #fff;
    border: none;
    padding: 0;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    min-width: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.quantity-btn:hover {
    background: #0d9680;
}

.quantity-btn:active {
    background: #0a7a68;
}

.delete-btn {
    background: #e94560 !important;
}

.delete-btn:hover {
    background: #c23a51 !important;
}

.delete-btn:active {
    background: #a02e42 !important;
}

.delete-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.quantity-controls input {
    flex: 1;
    border: none !important;
    text-align: center;
    padding: 12px 8px;
    font-size: 1rem;
    background: #fff;
    color: #333;
    min-width: 50px;
    height: 100%;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-controls input::-webkit-outer-spin-button,
.quantity-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-controls input:focus {
    border: none !important;
    box-shadow: none;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: #333;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #10AB96;
    box-shadow: 0 0 0 3px rgba(16, 171, 150, 0.2);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.submit-section {
    margin-top: 25px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.submit-section.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#createOrderBtn {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: #10AB96;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#createOrderBtn:hover {
    background: #0d9680;
    box-shadow: 0 6px 20px rgba(16, 171, 150, 0.3);
}

#createOrderBtn:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        gap: 10px;
    }
    
    .product-card {
        min-width: 80px;
    }
    
    .product-card img {
        height: 100px;
    }
    
    .customization-section,
    .order-section,
    .tag-section {
        padding: 25px 20px;
    }
    
    .tag-options {
        flex-direction: column;
        gap: 15px;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.modal-overlay.visible .modal {
    transform: scale(1);
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: #10AB96;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
}

.modal-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-message {
    color: #10AB96;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.modal-btn {
    background: #10AB96;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.modal-btn:hover {
    background: #0d9680;
    box-shadow: 0 6px 20px rgba(16, 171, 150, 0.3);
}

