@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1b7cff;
    --primary-light: #4d9bff;
    --primary-dark: #0a5fdb;
    --primary-glow: rgba(27, 124, 255, 0.22);
    --secondary: #111827;
    --secondary-light: #1f2937;
    --accent: #2563eb;
    --success: #25d366;
    --success-hover: #1DA851;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #05080d;
    --text-light: #3f3f46;
    --text-muted: #71717a;
    --bg: #ffffff;
    --bg-light: #f5f5f5;
    --bg-gray: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-dark: #18181b;
    --border: #e5e7eb;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 0 25px rgba(27, 124, 255, 0.15);
    --shadow-whatsapp: 0 0 25px rgba(37, 211, 102, 0.25);
    --radius: 10px;
    --radius-lg: 14px;
    --max-width: 1280px;
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --gradient-primary: linear-gradient(135deg, #0a5fdb 0%, #1b7cff 50%, #4d9bff 100%);
    --gradient-dark: linear-gradient(180deg, #0b0e12 0%, #111827 100%);
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    font-weight: 800;
    font-style: italic;
    color: var(--text);
}

h1 { font-size: clamp(1.85rem, 2.4vw, 2.6rem); font-weight: 900; }
h2 { font-size: clamp(1.55rem, 1.9vw, 2.1rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 1.5vw, 1.6rem); font-weight: 800; }
h4 { font-size: 1.12rem; font-weight: 700; }
h5 { font-size: 1.02rem; font-weight: 700; }
h6 { font-size: .95rem; font-weight: 700; }

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 15px rgba(27, 124, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(27, 124, 255, 0.5);
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    transform: translateY(-1px);
    background: var(--success-hover);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.55);
    color: white;
}

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: var(--success);
    color: #022c22;
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.3);
}

.badge-warning {
    background: var(--warning);
    color: #451a03;
}

.badge-danger {
    background: var(--danger);
    color: #fff;
}

.badge-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(27, 124, 255, 0.35);
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-4, .grid-3 { gap: 0.8rem; }
}

@media (max-width: 768px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
    .section-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   HEADER BIOVIVANCE — 2 FAIXAS
   Faixa 1 (topo):   fundo branco (logo, busca, contato, conta)
   Faixa 2 (menu):   fundo preto (#000 / #0a0a0a) com ícones/textos BRANCOS
   ============================================================ */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000000;
    border-bottom: 1px solid #1f2937;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.header-topbar {
    background: #000000;
    border-bottom: 1px solid #111827;
}

.header-topbar-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.85rem 0;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 0 0 auto;
    padding-top: 4px;
}

.header-brand .logo-img {
    max-height: 64px;
    width: auto;
    display: block;
    max-width: 320px;
}

.header-search {
    flex: 1 1 auto;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-width: 0;
}

.header-search form {
    display: flex;
    width: 100%;
    gap: 0;
    border: 1px solid #374151;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.header-search form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 124, 255, 0.22);
    transform: translateY(-1px);
}
.header-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.5rem 0.85rem;
    border: none;
    background: #ffffff;
    color: #05080d;
    font-size: 0.88rem;
    outline: none;
}
.header-search input::placeholder { color: #9ca3af; }
.header-search button {
    flex: 0 0 auto;
    background: var(--primary);
    color: #fff;
    padding: 0.48rem 0.95rem;
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background .2s;
}
.header-search button:hover { background: var(--primary-dark); }

.quick-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    align-items: center;
}
.quick-search-label {
    font-size: 0.72rem;
    color: rgba(209, 213, 219, .8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.quick-search-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #1f2937;
    background: #0b1326;
    color: #dbeafe;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .18s, border-color .18s, transform .12s, color .18s;
}
.quick-search-chip i { font-size: 0.72rem; opacity: 0.9; }
.quick-search-chip:hover {
    background: #111b38;
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-1px);
}
.quick-search-chip.whats {
    background: #022c22;
    border-color: #064e3b;
    color: #a7f3d0;
}
.quick-search-chip.whats:hover {
    background: #064e3b;
    border-color: #10b981;
    color: #ffffff;
}
.quick-search-chip.track {
    background: #132033;
    border-color: #1e3a8a;
    color: #bfdbfe;
}
.quick-search-chip.track:hover {
    background: #172554;
    border-color: #3b82f6;
    color: #ffffff;
}

