/* Layout público (layouts/public.blade.php) — base visual do site.
   Mobile-first; regras globais de cor/tipografia/botões do tema. */

:root {
    --color-gold: #C9A962;
    --color-gold-light: #E8D5A3;
    --color-gold-dark: #9A7B3E;
    --color-cream: #FAF8F5;
    --color-charcoal: #2D2D2D;
    --color-warm-gray: #6B6B6B;
}

* { -webkit-font-smoothing: antialiased; }

.font-serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-sans { font-family: 'Montserrat', -apple-system, sans-serif; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-cream);
    color: var(--color-charcoal);
}

.text-gold { color: var(--color-gold); }
.text-gold-dark { color: var(--color-gold-dark); }
.bg-gold { background-color: var(--color-gold); }
.bg-cream { background-color: var(--color-cream); }
.bg-charcoal { background-color: var(--color-charcoal); }
.border-gold { border-color: var(--color-gold); }

.btn-gold {
    background-color: var(--color-gold);
    color: white;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-1px);
}

.btn-outline-gold {
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    background-color: var(--color-gold);
    color: white;
}

.elegant-shadow {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gradient-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.nav-link {
    position: relative;
    color: var(--color-charcoal);
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}
.nav-link:hover { color: var(--color-gold); }
.nav-link:hover::after { width: 100%; }

.divider-gold {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    letter-spacing: 1px;
}

.card-elegant {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
}
.card-elegant:hover {
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb { background: var(--color-gold-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold); }

/* Hide scrollbar for carousel */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Menu mobile de fornecedores com seta */
.mobile-fornecedores-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 0;
    color: var(--color-charcoal);
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.mobile-fornecedores-btn i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--color-gold);
}

.mobile-fornecedores-btn.open i {
    transform: rotate(180deg);
}

.mobile-subcategorias {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #F9FAFB;
    border-radius: 12px;
    margin: 0 0 0 8px;
}

.mobile-subcategorias.open {
    max-height: 800px;
    transition: max-height 0.6s ease-in-out;
}

.mobile-subcategorias a {
    display: block;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #5a5a5a;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    transition: all 0.2s ease;
}

.mobile-subcategorias a:last-child {
    border-bottom: none;
}

.mobile-subcategorias a:hover {
    background-color: #D1B87F;
    color: #fff;
    padding-left: 18px;
}

.mobile-subcategorias .ver-todos {
    color: var(--color-gold);
    font-weight: 600;
}

.mobile-category-section {
    margin-top: 8px;
}
.mobile-subcat-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    padding: 10px 12px 4px 12px;
    font-weight: 600;
}

/* Botão "Meu Painel" do menu (utilizador autenticado) */
.nav-painel {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem 1rem .35rem .35rem;
    border: 1px solid var(--color-gold, #c9a962);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9a7b3e;
    transition: background .2s, color .2s;
}
.nav-painel:hover { background: #c9a962; color: #fff; }
.nav-painel-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c9a962;
    color: #fff;
    font-size: .8rem;
    letter-spacing: 0;
}
.nav-painel:hover .nav-painel-avatar { background: #fff; color: #9a7b3e; }
