/* ==========================================================================
   STYLE3.CSS — Global Design System
   Loja CIBI — E-commerce Missionário
   
   Estética: Editorial Luxury — espaçamento generoso, tipografia refinada,
   paleta quente com acento dourado, micro-interações sofisticadas
   Inspiração: Aesop, COS, Le Labo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
    --ink: #111111;
    --ink-soft: #2a2a2a;
    --ink-muted: #666666;
    --ink-faded: #999999;
    --ink-ghost: #bbbbbb;

    --paper: #fefcf9;
    --paper-warm: #f8f5f0;
    --paper-mid: #f0ece5;
    --paper-deep: #e6e0d6;

    --gold: #b8963e;
    --gold-light: #d4b96a;
    --gold-dark: #96782f;
    --gold-wash: #f6f0e0;

    --success: #3a7d5c;
    --success-wash: #eaf5ef;
    --error: #c43c3c;
    --error-wash: #fceaea;
    --warning: #c4883c;
    --warning-wash: #fdf3e8;

    --white: #ffffff;
    --black: #000000;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.07);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.09);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-inner: inset 0 1px 3px rgba(0,0,0,0.06);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 0.18s var(--ease);
    --t-base: 0.35s var(--ease);
    --t-slow: 0.6s var(--ease);

    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
    --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
    --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

    --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
    --r-xl: 24px; --r-full: 999px;

    --container: 1200px;
    --container-narrow: 920px;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold); }
::selection { background: var(--gold); color: var(--white); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r-sm); }

/* TIPOGRAFIA */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500; color: var(--ink);
    line-height: 1.1; letter-spacing: -0.02em;
}
h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--ink); line-height: 1.3; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); margin-bottom: var(--s-6); }
h2 { font-size: clamp(1.875rem, 4.5vw, 3rem); margin-bottom: var(--s-5); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--s-4); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: var(--s-3); }
h5 { font-size: 1rem; margin-bottom: var(--s-3); }
h6 { font-size: 0.875rem; margin-bottom: var(--s-2); }
p { margin-bottom: var(--s-4); color: var(--ink-muted); }

.label {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--gold); display: block; margin-bottom: var(--s-4);
}
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--ink-muted); font-weight: 300; }
.text-muted { color: var(--ink-faded) !important; }
.text-gradient {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.divider { width: 40px; height: 1px; background: var(--gold); }

/* LAYOUT */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); width: 100%; }
.section-padding { padding: var(--s-24) 0; }
@media (max-width: 768px) {
    .container { padding: 0 var(--s-5); }
    .section-padding { padding: var(--s-16) 0; }
}

/* NAVBAR */
.navbar {
    background: rgba(254,252,249,0.85) !important;
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: var(--s-4) 0; position: sticky; top: 0; z-index: 1000;
    transition: all var(--t-base);
}
.navbar.scrolled { padding: var(--s-3) 0; box-shadow: var(--shadow-sm); }
.navbar-brand {
    font-family: 'Cormorant Garamond', serif; font-size: 1.625rem;
    font-weight: 600; color: var(--ink) !important; letter-spacing: -0.03em;
}
.navbar-brand:hover { opacity: 0.6; }
.navbar-nav .nav-link {
    font-size: 0.85rem; font-weight: 500; color: var(--ink-muted) !important;
    padding: var(--s-2) var(--s-4) !important; border-radius: var(--r-full);
    transition: all var(--t-fast); letter-spacing: 0.02em;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--ink) !important; background: var(--paper-mid);
}

/* BOTÕES */
.btn {
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.85rem;
    letter-spacing: 0.04em; border-radius: var(--r-full);
    padding: 0.8rem 2rem; border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    line-height: 1; transition: all var(--t-fast); text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-soft); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-success { background: var(--gold); color: var(--white); }
