/* Page Header Styles for Shop Registration */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0 60px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,0 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.page-header .header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.page-header .btn-light {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header .btn-light:hover {
    background: white;
    border-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.page-header .btn-light i {
    font-size: 1.1rem;
}

/* Responsive adjustments for page header */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header .header-actions {
        justify-content: center;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1.1rem;
    }
    
    .page-header .btn-light {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 50px 0 30px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
}

.register-hero {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    color: white;
    padding: 100px 0 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.register-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,0 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.register-hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.register-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.register-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 3px solid #FFC107;
}

.qr-container {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.qr-code {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 3px solid #FFC107;
    padding: 10px;
    background: white;
}

.step-number {
    background: #FFC107;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.step-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
    border: 2px solid #eee;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: #FFC107;
}

.step-icon {
    font-size: 3rem;
    color: #FFC107;
    margin-bottom: 1rem;
}

.step-title {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.step-desc {
    color: #666;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
}

.benefit-icon {
    font-size: 2rem;
    color: #FFC107;
    margin-right: 1rem;
    min-width: 60px;
}

.benefit-text {
    flex: 1;
}

.benefit-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.benefit-desc {
    color: #666;
    font-size: 0.9rem;
}

.register-cta {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.referral-info {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.referral-title {
    color: #1976d2;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.referral-title i {
    margin-right: 0.5rem;
}

.referral-desc {
    color: #1565c0;
    margin: 0;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.instruction-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #FFC107;
}

.instruction-number {
    background: #FFC107;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.instruction-text {
    flex: 1;
    color: #333;
    line-height: 1.5;
}

.url-display {
    background: #f8f9fa;
    border: 2px dashed #FFC107;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 0.9rem;
    color: #666;
    word-break: break-all;
}

.copy-button {
    background: #FFC107;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: #e0a800;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .register-card {
        padding: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* Gift & Give Brand Color Schema Integration */
body {
    font-family: 'Prompt', 'Sarabun', 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
}

.registration-container {
    background: var(--gradient-bg-section);
    min-height: 80vh;
    padding: 2rem 0;
}

.form-wrapper {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-card);
    border: 1px solid var(--border-primary);
    transition: var(--transition);
}

/* Compact step indicator using color-schema */
.step-indicator {
    background: var(--bg-tertiary);
    border-bottom: 1.5px solid var(--brand-orange);
    color: var(--text-primary);
    padding: 1.2rem 1rem 1rem;
    text-align: center;
    margin-bottom: 1.2rem;
}
.progress-indicator {
    background: var(--bg-secondary);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.progress-bar {
    background: var(--brand-orange);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 2px;
}
.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.7rem;
}
.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--border-primary);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.step.active {
    background: var(--bg-primary) !important;
    color: var(--brand-orange) !important;
    border: 2px solid var(--brand-orange) !important;
}
.step.completed {
    background: var(--success-primary) !important;
    color: #fff !important;
    border: 2px solid var(--success-primary) !important;
}
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2.5px;
    background: var(--brand-orange);
    border-radius: 2px;
    z-index: 0;
}
.step-indicator h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.2rem 0 0.1rem 0;
    color: var(--text-primary);
}
.step-indicator p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 0.2rem 0;
}
.form-content {
    padding: 2.5rem;
}

.form-section { 
    display: none; 
    animation: fadeIn 0.3s ease-in;
}

.form-section.active { 
    display: block; 
}

/* Step content styling */
#step1, #step2, #step3, #step4 {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

#step1.active, #step2.active, #step3.active, #step4.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-orange);
}

.section-icon {
    background: var(--gradient-brand-primary);
    color: var(--brand-orange);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.1rem;
    box-shadow: var(--box-shadow);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: var(--error-primary);
    font-weight: 600;
}

.form-control, .form-select {
    border: 2px solid var(--border-primary);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-orange) !important;
    border-width: 2px !important;
    box-shadow: none !important;
    background: var(--bg-primary);
    outline: none !important;
    transform: translateY(-1px);
    transition: var(--transition);
}

/* Override focus for input-group form controls to prevent double borders */
.input-group .form-control:focus {
    box-shadow: none !important;
    transform: none;
}

.form-control::placeholder {
    color: var(--text-light);
    font-style: italic;
    font-weight: 300;
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-style: italic;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-input {
    flex: 1;
}

/* Input Group Styling for Social Media Fields */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    border-right: none;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    transition: var(--transition);
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    border-left: none;
    transition: var(--transition);
}

