/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.badge-text {
    font-size: 1.1rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Efeitos de partículas ao passar o mouse */
.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    animation: sparkle 2s infinite;
}

.product-card:hover::after {
    opacity: 1;
}

@keyframes sparkle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.3;
    }
}

/* Efeito de raios */
.product-card:hover .product-icon {
    animation: lightning 0.5s ease-in-out;
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.5));
}

@keyframes lightning {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(37, 99, 235, 0.3));
    }
    25% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.8));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.6));
    }
    75% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.8));
    }
}

/* Efeito de estrelas */
.product-card:hover .product-title::before {
    content: '✨';
    position: absolute;
    left: -30px;
    animation: starFloat 1s ease-in-out infinite;
}

.product-card:hover .product-title::after {
    content: '⭐';
    position: absolute;
    right: -30px;
    animation: starFloat 1s ease-in-out infinite 0.5s;
}

@keyframes starFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 1;
    }
}

.product-card.unavailable {
    opacity: 0.7;
}

.product-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
}

.product-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.product-status {
    text-align: center;
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.available {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.product-features {
    list-style: none;
    margin-bottom: 25px;
}

.product-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.product-price {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 10px;
}

.price-old {
    display: block;
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.price-new {
    display: block;
    color: var(--success-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
    font-weight: 500;
    width: auto;
}

.btn-tiny {
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 5px;
    font-weight: 500;
    white-space: nowrap;
    width: auto;
    min-width: auto;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.btn-info {
    background: #0ea5e9;
    color: white;
}

.btn-info:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.3);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Info Box */
.info-box {
    background: var(--bg-color);
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
}

.info-box h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 8px 0;
    color: var(--text-secondary);
}

/* Form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.cadastro-form {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

/* Success Box */
.success-box {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.success-box h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.success-box p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Unavailable Box */
.unavailable-box {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.unavailable-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.unavailable-box h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.unavailable-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 15px 0;
    line-height: 1.8;
}

.alternative-section {
    margin: 30px 0;
}

.alternative-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 700;
}

.alternative-card-full {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.alternative-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-dark);
}

.product-icon-large {
    font-size: 4rem;
    margin-bottom: 20px;
}

.product-title-large {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.product-status-center {
    margin: 20px 0;
}

.product-features-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
    display: inline-block;
}

.product-features-list li {
    padding: 12px 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.product-features-list li:last-child {
    border-bottom: none;
}

.product-price-center {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1rem;
}

.price-new {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.btn-large-full {
    width: 100%;
    max-width: 400px;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    display: inline-block;
    text-align: center;
}

.actions-center {
    text-align: center;
    margin-top: 30px;
}

/* Footer */
.footer {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    color: var(--text-secondary);
}

.admin-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.admin-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .logo h1 {
        font-size: 2rem;
    }

    /* Mobile - Unavailable Page */
    .unavailable-box {
        padding: 30px 15px;
        margin-bottom: 20px;
    }

    .unavailable-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .unavailable-box h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .unavailable-message {
        font-size: 1rem;
        margin: 12px 0;
        line-height: 1.6;
    }

    .alternative-section {
        margin: 25px 0;
    }

    .alternative-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .alternative-card-full {
        padding: 30px 20px;
        border-radius: 15px;
        margin: 0;
    }

    .product-icon-large {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .product-title-large {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .product-features-list {
        margin: 20px 0;
        width: 100%;
    }

    .product-features-list li {
        padding: 10px 0;
        font-size: 1rem;
    }

    .product-price-center {
        margin: 20px 0;
    }

    .price-new {
        font-size: 1.3rem;
    }

    .btn-large-full {
        width: 100%;
        padding: 16px 25px;
        font-size: 1rem;
        margin-top: 15px;
    }

    .actions-center {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .product-card {
        padding: 20px;
    }
}