.btn-success:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-primary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline-primary:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-outline-primary.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-outline-secondary { background: transparent; color: var(--ink-muted); border: 1.5px solid var(--paper-deep); }
.btn-outline-secondary:hover { background: var(--paper-mid); color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-lg { padding: 1rem 2.5rem; font-size: 0.9rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.78rem; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }

/* CARDS */
.card {
    background: var(--white); border: none; border-radius: var(--r-lg);
    overflow: hidden; height: 100%; transition: all var(--t-base);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.card-img-top { height: 300px; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card-img-top { transform: scale(1.06); }
.card-body { padding: var(--s-6) var(--s-6) var(--s-8); }
.card-title { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-bottom: var(--s-2); line-height: 1.35; }
.card-text { color: var(--ink-faded); font-size: 0.875rem; }

/* PREÇOS */
.preco-container { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.preco-original { color: var(--ink-ghost); text-decoration: line-through; font-size: 0.875rem; }
.preco-final { font-weight: 700; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em; }
.preco-promocao {
    background: var(--error); color: var(--white); padding: 3px 10px;
    border-radius: var(--r-full); font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
}

/* HERO */
.hero-section {
    position: relative; min-height: 85vh; display: flex; align-items: center;
    justify-content: center; background: var(--ink); color: var(--white);
    text-align: center; overflow: hidden;
}
.hero-section::after {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.035; z-index: 1; pointer-events: none; mix-blend-mode: overlay;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-section h1 { color: var(--white); font-weight: 400; letter-spacing: -0.03em; }
.hero-section .lead { color: rgba(255,255,255,0.65); font-size: 1.15rem; max-width: 560px; margin: 0 auto var(--s-10); }

/* HERO MINIMALIST */
section.hero-section.hero-minimalist { background: linear-gradient(155deg, var(--ink) 0%, #1a1a2e 60%, #0d1b3e 100%); }
section.hero-section.hero-minimalist h1, section.hero-section.hero-minimalist p { color: var(--white); }
section.hero-section.hero-minimalist .hero-campaign-logo { max-width: 420px; margin-right: auto; filter: drop-shadow(0 12px 28px rgba(0,0,0,0.35)); }
section.hero-section.hero-minimalist .text-gradient { background: linear-gradient(135deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
section.hero-section.hero-minimalist .btn-outline-light { border-color: rgba(255,255,255,0.4); color: var(--white); }
section.hero-section.hero-minimalist .btn-outline-light:hover { background: var(--white); color: var(--ink); }
@media (max-width: 991.98px) {
    section.hero-section.hero-minimalist .row { display: flex; flex-direction: row; align-items: center; gap: 1.5rem; }
    section.hero-section.hero-minimalist .col-lg-6, section.hero-section.hero-minimalist .col-lg-4, section.hero-section.hero-minimalist .col-lg-8 { flex: 1 1 0; text-align: left; }
    section.hero-section.hero-minimalist .col-lg-4 { flex: 0 0 auto; }
    section.hero-section.hero-minimalist .hero-campaign-logo { max-width: 100px; }
    section.hero-section.hero-minimalist h1 { font-size: 1.5rem; }
    section.hero-section.hero-minimalist .lead { display: none; }
    section.hero-section.hero-minimalist .d-flex.gap-3 { flex-direction: column; align-items: flex-start; }
}
.hero-logo-container, .hero-minimalist::before, .hero-background-image { display: none; }

/* FEATURE CARDS */
.feature-card {
    text-align: center; padding: var(--s-12) var(--s-8); border-radius: var(--r-xl);
    background: var(--white); border: 1px solid var(--paper-mid);
    transition: all var(--t-base); height: 100%;
}
.feature-card:hover { border-color: var(--gold-wash); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon {
    width: 64px; height: 64px; border-radius: var(--r-lg);
    background: var(--gold-wash); display: flex; align-items: center;
    justify-content: center; margin: 0 auto var(--s-6);
    font-size: 1.35rem; color: var(--gold); transition: all var(--t-base);
}
.feature-card:hover .feature-icon { background: var(--gold); color: var(--white); transform: rotate(-6deg) scale(1.08); }
.feature-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 600; }
.feature-card p { font-size: 0.9rem; color: var(--ink-faded); margin-bottom: 0; }

/* BACKGROUNDS */
.bg-light { background: var(--paper-warm) !important; }
.bg-dark { background: var(--ink) !important; color: var(--white); }
.bg-primary-light { background: var(--white) !important; border-radius: var(--r-lg); border: 1px solid var(--paper-mid); transition: all var(--t-base); }
.bg-primary-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-wash); }
.text-primary { color: var(--gold) !important; }

/* FORMS */
.form-control, .form-select { font-family: 'Outfit', sans-serif; border: 1.5px solid var(--paper-deep); border-radius: var(--r-md); padding: 0.75rem 1rem; font-size: 0.9rem; color: var(--ink); background: var(--white); transition: all var(--t-fast); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,150,62,0.1); outline: none; }
.form-control::placeholder { color: var(--ink-ghost); }
.form-label { font-weight: 600; font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--s-2); }

/* CAROUSEL */
.carousel-item { padding: var(--s-10) var(--s-6); }
.blockquote { border-left: 2px solid var(--gold); padding-left: var(--s-6); font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-style: italic; line-height: 1.8; color: var(--ink-soft); }
.blockquote-footer { margin-top: var(--s-4); font-family: 'Outfit', sans-serif; font-size: 0.85rem; color: var(--ink-faded); font-style: normal; }

/* BREADCRUMB */
.breadcrumb { font-size: 0.8rem; margin: 0; }
.breadcrumb-item a { color: var(--ink-faded); }
.breadcrumb-item a:hover { color: var(--gold); }
.breadcrumb-item.active { color: var(--ink); font-weight: 500; }

/* BADGES */
.badge { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.06em; padding: 0.3em 0.8em; border-radius: var(--r-full); }
.badge.bg-danger { background: var(--error) !important; }
.badge.bg-success { background: var(--success) !important; }
.badge.bg-warning { background: var(--warning) !important; color: var(--white) !important; }
.badge.bg-secondary { background: rgba(0,0,0,0.45) !important; }

/* FOOTER */
.footer { background: var(--ink); color: rgba(255,255,255,0.55); padding: var(--s-20) 0 var(--s-10); margin-top: var(--s-24); }
.footer h5, .footer h6 { font-family: 'Outfit', sans-serif; color: var(--white); font-weight: 600; }
.footer a { color: rgba(255,255,255,0.5); }
.footer a:hover { color: var(--gold); }
.footer hr { border-color: rgba(255,255,255,0.08); }

/* ESTOQUE */
.stock-indicator { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.stock-indicator.bg-success { background: var(--success) !important; box-shadow: 0 0 0 3px rgba(58,125,92,0.15); }
.stock-indicator.bg-danger { background: var(--error) !important; box-shadow: 0 0 0 3px rgba(196,60,60,0.15); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in { animation: fadeUp 0.65s var(--ease) both; }

[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }

/* LOADING */
.spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid transparent; border-top: 2px solid currentColor; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--paper-deep); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-ghost); }

/* A11Y */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* PRINT */
@media print { .navbar, .footer, .btn, .breadcrumb { display: none !important; } body { font-size: 11pt; color: #000; background: #fff; } }

/* RESPONSIVE */
@media (max-width: 768px) {
    h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
    .hero-section { min-height: 65vh; padding: var(--s-16) 0; }
    .card-img-top { height: 220px; }
    .btn:not(.btn-sm):not(.btn-ghost) { width: 100%; }
}
@media (max-width: 576px) {
    .feature-icon { width: 52px; height: 52px; font-size: 1.15rem; }
    .card-body { padding: var(--s-5); }
}
