/* ================================================= */
/* VARIABLES CSS GLOBALES                            */
/* ================================================= */
:root {
    --primary: #FFD700;
    --secondary: #FFA500;
    --accent: #FF8C00;
    --white: #FFFFFF;
    --dark: #2C2C2C;
    --dark-light: #4a4a4a;
    --gray: #6C757D;
    --gray-light: #f8f9fa;
    --gray-lighter: #fafbfc;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --success: #16a34a;
    --error: #dc2626;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow: 0 2px 6px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    --gradient-hover: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 50%, #FF6B00 100%);
    --border-radius-sm: 6px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-xxl: 1.5rem;
}

/* ================================================= */
/* ESTILOS BASE Y RESET                              */
/* ================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--gray-light);
    color: var(--dark);
    line-height: 1.6;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================================= */
/* LOADING OVERLAY                                   */
/* ================================================= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ai-loader {
    text-align: center;
}

.ai-loader-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ai-loader-text {
    color: var(--gray);
    font-size: var(--font-size-sm);
}

/* ================================================= */
/* ALERT CONTAINER                                   */
/* ================================================= */
#alertContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ================================================= */
/* MAIN CONTAINER                                    */
/* ================================================= */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

/* ================================================= */
/* BREADCRUMB                                        */
/* ================================================= */
.breadcrumb {
    padding: 1rem 0;
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--border-color);
}

/* ================================================= */
/* PRODUCT CONTAINER                                 */
/* ================================================= */
.product-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

/* ================================================= */
/* PRODUCT MAIN SECTION                              */
/* ================================================= */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
}

/* ================================================= */
/* PRODUCT GALLERY                                   */
/* ================================================= */
.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.main-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--gray-lighter);
    aspect-ratio: 3/2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image-container:hover img {
    transform: scale(1.05);
}

