* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #0073AE 0%, #005A8C 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 30px 20px;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.logo-letter {
    width: 60px;
    height: 60px;
    background: #0073AE;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.logo-products {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 5px;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
    text-align: center;
}

h2 {
    color: #0073AE;
    margin: 25px 0 15px 0;
    font-size: 18px;
    border-bottom: 2px solid #0073AE;
    padding-bottom: 6px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
    font-size: 13px;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0073AE;
    box-shadow: 0 0 0 3px rgba(0, 115, 174, 0.1);
}

textarea {
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.product-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.product-section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, #d0d0d0 20%, #d0d0d0 80%, transparent);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-header h3 {
    color: #333;
    font-size: 14px;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: #c82333;
}

.product-section .form-group {
    margin-bottom: 10px;
}

.product-section label {
    font-size: 12px;
}

.product-section input,
.product-section select,
.product-section textarea {
    padding: 8px;
    font-size: 13px;
}

.product-section textarea {
    min-height: 50px;
}

.btn-add {
    background: #0073AE;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 8px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.btn-add:hover {
    background: #005A8C;
}

.btn-submit {
    background: linear-gradient(135deg, #0073AE 0%, #005A8C 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 25px;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 115, 174, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.category-container {
    margin-bottom: 20px;
}

.category-title {
    color: #333;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
}

.success-message {
    background: #10b981;
    color: white;
    padding: 14px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.error-message {
    background: #ef4444;
    color: white;
    padding: 14px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .logo-letter {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}

/* -----------------------  Image Upload  ---------------------------*/
.size-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 200px;
}
.size-indicator.warning {
    border-color: #ff9800;
    background-color: #fff3e0;
}
.size-indicator.error {
    border-color: #f44336;
    background-color: #ffebee;
}
.size-text {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}
.size-limit {
    font-size: 12px;
    color: #666;
}
.photo-upload-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}
.photo-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.photo-preview {
    position: relative;
    max-width: 120px;
    max-height: 120px;
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-size {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 10px;
    padding: 3px;
    text-align: center;
}
.add-photo-btn {
    background: #00000000;
    color: #0073AE;
    border: 3px #0073AE solid;
    padding: 8px 13px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}
.add-photo-btn:hover {
    color: white;
    background: #005A8C;
    border: 3px #005A8C solid;
}