:root {
    --primary: #1565c0;
    --primary-dark: #0d47a1;
    --primary-light: #e3f2fd;
    --accent: #d32f2f;
    --accent-dark: #b71c1c;
    --bg: #f5f6fa;
    --bg-white: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ───── HEADER ───── */

.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.header-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.header-name-highlight {
    color: var(--primary);
}

.header-search {
    flex: 1;
    max-width: 520px;
    position: relative;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 44px;
    border: 2px solid var(--border);
    border-radius: 24px;
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
    background: var(--bg-white);
}

.search-input::placeholder { color: #9ca3af; }

.header-city {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
}

.header-city-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.header-city-btn:hover {
    background: var(--bg);
}

.header-city-arrow {
    transition: transform 0.2s;
}

.header-city-btn[aria-expanded="true"] .header-city-arrow {
    transform: rotate(180deg);
}

.header-city-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 1100;
    list-style: none;
    padding: 6px;
    margin-top: 6px;
}

.header-city-dropdown.ativo {
    display: block;
}

.header-city-dropdown li {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.header-city-dropdown li:hover {
    background: var(--bg);
}

.header-city-dropdown li[aria-selected="true"] {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.header-share-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}
.header-share-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}


/* ───── NAV ───── */

.main-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
    padding: 12px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.ativo {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* ───── NAV CITY SELECTOR ───── */

.nav-city {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-left: 12px;
}

.nav-city-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.nav-city-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.nav-city-btn svg { flex-shrink: 0; }

.nav-city-arrow {
    transition: transform 0.2s;
}

.nav-city-btn[aria-expanded="true"] .nav-city-arrow {
    transform: rotate(180deg);
}

.nav-city-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 1100;
    list-style: none;
    padding: 6px;
    margin-top: 6px;
}

.nav-city-dropdown.ativo {
    display: block;
}

.nav-city-dropdown li {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.nav-city-dropdown li:hover {
    background: var(--bg);
}

.nav-city-dropdown li[aria-selected="true"] {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .nav-city { padding-left: 8px; }
    .nav-city-btn { padding: 5px 10px; font-size: 0.75rem; }
}

/* ───── MAIN CONTENT ───── */

.main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 24px 60px;
}

.page-heading {
    margin-bottom: 6px;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ───── BUTTONS ───── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font);
    border: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

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

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

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

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    padding: 6px 0;
    font-size: 0.85rem;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
}

.btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.8rem;
}

/* ───── BADGE ───── */

.badge-novo {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-card {
    font-size: 0.65rem;
    padding: 2px 10px;
}

/* ───── CARROSSEL ───── */

.carrossel-section {
    max-width: 860px;
    margin: 0 auto;
}

.carrossel {
    position: relative;
    overflow: hidden;
    padding: 24px 0 16px;
    border-radius: 16px;
}

.carrossel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.carrossel-slide {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 6px;
    position: relative;
}

.carrossel-card {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, box-shadow 0.5s ease;
}

.carrossel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carrossel-slide.centro .carrossel-card {
    transform: scale(1.12);
    z-index: 2;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.carrossel-slide.lado .carrossel-card,
.carrossel-slide:not(.centro):not(.lado) .carrossel-card {
    transform: scale(0.82);
    opacity: 0.45;
}

.carrossel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    user-select: none;
}

.carrossel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.carrossel-prev { left: 8px; }
.carrossel-next { right: 8px; }

.carrossel-dots {
    display: flex;
    gap: 8px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    z-index: 10;
    flex-wrap: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    width: max-content;
    margin: 10px auto 0;
}

.carrossel-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background: #94a3b8;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.carrossel-dot.ativo { background: var(--primary); transform: scale(1.3); }

@media (max-width: 768px) {
    .carrossel { padding: 14px 0 8px; }
    .carrossel-slide { padding: 6px 4px; }
    .carrossel-btn { width: 38px; height: 38px; font-size: 1.2rem; }
}

/* ───── CARROSSEL LIGHTBOX ───── */

.carrossel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.carrossel-lightbox.ativo {
    opacity: 1;
    visibility: visible;
}

.carrossel-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
    z-index: 10;
}

.carrossel-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.08);
}

.carrossel-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
    z-index: 10;
    user-select: none;
}

.carrossel-lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.08);
}

.carrossel-lightbox-prev { left: 16px; }
.carrossel-lightbox-next { right: 16px; }