.search-drop {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 120;
    background: #ffffff;
    color: #0b0d12;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, .55), 0 4px 12px -2px rgba(15,23,42,.3);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height .22s ease, opacity .18s ease;
}
.search-drop.open {
    max-height: 560px;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
}
.search-drop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem 0.55rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: .3px;
}
.search-drop-head .muted { color: #64748b; font-weight: 500; font-size: 0.75rem; }

.search-drop ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.search-drop li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.search-drop li:last-child a { border-bottom: 0; }
.search-drop li:hover a,
.search-drop li.active a { background: #eff6ff; }

.s-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.s-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}
.s-thumb-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.2rem;
}

.s-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.s-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.s-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a8a, #0c4a6e);
    color: #dbeafe;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    letter-spacing: .3px;
    white-space: nowrap;
}
.s-meta {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}
.s-price {
    font-size: 0.92rem;
    font-weight: 800;
    color: #2563eb;
    font-family: var(--font-display, 'Inter', Arial, sans-serif);
    letter-spacing: -0.01em;
}
.s-arrow {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 1rem;
    transition: color .15s, transform .15s;
}
.search-drop li:hover a .s-arrow,
.search-drop li.active a .s-arrow { color: #2563eb; transform: translateX(2px); }

.search-drop-foot {
    border-top: 1px solid #f1f5f9;
    padding: 0.75rem 1rem;
    background: #f8fafc;
}
.s-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background .18s;
}
.s-view-all:hover { background: #1d4ed8; }

@media (max-width: 760px) {
    .header-search { max-width: 100%; }
    .s-arrow { display: none; }
    .s-thumb { flex:0 0 44px; width:44px; height:44px; }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.95rem;
    border-radius: 10px;
    color: #f9fafb;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background .2s, color .2s, transform .15s;
    white-space: nowrap;
    border: 1px solid #1f2937;
    background: #0a0a0a;
}
.header-action i { font-size: 1.05rem; color: #93c5fd; }
.header-action:hover { background: #111827; color: #ffffff; transform: translateY(-1px); border-color: #374151; }
.header-action:hover i { color: #bfdbfe; }

.header-action.cart-action {
    background: #020617;
    border-color: #1e3a8a;
}
.header-action.cart-action i { color: #60a5fa; }
.header-action.cart-action:hover { background: #081229; }

.header-action.wa {
    background: #022c22;
    color: #ecfdf5;
    border-color: #064e3b;
}
.header-action.wa i { color: #34d399; }
.header-action.wa:hover { background: #022c22; border-color: #10b981; }

.header-action.track {
    background: #0b1326;
    color: #dbeafe;
    border-color: #1e3a8a;
}
.header-action.track i { color: #60a5fa; }
.header-action.track:hover { background: #0f1a33; border-color: #3b82f6; }

/* ---------- FAIXA 2: MENU FUNDO PRETO ---------- */
.header-menubar {
    background: #000000;
    color: #ffffff;
}

.header-menubar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.95rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.93rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .18s, color .18s, transform .18s;
    white-space: nowrap;
}

.main-nav a i {
    font-size: 0.98rem;
    color: #cbd5e1;
    transition: color .18s;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateY(-1px);
}
.main-nav a:hover i { color: #ffffff; }

.main-nav a.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(27, 124, 255, 0.25);
}
.main-nav a.active i { color: #ffffff; }

.header-extra {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.primary-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.primary-chip:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: #fff !important;
}

.language-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.8rem;
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
}
.language-chip:hover { background: rgba(255,255,255,0.12); color: #fff; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    border-radius: 6px;
}
.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s;
}
.mobile-toggle:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 1080px) {
    .header-action .label { display: none; }
    .header-action { padding: 0.55rem 0.65rem; }
}
@media (max-width: 920px) {
    .header-topbar-inner { flex-wrap: wrap; }
    .header-search { order: 3; width: 100%; max-width: none; flex: 0 0 100%; }
    .language-chip { display: none; }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-toggle { display: flex; }
    .main-nav.active {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding-top: 0.75rem;
    }
    .main-nav.active a { width: 100%; }
    .header-extra .primary-chip { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
    .header-brand .logo-img { max-height: 46px; }
}

/* ---------- FIM HEADER 2 FAIXAS ---------- */

/* Antigos estilos simples de logo (ainda usados no footer/admin) */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
    font-family: var(--font-display);
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--gradient-dark);
}

.slide {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.slider-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.slider-prev { left: 1.25rem; }
.slider-next { right: 1.25rem; }

@media (max-width: 768px) {
    .slider-arrow { width: 42px; height: 42px; font-size: 0.95rem; }
    .slider-prev { left: 0.5rem; }
    .slider-next { right: 0.5rem; }
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.slider-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot.active {
    background: white;
    width: 36px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .slide { min-height: 400px; }
    .slide-content h1 { font-size: 1.8rem; }
    .slide-content p { font-size: 1rem; }
}

.product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -8px rgba(27, 124, 255, 0.15), 0 10px 25px -10px rgba(0,0,0,0.08);
}

.product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    max-height: 180px;
    background: #f8fafc;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    max-height: 180px;
    object-fit: contain;
    object-position: center;
    padding: 8px;
    transition: transform 0.4s;
}

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

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}

.product-info {
    padding: 0.7rem 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1.22;
    min-height: 2.44em;
}

.product-price {
    margin-top: auto;
    padding-top: 0.35rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}

.price-old {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-card-footer {
    padding: 0 0.85rem 0.85rem;
    margin-top: -0.1rem;
}

.page-breadcrumb {
    background: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.page-breadcrumb .container {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.page-breadcrumb a:hover {
    color: var(--primary);
}

.page-breadcrumb .current {
    color: var(--primary);
    font-weight: 500;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 1rem;
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.gallery-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-gray);
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-head h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-head .product-category {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.product-price-large {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 1.5rem 0;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-price-large .price-current {
    font-size: 2.25rem;
}

.product-price-large .price-old {
    font-size: 1.1rem;
}

.product-description {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.product-stock .in-stock {
    color: var(--success);
    font-weight: 600;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.qty-label {
    font-weight: 600;
    min-width: 80px;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-btn {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--bg-light);
    color: var(--text);
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--bg-gray);
}

.qty-input {
    width: 60px;
    text-align: center;
    border: none;
    padding: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    -moz-appearance: textfield;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shipping-calculator {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.shipping-calculator h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.shipping-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.shipping-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}

.shipping-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 124, 255, 0.18);
}

.shipping-results {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid var(--border);
}

.shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-gray);
}

.shipping-option:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shipping-option:first-child {
    padding-top: 0;
}

.shipping-info .name {
    font-weight: 600;
    color: var(--text);
}

.shipping-info .deadline {
    font-size: 0.85rem;
    color: var(--text-light);
}

.shipping-price {
    font-weight: 700;
    color: var(--primary);
}

.shipping-price.free {
    color: var(--success);
}

.product-tabs {
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--primary);
    border-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: var(--secondary-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.result-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border);
}

.result-images > div {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-gray);
    position: relative;
}

.result-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-label {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.result-info {
    padding: 1rem;
}

.result-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.result-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.reviews-section {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.review-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.review-author {
    font-weight: 600;
    color: var(--text);
}

.review-stars {
    color: #fbbf24;
    font-size: 0.85rem;
}

.review-text {
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
}

.related-products {
    background: var(--bg-light);
}

.site-footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 1rem 0;
    line-height: 1.7;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
}

.social-links a:hover {
    background: var(--primary);
}

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .contact-section { grid-template-columns: 1fr; }
}

.contact-info-card {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.contact-info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-info-card > p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.contact-item-content h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.contact-item-content p {
    font-weight: 500;
}

.contact-form-card {
    background: var(--secondary-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all 0.2s;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 124, 255, 0.18);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--secondary);
    color: white;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
}

.admin-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 800;
    font-size: 1.2rem;
}

.admin-menu {
    list-style: none;
    padding: 1rem 0;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    background: var(--bg-light);
    min-height: 100vh;
}

.admin-topbar {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 40;
}

.admin-body {
    padding: 2rem;
}

@media (max-width: 768px) {
    .admin-sidebar { width: 70px; }
    .admin-brand span, .admin-menu span { display: none; }
    .admin-content { margin-left: 70px; }
    .admin-body { padding: 1rem; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.data-table {
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: var(--bg-light);
}

.data-table .thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--bg-gray);
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.actions .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.actions .btn-edit {
    background: var(--warning);
    color: white;
}

.actions .btn-delete {
    background: var(--danger);
    color: white;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input {
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 280px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0,0,0,0.08), 0 10px 25px -8px rgba(27,124,255,0.12);
    border-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(27, 124, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h1 {
    color: var(--primary);
    font-size: 1.75rem;
}

.auth-card h2 {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    animation: modalIn 0.3s;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--secondary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-light);
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

/* ============================================================
   LOGO BRANCO METÁLICO BIOVIVANCE
   Efeito metal branco profissional (idêntico ao logotipo enviado)
   Aplicado automaticamente caso logo_white.png não exista.
   ============================================================ */
.logo-metal-white {
    filter:
        brightness(0) invert(1)
        drop-shadow(0 2px 2px rgba(0,0,0,0.45));
    -webkit-filter:
        brightness(0) invert(1)
        drop-shadow(0 2px 2px rgba(0,0,0,0.45));
    transition: transform .2s ease, filter .2s ease, -webkit-filter .2s ease;
}

.logo-metal-white:hover {
    filter:
        brightness(0) invert(1)
        drop-shadow(0 3px 4px rgba(0,160,255,0.35));
    -webkit-filter:
        brightness(0) invert(1)
        drop-shadow(0 3px 4px rgba(0,160,255,0.35));
    transform: translateY(-1px);
}

/* LOGO VERSÃO COLORIDA/ESCURA — para fundos CLAROS (ex: login card branco) */
.logo-metal-dark {
    /* Leve melhoria de contraste e brilho, mantém cores originais */
    filter:
        contrast(1.05)
        saturate(1.05)
        drop-shadow(0 2px 3px rgba(0,0,0,0.12));
    -webkit-filter:
        contrast(1.05)
        saturate(1.05)
        drop-shadow(0 2px 3px rgba(0,0,0,0.12));
    transition: transform .2s ease, filter .2s ease, -webkit-filter .2s ease;
}
.logo-metal-dark:hover {
    filter:
        contrast(1.1)
        saturate(1.1)
        drop-shadow(0 3px 5px rgba(0,90,200,0.18));
    -webkit-filter:
        contrast(1.1)
        saturate(1.1)
        drop-shadow(0 3px 5px rgba(0,90,200,0.18));
    transform: translateY(-1px);
}

/* Logo no header - tamanhos responsivos */
.site-header .logo img { max-height: 70px; }
@media (max-width: 768px) {
    .site-header .logo img { max-height: 48px; }
    .footer-brand .logo img { max-height: 52px; }
    .admin-brand img { max-height: 40px !important; }
    .auth-logo img { max-height: 72px !important; }
}

/* ============================================================
   CARRINHO - DRAWER LATERAL
============================================================ */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
}
.cart-drawer.open { visibility: visible; pointer-events: auto; }

.cart-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .25s ease;
}
.cart-drawer.open .cart-drawer-overlay { opacity: 1; }

.cart-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    color: #111827;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22,.61,.36,1);
    box-shadow: -18px 0 60px -20px rgba(0,0,0,.45);
    border-left: 1px solid #e5e7eb;
}
.cart-drawer.open .cart-drawer-panel { transform: translateX(0); }

body.cart-drawer-locked { overflow: hidden; }

.cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #f9fafb;
    position: relative;
}
.cart-drawer-head h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.cart-drawer-head h3 i { color: #60a5fa; }

.cart-drawer-close {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: #e5e7eb;
    width: 36px; height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.02rem;
    transition: all .2s;
}
.cart-drawer-close:hover {
    background: rgba(239,68,68,.2);
    border-color: rgba(239,68,68,.6);
    color: #fff;
    transform: translateY(-1px);
}

.cd-toast {
    position: absolute;
    left: 1.35rem;
    bottom: -38px;
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
    padding: .5rem .85rem;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
    box-shadow: 0 8px 20px -10px rgba(16,185,129,.6);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .45rem;
    animation: cdToastIn .25s ease;
}
@keyframes cdToastIn { from { opacity:0; transform: translateY(-4px); } to { opacity:1; transform: translateY(0);} }

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: .75rem 0 1rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f3f4f6;
}
.cart-drawer-body::-webkit-scrollbar { width: 8px; }
.cart-drawer-body::-webkit-scrollbar-track { background: #f9fafb; }
.cart-drawer-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }

.cart-drawer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cdi {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: .85rem;
    padding: .95rem 1.35rem;
    border-bottom: 1px solid #f3f4f6;
    align-items: flex-start;
    transition: background .2s;
}
.cdi:hover { background: #fafbfc; }

.cdi-thumb {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.cdi-body { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.cdi-name {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.cdi-name:hover { color: #2563eb; }
.cdi-price { font-weight: 700; color: #2563eb; font-size: .92rem; }

.cdi-qty {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: .15rem;
}
.cdi-qty-btn {
    width: 28px; height: 28px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    transition: all .15s;
}
.cdi-qty-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}
.cdi-qty-val {
    min-width: 26px;
    text-align: center;
    font-weight: 700;
    color: #111827;
    font-size: .9rem;
}
.cdi-rm {
    margin-left: auto;
    width: 28px; height: 28px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    transition: all .15s;
}
.cdi-rm:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    transform: translateY(-1px);
}
.cdi-sub {
    font-weight: 800;
    color: #0f172a;
    font-size: .95rem;
    padding-top: 26px;
    white-space: nowrap;
}

.cart-drawer-empty {
    padding: 3.5rem 1.5rem;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.cart-drawer-empty i {
    font-size: 3rem;
    color: #9ca3af;
}
.cart-drawer-empty p { margin: 0; font-size: .95rem; }
.cart-drawer-empty .btn { min-width: 200px; }

.cart-drawer-foot {
    padding: 1.1rem 1.35rem 1.35rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.cart-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: .2rem;
}
.cart-drawer-subtotal span { color: #6b7280; font-size: .9rem; }
.cart-drawer-subtotal strong {
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.3px;
}
.cart-drawer-hint {
    font-size: .8rem;
    color: #64748b;
    background: #ffffff;
    padding: .55rem .75rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: .45rem;
}
.cart-drawer-hint i { color: #3b82f6; }

.cart-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin-top: .15rem;
}
.cart-drawer-actions .w-100 { width: 100%; }
.cart-drawer-actions .mt-2 { margin-top: .35rem; }
.cart-drawer-actions .btn {
    padding: .85rem 1rem;
    font-weight: 700;
    border-radius: 12px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .18s;
    width: 100%;
}
.cart-drawer-actions .btn-primary {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border-color: #1e40af;
    box-shadow: 0 8px 20px -8px rgba(37,99,235,.6);
}
.cart-drawer-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -10px rgba(37,99,235,.75);
}
.cart-drawer-actions .btn-primary.btn-lg { padding: 1rem 1rem; font-size: 1rem; }
.cart-drawer-actions .btn-outline {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}
.cart-drawer-actions .btn-outline:hover {
    border-color: #2563eb;
    color: #1d4ed8;
    background: #eff6ff;
}

@media (max-width: 640px) {
    .cart-drawer-panel { max-width: 100%; }
    .cdi { grid-template-columns: 62px 1fr auto; padding: .8rem 1rem; gap: .7rem; }
    .cdi-thumb { width: 62px; height: 62px; }
    .cart-drawer-subtotal strong { font-size: 1.25rem; }
    .cart-drawer-head { padding: 1rem; }
    .cart-drawer-foot { padding: 1rem; }
    .cd-toast { font-size: .8rem; left: 1rem; }
}
