/* Enhanced Modern Mobile-First Design with Cropping & Compression - MOBILE FIXED */

* {
    box-sizing: border-box;
}

.ai-pet-cartoon-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ==================== */
/* IMPROVED MOBILE TYPOGRAPHY */
/* ==================== */

h2 {
    font-family: 'Chonky', sans-serif;
    color: #f87736;
    font-size: 24px;
    margin: 30px 0 20px;
    text-align: center;
    line-height: 1.3;
}

h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    text-align: center;
    line-height: 1.3;
}

/* ==================== */
/* HEADER SECTION - MOBILE OPTIMIZED */
/* ==================== */

.preview-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
}

.generator-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.generator-subtitle {
    font-size: 16px;
    color: #f87736;
    font-weight: 600;
    margin-bottom: 12px;
    font-style: italic;
    line-height: 1.3;
}

.custom-design-title {
    font-size: 18px;
    color: #495057;
    font-weight: 600;
    margin-bottom: 25px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #f87736;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}

/* ==================== */
/* IMPROVED FORM SECTIONS FOR MOBILE */
/* ==================== */

#ai-pet-cartoon-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.upload-section,
.style-cards-container,
.custom-text-section,
.preview-section,
.mockup-selector,
.product-configuration {
    background: white;
    padding: 20px 15px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.mockup-selector {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

/* ==================== */
/* IMPROVED UPLOAD SECTION FOR MOBILE */
/* ==================== */

#image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
}

.upload-group {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.upload-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #d0d7de;
    border-radius: 8px;
    background: #f6f8fa;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-height: 50px;
}

.upload-group input[type="file"]:hover {
    border-color: #f87736;
    background: #fff5f0;
}

/* Image Preview with Tools - Mobile Improved */
.image-preview-container {
    margin-top: 12px;
    text-align: center;
}

.image-preview {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.image-tools {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.crop-btn, .compress-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 40px;
    min-width: 100px;
}

.crop-btn {
    background: #f87736;
    color: white;
}

.crop-btn:hover {
    background: #e5692b;
    transform: translateY(-2px);
}

.compress-btn {
    background: #57948C;
    color: white;
}

.compress-btn:hover {
    background: #4a837c;
    transform: translateY(-2px);
}

.file-size-info {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    padding: 5px 0;
}

.remove-image-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.remove-image-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.add-image-btn {
    background: linear-gradient(135deg, #f87736 0%, #ff8f5e 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 25px;
    cursor: pointer;
    margin: 12px auto;
    display: block;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(248, 119, 54, 0.3);
    min-height: 50px;
    min-width: 200px;
}

.add-image-btn:hover {
    background: linear-gradient(135deg, #57948C 0%, #6ba89f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(87, 148, 140, 0.4);
}

/* ==================== */
/* STYLE CARDS - KEEPING ORIGINAL GRID */
/* ==================== */

.style-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 100%;
    margin: 0 auto;
}

.style-card {
    position: relative;
    border: 3px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.style-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.style-card-content {
    padding: 12px;
    text-align: center;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.style-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.style-title {
    font-weight: 700;
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
}

.style-description {
    font-size: 10px;
    color: #666;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.style-card input[type="radio"]:checked + .style-card-content {
    border-radius: 12px;
}

.style-card input[type="radio"]:checked ~ .style-card-content::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #4CAF50;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.style-card input[type="radio"]:checked {
    & + .style-card-content {
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    }
}

.style-card:has(input[type="radio"]:checked) {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* ==================== */
/* IMPROVED CUSTOM TEXT SECTION */
/* ==================== */

#custom-text-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    margin: 12px 0 8px;
    transition: all 0.3s ease;
    min-height: 50px;
}

#custom-text-input:focus {
    outline: none;
    border-color: #f87736;
    box-shadow: 0 0 0 3px rgba(248, 119, 54, 0.1);
}

.custom-text-section small {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

/* ==================== */
/* IMPROVED PREVIEW SECTION WITH BETTER IMAGE SIZING */
/* ==================== */

.generation-container {
    text-align: center;
}

.image-placeholder {
    background: #f8f9fa;
    border: 2px dashed #d0d7de;
    border-radius: 12px;
    padding: 20px 15px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-content {
    color: #666;
    text-align: center;
    font-size: 14px;
    padding: 10px;
}

.placeholder-content svg {
    margin-bottom: 12px;
    color: #adb5bd;
}

#ai-generated-preview {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    z-index: 1;
}

#ai-generated-preview img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.mockup-preview-result {
    text-align: center;
    padding: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mockup-description {
    margin-top: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 15px;
    line-height: 1.3;
}

.used-prompt {
    display: none !important;
    margin-top: 12px;
    background: #f8f9fa;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 12px;
    color: #1c1f23;
    text-align: left;
    word-break: break-word;
}

.used-prompt-heading {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 6px 0;
    color: #1c1f23;
}

#used-prompt-text {
    margin: 0;
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.mockup-hint {
    margin-top: 5px;
    color: #666;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
}

.generation-history {
    margin-top: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.generation-history h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #495057;
    text-align: left;
}

.generation-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
}

.thumbnail-card {
    flex: 0 0 90px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    cursor: default;
}

.thumbnail-card img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    background: #fff;
}

.thumb-label {
    font-size: 12px;
    color: #555;
    text-align: center;
    line-height: 1.2;
    width: 100%;
    word-break: break-word;
}

.go-to-order-btn {
    margin: 14px auto 0;
    display: none;
    background: linear-gradient(135deg, #57948C 0%, #6ba89f 100%);
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 22px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(87, 148, 140, 0.3);
    transition: all 0.3s ease;
}

.go-to-order-btn:hover {
    background: linear-gradient(135deg, #f87736 0%, #ff8f5e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(248, 119, 54, 0.35);
}

/* ==================== */
/* IMPROVED MOCKUP BUTTONS - GRID LAYOUT */
/* ==================== */

.mockup-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 auto;
    width: 100%;
    max-width: 520px;
    padding: 0 10px;
    overflow: visible;
}

.mockup-btn {
    padding: 14px 10px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.mockup-btn:hover {
    border-color: #f87736;
    color: #f87736;
    transform: translateY(-2px);
}

.mockup-btn.active {
    background: linear-gradient(135deg, #f87736 0%, #ff8f5e 100%);
    color: white;
    border-color: #f87736;
    box-shadow: 0 4px 12px rgba(248, 119, 54, 0.3);
}

/* ==================== */
/* IMPROVED PRODUCT CONFIGURATION FOR MOBILE */
/* ==================== */

.config-details {
    max-width: 100%;
    margin: 0 auto;
}

.product-info {
    text-align: center;
    margin-bottom: 15px;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.2;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: #f87736;
}

.product-options-config {
    margin: 15px 0;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 15px;
}

.option-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 48px;
}

.option-group select:focus {
    outline: none;
    border-color: #f87736;
    box-shadow: 0 0 0 3px rgba(248, 119, 54, 0.1);
}

/* Size Options */
.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-option {
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 50px;
    text-align: center;
    font-size: 14px;
}

.size-option.active {
    background: #f87736;
    color: white;
    border-color: #f87736;
}

.size-option:hover:not(.active) {
    border-color: #f87736;
    color: #f87736;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option.active {
    border-color: #333;
    transform: scale(1.1);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.color-black { background: #000000; }
.color-white { background: #ffffff; border: 1px solid #ddd; }
.color-blue { background: #007bff; }
.color-red { background: #dc3545; }
.color-green { background: #28a745; }

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    border-color: #f87736;
    background: #fff5f0;
}

.quantity-input {
    width: 80px;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    background: white;
    min-height: 44px;
}

.quantity-input:focus {
    outline: none;
    border-color: #f87736;
    box-shadow: 0 0 0 3px rgba(248, 119, 54, 0.1);
}

.add-to-cart-section {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    min-height: 50px;
    min-width: 140px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #388E3C 0%, #4CAF50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

/* ==================== */
/* PROGRESS BAR */
/* ==================== */

.progress-bar {
    width: calc(100% - 40px);
    max-width: 360px;
    height: 20px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #e47729 0%, #e35b22 100%);
    border-radius: inherit;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
}

/* ==================== */
/* CROPPING MODAL */
/* ==================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 20px;
    max-width: 95%;
    max-height: 95%;
    width: 600px;
    text-align: center;
}

.crop-container {
    width: 100%;
    height: 400px;
    margin: 15px 0;
    overflow: hidden;
}

.crop-container img {
    max-width: 100%;
    max-height: 100%;
}

.crop-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

#crop-confirm, #crop-cancel {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 120px;
}

#crop-confirm {
    background: #4CAF50;
    color: white;
}

#crop-confirm:hover {
    background: #45a049;
}

#crop-cancel {
    background: #dc3545;
    color: white;
}

#crop-cancel:hover {
    background: #c82333;
}

/* ==================== */
/* TOAST NOTIFICATIONS */
/* ==================== */

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.toast-notification.show {
    transform: translateX(0);
}

/* ==================== */
/* RESPONSE MESSAGES */
/* ==================== */

#ai-cartoon-response {
    margin-top: 25px;
    min-height: 50px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 20px auto;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner.small {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

.error-message {
    color: #dc3545;
    text-align: center;
    padding: 16px 20px;
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 600px;
    font-weight: 600;
}

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

/* ==================== */
/* ENHANCED MOBILE FIXES */
/* ==================== */

@media (max-width: 768px) {
    .ai-pet-cartoon-container {
        padding: 10px;
        overflow-x: hidden;
    }
    
    h2 {
        font-size: 22px;
        margin: 25px 0 15px;
    }
    
    h3 {
        font-size: 18px;
        margin: 20px 0 12px;
    }
    
    #ai-pet-cartoon-form {
        gap: 20px;
    }
    
    /* Form sections mobile padding */
    .upload-section,
    .style-cards-container,
    .custom-text-section,
    .preview-section,
    .mockup-selector,
    .product-configuration {
        padding: 15px 12px;
        margin-bottom: 15px;
    }
    
    /* Style cards mobile optimization */
    .style-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .style-card {
        min-height: 140px;
    }
    
    .style-card-content {
        padding: 8px;
    }
    
    .style-card img {
        height: 70px;
        margin-bottom: 6px;
    }
    
    .style-title {
        font-size: 12px;
    }
    
    .style-description {
        font-size: 9px;
    }
    
    /* Mockup buttons grid for mobile */
    .mockup-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .mockup-btn {
        padding: 12px 8px;
        font-size: 12px;
        min-height: 45px;
    }
    
    /* Preview section mobile fixes */
    .image-placeholder {
        padding: 15px 10px;
        min-height: 400px;
    }
    
    #ai-generated-preview {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 8px;
    }
    
    #ai-generated-preview img {
        border-radius: 6px;
    }
    
    /* Product configuration mobile fixes */
    .add-to-cart-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .quantity-input {
        width: 100%;
        max-width: 120px;
    }
    
    .add-to-cart-btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* Modal mobile fixes */
    .modal-content {
        max-width: 98%;
        max-height: 98%;
        padding: 15px;
    }
    
    .crop-container {
        height: 300px;
    }
    
    .crop-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    #crop-confirm, #crop-cancel {
        width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .style-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .style-card {
        min-height: 130px;
    }
    
    .style-card img {
        height: 60px;
    }
    
    .style-title {
        font-size: 11px;
    }
    
    .style-description {
        font-size: 8px;
    }
    
    .mockup-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .mockup-btn {
        padding: 10px 6px;
        font-size: 11px;
        min-height: 40px;
    }
    
    .image-tools {
        flex-direction: column;
        gap: 5px;
    }
    
    .crop-btn, .compress-btn {
        width: 100%;
        text-align: center;
    }
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
}

/* Tablet and Desktop Styles */
@media (min-width: 769px) {
    .style-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .image-placeholder {
        min-height: 512px;
    }

    #ai-generated-preview {
        top: 16px;
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    
    .style-card {
        min-height: 180px;
    }
    
    .style-card img {
        height: 100px;
    }
    
    .style-title {
        font-size: 14px;
    }
    
    .style-description {
        font-size: 11px;
    }
    
    .mockup-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .mockup-btn {
        padding: 15px 12px;
        font-size: 14px;
        min-height: 55px;
    }
}

@media (min-width: 1024px) {
    .style-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .mockup-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* JavaScript-Ready CSS Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.active-state {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2) !important;
}

.loading-state {
    opacity: 0.7;
    pointer-events: none;
}