.image-zoom-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.main-image-container:hover .image-zoom-overlay {
    opacity: 1;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.thumbnail {
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 1;
}

.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail:hover {
    border-color: var(--secondary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================================= */
/* PRODUCT DETAILS                                   */
/* ================================================= */
.product-details {
    padding: 0;
}

.product-header {
    margin-bottom: 1.5rem;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: var(--font-size-sm);
    margin-bottom: 0.75rem;
}

.product-category i {
    color: var(--primary);
}

.product-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.product-meta > div {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.product-meta i {
    font-size: var(--font-size-xs);
}

/* ================================================= */
/* PRODUCT RATING                                    */
/* ================================================= */
.product-rating-meta {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.rating-stars i {
    color: var(--primary);
    font-size: var(--font-size-sm);
}

/* ================================================= */
/* PRODUCT PRICING                                   */
/* ================================================= */
.product-pricing {
    background: var(--gray-lighter);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.price-main {
    font-size: var(--font-size-xxl);
    font-weight: 700;
    color: var(--dark);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-discount {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-original {
    text-decoration: line-through;
    color: var(--gray);
    font-size: var(--font-size-sm);
}

.discount-badge,
.free-badge {
    background: var(--gradient);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

/* ================================================= */
/* PRODUCT SELLER                                    */
/* ================================================= */
.product-seller {
    background: var(--gray-lighter);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.seller-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-details h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.125rem;
}

.seller-details p {
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.seller-location {
    font-size: var(--font-size-xs);
    color: var(--gray);
    margin-top: 0.25rem;
}

/* ================================================= */
/* BUTTONS                                           */
/* ================================================= */
.btn-contact-seller,
.btn-report-seller,
.btn-like,
.btn-report,
.btn-crypto {
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.btn-contact-seller {
    background: var(--gradient);
    color: var(--white);
}

.btn-contact-seller:hover {
    background: var(--gradient-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-report-seller,
.btn-report {
    background: var(--white);
    color: var(--gray);
    border: 1px solid var(--border-color);
}

.btn-report-seller:hover,
.btn-report:hover {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-like {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--border-color);
}

.btn-like.liked {
    background: #ffe4e4;
    color: #e74c3c;
    border-color: #e74c3c;
}

/* ================================================= */
/* PRODUCT ACTIONS                                   */
/* ================================================= */
.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* ================================================= */
/* PURCHASE SECTION                                  */
/* ================================================= */
.purchase-section {
    margin-bottom: 1.5rem;
}

.payment-options h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.crypto-buttons {
    display: grid;
    gap: 0.75rem;
}

.btn-crypto {
    background: var(--white);
    border: 2px solid var(--border-color);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-crypto:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-ton:hover {
    background: rgba(255, 215, 0, 0.05);
}

.btn-usdt:hover {
    background: rgba(38, 161, 123, 0.05);
}

.crypto-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-xl);
    color: var(--primary);
}

.crypto-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.crypto-name {
    font-weight: 600;
    color: var(--dark);
}

.crypto-amount {
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.payment-note {
    margin-top: 1rem;
    font-size: var(--font-size-xs);
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ================================================= */
/* PRODUCT KEYWORDS                                  */
/* ================================================= */
.product-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.keyword-tag {
    background: var(--gray-lighter);
    color: var(--dark-light);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    transition: var(--transition);
}

.keyword-tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* ================================================= */
/* DELIVERY INFO                                     */
/* ================================================= */
.delivery-info {
    background: var(--gray-lighter);
    border-radius: var(--border-radius);
    padding: 1.25rem;
}

.delivery-info h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delivery-method {
    font-size: var(--font-size-sm);
    color: var(--dark-light);
}

.delivery-details {
    margin-top: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--gray);
}

/* ================================================= */
/* PRODUCT DESCRIPTION SECTION                       */
/* ================================================= */
.product-description-section {
    padding: 2rem;
    border-top: 1px solid var(--border-light);
}

.section-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: var(--dark);
}

.tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.description-content {
    font-size: var(--font-size-sm);
    line-height: 1.8;
    color: var(--dark-light);
}

.description-content p {
    margin-bottom: 1rem;
}

.features-list {
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-lighter);
    border-radius: var(--border-radius-sm);
}

.feature-item i {
    color: var(--primary);
    margin-top: 0.125rem;
}

/* ================================================= */
/* REVIEWS SECTION                                   */
/* ================================================= */
.rating-summary {
    background: var(--gray-lighter);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overall-rating {
    text-align: center;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
}

.stars {
    display: flex;
    gap: 0.125rem;
    justify-content: center;
    margin: 0.5rem 0;
}

.stars i {
    color: var(--primary);
}

.rating-count {
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.rating-breakdown {
    flex: 1;
    margin-left: 3rem;
}

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

.rating-bar-label {
    font-size: var(--font-size-sm);
    color: var(--gray);
    min-width: 40px;
}

.rating-bar-track {
    flex: 1;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.5s ease;
}

.rating-bar-count {
    font-size: var(--font-size-xs);
    color: var(--gray);
    min-width: 30px;
    text-align: right;
}

/* ================================================= */
/* REVIEW FORM                                       */
/* ================================================= */
.review-form-container {
    background: var(--gray-lighter);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-form h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
}

.star-rating span {
    color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.star-rating span:hover,
.star-rating span.active {
    color: var(--primary);
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    font-family: inherit;
    transition: var(--transition);
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-submit-review,
.btn-cancel-review {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit-review {
    background: var(--gradient);
    color: var(--white);
}

.btn-submit-review:hover {
    background: var(--gradient-hover);
    transform: translateY(-1px);
}

.btn-cancel-review {
    background: var(--white);
    color: var(--gray);
    border: 1px solid var(--border-color);
}

.btn-cancel-review:hover {
    background: var(--gray-lighter);
}

/* ================================================= */
/* REVIEWS LIST                                      */
/* ================================================= */
.reviews-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.sort-reviews {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-reviews label {
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.reviews-list {
    min-height: 200px;
}

.review-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray);
}

.review-user-info h5 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.review-date {
    font-size: var(--font-size-xs);
    color: var(--gray);
}

.review-rating {
    display: flex;
    gap: 0.125rem;
}

.review-rating i {
    color: var(--primary);
    font-size: var(--font-size-sm);
}

.review-content h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.review-content p {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--dark-light);
}

.review-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.review-action {
    font-size: var(--font-size-xs);
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.review-action:hover {
    color: var(--primary);
}

.no-reviews {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.loading-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* ================================================= */
/* RELATED PRODUCTS SECTION                          */
/* ================================================= */
.related-products-section {
    margin-top: 3rem;
    padding: 2rem;
    border-top: 1px solid var(--border-light);
    width: 100%;
}

/* Móvil: menos margen y padding */
@media (max-width: 768px) {
    .related-products-section {
        margin-top: 1.5rem;
        padding: 1.5rem 1rem;
    }
}

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

/* Móvil: layout centrado */
@media (max-width: 768px) {
    .related-products-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

.related-products-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

/* Móvil: tamaño más pequeño */
@media (max-width: 768px) {
    .related-products-header h3 {
        font-size: 1.25rem;
    }
}

.related-products-header h3 i {
    color: var(--primary);
}

/* Controles del carrusel */
.carousel-controls {
    display: flex;
    gap: 0.5rem;
}

/* Móvil: orden diferente */
@media (max-width: 768px) {
    .carousel-controls {
        order: -1;
    }
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    color: var(--gray);
    font-size: 14px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

/* Móvil: tamaño más pequeño */
@media (max-width: 768px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

.carousel-btn:hover:not(:disabled) {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Carrusel principal */
.related-products-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: var(--white);
    cursor: grab;
    user-select: none;
    width: 100%;
}

.related-products-carousel:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-item {
    flex: 0 0 calc(100% / 3);
    padding: 0 0.75rem;
    box-sizing: border-box;
}

/* Móvil: mostrar un item */
@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 100%;
        padding: 0 0.5rem;
    }
}

/* Tablet: mostrar dos items */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        padding: 0 0.25rem;
    }
}

/* Tarjeta de producto relacionado */
.related-product-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    height: 100%;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.related-product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    background: var(--gray-lighter);
    width: 100%;
    height: 200px;
}

/* Móvil: altura más pequeña */
@media (max-width: 768px) {
    .product-image-container {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .product-image-container {
        height: 160px;
    }
}

.related-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-product-card:hover .related-product-image {
    transform: scale(1.05);
}

/* Badges */
.free-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--success);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

/* Móvil: tamaño más pequeño */
@media (max-width: 768px) {
    .free-badge {
        font-size: 9px;
    }
}

.discount-badge-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--error);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

/* Móvil: tamaño más pequeño */
@media (max-width: 768px) {
    .discount-badge-overlay {
        font-size: 9px;
    }
}

/* Contenido de tarjeta */
.related-product-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: auto;
}

/* Móvil: padding más pequeño */
@media (max-width: 768px) {
    .related-product-content {
        padding: 1rem;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .related-product-content {
        padding: 0.75rem;
    }
}

.related-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8rem;
    word-wrap: break-word;
}

/* Móvil: tamaño más pequeño */
@media (max-width: 768px) {
    .related-product-title {
        font-size: 0.85rem;
        min-height: 2.4rem;
    }
}

@media (max-width: 480px) {
    .related-product-title {
        font-size: 0.8rem;
        min-height: 2.2rem;
    }
}

/* Meta información */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 12px;
    color: var(--gray);
}

/* Móvil: tamaño más pequeño */
@media (max-width: 768px) {
    .product-meta {
        font-size: 10px;
    }
}

.product-category {
    background: var(--gray-lighter);
    color: var(--dark-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    white-space: nowrap;
}

.product-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

/* Precios */
.related-product-pricing {
    margin-top: auto;
}

.product-price-normal {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    word-break: break-all;
}

/* Móvil: tamaño más pequeño */
@media (max-width: 768px) {
    .product-price-normal {
        font-size: 0.95rem;
    }
}

.product-price-free {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
}

/* Móvil: tamaño más pequeño */
@media (max-width: 768px) {
    .product-price-free {
        font-size: 0.8rem;
    }
}

.product-price-discount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    word-break: break-all;
}

/* Móvil: tamaño más pequeño */
@media (max-width: 768px) {
    .price-current {
        font-size: 0.95rem;
    }
}

.price-original {
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: line-through;
    word-break: break-all;
}

/* Móvil: tamaño más pequeño */
@media (max-width: 768px) {
    .price-original {
        font-size: 0.8rem;
    }
}

.discount-badge {
    background: var(--error);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Móvil: tamaño más pequeño */
@media (max-width: 768px) {
    .discount-badge {
        font-size: 8px;
    }
}

/* Indicadores */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
}

/* Móvil: margen más pequeño */
@media (max-width: 768px) {
    .carousel-indicators {
        margin-top: 1rem;
    }
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

/* Móvil: tamaño más pequeño */
@media (max-width: 768px) {
    .carousel-indicator {
        width: 6px;
        height: 6px;
    }
}

.carousel-indicator:hover {
    background: var(--gray);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Estados de carga */
.carousel-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    color: var(--gray);
    padding: 1rem;
}

/* Móvil: altura más pequeña */
@media (max-width: 768px) {
    .carousel-loading {
        height: 250px;
    }
}

.carousel-loading .spinner {
    margin-right: 0.5rem;
}

.carousel-empty {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    background: var(--gray-lighter);
    border-radius: var(--border-radius-lg);
}

/* Móvil: padding más pequeño */
@media (max-width: 768px) {
    .carousel-empty {
        padding: 2rem 1rem;
    }
}

.carousel-empty i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--border-light);
}

/* Móvil: icono más pequeño */
@media (max-width: 768px) {
    .carousel-empty i {
        font-size: 1.5rem;
    }
}

/* Focus states */
.carousel-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.carousel-indicator:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.related-product-card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        transition: none;
    }
    
    .related-product-card {
        transition: none;
    }
    
    .related-product-image {
        transition: none;
    }
    
    .carousel-btn {
        transition: none;
    }
    
    .carousel-indicator {
        transition: none;
    }
}

/* ================================================= */
/* FOOTER                                            */
/* ================================================= */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer p {
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

/* ================================================= */
/* MODALS                                            */
/* ================================================= */
.modal,
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active,
.image-zoom-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.modal-close,
.zoom-close {
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover,
.zoom-close:hover {
    color: var(--dark);
}

.modal-form {
    padding: 1.5rem;
}

.btn-submit,
.btn-cancel {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit {
    background: var(--gradient);
    color: var(--white);
}

.btn-submit:hover {
    background: var(--gradient-hover);
}

.btn-cancel {
    background: var(--gray-lighter);
    color: var(--gray);
}

.btn-cancel:hover {
    background: var(--border-light);
}

/* ================================================= */
/* IMAGE ZOOM MODAL                                  */
/* ================================================= */
.zoom-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.zoom-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#zoomedImage {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--border-radius);
}

/* ================================================= */
/* RESPONSIVE DESIGN                                 */
/* ================================================= */
@media (max-width: 1200px) {
    .main-container {
        padding: 0 1.5rem;
    }
    
    .product-main {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .main-container {
        padding: 0 1rem;
    }
    
    .product-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        position: static;
    }
    
    .rating-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .rating-breakdown {
        margin-left: 0;
        margin-top: 1.5rem;
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-xs: 0.7rem;
        --font-size-sm: 0.8rem;
        --font-size-base: 0.9rem;
        --font-size-lg: 1rem;
        --font-size-xl: 1.125rem;
        --font-size-xxl: 1.25rem;
    }
    
    .main-container {
        padding: 0 1rem;
    }
    
    .product-container {
        border-radius: 0;
        margin: 0 -1rem;
    }
    
    .product-main {
        padding: 1.5rem 1rem;
    }
    
    .product-description-section,
    .related-products-section {
        padding: 1.5rem 1rem;
    }
    
    .product-title {
        font-size: var(--font-size-lg);
    }
    
    .product-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-actions {
        grid-template-columns: 1fr;
    }
    
    .section-tabs {
        gap: 0.5rem;
    }
    
    .tab-button {
        padding: 0.5rem 0.75rem;
    }
    
    .related-product-card {
        flex: 0 0 200px;
    }
    
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .main-container {
        padding: 0 0.75rem;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .crypto-buttons {
        gap: 0.5rem;
    }
    
    .btn-crypto {
        padding: 0.75rem;
    }
    
    .crypto-icon {
        position: static;
        transform: none;
        margin-bottom: 0.25rem;
    }
    
    .crypto-details {
        text-align: center;
    }
    
    .review-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .review-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* ================================================= */
/* PRINT STYLES                                      */
/* ================================================= */
@media print {
    .navbar,
    .footer,
    .product-actions,
    .purchase-section,
    .carousel-controls,
    .btn-write-review,
    .reviews-controls,
    .review-actions {
        display: none !important;
    }
    
    .product-main {
        grid-template-columns: 1fr;
    }
    
    .tab-pane {
        display: block !important;
    }
}/* ========================================== */
/* CSS ESPECÍFICO PARA EL MODAL DE IA */
/* ========================================== */

/* Modal overlay */
.ai-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Más alto que otros modales */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.ai-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Container principal */
.ai-modal-container {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    animation: aiModalSlideIn 0.3s ease-out;
}

@keyframes aiModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header del modal */
.ai-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.ai-modal-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 100 100"><defs><pattern id="circuit" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    opacity: 0.3;
}

.ai-modal-title-section {
    position: relative;
    z-index: 1;
}

.ai-modal-title {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-modal-icon {
    font-size: 28px;
    color: #ffd700;
    animation: aiSparkle 2s ease-in-out infinite;
}

@keyframes aiSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.ai-modal-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.ai-modal-close {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.ai-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Body del modal */
.ai-modal-body {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
}

/* Banner de instrucciones */
.ai-instructions-banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    color: white;
}

.ai-instructions-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ai-instructions-content h6 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.ai-instructions-content ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.ai-instructions-content li {
    margin-bottom: 4px;
}

/* Formulario */
.ai-form-group {
    margin-bottom: 24px;
}

.ai-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 15px;
}

.ai-form-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s ease;
    background: #fafbfc;
}

.ai-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-prompt-input {
    min-height: 120px;
}

.ai-char-counter {
    text-align: right;
    font-size: 12px;
    color: #8492a6;
    margin-top: 4px;
}

/* Contenedor de resultados */
.ai-result-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 24px;
}

.ai-result-header {
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-result-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tabs del código */
.ai-code-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.ai-code-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
}

.ai-code-tab:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #475569;
}

.ai-code-tab.active {
    background: white;
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Editor de código */
.ai-code-content {
    position: relative;
}

.ai-code-editor {
    display: none;
}

.ai-code-editor.active {
    display: block;
}

.ai-code-textarea {
    width: 100%;
    height: 300px;
    padding: 20px;
    border: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    background: #1e1e1e;
    color: #d4d4d4;
    resize: none;
    outline: none;
}

/* Vista previa */
.ai-preview-container {
    background: white;
}

.ai-preview-frame {
    padding: 20px;
    min-height: 300px;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    margin: 20px;
}

.ai-preview-placeholder {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    margin: 0;
    padding: 40px 20px;
}

/* Estado de carga */
.ai-loading-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 24px;
}

.ai-loading-animation {
    margin-bottom: 24px;
}

.ai-loading-spinner {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.ai-spinner-ring {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 51px;
    height: 51px;
    margin: 6px;
    border: 6px solid transparent;
    border-radius: 50%;
    animation: aiSpinnerRotate 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.ai-spinner-ring:nth-child(1) {
    border-top-color: #667eea;
    animation-delay: -0.45s;
}

.ai-spinner-ring:nth-child(2) {
    border-top-color: #764ba2;
    animation-delay: -0.3s;
}

.ai-spinner-ring:nth-child(3) {
    border-top-color: #f093fb;
    animation-delay: -0.15s;
}

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

.ai-loading-text h6 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #2c3e50;
}

.ai-loading-text p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Barra de progreso */
.ai-loading-progress {
    max-width: 300px;
    margin: 0 auto;
}

.ai-progress-bar {
    background: #e2e8f0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ai-progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.ai-progress-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Estado de error */
.ai-error-container {
    text-align: center;
    padding: 40px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    margin-top: 24px;
}

.ai-error-icon {
    font-size: 48px;
    color: #dc2626;
    margin-bottom: 16px;
}

.ai-error-content h6 {
    margin: 0 0 8px 0;
    color: #dc2626;
    font-size: 18px;
}

.ai-error-content p {
    margin: 0 0 20px 0;
    color: #7f1d1d;
}

/* Footer del modal */
.ai-modal-footer {
    padding: 24px 32px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ai-footer-left {
    flex: 1;
}

.ai-usage-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.ai-footer-right {
    display: flex;
    gap: 12px;
}

/* Botones del modal IA */
.ai-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    min-height: 44px;
    box-sizing: border-box;
}

.ai-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ai-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.ai-btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.ai-btn-secondary:hover {
    background: #cbd5e1;
}

.ai-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.ai-btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.ai-btn-copy {
    background: #3b82f6;
    color: white;
    font-size: 12px;
    padding: 6px 12px;
}

.ai-btn-copy:hover {
    background: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-modal-container {
        margin: 10px;
        max-width: none;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .ai-modal-header {
        padding: 20px;
    }
    
    .ai-modal-title {
        font-size: 20px;
    }
    
    .ai-modal-body {
        padding: 24px;
    }
    
    .ai-modal-footer {
        padding: 20px 24px;
        flex-direction: column;
        gap: 12px;
    }
    
    .ai-footer-right {
        width: 100%;
        justify-content: center;
    }
    
    .ai-btn {
        flex: 1;
        justify-content: center;
    }
    
    .ai-code-textarea {
        height: 200px;
        font-size: 12px;
    }
}