/**
 * Lojinha Hari Om - Estilos Principais
 * Identidade Visual: Conexão com a Floresta e Sabedoria Ancestral
 */

/* ============================================
   Variáveis CSS - Paleta de Cores
   ============================================ */
:root {
    /* Cores Principais - Paleta Portal Hari OM */
    --violeta-principal: #2D1B4E;
    --violeta-medio: #4A3B6E;
    --lavanda-claro: #8B7BA8;
    --roxo-suave: #E8E3F0;
    --dourado: #D4AF37;
    --dourado-suave: #F1D063;
    --branco: #FFFFFF;
    --off-white: #FEFEFE;
    --preto-suave: #2C2C2C;
    
    /* Cores de Sistema */
    --text-primary: #2C2C2C;
    --text-secondary: #666666;
    --border-color: #E8E3F0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Tipografia */
    --font-heading: 'Crimson Text', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

/* ============================================
   Reset e Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--off-white);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--violeta-principal);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--violeta-principal);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--violeta-medio);
}

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

/* ============================================
   Header e Navegação
   ============================================ */
.site-header {
    background-color: var(--off-white);
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.top-bar {
    background-color: var(--violeta-principal);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    min-height: 40px;
    display: block;
}

.top-bar a,
.top-bar small {
    color: white !important;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--dourado);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    text-decoration: none;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--violeta-principal);
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--violeta-medio);
    font-style: italic;
    letter-spacing: 0.5px;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 400;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--dourado);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0.125rem 0.5rem;
}

.dropdown-item:hover {
    background-color: var(--roxo-suave);
    color: var(--violeta-principal);
}

/* ============================================
   Botões
   ============================================ */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--violeta-principal);
    color: var(--off-white);
}

.btn-primary:hover {
    background-color: var(--violeta-medio);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-outline-primary {
    border: 2px solid var(--violeta-principal);
    color: var(--violeta-principal);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--violeta-principal);
    color: var(--off-white);
}

.btn-secondary {
    background-color: var(--dourado);
    color: var(--preto-suave);
}

.btn-secondary:hover {
    background-color: var(--dourado-suave);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--violeta-principal) 0%, var(--violeta-medio) 100%);
    color: var(--off-white);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    color: var(--off-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   Cards de Produto
   ============================================ */
.product-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-color);
    border-color: var(--violeta-principal);
    border-radius: 1.25rem;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--roxo-suave);
    border-radius: 1rem 1rem 0 0;
}

.product-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: var(--violeta-medio);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    color: var(--violeta-principal);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    color: var(--violeta-principal);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ============================================
   Seções
   ============================================ */
.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--violeta-principal), var(--dourado));
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
}

/* ============================================
   Categorias
   ============================================ */
.category-card {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    border-color: var(--violeta-principal);
    background-color: var(--roxo-suave);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(45, 27, 78, 0.15);
    border-radius: 1.75rem;
}

.category-icon {
    font-size: 3rem;
    color: var(--violeta-principal);
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.25rem;
    color: var(--violeta-principal);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: var(--preto-suave);
    color: var(--branco);
    margin-top: var(--spacing-xl);
}

.footer-main {
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-title {
    font-family: var(--font-heading);
    color: var(--dourado);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--dourado);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--dourado);
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.footer-contact a,
.footer-contact span {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--dourado);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--off-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--dourado);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--dourado);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
}

.breadcrumb-item a {
    color: var(--violeta-principal);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* ============================================
   Carrinho
   ============================================ */
.cart-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-summary {
    background-color: white;
    border: 2px solid var(--violeta-principal);
    border-radius: 1.25rem;
    padding: 2rem;
    position: sticky;
    top: 2rem;
    box-shadow: 0 4px 16px rgba(45, 27, 78, 0.1);
}

/* ============================================
   Formulários
   ============================================ */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--violeta-principal);
    box-shadow: 0 0 0 0.2rem rgba(45, 27, 78, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ============================================
   Alertas
   ============================================ */
.alert {
    border-radius: 0.75rem;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

/* ============================================
   Paginação
   ============================================ */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--violeta-principal);
    border-color: var(--border-color);
    border-radius: 0.5rem;
    margin: 0 0.25rem;
}

.page-link:hover {
    background-color: var(--roxo-suave);
    border-color: var(--violeta-principal);
    color: var(--violeta-principal);
}

.page-item.active .page-link {
    background-color: var(--violeta-principal);
    border-color: var(--violeta-principal);
}

/* ============================================
   Utilitários
   ============================================ */
.text-primary-custom {
    color: var(--violeta-principal) !important;
}

.bg-primary-custom {
    background-color: var(--violeta-principal) !important;
}

.border-primary-custom {
    border-color: var(--violeta-principal) !important;
}

/* ============================================
   Responsividade
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
}

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

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