/* Shopee Afiliados - Estilos */
.shape-cadastro-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.shape-cadastro-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 70px rgba(238, 77, 45, 0.25);
    margin-bottom: 30px;
}

.shape-header {
    text-align: center;
    margin-bottom: 30px;
}

.shape-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ee4d2d 0%, #ff6c40 100%);
    border-radius: 20px;
    margin-bottom: 20px;
    color: white;
}

.shape-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.shape-header p {
    color: #666;
    font-size: 1.1rem;
}

.shape-field {
    margin-bottom: 25px;
}

.shape-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.shape-field textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
}

.shape-field textarea:focus {
    outline: none;
    border-color: #ee4d2d;
    box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.1);
}

.shape-help {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 8px;
}

.shape-button {
    width: 100%;
    background: linear-gradient(135deg, #ee4d2d 0%, #ff6c40 100%);
    color: white;
    font-weight: 600;
    padding: 18px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.shape-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 77, 45, 0.4);
}

.shape-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Seção de produtos */
.shape-products-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.1);
}

.shape-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.shape-products-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.shape-count {
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: #666;
}

.shape-search-container {
    margin-bottom: 25px;
}

.shape-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.shape-search-box svg:first-child {
    position: absolute;
    left: 15px;
    color: #999;
}

.shape-search-box input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.shape-search-box input:focus {
    outline: none;
    border-color: #ee4d2d;
    box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.1);
}

.shape-clear-search {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.shape-clear-search:hover {
    color: #333;
}

/* Grid de produtos */
.shape-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.shape-product-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.shape-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.shape-product-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shape-no-image {
    color: #ccc;
}

.shape-product-info {
    margin-bottom: 15px;
}

.shape-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.shape-product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ee4d2d;
}

.shape-buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #ee4d2d 0%, #ff6c40 100%);
    color: white;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.shape-buy-button:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(238, 77, 45, 0.4);
}

.shape-delete-product {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.shape-delete-product:hover {
    background: #ff3838;
    transform: scale(1.1);
}

/* Mensagens de login */
.shape-login-required {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.shape-login-required p {
    font-size: 1.2rem;
    color: #666;
}

/* Produto não encontrado */
.shape-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.shape-no-products p {
    font-size: 1.2rem;
}

/* Classe hidden */
.hidden {
    display: none !important;
}

/* Toast Notifications */
.shape-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    z-index: 99999;
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
}

.shape-toast-success {
    border-left: 4px solid #10b981;
    color: #065f46;
}

.shape-toast-error {
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.shape-toast-info {
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .shape-cadastro-card {
        padding: 25px;
    }
    
    .shape-header h1 {
        font-size: 2rem;
    }
    
    .shape-products-list {
        grid-template-columns: 1fr;
    }
    
    .shape-products-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .shape-toast {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shape-product-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Loading state */
.shape-loading {
    opacity: 0.6;
    pointer-events: none;
}

.shape-button .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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