.carrossel-lightbox-body {
    position: relative;
    max-width: calc(100vw - 170px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.carrossel-lightbox-body img {
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    object-fit: contain;
}

.carrossel-lightbox-link {
    display: none;
}

.carrossel-lightbox-link.visivel {
    display: inline-flex;
}

@media (max-width: 768px) {
    .carrossel-lightbox { padding: 16px; }
    .carrossel-lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; }
    .carrossel-lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
    .carrossel-lightbox-prev { left: 6px; }
    .carrossel-lightbox-next { right: 6px; }
    .carrossel-lightbox-body { max-width: calc(100vw - 96px); }
}

/* ───── CATALOG SECTION ───── */

.catalog-section {
    display: block;
}

/* ───── SIDEBAR ───── */

.sidebar {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 4px;
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.filter-group {
    margin-bottom: 18px;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    padding: 4px 0;
}

.filter-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.filter-empty {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ───── CATALOG TOOLBAR ───── */

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.catalog-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-mobile-filter {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text);
}

.btn-mobile-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ───── CARD GRID ───── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-thumb {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.card-bg,
.card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.card-bg {
    object-fit: cover;
    filter: blur(60px);
    opacity: 0.7;
}

.card-img {
    object-fit: contain;
    z-index: 1;
}

.card-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-light), #bbdefb);
}

.card-body {
    padding: 12px 14px 14px;
}

.card-store {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
    margin-bottom: 8px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.card-validade {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.text-expired {
    color: #d32f2f;
    font-weight: 700;
}

.card-footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.card-whatsapp {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.card-whatsapp:hover {
    background: #e8f5e9;
}


.card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
}

/* ───── WHATSAPP FLOATING BUTTON ───── */

.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
}

@media (max-width: 600px) {
    .whatsapp-btn {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
}

/* ───── SIDEBAR OVERLAY (mobile) ───── */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0,0,0,0.4);
}

.sidebar-overlay.ativo {
    display: block;
}

/* ───── EMPTY ───── */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 1rem;
}

/* ───── RESPONSIVE ───── */

@media (max-width: 1200px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-section { gap: 24px; }
}

@media (max-width: 900px) {
    .catalog-section { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        z-index: 1000;
        border-radius: 0;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    .sidebar.ativo { transform: translateX(0); }
    .sidebar-close { display: block; }
    .btn-mobile-filter { display: inline-flex; }
}

@media (max-width: 768px) {
    .header-inner { height: 56px; gap: 12px; padding: 0 16px; }
    .header-name { font-size: 0.95rem; }
    .header-logo { width: 32px; height: 32px; }
    .header-search { max-width: none; }
    .search-input { height: 38px; font-size: 0.85rem; }
    .header-city-text { font-size: 0.8rem; }
    .main-content { padding: 8px 16px 40px; }
    .page-title { font-size: 1.1rem; }
    .page-subtitle { font-size: 0.75rem; }
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .card-body { padding: 10px 12px 12px; }
    .card-title { font-size: 0.8rem; }

}

@media (max-width: 500px) {
    .header-inner { gap: 8px; }
    .header-search { flex: 1; }
    .search-input { padding-left: 38px; }
    .search-icon { left: 12px; width: 18px; height: 18px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-body { padding: 8px 10px 10px; }
    .card-store { font-size: 0.7rem; }
    .card-title { font-size: 0.75rem; -webkit-line-clamp: 2; min-height: 2em; }
    .card-validade { font-size: 0.7rem; }
    .badge-card { font-size: 0.6rem; padding: 1px 8px; }
    .nav-link { padding: 10px 14px; font-size: 0.8rem; }
    .page-heading { margin-bottom: 8px; }
}

@media (max-width: 520px) {
    .header-inner { gap: 6px; padding: 0 12px; }
    .header-share-btn { width: 34px; height: 34px; flex-shrink: 0; }
    .header-city-text { max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
    .header-name span { display: none; }
    .share-modal { padding: 20px 16px; }
    .share-grid { gap: 8px; }
    .share-grid .share-btn { padding: 12px 4px; }
}

@media (max-width: 380px) {
    .card-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .btn { padding: 8px 16px; font-size: 0.8rem; }
}

/* ───── SHARE MODAL ───── */

.share-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    padding: 16px;
}
.share-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 360px;
    width: 100%;
    position: relative;
    transform: translateY(12px);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.share-overlay.active .share-modal {
    transform: translateY(0);
}

.share-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.15s;
}
.share-close:hover { background: #e0e0e0; }

.share-title {
    margin: 0 0 18px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.share-btn-copy {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f9fafb;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
    transition: background 0.15s;
}
.share-btn-copy:hover { background: #f0f1f3; }

.share-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.share-grid .share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: background 0.15s, border-color 0.15s;
}
.share-grid .share-btn:hover {
    background: #f9fafb;
    border-color: #c0c4cc;
}
.share-grid .share-btn span { font-weight: 500; }