.input-group:focus-within > .input-group-text {
    background-color: var(--bg-primary);
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.input-group > .form-control:focus {
    z-index: 3;
    border-color: var(--brand-orange);
    box-shadow: none;
    outline: none;
}

/* Remove double border on focus by ensuring seamless connection */
.input-group:focus-within > .input-group-text {
    border-right: none;
}

.input-group:focus-within > .form-control {
    border-left: none;
}

/* Add subtle focus effect for entire input group */
.input-group:focus-within {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
    transition: var(--transition);
}

/* Social Media Icon Colors */
.input-group-text .fab.fa-facebook {
    color: #1877f2;
}

.input-group-text .fab.fa-line {
    color: #00c300;
}

.input-group-text .fas.fa-globe {
    color: var(--brand-orange);
}

/* Enhanced input group styling */
.input-group-text {
    border-width: 2px;
    font-size: 1rem;
    min-width: 50px;
    justify-content: center;
}

.input-group > .form-control {
    border-width: 2px;
}

/* Ensure proper border connections */
.input-group > .input-group-text:not(:first-child) {
    border-left: 0;
}

.input-group > .form-control:not(:first-child) {
    border-left: 0;
}

.input-group > .form-control:not(:last-child) {
    border-right: 0;
}

/* Responsive adjustments for social media fields */
@media (max-width: 768px) {
    .row > [class*="col-md-4"] {
        margin-bottom: 1rem;
    }
    
    .input-group {
        margin-bottom: 0.5rem;
    }
         }
 
 .time-inputs .text-center {
    flex: 0 0 auto;
    color: var(--text-secondary);
    font-weight: 500;
}

.upload-area {
    border: 3px dashed var(--border-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    background: var(--bg-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--brand-orange);
    background: rgba(255, 107, 53, 0.05);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--brand-orange);
    margin-bottom: 0.5rem;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.image-preview {
    display: inline-block;
    position: relative;
    margin: 0.5rem;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.image-preview:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.preview-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.remove-img {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--error-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.remove-img:hover {
    background: var(--error-dark);
    transform: scale(1.1);
}

/* Form Group Spacing Adjustments */
.form-group {
    margin-bottom: 1.5rem;
}

.row .form-group {
    margin-bottom: 1.25rem;
}

.row:last-child .form-group {
    margin-bottom: 1.5rem;
}

/* Social media row specific adjustments */
.row .col-md-4 .form-group {
    margin-bottom: 1rem;
}



.form-navigation {
    background: var(--gradient-bg-card);
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-primary);
}

.btn-nav {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary.btn-nav {
    background: var(--gradient-brand-primary) !important;
    border-color: var(--brand-orange);
    color: white !important;
    box-shadow: var(--box-shadow);
}

.btn-primary.btn-nav:hover {
    background: linear-gradient(135deg, var(--brand-orange-dark), var(--brand-yellow-dark)) !important;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
    color: white !important;
}

.btn-outline-secondary.btn-nav {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-secondary);
}

.btn-outline-secondary.btn-nav:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-primary);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.progress-indicator {
    background: rgba(255, 255, 255, 0.3);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-bar {
    background: linear-gradient(90deg, rgb(255, 145, 27), rgba(252, 194, 100, 0.8));
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.invalid-feedback {
    display: block;
    font-size: 0.85rem;
    color: var(--error-primary);
    margin-top: 0.25rem;
    font-weight: 500;
}

.is-invalid {
    border-color: var(--error-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
}

/* Enhanced form styling with brand colors */
.form-control:hover:not(:focus) {
    border-color: var(--border-secondary);
    background: var(--bg-primary);
}

.form-select:hover:not(:focus) {
    border-color: var(--border-secondary);
    background: var(--bg-primary);
}

/* Better icons styling */
.fas, .fab {
    /* margin-right: 0.5rem; */
}

.section-icon .fas {
    margin-right: 0;
}

/* Alert notification styling */
.alert {
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
}

.alert-success {
    background: #28A745 !important;
    color: white !important;
}

.alert-danger {
    background: #DC3545 !important;
    color: white !important;
}

.alert-warning {
    background: #FFC107 !important;
    color: #2C3E50 !important;
}

.alert-info {
    background: #FF6B35 !important;
    color: white !important;
}

/* Notification toast styling */
.notification-toast {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    max-width: 400px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    padding: 1rem 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.notification-toast i {
    font-size: 1.1rem !important;
}

.notification-toast span {
    flex: 1 !important;
}

.notification-toast button {
    background: none !important;
    border: none !important;
    margin-left: auto !important;
    cursor: pointer !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    opacity: 0.8 !important;
    transition: opacity 0.2s ease !important;
}

.notification-toast button:hover {
    opacity: 1 !important;
}

/* Category-specific styling */
.form-wrapper:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.1);
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .form-content { 
        padding: 1.5rem; 
    }
    .form-navigation { 
        padding: 1rem 1.5rem; 
        flex-direction: column; 
        gap: 1rem; 
    }
    .steps { 
        flex-wrap: wrap; 
        gap: 0.5rem;
    }
    .step {
        width: 40px;
        height: 40px;
        margin: 0 0.5rem;
    }
    .step:not(:last-child)::after {
        right: -25px;
        width: 20px;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .time-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }
    .time-inputs .text-center {
        order: -1;
    }
    
    /* Mobile-specific brand adjustments */
    .form-wrapper {
        margin: 1rem;
    }
    
    .btn-nav {
        width: 100%;
        justify-content: center;
    }
}

/* Focus and accessibility improvements */
.btn-nav:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

/* Additional text color enforcement for steps and buttons */
.steps .step {
    /* color: white !important; */
}

.steps .step.active {
    color: var(--brand-orange) !important;
    background: white !important;
}

.steps .step.completed {
    color: white !important;
    background: var(--success-primary) !important;
}

.btn-primary.btn-nav,
.btn-primary.btn-nav:hover,
.btn-primary.btn-nav:focus,
.btn-primary.btn-nav:active {
    color: white !important;
}

/* Ensure icons in buttons maintain proper color */
.btn-primary.btn-nav i,
.btn-primary.btn-nav:hover i,
.btn-primary.btn-nav:focus i,
.btn-primary.btn-nav:active i {
    color: white !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary.btn-nav,
    .section-icon {
        border: 2px solid currentColor;
    }
    
    .form-wrapper {
        border: 2px solid var(--border-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn-nav,
    .form-wrapper,
    .image-preview,
    .upload-area {
        transition: none;
    }
    
    .btn-nav:hover,
    .form-wrapper:hover,
    .image-preview:hover,
    .upload-area:hover {
        transform: none;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* Loading state for zipcode input */
.form-control.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px !important;
    animation: loading-spin 1s linear infinite;
}

/* Product Image Upload Styles */
.product-upload-area {
    border: 3px dashed var(--border-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    background: var(--bg-secondary);
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 1rem;
}

.product-upload-area:hover, .product-upload-area.dragover {
    border-color: var(--brand-orange);
    background: rgba(255, 107, 53, 0.05);
    transform: translateY(-2px);
}

.product-image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    min-height: 100px;
}

.product-image-item {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    cursor: move;
}

.product-image-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--brand-orange);
}

.product-image-item.sortable-ghost {
    opacity: 0.5;
    transform: rotate(5deg);
}

.product-image-item.sortable-chosen {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    z-index: 1000;
}

.product-image-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.75rem;
    opacity: 0;
    transition: var(--transition);
}

.product-image-item:hover .product-image-overlay {
    opacity: 1;
}

.product-image-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-image-order {
    background: var(--brand-orange);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-image-remove {
    background: var(--error-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.product-image-remove:hover {
    background: var(--error-dark);
    transform: scale(1.1);
}

.product-image-info {
    color: white;
    font-size: 0.8rem;
    text-align: center;
}

.product-image-filename {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-image-size {
    opacity: 0.8;
}

.image-count-info {
    text-align: center;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-primary);
}

/* Drag and Drop Visual Feedback */
.product-upload-area.dragover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--brand-orange);
    transform: scale(1.02);
}

.product-upload-area.dragover .upload-icon {
    color: var(--brand-orange);
    transform: scale(1.1);
}

/* Responsive adjustments for product images */
@media (max-width: 768px) {
    .product-image-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .product-image-preview {
        height: 120px;
    }
    
    .product-image-overlay {
        padding: 0.5rem;
    }
    
    .product-image-order {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .product-image-remove {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

@keyframes loading-spin {
    0% { 
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' transform='rotate(0deg)'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E");
    }
    100% { 
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' transform='rotate(360deg)'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E");
    }
}