/* Estilos personalizados para LojANATAL */

/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Utilitários */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Hover effects para cards de produtos */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Estilo para imagens de produtos */
.product-image {
    transition: transform 0.3s ease;
}

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

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #dc2626;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.spinner-small {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #eab308;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

/* Responsividade para menu */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul li {
        width: 100%;
        padding: 10px 0;
    }
}

/* Estilo para badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-success {
    background-color: #10b981;
    color: white;
}

.badge-danger {
    background-color: #ef4444;
    color: white;
}

.badge-warning {
    background-color: #f59e0b;
    color: white;
}

/* Estilo para galeria de imagens */
.image-gallery {
    display: grid;
    gap: 0.5rem;
}

.image-gallery img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-gallery img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Estilo para tabs */
.tab-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Estilo para inputs */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #dc2626;
}

/* Botões */
button {
    cursor: pointer;
    transition: all 0.3s ease;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Carrinho flutuante */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideIn 0.3s ease-in-out;
}

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

.toast.error {
    background-color: #ef4444;
}

.toast.warning {
    background-color: #f59e0b;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Estilos para descrição do produto */
.product-description {
    font-size: 1rem;
    line-height: 1.75;
}

.product-description h2,
.product-description h3 {
    color: #1f2937;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.product-description h2 {
    font-size: 1.875rem;
    border-bottom: 2px solid #dc2626;
    padding-bottom: 0.5rem;
}

.product-description h3 {
    font-size: 1.5rem;
    color: #dc2626;
}

.product-description p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.product-description ul,
.product-description ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

.product-description ul {
    list-style-type: disc;
}

.product-description ol {
    list-style-type: decimal;
}

.product-description li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.product-description li ul,
.product-description li ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-description strong,
.product-description b {
    font-weight: 600;
    color: #111827;
}

.product-description em,
.product-description i {
    font-style: italic;
}

.product-description a {
    color: #dc2626;
    text-decoration: underline;
}

.product-description a:hover {
    color: #991b1b;
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1f2937;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    animation: slideUp 0.3s ease-in-out;
}

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

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-content a {
    color: #ef4444;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-content a:hover {
    color: #fca5a5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #dc2626;
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #b91c1c;
}

.cookie-btn-reject {
    background-color: #6b7280;
    color: white;
}

.cookie-btn-reject:hover {
    background-color: #4b5563;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .no-print {
        display: none;
    }
}
