/* ============================================
   Axioma Shop - Custom Styles
   Only product-specific styles here.
   Everything else comes from the design system CDN.
   ============================================ */

/* ── Sidebar scroll ── */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden;
}
.sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* ── Sidebar Accordion (sanfona) ── */
.sidebar-accordion {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.sidebar-accordion:hover .sidebar-section-label {
    color: var(--text);
}
.sidebar-accordion-arrow {
    transition: transform 0.2s;
}
.sidebar-accordion.collapsed .sidebar-accordion-arrow {
    transform: rotate(-90deg);
}
.sidebar-accordion-items {
    overflow: hidden;
    max-height: 1500px;
    transition: max-height 0.25s ease;
}
.sidebar-accordion.collapsed + .sidebar-accordion-items {
    max-height: 0;
}
.sidebar-submenu {
    margin: 4px 8px;
    padding: 8px 12px;
    border-radius: 10px;
}
.sidebar-submenu-items {
    margin: 0 8px 8px 20px;
    padding-left: 10px;
    border-left: 1px solid var(--border, #e2e8f0);
}
.sidebar-subitem {
    padding-left: 8px;
}

/* ── Order Status Select (inline na tabela) ── */
.order-status-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 24px 4px 10px;
    border-radius: 20px;
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    transition: box-shadow 0.15s;
}
.order-status-select:hover {
    box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.25);
}
.order-status-select.status-pending {
    background-color: #fef9c3;
    color: #854d0e;
}
.order-status-select.status-confirmed {
    background-color: #dbeafe;
    color: #1e40af;
}
.order-status-select.status-shipped {
    background-color: #e0e7ff;
    color: #4338ca;
}
.order-status-select.status-delivered {
    background-color: #dcfce7;
    color: #166534;
}
.order-status-select.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ── Autocomplete Dropdown ── */
.autocomplete-wrap {
    position: relative;
}
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.autocomplete-dropdown.open {
    display: block;
}
.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--accent-light, #eef2ff);
}
.autocomplete-item .autocomplete-hint {
    font-size: 12px;
    color: var(--text-muted, #999);
}

/* ── Category Multi-Select Tags ── */
.category-tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: 42px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    cursor: text;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.category-tags-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.15);
}
.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.category-tag button {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.category-tag button:hover { opacity: 1; }
.category-tags-search {
    border: none;
    outline: none;
    background: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    min-width: 100px;
    flex: 1;
    padding: 2px 0;
}
.category-tags-search::placeholder { color: var(--text-muted); }

/* ── Bulk Link Products (in category modal) ── */
.link-products-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.link-products-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    font-size: 13px;
    transition: background 0.1s;
}
.link-products-list label:last-child { border-bottom: none; }
.link-products-list label:hover { background: var(--accent-glow); }

/* ── Accent (Shop) ── */
:root {
    --accent: #4f6ef7;
    --accent-light: #eef2ff;
    --accent-dark: #3b5de7;
    --accent-glow: rgba(79, 110, 247, 0.10);
}

/* ── Onboarding Wizard ── */
.wizard {
    max-width: 560px;
    margin: 40px auto;
    padding: 0 20px;
}

.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.2s;
}
.step-dot.active { background: var(--accent); }
.step-dot.done { background: var(--green); }

.wizard-step { display: none; }
.wizard-step.active { display: block; }

.wizard-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.wizard-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ── Attribute Builder ── */
.attr-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.attr-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.attr-options-container {
    width: 100%;
    flex-basis: 100%;
}

.attr-item .form-group { margin-bottom: 0; flex: 1; }

.attr-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    line-height: 1;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    margin-top: 20px;
}
.attr-remove:hover { color: var(--red); background: rgba(239, 68, 68, 0.06); }

.attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.attr-option-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.attr-option-tag button {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
}

/* ── Product Card (Grid view) ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: var(--bg-input);
}

.product-card-body {
    padding: 10px 14px;
}

.product-card-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-attrs,
.product-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.product-card-cost {
    font-size: 12px;
    color: var(--text-muted);
}

.product-card-profit {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
}

.product-card-barcode {
    font-size: 11px;
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-muted);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-stock {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.product-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.product-card-actions .btn {
    font-size: 11px;
    padding: 1px 8px;
}

.price-editor-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.price-editor-product-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}
.price-editor-bulk {
    display: grid;
    grid-template-columns: minmax(180px, 220px) auto;
    gap: 12px;
    align-items: end;
}
.price-editor-list {
    display: grid;
    gap: 12px;
}
.price-editor-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}
.price-editor-item-copy {
    min-width: 0;
}
.price-editor-item-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.price-editor-item-meta {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.price-editor-item-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
}

@media (max-width: 900px) {
    .price-editor-head {
        flex-direction: column;
    }
    .price-editor-bulk {
        width: 100%;
        grid-template-columns: 1fr;
    }
    .price-editor-item {
        grid-template-columns: 1fr;
    }
}

/* ── Image Upload ── */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 24px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: var(--text-muted);
    font-size: 14px;
}
.image-upload-area:hover,
.image-upload-area.drag-over {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.image-preview-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Profit display ── */
.profit-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    color: var(--green);
    font-weight: 600;
}

/* ── View Toggle (grid/table) ── */
.view-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.view-btn:not(:last-child) { border-right: 1px solid var(--border); }
.view-btn.active { background: var(--accent-light); color: var(--accent); }

/* ── Delivery Fee inline ── */
.fee-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.fee-inline .form-input { margin-bottom: 0; }

/* ── Public Store: Cart badge ── */
.cart-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: transform 0.2s;
}
.cart-fab:hover { transform: scale(1.08); }

.cart-fab svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Branch Selector ── */
.branch-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
}
.branch-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.15);
}

.branch-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--accent-light);
    border: 1px solid rgba(79, 110, 247, 0.2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.branch-label-icon {
    font-size: 16px;
}

.branch-stock-grid {
    padding: 8px 0;
}

/* ── Slug preview ── */
.slug-preview {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.slug-preview strong {
    color: var(--accent);
}

/* ── Landing Page (dark) ── */
.landing-dark {
    background: #0B0E14;
    color: #fff;
}

.landing-dark .hero {
    padding: 100px 20px 80px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 110, 247, 0.08) 0%, transparent 60%);
}

.landing-dark .hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.12;
    max-width: 720px;
    margin: 0 auto 20px;
    letter-spacing: -0.02em;
}

.landing-dark .hero .lead {
    font-size: 1.15rem;
    color: #8B95A5;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.landing-dark .navbar {
    background: rgba(11, 14, 20, 0.95);
    border-bottom: 1px solid #1A1F2E;
}

.landing-dark .navbar-brand { color: #fff; }

.landing-dark .section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.landing-dark .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.landing-dark .feature-card {
    background: #12161F;
    border: 1px solid #1A1F2E;
    border-radius: 12px;
    padding: 24px;
}

.landing-dark .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(79, 110, 247, 0.1);
    color: #4f6ef7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.landing-dark .feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.landing-dark .feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.landing-dark .feature-text {
    font-size: 14px;
    color: #8B95A5;
    line-height: 1.6;
}

.landing-dark .cta-section {
    text-align: center;
    padding: 80px 20px;
}

.landing-dark .btn-landing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: #4f6ef7;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.landing-dark .btn-landing:hover {
    background: #3b5de7;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 110, 247, 0.3);
}

/* ── PDV Layout ── */
.pdv-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    height: calc(100vh - 80px);
}

.pdv-products {
    overflow-y: auto;
    padding-right: 8px;
}

.pdv-cart {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.pdv-cart > h4 {
    padding: 16px 16px 0;
}

.pdv-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px;
    min-height: 80px;
}

.pdv-cart-footer {
    border-top: 1px solid var(--border);
    padding: 16px;
    overflow-y: auto;
    max-height: 55vh;
}

.pdv-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.pdv-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
    overflow: hidden;
}
.pdv-product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.pdv-product-card.pdv-soldout {
    opacity: 0.5;
    cursor: not-allowed;
}

.pdv-product-card-img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    background: var(--bg-input);
}

.pdv-product-card-info {
    padding: 8px 10px;
}

.pdv-product-card-name {
    font-weight: 600;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.pdv-product-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

/* ── Plans Grid Responsive ── */
#plans-grid {
    overflow-x: auto;
}
@media (max-width: 1100px) {
    #plans-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 700px) {
    #plans-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 420px) {
    #plans-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Transfer item in cart ── */
.transfer-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.transfer-cart-item:last-child { border-bottom: none; }
.transfer-cart-item-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--bg-input);
    flex-shrink: 0;
}
.transfer-cart-item-info { flex: 1; min-width: 0; }
.transfer-cart-item-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transfer-cart-item-stock { font-size: 11px; color: var(--text-muted); }
.transfer-cart-item-qty {
    width: 56px;
    padding: 4px 6px;
    font-size: 13px;
    text-align: center;
}

/* ── PDV Responsive ── */
@media (max-width: 900px) {
    .pdv-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .pdv-products {
        max-height: 40vh;
        overflow-y: auto;
    }
    .pdv-cart-footer {
        max-height: none;
    }
}

/* ── Product Image Carousel ── */
.product-carousel {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
}
.carousel-track {
    position: relative;
    width: 100%;
    height: 300px;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.carousel-slide.active {
    opacity: 1;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.carousel-arrow:hover { background: rgba(0,0,0,0.7); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-dot.active {
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

/* ── Importar Imagens (bulk import) ── */
.import-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: var(--text-muted);
}
.import-dropzone:hover,
.import-dropzone.drag-over {
    border-color: var(--accent);
    background: var(--accent-glow);
}
.import-dropzone-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.import-dropzone-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.import-dropzone-hint {
    font-size: 13px;
}

.import-table {
    width: 100%;
    border-collapse: collapse;
}
.import-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.import-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    vertical-align: middle;
}
.import-table tr:last-child td {
    border-bottom: none;
}

.import-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--bg-input);
    flex-shrink: 0;
}

.import-match-high { color: var(--green); font-weight: 600; }
.import-match-medium { color: #d97706; font-weight: 600; }
.import-match-none { color: var(--text-muted); }

.import-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.import-remove-btn:hover {
    color: var(--red);
    background: rgba(239, 68, 68, 0.06);
}

.import-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.import-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}
.import-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.import-stat-dot.green { background: var(--green); }
.import-stat-dot.orange { background: #d97706; }
.import-stat-dot.gray { background: var(--text-muted); }

.import-progress {
    margin-top: 16px;
}
.import-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.import-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.import-progress-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
}

/* ── Dashboard Stat Cards (clickable) ── */
.stat-card-clickable {
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
}
.stat-card-clickable:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.stat-card-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.stat-card-badge.yellow { background: #eab308; }
.stat-card-badge.red { background: var(--red); }

/* ── Responsive landing ── */
@media (max-width: 768px) {
    .landing-dark .hero h1 { font-size: 2rem; }
    .landing-dark .hero { padding: 60px 16px 40px; }
    .landing-dark .section-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .landing-dark .hero h1 { font-size: 1.75rem; }
}

/* ── Variation Grid (Grade de Produto) ── */
.variation-axes-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.variation-axis-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 20px; font-size: 13px;
    border: 1px solid var(--border-light); cursor: pointer; user-select: none;
    transition: all 0.15s;
}
.variation-axis-chip:hover { border-color: var(--accent); }
.variation-axis-chip.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.variation-grid-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
}
.variation-grid-table th {
    text-align: left; padding: 8px 6px; border-bottom: 2px solid var(--border-light);
    font-weight: 600; font-size: 12px; color: var(--text-secondary);
}
.variation-grid-table td {
    padding: 6px; border-bottom: 1px solid var(--border-light); vertical-align: middle;
}
.variation-grid-table input[type="number"] {
    width: 70px; padding: 4px 6px; border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); font-size: 13px; text-align: center;
}
.variation-grid-table input[type="number"]:focus {
    outline: none; border-color: var(--accent);
}
.variation-img-thumbs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.variation-img-thumb {
    width: 36px; height: 36px; border-radius: 4px; object-fit: contain; background: #f5f5f5;
    border: 1px solid var(--border-light); cursor: pointer;
}
.variation-img-thumb:hover { border-color: var(--accent); }
.variation-img-add {
    width: 36px; height: 36px; border-radius: 4px; display: flex;
    align-items: center; justify-content: center; border: 1px dashed var(--border-light);
    cursor: pointer; font-size: 18px; color: var(--text-muted);
    transition: border-color 0.15s;
}
.variation-img-add:hover { border-color: var(--accent); color: var(--accent); }
.variation-grid-total {
    font-size: 13px; color: var(--text-secondary); margin-top: 8px;
}

/* ── Variation Grid: Mobile Cards ── */
.variation-grid-mobile { display: none; }
@media (max-width: 768px) {
    .variation-grid-desktop { display: none; }
    .variation-grid-mobile { display: block; }
}
.var-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-input);
}
.var-card-header {
    font-size: 14px;
    font-weight: 700;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}
.var-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.var-card-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.var-card-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
.var-card-field input[type="number"] {
    width: 100%;
    max-width: 160px;
    padding: 8px 10px;
    font-size: 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: left;
}
.var-card-field input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
}
.var-card-branches summary {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 0;
}
.var-card-branch-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.var-card-branch-row label {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 80px;
}
.var-card-branch-row input[type="number"] {
    width: 80px;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
}
.var-card-branch-row input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
}
.var-card-branch-total {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 4px;
}
.var-card-photos {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.variation-img-thumb-mobile {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: contain;
    background: #f5f5f5;
    border: 1px solid var(--border-light);
    cursor: pointer;
}
.variation-img-thumb-mobile:hover { border-color: var(--accent); }
.variation-img-add-mobile {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-light);
    cursor: pointer;
    font-size: 22px;
    color: var(--text-muted);
    transition: border-color 0.15s;
}
.variation-img-add-mobile:hover { border-color: var(--accent); color: var(--accent); }
.var-img-remove-mobile {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    border: none;
    line-height: 1;
}

/* ── Photo Manager Modal ── */
.photo-manager-drop {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 24px 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: var(--text-muted);
    font-size: 14px;
}
.photo-manager-drop.drag-over {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb, 99,102,241), 0.06);
}
.photo-manager-hint {
    margin: 0 24px 12px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: #ef4444;
    font-size: 13px;
}
.photo-manager-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 24px 16px;
    min-height: 60px;
}
.photo-manager-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-light);
    overflow: hidden;
    cursor: grab;
    transition: opacity 0.2s, transform 0.15s, border-color 0.15s;
}
.photo-manager-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
    pointer-events: none;
}
.photo-manager-item.dragging {
    opacity: 0.4;
}
.photo-manager-item.drag-over-item {
    transform: scale(1.05);
    border-color: var(--accent);
}
.pm-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    z-index: 2;
}
.pm-badge {
    position: absolute;
    bottom: 2px;
    left: 2px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
    font-weight: 600;
}
@media (max-width: 480px) {
    .photo-manager-item { width: 100px; height: 100px; }
    .photo-manager-drop { padding: 18px; margin: 0 16px 10px; }
    .photo-manager-grid { padding: 0 16px 12px; gap: 8px; }
}
/* PDV variation popover */
.pdv-variation-popover {
    position: fixed; z-index: 1000; background: var(--bg-card);
    border: 1px solid var(--border-light); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); padding: 16px; min-width: 280px; max-width: 360px;
}
.pdv-variation-popover h4 { margin: 0 0 12px; font-size: 14px; }
.pdv-variation-preview-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #f5f5f5;
    cursor: zoom-in;
    text-align: left;
}
.pdv-variation-preview-btn img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    flex-shrink: 0;
}
.pdv-variation-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text-secondary);
    font-size: 12px;
}
.pdv-variation-preview-meta strong {
    color: var(--text);
    font-size: 13px;
}
.variation-option-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.variation-chip {
    padding: 4px 12px; border-radius: 16px; font-size: 12px; cursor: pointer;
    border: 1px solid var(--border-light); transition: all 0.15s; user-select: none;
}
.variation-chip:hover { border-color: var(--accent); }
.variation-chip.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.variation-chip.soldout { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.variation-chip.disabled { opacity: 0.4; cursor: not-allowed; }

/* Loja publica variation selector */
.loja-variation-selector { margin-bottom: 16px; }
.loja-variation-selector label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text-secondary); }
.loja-variation-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.loja-variation-chip {
    padding: 6px 16px; border-radius: 20px; font-size: 13px; cursor: pointer;
    border: 2px solid var(--border-light); transition: all 0.15s; user-select: none;
}
.loja-variation-chip:hover { border-color: var(--accent); }
.loja-variation-chip.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.loja-variation-chip.soldout { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

/* ── Vitrine Dashboard: Drag & Drop ── */
.vitrine-dropzone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    background: var(--bg-input);
}
.vitrine-dropzone:hover { border-color: var(--accent); background: var(--accent-bg, #f0f4ff); }
.vitrine-drop-active { border-color: var(--accent) !important; background: var(--accent-bg, #f0f4ff) !important; box-shadow: 0 0 0 3px rgba(79,110,247,0.15); }
.vitrine-dropzone-sm { padding: 20px 16px; }
.vitrine-dropzone-content { font-size: 13px; color: var(--text-muted); }
.vitrine-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.vitrine-banner-card { position: relative; }
.vitrine-banner-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16/5;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-input);
}
.vitrine-banner-preview img { width: 100%; height: 100%; object-fit: cover; }
.vitrine-banner-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--text-muted);
}
.vitrine-banner-actions {
    position: absolute; top: 6px; right: 6px;
    display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s;
}
.vitrine-banner-card:hover .vitrine-banner-actions { opacity: 1; }
.vitrine-banner-action {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #333; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: background 0.15s;
}
.vitrine-banner-action:hover { background: #fff; }
.vitrine-banner-number {
    position: absolute; bottom: 6px; left: 6px;
    background: rgba(0,0,0,0.6); color: #fff;
    font-size: 10px; font-weight: 700;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.vitrine-section-banner-preview {
    position: relative; border-radius: var(--radius-sm); overflow: hidden;
    max-height: 120px;
}
.vitrine-section-banner-preview img { width: 100%; height: 120px; object-fit: cover; display: block; }
.vitrine-section-banner-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    opacity: 0; transition: opacity 0.2s;
}
.vitrine-section-banner-preview:hover .vitrine-section-banner-overlay { opacity: 1; }

/* Info Card icon/image picker */
.vitrine-icon-picker {
    width: 52px; height: 52px; border-radius: var(--radius-sm);
    background: var(--bg-input); border: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; overflow: hidden; position: relative;
    transition: border-color 0.15s;
}
.vitrine-icon-picker:hover { border-color: var(--accent); }
.vitrine-icon-picker img { width: 100%; height: 100%; object-fit: cover; }
.vitrine-icon-picker-text { font-size: 24px; line-height: 1; }
.vitrine-icon-picker-empty { font-size: 18px; color: var(--text-muted); }

/* Vitrine: product tags in section list */
.vitrine-product-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
    max-width: 220px;
    cursor: pointer;
}
.vitrine-product-tag img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.vitrine-product-tag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f2f4f7;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vitrine-product-tag-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vitrine-product-tag-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}
.vitrine-product-tag.tag-white {
    background: #fff;
}
.vitrine-product-tag.out-of-stock {
    border-color: #fecaca;
    background: #fff5f5;
}
.vitrine-product-tag.tag-missing {
    cursor: default;
    opacity: 0.8;
}
.vitrine-product-stock-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}
.vitrine-product-stock-badge.out {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}
.vitrine-product-tag button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}
.vitrine-product-tag button:hover { color: var(--red); }

/* Vitrine: Product Picker Modal */
.picker-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 4px;
}
.picker-product-card {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}
.picker-product-card:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(79,110,247,0.12); }
.picker-product-card.selected { border-color: var(--accent); background: var(--accent-bg, #f0f4ff); }
.picker-product-card.disabled { opacity: 0.4; cursor: not-allowed; }
.picker-product-img {
    position: relative;
    width: 100%;
    height: 120px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.picker-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}
.picker-product-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.picker-product-info {
    padding: 10px;
}
.picker-product-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.picker-product-cat {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.picker-product-attrs {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.picker-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.picker-product-price {
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
}
.picker-product-stock {
    font-size: 11px;
    color: var(--text-muted);
}
.picker-product-stock.out {
    color: #b91c1c;
    font-weight: 700;
}

.vitrine-product-preview {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.vitrine-product-preview-media {
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vitrine-product-preview-media img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
}
.vitrine-product-preview-placeholder {
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: #cbd5e1;
}
.vitrine-product-preview-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vitrine-product-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.vitrine-product-preview-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
}
.vitrine-product-preview-subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}
.vitrine-product-preview-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}
.vitrine-product-preview-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vitrine-product-preview-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vitrine-product-preview-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.vitrine-product-preview-attr {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-secondary);
}
.vitrine-product-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}
@media (max-width: 768px) {
    .vitrine-product-preview {
        grid-template-columns: 1fr;
    }
    .vitrine-product-preview-head {
        flex-direction: column;
    }
}

/* ══════════════════════════════════════════
   Professional Store Page (body.store-page)
   Design: monteleste.com.br inspired
   ══════════════════════════════════════════ */

body.store-page {
    background: #fff;
    color: #111;
    --store-nav-h: 60px;
    margin: 0;
    padding: 0;
}

/* ── Announcement Bar (fixed above nav) ── */
.store-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    background: #111;
    color: #fff;
    text-align: center;
    padding: 6px 20px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
/* When topbar is visible, push nav and search bar down */
.store-topbar.visible ~ .store-nav { top: 29px; }
.store-topbar.visible ~ .store-search-bar { top: calc(var(--store-nav-h, 60px) + 29px); }
.store-topbar a { color: #fff; text-decoration: underline; }

/* ── Store Nav (Gradient → Solid on scroll) ── */
.store-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    min-height: var(--store-nav-h);
    border: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
/* Gradient overlay that extends below the nav for smooth fade */
.store-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s ease;
}
.store-nav.scrolled {
    background: var(--store-nav-color, rgba(0,0,0,0.92));
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.store-nav.scrolled::after { opacity: 0; }
.store-nav-inner {
    max-width: 100%;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
}
.store-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.store-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
.store-brand-logo {
    height: 48px;
    margin-top: 6px;
    max-width: 180px;
    object-fit: contain;
    border-radius: 0;
}
.store-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
}
.store-hamburger svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}
.store-hamburger svg line {
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}
.store-hamburger.open svg line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.store-hamburger.open svg line:nth-child(2) {
    opacity: 0;
}
.store-hamburger.open svg line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
@keyframes hamburger-pulse {
    0%, 40% { transform: scale(1); }
    20% { transform: scale(1.3); }
}
.store-hamburger.pulse {
    animation: hamburger-pulse 2s ease-in-out 3;
}

/* ── Nav Categories (inline with logo on desktop, wraps to 2nd line) ── */
.store-nav-categories {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: visible;
    flex-wrap: wrap;
}

/* ── Category Chips (horizontal strip below banner — mobile only) ── */
.store-category-chips {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: var(--store-nav-h, 56px);
    z-index: 90;
}
.store-category-chips::-webkit-scrollbar { display: none; }
/* Only show chips on mobile when they have content */
.store-chip {
    flex-shrink: 0;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all 0.15s;
    letter-spacing: 0.01em;
}
.store-chip:hover { border-color: #9ca3af; background: #f9fafb; }
.store-chip.active { background: var(--store-nav-color, #111); color: #fff; border-color: var(--store-nav-color, #111); }

/* Active filter bar (below banner) */
#store-active-filter {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}
.store-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.store-filter-clear {
    border: none;
    background: none;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.store-filter-clear:hover { color: #374151; }

.store-nav-cat-wrap { position: relative; }
.store-nav-cat {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    background: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: color 0.15s, font-weight 0.15s;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.store-nav-cat:hover { color: #fff; font-weight: 800; }
.store-nav-cat.active { color: #fff; font-weight: 800; }
.store-nav-cat-arrow {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.2s;
}
.store-nav-cat-wrap::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
}
.store-nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    padding: 6px;
    z-index: 110;
    animation: dropdownFade 0.15s ease;
}
@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.store-nav-cat-wrap:hover .store-nav-dropdown { display: block; }
.store-nav-cat-wrap:hover .store-nav-cat-arrow { transform: rotate(180deg); }
.store-nav-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    border-radius: 6px;
    transition: background 0.12s, color 0.12s;
}
.store-nav-dropdown-item:hover { background: #f3f4f6; color: #111; }

/* ── Nav Search (inline) ── */
.store-nav-search {
    flex: 0 1 200px;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px 12px;
    margin-left: auto;
}
.store-nav-search svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255,255,255,0.5);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}
.store-nav-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    min-width: 0;
}
.store-nav-search input::placeholder { color: rgba(255,255,255,0.4); }
.store-search-clear {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}
.store-search-clear:hover { color: #333; }

/* Search Bar (fixed below nav, no background) */
.store-search-bar {
    position: fixed;
    top: var(--store-nav-h, 60px);
    left: 0;
    right: 0;
    z-index: 99;
    padding: 8px 20px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.store-search-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 8px 14px;
}
.store-search-bar-inner input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: 15px;
    color: #fff;
    font-family: inherit;
}
.store-search-bar-inner input::placeholder { color: rgba(255,255,255,0.4); }
.store-search-bar-close {
    color: rgba(255,255,255,0.5);
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}
.store-search-bar-close:hover { color: #fff; }

.store-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: #fff;
    transition: opacity 0.15s;
}
.store-nav-btn:hover { opacity: 0.75; }
.store-nav-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
.store-cart-btn .cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #fff;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.4);
    transition: border-color 0.15s;
    flex-shrink: 0;
}
.store-user-avatar:hover { border-color: #fff; }
.store-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 6px;
    z-index: 120;
    min-width: 180px;
    animation: dropdownFade 0.15s ease;
}
.store-user-menu-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    border-radius: 6px;
    transition: background 0.12s;
}
.store-user-menu-item:hover { background: #f3f4f6; }

/* ── Mobile Menu ── */
/* ── Sidebar Drawer (overlay on all sizes) ── */
.store-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
}
.store-mobile-overlay.open { display: block; }

.store-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    z-index: 201;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}
.store-sidebar.open { left: 0; }
.store-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.store-sidebar-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
}
.store-sidebar-body { padding-bottom: 40px; }

/* Sidebar category items */
.store-sidebar-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: #333;
    font-family: inherit;
    transition: background 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.store-sidebar-cat:hover { background: #fafafa; }
.store-sidebar-cat.active { color: #000; font-weight: 700; background: #f5f5f5; }
.store-sidebar-cat-arrow {
    width: 14px;
    height: 14px;
    stroke: #999;
    stroke-width: 2;
    fill: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}
.store-sidebar-cat.open .store-sidebar-cat-arrow { transform: rotate(180deg); stroke: #333; }

/* Sidebar type items (sub-categories) */
.store-sidebar-types { display: none; }
.store-sidebar-types.open { display: block; }
.store-sidebar-type {
    display: block;
    width: 100%;
    padding: 10px 20px 10px 40px;
    font-size: 12px;
    font-weight: 400;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: #888;
    font-family: inherit;
    transition: background 0.1s;
}
.store-sidebar-type:hover { background: #fafafa; color: #555; }
.store-sidebar-type.active { color: #000; font-weight: 600; }

/* Main layout — no top margin since nav is fixed/transparent over banner */
.store-main-layout {
    min-height: 100vh;
}

/* ── Search Bar (dark context) ── */
/* ── Banner Carousel (full-width, tall) ── */
.store-banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}
.store-banner-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5;
}
.store-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0s 0.6s;
    display: block;
}
.store-banner-slide.active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.6s ease, visibility 0s; }
.store-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.25);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 0;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.store-banner-arrow:hover { background: rgba(0,0,0,0.5); }
.store-banner-prev { left: 0; }
.store-banner-next { right: 0; }
@keyframes arrow-hint {
    0%, 40% { transform: translateY(-50%) translateX(0); }
    20% { transform: translateY(-50%) translateX(6px); }
}
@keyframes arrow-hint-left {
    0%, 40% { transform: translateY(-50%) translateX(0); }
    20% { transform: translateY(-50%) translateX(-6px); }
}
.store-banner-next.hint { animation: arrow-hint 2s ease-in-out 3; }
.store-banner-prev.hint { animation: arrow-hint-left 2s ease-in-out 3; }
.store-banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}
.store-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.store-banner-dot.active { background: #fff; }

/* ── Info Cards (strip below banner) ── */
.store-info-cards {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex !important;
    justify-content: center;
    gap: 40px;
    border-bottom: 1px solid #eee;
    grid-template-columns: unset;
}
.store-info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}
.store-info-card > div {
    min-width: 0;
    flex: 1 1 auto;
}
.store-info-card-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}
.store-info-card-icon-image {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}
.store-info-card-title {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.store-info-card-desc {
    font-size: 11px;
    color: #888;
    margin-top: 1px;
    line-height: 1.35;
}

/* ── Featured Products ── */
.store-featured {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 0;
}

/* ── Store Sections ── */
.store-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 0;
}
.store-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
}
.store-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.store-section-subtitle {
    font-size: 13px;
    color: #888;
    margin: 2px 0 0;
}
.store-section-viewall {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: opacity 0.15s;
    padding: 0;
}
.store-section-viewall:hover { opacity: 0.5; }

/* ── Section Divider Banner (full-width, edge to edge) ── */
.store-section-divider {
    width: 100%;
    overflow: hidden;
    margin: 16px 0 0;
    position: relative;
}
.store-section-divider-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.store-section-divider-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    line-height: 1.2;
}
.store-section-divider-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.4), 0 0 30px rgba(0,0,0,0.5);
    -webkit-text-stroke: 1px rgba(255,255,255,0.15);
}
.store-section-divider-sub {
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-top: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.4), 0 0 20px rgba(0,0,0,0.4);
}

/* ── Section Product Carousel ── */
.store-section-carousel-wrap {
    position: relative;
}
.store-section-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.store-section-carousel::-webkit-scrollbar { display: none; }
.store-section-carousel > * {
    flex: 0 0 calc((100% - 64px) / 5);
    min-width: 0;
}
.store-carousel-arrow {
    position: absolute;
    top: 170px;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.25);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 0;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.store-carousel-arrow:hover { background: rgba(0,0,0,0.5); }
.store-carousel-prev { left: 0; }
.store-carousel-next { right: 0; }
/* Hide arrows when all items fit on screen */
.store-section-carousel-wrap[data-count="1"] .store-carousel-arrow,
.store-section-carousel-wrap[data-count="2"] .store-carousel-arrow,
.store-section-carousel-wrap[data-count="3"] .store-carousel-arrow,
.store-section-carousel-wrap[data-count="4"] .store-carousel-arrow,
.store-section-carousel-wrap[data-count="5"] .store-carousel-arrow { display: none; }
.store-section-carousel-wrap[data-count="1"] .store-section-carousel,
.store-section-carousel-wrap[data-count="2"] .store-section-carousel,
.store-section-carousel-wrap[data-count="3"] .store-section-carousel,
.store-section-carousel-wrap[data-count="4"] .store-section-carousel,
.store-section-carousel-wrap[data-count="5"] .store-section-carousel { justify-content: center; }
@media (max-width: 1200px) {
    .store-section-carousel > * { flex: 0 0 calc((100% - 48px) / 4); }
    /* 4 cols: show arrows if > 4 items */
    .store-section-carousel-wrap[data-count="5"] .store-carousel-arrow { display: flex; }
    .store-section-carousel-wrap[data-count="5"] .store-section-carousel { justify-content: flex-start; }
}
@media (max-width: 900px) {
    .store-section-carousel > * { flex: 0 0 calc((100% - 32px) / 3); }
    /* 3 cols: show arrows if > 3 items */
    .store-section-carousel-wrap[data-count="4"] .store-carousel-arrow,
    .store-section-carousel-wrap[data-count="5"] .store-carousel-arrow { display: flex; }
    .store-section-carousel-wrap[data-count="4"] .store-section-carousel,
    .store-section-carousel-wrap[data-count="5"] .store-section-carousel { justify-content: flex-start; }
}
@media (max-width: 600px) {
    .store-section-carousel > * { flex: 0 0 calc((100% - 10px) / 2); }
    .store-section-carousel { gap: 10px; }
    /* 2 cols: show arrows if > 2 items */
    .store-section-carousel-wrap[data-count="3"] .store-carousel-arrow,
    .store-section-carousel-wrap[data-count="4"] .store-carousel-arrow,
    .store-section-carousel-wrap[data-count="5"] .store-carousel-arrow { display: flex; }
    .store-section-carousel-wrap[data-count="3"] .store-section-carousel,
    .store-section-carousel-wrap[data-count="4"] .store-section-carousel,
    .store-section-carousel-wrap[data-count="5"] .store-section-carousel { justify-content: flex-start; }
}

/* Also apply grid layout to .store-section-grid (backward compat) */
.store-section-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 4px 0 12px;
    overflow: hidden;
}
.store-section-grid::-webkit-scrollbar { display: none; }

/* ── Store Product Card (portrait, monteleste-style) ── */
.store-product-card {
    width: 100%;
    min-width: 0;
    background: #fff;
    border: none;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.25s;
}
.store-product-card-img-wrap {
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}
/* ── Card image slides (multi-image cycle on hover) ── */
.store-card-slide {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 60%;
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s;
}
.store-card-slide:first-of-type {
    position: relative; /* sets natural height */
}
.store-card-slide.active { opacity: 1; }
/* Dot indicators */
.store-card-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s;
}
.store-product-card:hover .store-card-dots { opacity: 1; }
.store-card-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: background 0.2s;
}
.store-card-dot.active { background: #fff; }
.store-product-badge-soldout {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.store-product-card-body {
    padding: 12px 10px;
    text-align: center;
}
.store-product-card-cat {
    font-size: 10px;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.store-product-card-name {
    font-weight: 500;
    font-size: 17px;
    color: #333;
    margin-bottom: 2px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: 2.8em;
}
.store-product-card-price {
    font-size: 22px;
    font-weight: 800;
    color: #000;
}
.store-product-card-pix {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: 2px;
}
.store-product-card-branch {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
    line-height: 1.4;
}
.store-product-card-price-old {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 6px;
}

/* ── Product Detail Modal ── */
body.store-page .store-detail-modal {
    max-width: 900px;
    width: 95vw;
}

/* ── Search Results Container ── */
#store-search-results {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 0;
}

/* ── Category Grid View ── */
.store-cat-grid-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0 16px;
}
.store-cat-grid-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #111;
}
.store-cat-grid-count {
    font-size: 14px;
    color: #9ca3af;
}
.store-search-section {
    padding-top: 24px;
}
.store-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding-bottom: 24px;
}
.store-cat-grid .store-product-card {
    flex: none;
    min-width: 0;
    width: 100%;
}
@media (max-width: 480px) {
    .store-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ── Filters Bar & Panel ── */
.store-filters-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}
.store-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: #374151;
    transition: all 0.15s;
}
.store-filters-toggle:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}
.store-filters-toggle.active {
    border-color: var(--accent, #4f6ef7);
    color: var(--accent, #4f6ef7);
    background: rgba(79, 110, 247, 0.05);
}
.store-filters-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--accent, #4f6ef7);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
}
.store-filters-clear {
    background: none;
    border: none;
    font-size: 12px;
    color: #ef4444;
    cursor: pointer;
    padding: 4px 8px;
}
.store-filter-panel {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    animation: dropdownFade 0.15s ease;
}
.store-filter-section {
    margin-bottom: 16px;
}
.store-filter-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.store-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.store-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
    color: #4b5563;
    transition: all 0.15s;
    user-select: none;
}
.store-filter-chip:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}
.store-filter-chip.active {
    border-color: var(--accent, #4f6ef7);
    background: var(--accent, #4f6ef7);
    color: #fff;
}
.store-filter-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

/* ── Checkout Full Page ── */
.checkout-page {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 250;
    display: flex;
    flex-direction: column;
    animation: detailSlideIn 0.25s ease;
}
.checkout-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.checkout-back {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #333;
    display: flex;
    align-items: center;
}
.checkout-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.checkout-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0 4px;
}
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}
.checkout-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}
.checkout-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.checkout-step.active {
    color: var(--accent, #4f6ef7);
}
.checkout-step.active span {
    background: var(--accent, #4f6ef7);
    color: #fff;
}
.checkout-step.completed span {
    background: #10b981;
    color: #fff;
}
.checkout-step.completed {
    color: #10b981;
}
.checkout-step-line {
    width: 32px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 8px;
    flex-shrink: 0;
}
.checkout-step-line.completed {
    background: #10b981;
}
.checkout-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
.checkout-step-content {
    display: none;
    padding: 20px;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
}
.checkout-step-content.active {
    display: block;
}
.checkout-step-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.checkout-summary-bar {
    padding: 16px 0;
    margin-bottom: 16px;
    border-top: 1px solid #f3f4f6;
}
.checkout-order-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

@media (max-width: 480px) {
    .checkout-step {
        font-size: 11px;
    }
    .checkout-step span {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    .checkout-step-line {
        width: 20px;
        margin: 0 4px;
    }
}

/* ── Product Detail Page (full page) ── */
.store-detail-page {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 200;
    overflow-y: auto;
    animation: detailSlideIn 0.25s ease;
}
@keyframes detailSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.store-detail-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: #1a1a1a;
    color: #fff;
}
.store-detail-header .store-detail-back { color: #fff; }
.store-detail-header .store-detail-back:hover { background: rgba(255,255,255,0.1); }
.store-detail-header .store-nav-btn { color: #fff; }
.store-detail-header .store-nav-btn:hover { color: #ccc; }
.store-detail-header-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.store-detail-header-brand img {
    max-height: 36px;
    object-fit: contain;
}
.store-detail-header-brand span {
    font-size: 18px;
    font-weight: 700;
}
.store-detail-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.store-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    border-radius: 8px;
    transition: background 0.12s;
}
.store-detail-back:hover { background: #f3f4f6; }
.store-detail-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.store-detail-images {
    position: sticky;
    top: 20px;
    align-self: start;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.store-detail-images .detail-main-img-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}
.store-detail-images .detail-main-img {
    width: 100%;
    max-height: 600px;
    border-radius: 12px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f5f5f5;
}
.detail-img-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.25);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.detail-img-arrow:hover { background: rgba(0,0,0,0.5); }
.detail-img-prev { left: 0; }
.detail-img-next { right: 0; }
.store-detail-images .detail-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.store-detail-images .detail-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: contain;
    background: #f5f5f5;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s;
}
.store-detail-images .detail-thumb:hover { border-color: #ccc; }
.store-detail-images .detail-thumb.active { border-color: var(--accent, #4f6ef7); }
.store-detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}
.store-detail-related {
    border-top: 1px solid #eee;
    padding-top: 32px;
}
@media (max-width: 768px) {
    .store-detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .store-detail-images { position: static; flex-direction: column-reverse; }
    .store-detail-images .detail-thumbs { flex-direction: row; flex-wrap: wrap; }
    .store-detail-images .detail-thumb { width: 60px; height: 60px; }
    .store-detail-info h1 { font-size: 22px; }
}

/* ── Lightbox ── */
#store-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}
#store-lightbox.active { display: flex; align-items: center; justify-content: center; }
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}
.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}
.lightbox-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}
.lightbox-close:hover { color: #ccc; }
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
@media (max-width: 768px) {
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ── Store Footer ── */
.store-footer {
    background: var(--store-nav-color, #111);
    color: #fff;
    padding: 48px 24px 0;
    margin-top: 60px;
}
.store-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.store-footer-brand {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.store-footer-brand-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 12px;
    display: block;
}
.store-footer-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 280px;
}
.store-footer-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.4);
}
.store-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.store-footer-links li { margin-bottom: 10px; }
.store-footer-links a,
.store-footer-links span {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}
.store-footer-links a:hover { color: #fff; }
.store-footer-bottom {
    max-width: 1280px;
    margin: 32px auto 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}
.store-footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.15s;
}
.store-footer-bottom a:hover { color: #fff; }

/* ── Social Icons ── */
.store-footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.store-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: color 0.15s, transform 0.15s;
}
.store-social-icon:hover { color: #fff; transform: scale(1.15); }
.store-social-icon svg { width: 100%; height: 100%; }

/* Social icons in checkout (combinar com vendedor) */
.store-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
}
.store-social-grid a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}
.store-social-grid a:hover { background: #e5e7eb; }
.store-social-grid a svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── WhatsApp Floating Button ── */
.store-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.store-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.store-whatsapp-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* ── Contact Modal (Bio Site style) ── */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.contact-modal {
    background: #111;
    color: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
}
.contact-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.6;
    z-index: 1;
}
.contact-modal-close:hover { opacity: 1; }
.contact-modal-header {
    padding: 32px 24px 16px;
}
.contact-modal-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    margin-bottom: 12px;
}
.contact-modal-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.contact-modal-hours {
    font-size: 12px;
    color: #9ca3af;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.contact-modal-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 0 8px;
}
.contact-modal-social a {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.contact-modal-social a:hover { opacity: 1; }
.contact-modal-social svg { width: 22px; height: 22px; }
.contact-modal-body {
    padding: 8px 24px 16px;
}
.contact-modal-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: #fff;
    transition: background 0.15s;
    cursor: pointer;
}
.contact-modal-item:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.contact-modal-item:hover { background: rgba(255,255,255,0.05); }
.contact-modal-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-modal-item-icon svg { width: 22px; height: 22px; fill: #fff; }
.contact-modal-item-label {
    flex: 1;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
}
.contact-modal-item-number {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}
.contact-modal-footer {
    padding: 20px 24px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #d1d5db;
}

/* ── Fallback container (backward compat grid) ── */
.store-fallback-container .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* ── Spacing ── */
body.store-page #store-sections {
    padding-bottom: 0;
}

/* ── Override cart-fab ── */
body.store-page .cart-fab { display: none; }

/* ══════════════════════════════════════════
   Responsive — Store Page
   ══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .store-card-slide { aspect-ratio: 3 / 4; height: auto; }
    .store-carousel-arrow { top: 140px; }
    .store-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .store-nav-categories { display: none !important; }
    .store-hamburger { display: flex; }
    .store-nav-search { max-width: 180px; }
    .store-category-chips.has-chips { display: none; }
    /* Push content below fixed nav on mobile */
    .store-main-layout { padding-top: var(--store-nav-h, 60px); }
    .store-nav::after { height: 80px; }
    .store-banner-track { aspect-ratio: 16 / 5; }
    .store-banner-arrow { width: 36px; height: 36px; font-size: 22px; }
    /* Info cards — compact horizontal strip */
    .store-info-cards {
        flex-wrap: wrap;
        gap: 6px 12px;
        padding: 10px 12px;
    }
    .store-info-card { flex: 1 1 220px; gap: 6px; }
    .store-info-card-icon { font-size: 16px; }
    .store-info-card-icon-image { width: 16px; height: 16px; }
    .store-info-card-title { font-size: 10px; }
    .store-info-card-desc { display: block; font-size: 10px; }
    .store-section { padding: 28px 16px 0; }
    .store-section-title { font-size: 15px; }
    .store-section-header { padding-bottom: 10px; }
    /* product card size controlled by .store-section-carousel > * */
    .store-card-slide { aspect-ratio: 3 / 4; height: auto; }
    .store-section-divider-img { min-height: 140px; max-height: 220px; }
    .store-section-divider-overlay { padding: 16px; }
    .store-section-divider-sub { letter-spacing: 0.08em; }
    .store-nav-dropdown { display: none !important; }
    .store-nav-inner { gap: 12px; padding: 0 12px; }
    .store-nav-search { padding: 5px 10px; }
    .store-nav-search input { font-size: 12px; }
    body.store-page .store-detail-modal { max-width: 100vw; width: 100vw; }
    .store-carousel-arrow { display: none; }
    .store-footer { padding: 32px 16px 0; }
    .store-footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .store-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .store-whatsapp-btn { bottom: 16px; right: 16px; width: 50px; height: 50px; }
    .store-whatsapp-btn svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
    .store-topbar { font-size: 11px; padding: 6px 12px; }
    /* Info cards — keep the 2x2 layout on real phones */
    .store-info-cards {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 10px 12px;
        padding: 10px 12px;
    }
    .store-info-card {
        min-width: 0;
        align-items: flex-start;
        gap: 6px;
    }
    .store-info-card-icon { font-size: 14px; }
    .store-info-card-icon-image { width: 14px; height: 14px; }
    .store-info-card-title { font-size: 10px; letter-spacing: 0; }
    .store-info-card-desc {
        display: block;
        font-size: 10px;
        line-height: 1.25;
    }
    .store-banner-track { aspect-ratio: 16 / 5; }
    .store-card-slide { aspect-ratio: 3 / 4; height: auto; }
    .store-product-card-body { padding: 10px 8px; }
    .store-product-card-price { font-size: 17px; }
    .store-product-card-name { font-size: 13px; }
}

/* ── Persona Cards (page) ── */
.persona-card {
    width: 140px;
    flex-shrink: 0;
}
.persona-card-img {
    position: relative;
    width: 140px;
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-input);
}
.persona-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.persona-card-img .image-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
}
.persona-card-name {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.persona-card.persona-selected .persona-card-img {
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.25);
}

/* ── Persona Thumbnails (Config + Try-on) ── */
.tryon-persona-thumb {
    width: 60px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}
.tryon-persona-thumb:hover { border-color: var(--accent); }
.tryon-persona-thumb.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.25);
}
.tryon-persona-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Try-on Garment Slots ── */
.tryon-garment-slot {
    width: 100px;
    height: 100px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.tryon-garment-slot:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}
.tryon-garment-slot.has-image {
    border-style: solid;
    border-color: var(--border);
}
.tryon-garment-slot-label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    padding: 4px;
}
.tryon-garment-slot.has-image .tryon-garment-slot-label { display: none; }
.tryon-garment-slot-preview {
    position: absolute;
    inset: 0;
}
.tryon-garment-slot-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.tryon-garment-slot-preview .image-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
}

/* Try-on Result Gallery — Image Selection */
.tryon-result-item {
    cursor: pointer;
    padding: 6px;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: border-color .2s, box-shadow .2s;
    display: inline-block;
}
.tryon-result-item:hover {
    border-color: var(--accent);
}
.tryon-result-item.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.25);
}

/* ── Config Tab Bar ── */
.cfg-tabbar {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border, #e2e8f0);
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cfg-tabbar::-webkit-scrollbar { display: none; }
.cfg-tab {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.cfg-tab:hover {
    color: var(--text, #1e293b);
}
.cfg-tab.active {
    color: var(--accent, #4f6ef7);
    border-bottom-color: var(--accent, #4f6ef7);
}
.cfg-tab-content {
    display: none;
}
.cfg-tab-content.active {
    display: block;
}
@media (max-width: 600px) {
    .cfg-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    #page-produto-edit {
        padding-bottom: 120px;
    }
}

/* ── Vitrine Sub-tabs (pills) ── */
.vitrine-subtabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.vitrine-subtab {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted, #94a3b8);
    background: var(--bg-input, #f1f5f9);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
}
.vitrine-subtab:hover {
    color: var(--text, #1e293b);
    border-color: var(--text-muted);
}
.vitrine-subtab.active {
    color: #fff;
    background: var(--accent, #4f6ef7);
    border-color: var(--accent, #4f6ef7);
}
.vitrine-subtab-content {
    display: none;
}
.vitrine-subtab-content.active {
    display: block;
}

/* ── Etiquetas ── */
.labels-page {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 340px);
    gap: 20px;
    align-items: start;
}
.labels-main,
.labels-side {
    display: grid;
    gap: 20px;
}
.labels-toolbar-card,
.labels-results-card,
.labels-side-card {
    padding: 20px;
}
.labels-side-card {
    position: sticky;
    top: 16px;
}
.labels-side-tabbar {
    margin: -20px -20px 18px;
    padding: 0 20px;
}
.labels-side-tab-panel {
    min-width: 0;
}
.labels-filter-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    align-items: start;
}
.labels-filter-search-row {
    min-width: 0;
}
.labels-filter-secondary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}
.stockcheck-filter-grid {
    grid-template-columns: minmax(0, 2fr) 220px 220px;
}
.stockcheck-search-group {
    min-width: 0;
}
.stockcheck-scan-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.4px;
}
.stockcheck-search-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary, #64748b);
}
.stockcheck-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(79, 110, 247, 0.12);
    color: var(--accent, #4f6ef7);
    font-size: 12px;
    font-weight: 800;
}
.stockcheck-missing-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    font-size: 12px;
    font-weight: 800;
}
.labels-checks {
    display: grid;
    gap: 10px;
    padding-top: 24px;
}
.labels-check-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary, #64748b);
}
.labels-check-option input {
    accent-color: var(--accent, #4f6ef7);
}
.labels-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.labels-section-head h4 {
    margin: 0 0 4px;
    font-size: 18px;
}
.labels-section-head p {
    margin: 0;
    font-size: 13px;
}
.labels-results-note {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--text-secondary, #64748b);
}
.labels-results-stack {
    display: grid;
    gap: 12px;
}
.labels-result-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 18px;
    background: #fff;
}
.labels-result-card:hover {
    border-color: rgba(79, 110, 247, 0.35);
}
.labels-candidate-main {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-width: 0;
}
.labels-candidate-thumb {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    object-fit: cover;
    flex: 0 0 68px;
}
.labels-candidate-thumb.labels-candidate-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #94a3b8);
    font-size: 22px;
}
.labels-candidate-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}
.labels-candidate-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.labels-candidate-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text, #0f172a);
    line-height: 1.2;
    min-width: 0;
    flex: 1 1 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.labels-candidate-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    line-height: 1.4;
}
.labels-candidate-line strong {
    color: var(--text, #0f172a);
}
.labels-context-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(79, 110, 247, 0.1);
    color: var(--accent, #4f6ef7);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.labels-candidate-sep {
    color: var(--text-muted, #94a3b8);
}
.labels-candidate-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    letter-spacing: 0.8px;
}
.labels-code-missing {
    color: var(--yellow-700, #a16207);
}
.labels-result-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    gap: 14px;
    align-items: center;
}
.labels-result-metric {
    display: grid;
    gap: 6px;
    justify-items: start;
}
.labels-result-metric span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #94a3b8);
}
.labels-result-metric strong {
    color: var(--text, #0f172a);
    font-size: 15px;
    line-height: 1.2;
}
.labels-result-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
    align-content: center;
}
.labels-stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    font-size: 13px;
    font-weight: 800;
}
.labels-stock-badge.zero {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}
.labels-qty-input {
    width: 92px;
}
.labels-add-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    padding: 0;
}
.labels-empty-inline {
    padding: 28px 16px;
    text-align: center;
    color: var(--text-secondary, #64748b);
    font-size: 13px;
}
.labels-batch-list {
    display: grid;
    gap: 10px;
}
.labels-connection-status {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}
.labels-connection-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    font-size: 13px;
}
.labels-connection-row span {
    color: var(--text-secondary, #64748b);
}
.labels-connection-row strong {
    text-align: right;
    color: var(--text, #0f172a);
}
.labels-connection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.labels-connection-log {
    min-height: 44px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(79, 110, 247, 0.08);
    color: #3651c7;
    font-size: 12px;
    line-height: 1.5;
}
.labels-connection-log.warn {
    background: rgba(245, 158, 11, 0.12);
    color: #a16207;
}
.labels-connection-log.error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}
.labels-connection-log.success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}
.labels-batch-item {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 10px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.labels-batch-item:hover {
    border-color: var(--accent, #4f6ef7);
}
.labels-batch-item.active {
    border-color: var(--accent, #4f6ef7);
    box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.16);
    transform: translateY(-1px);
}
.labels-batch-top,
.labels-batch-bottom {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}
.labels-batch-info {
    min-width: 0;
}
.labels-batch-name {
    font-weight: 700;
    color: var(--text, #0f172a);
}
.labels-batch-meta {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
}
.labels-preview-stage {
    min-height: 360px;
    border: 1px dashed var(--border, #e2e8f0);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}
.labels-preview-empty {
    text-align: center;
    color: var(--text-secondary, #64748b);
    font-size: 13px;
    max-width: 240px;
}
.labels-preview-wrap {
    transform-origin: center center;
}
.shop-label-card {
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 12px;
    padding: 14px 12px 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
.shop-label-barcode-wrap {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.shop-label-head {
    display: grid;
    gap: 0;
}
.shop-label-name {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-label-variant {
    font-size: 10px;
    color: #475569;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-label-price {
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    color: #111827;
    margin-top: -1px;
}
.shop-label-barcode {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 42px;
    margin-top: 0;
}
.shop-label-barcode svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 42px;
}
.shop-label-code {
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 1px;
    color: #0f172a;
    margin-top: 0;
}
.shop-label-no-code {
    text-align: center;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 8px;
}

@media (max-width: 1280px) {
    .labels-page {
        grid-template-columns: 1fr;
    }
    .labels-side {
        grid-template-columns: 1fr;
    }
    .labels-side-card {
        position: static;
    }
}

@media (max-width: 960px) {
    .labels-filter-secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stockcheck-filter-grid {
        grid-template-columns: 1fr;
    }
    .labels-result-card {
        grid-template-columns: 1fr;
    }
    .labels-result-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .labels-result-actions {
        grid-template-columns: 1fr auto;
        justify-items: stretch;
        align-items: center;
    }
    .labels-add-btn {
        justify-self: end;
    }
}

@media (max-width: 720px) {
    .labels-filter-secondary-grid {
        grid-template-columns: 1fr;
    }
    .labels-section-head {
        flex-direction: column;
    }
    .labels-result-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .labels-result-actions {
        grid-template-columns: 1fr;
    }
    .labels-add-btn {
        width: 100%;
        justify-self: stretch;
    }
    .labels-side-tabbar {
        margin-bottom: 14px;
    }
}

/* Sidebar Version */
.sidebar-version {
    font-size: 11px;
    color: var(--text-secondary, #64748b);
    text-align: center;
    padding: 4px 0 2px;
    letter-spacing: 0.5px;
}
.sidebar-footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.sidebar-pin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: var(--text-muted, #94a3b8);
    transition: color 0.15s, background 0.15s, transform 0.2s;
}
.sidebar-pin-btn:hover {
    background: rgba(79, 110, 247, 0.08);
    color: var(--accent, #4f6ef7);
}
.sidebar-pin-btn.pinned {
    color: var(--accent, #4f6ef7);
    transform: rotate(45deg);
}
.app-layout.sidebar-pinned .sidebar {
    position: fixed;
    z-index: 100;
}
@media (max-width: 1100px) {
    .sidebar-pin-btn { display: none; }
}

/* ── Novidades (What's New) ── */
.whats-new-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 10px;
    margin-left: 8px;
    transition: color 0.15s, background 0.15s;
}
.whats-new-btn:hover {
    color: var(--accent);
    background: rgba(79, 110, 247, 0.08);
}
.whats-new-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff;
    display: none;
}
.whats-new-badge.visible {
    display: block;
}
.whats-new-item {
    padding: 16px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    margin-bottom: 12px;
    background: #fff;
}
.whats-new-item:last-child {
    margin-bottom: 0;
}
.whats-new-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.whats-new-item-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.whats-new-item-tag.new {
    background: rgba(79, 110, 247, 0.12);
    color: var(--accent, #4f6ef7);
}
.whats-new-item-tag.improvement {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}
.whats-new-item-tag.fix {
    background: rgba(234, 179, 8, 0.12);
    color: #a16207;
}
.whats-new-item-version {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
}
.whats-new-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #0f172a);
    margin-bottom: 6px;
}
.whats-new-item-desc {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
    margin-bottom: 10px;
}
.whats-new-item-desc:last-child {
    margin-bottom: 0;
}
.whats-new-item-action {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent, #4f6ef7);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.whats-new-item-action:hover {
    text-decoration: underline;
}
.whats-new-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.header-internal-user {
    display: none;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
}

.header-internal-user-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header-internal-user-copy strong {
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.2;
}

.header-internal-user-copy span {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.2;
}

#header-internal-user-name:not(:empty) ~ #header-internal-user-meta,
#header-internal-user-name:not(:empty) {
    display: block;
}

.internal-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(79,110,247,0.08), rgba(79,110,247,0) 220px);
}

.internal-auth-card {
    width: min(560px, 100%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.internal-auth-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.internal-auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.internal-permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.internal-permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-input);
}

.internal-permission-item input {
    margin: 0;
}

@media (max-width: 1100px) {
    .header-internal-user {
        display: none !important;
    }
}

@media (min-width: 1101px) {
    .header-internal-user {
        display: flex;
    }
}

@media (max-width: 720px) {
    .internal-auth-card {
        padding: 22px 18px;
        border-radius: 16px;
    }
    .internal-auth-title {
        font-size: 24px;
    }
    .internal-permissions-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Guided Tour (Spotlight Onboarding) ── */
.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: auto;
}
.tour-spotlight {
    position: fixed;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.6);
    pointer-events: none;
    transition: all 0.35s ease;
}
.tour-tooltip {
    position: fixed;
    z-index: 10000;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    padding: 20px;
    max-width: 340px;
    width: 90vw;
    transition: all 0.35s ease;
}
.tour-tooltip-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text, #0f172a);
    margin-bottom: 8px;
}
.tour-tooltip-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary, #64748b);
    margin-bottom: 16px;
}
.tour-tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tour-tooltip-step {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    font-weight: 600;
}
.tour-tooltip-actions {
    display: flex;
    gap: 8px;
}
.tour-tooltip-skip {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
}
.tour-tooltip-skip:hover {
    color: var(--text-secondary);
}
.tour-tooltip-next {
    background: var(--accent, #4f6ef7);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.tour-tooltip-next:hover {
    background: #3b5de7;
}
.tour-tooltip-arrow {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
}
@media (max-width: 600px) {
    .tour-tooltip {
        max-width: 280px;
        padding: 16px;
    }
    .tour-tooltip-title {
        font-size: 15px;
    }
}

/* ── Ajuda Contextual (Help Tooltips) ── */
.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(79, 110, 247, 0.12);
    color: var(--accent, #4f6ef7);
    font-size: 11px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
    transition: background 0.15s;
}
.help-btn:hover {
    background: rgba(79, 110, 247, 0.25);
}
.help-tip {
    display: none;
    background: #f0f4ff;
    border: 1px solid rgba(79, 110, 247, 0.2);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #334155;
    margin-top: 6px;
    margin-bottom: 8px;
}
.help-tip.visible {
    display: block;
}
.help-tip strong {
    color: var(--accent, #4f6ef7);
}
.help-banner {
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    border: 1px solid rgba(79, 110, 247, 0.15);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}
.help-banner-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}
.help-banner-dismiss {
    margin-left: auto;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
    padding: 0 4px;
}

/* ══════════════════════════════════════════════════
   PDV Rápido (Venda Rápida) — mobile-first
   ══════════════════════════════════════════════════ */
.qpdv-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    position: relative;
    padding-bottom: 72px;
}
.qpdv-top {
    flex-shrink: 0;
    margin-bottom: 16px;
}
.qpdv-scanner-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.qpdv-scan-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.qpdv-scanner-area {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #000;
    max-height: 260px;
}
#qpdv-scanner-view {
    width: 100%;
    max-height: 260px;
}
#qpdv-scanner-view video {
    width: 100% !important;
    height: auto !important;
    border-radius: 16px;
}
.qpdv-scanner-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
}
.qpdv-products {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    align-content: start;
    padding: 0 2px;
}
.qpdv-product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s;
}
.qpdv-product-card:active {
    border-color: var(--accent);
}
.qpdv-product-img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    background: var(--bg-secondary, #f8fafc);
}
.qpdv-product-img-empty {
    width: 100%;
    aspect-ratio: 3/2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-muted);
    font-size: 22px;
}
.qpdv-product-info {
    padding: 6px 8px 8px;
}
.qpdv-product-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.qpdv-product-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
}
.qpdv-product-code {
    font-size: 10px;
    color: var(--text-muted);
    font-family: ui-monospace, monospace;
    margin-top: 2px;
}

/* Cart bottom bar */
.qpdv-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent, #4f6ef7);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    cursor: pointer;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.qpdv-cart-bar-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.qpdv-cart-bar-count {
    font-size: 12px;
    opacity: 0.85;
}
.qpdv-cart-bar-total {
    font-size: 18px;
}
.qpdv-cart-bar-btn {
    background: #fff;
    color: var(--accent, #4f6ef7);
    font-weight: 700;
    border: none;
}

/* Bottom sheet */
.qpdv-sheet-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
}
.qpdv-sheet-backdrop.open {
    display: flex;
}
.qpdv-sheet {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.qpdv-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: #cbd5e1;
    margin: 10px auto 6px;
    cursor: pointer;
}
.qpdv-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 20px 12px;
    border-bottom: 1px solid var(--border);
}
.qpdv-sheet-header h3 {
    margin: 0;
    font-size: 18px;
}
.qpdv-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    min-height: 0;
}
.qpdv-sheet-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.qpdv-sheet-totals {
    font-size: 15px;
}

/* Cart item in sheet */
.qpdv-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
}
.qpdv-cart-item:last-child {
    border-bottom: none;
}
.qpdv-cart-item-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-secondary);
}
.qpdv-cart-item-copy {
    flex: 1;
    min-width: 0;
}
.qpdv-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qpdv-cart-item-meta {
    font-size: 12px;
    color: var(--text-secondary);
}
.qpdv-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.qpdv-cart-item-qty button {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qpdv-cart-item-qty span {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}
.qpdv-empty-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Mobile: 3 columns, compact */
@media (max-width: 480px) {
    .qpdv-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .qpdv-product-name {
        font-size: 11px;
    }
    .qpdv-product-price {
        font-size: 12px;
    }
    .qpdv-product-info {
        padding: 4px 6px 6px;
    }
    .qpdv-scanner-row {
        gap: 6px;
    }
    .qpdv-scan-btn span {
        display: none;
    }
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .qpdv-layout {
        max-width: 800px;
        margin: 0 auto;
    }
    .qpdv-products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .qpdv-cart-bar {
        left: var(--sidebar-width, 200px);
    }
}

/* ═══════════ Recover Images ═══════════ */
.recover-card {
    background: var(--bg-card, #fff);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    position: relative;
}
.recover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.recover-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    background: var(--bg-tertiary, #f0f0f0);
}
.recover-card-meta {
    padding: 6px 10px;
    font-size: 11px;
    color: var(--text-muted, #888);
}
.recover-card .recover-link-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent, #4f6ef7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.recover-card:hover .recover-link-btn,
.recover-card:hover .recover-delete-btn {
    opacity: 1;
}
.recover-card .recover-delete-btn {
    position: absolute;
    top: 8px;
    right: 44px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.recover-card.linked {
    outline: 3px solid var(--green, #22c55e);
}
.recover-card.selected {
    outline: 2px solid var(--accent, #4f6ef7);
}
.recover-card.dup {
    box-shadow: 0 0 0 2px rgba(79, 110, 247, .3);
}
.recover-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    z-index: 2;
    accent-color: var(--accent, #4f6ef7);
}
.recover-card.linked::after {
    content: '\2713';
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--green, #22c55e);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}
.recover-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .1s;
}
.recover-product-item:hover { background: var(--bg-secondary, #f5f6fa); }
.recover-product-item.selected { background: #eef2ff; outline: 2px solid var(--accent, #4f6ef7); }
.recover-product-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-tertiary, #f0f0f0);
}
.recover-product-item .rpi-noimg {
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary, #f0f0f0);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 18px;
}
.recover-product-item-info { flex: 1; min-width: 0; }
.recover-product-item-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recover-product-item-detail { font-size: 11px; color: var(--text-muted); }
.recover-var-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.recover-var-btn {
    padding: 5px 12px;
    border: 1px solid var(--border, #ddd);
    border-radius: 6px;
    background: var(--bg-card, #fff);
    cursor: pointer;
    font-size: 13px;
    transition: all .1s;
}
.recover-var-btn:hover { border-color: var(--accent, #4f6ef7); }
.recover-var-btn.active { background: var(--accent, #4f6ef7); color: #fff; border-color: var(--accent, #4f6ef7); }

/* ============================================
   Storage Banner (warn/critical) — shop storage enforcement
   ============================================ */
.storage-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; font-size: 14px; font-weight: 500; line-height: 1.4; flex-wrap: wrap; }
.storage-banner-text { display: inline-flex; align-items: center; gap: 8px; flex: 1; }
.storage-banner-text svg { flex-shrink: 0; }
.storage-banner-btn { border: none; border-radius: 6px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.storage-banner-btn:hover { opacity: .9; }
.storage-banner-close { background: transparent; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; opacity: .7; }
.storage-banner-close:hover { opacity: 1; }
.storage-banner.storage-warning { background: #fff3cd; color: #856404; border-bottom: 1px solid #ffeeba; }
.storage-banner.storage-warning .storage-banner-btn { background: #ffc107; color: #212529; }
.storage-banner.storage-critical { background: #f8d7da; color: #721c24; border-bottom: 1px solid #f5c6cb; }
.storage-banner.storage-critical .storage-banner-btn { background: #dc3545; color: #fff; }

/* Storage Upgrade Modal */
.storage-upgrade-modal { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(15,23,42,.65); align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; }
.storage-upgrade-content { background: #fff; border-radius: 16px; padding: 32px; max-width: 960px; width: 100%; box-shadow: 0 20px 48px rgba(0,0,0,.25); position: relative; }
.storage-upgrade-content h2 { margin: 0 0 8px; font-size: 24px; font-weight: 700; color: #0f172a; }
.storage-upgrade-usage { color: #475569; margin: 0 0 24px; font-size: 15px; }
.storage-upgrade-close { position: absolute; top: 14px; right: 16px; background: transparent; border: none; font-size: 26px; color: #94a3b8; cursor: pointer; line-height: 1; }
.storage-upgrade-close:hover { color: #0f172a; }
.storage-upgrade-note { margin: 20px 0 0; color: #64748b; font-size: 13px; text-align: center; }
.storage-addon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .storage-addon-grid { grid-template-columns: repeat(2, 1fr); } }
.storage-addon-card { position: relative; border: 2px solid #e2e8f0; border-radius: 12px; padding: 22px 14px; text-align: center; transition: border-color .15s, transform .15s; }
.storage-addon-card:hover { border-color: var(--accent, #4f6ef7); transform: translateY(-2px); }
.storage-addon-highlight { border-color: var(--accent, #4f6ef7); background: #f5f7ff; }
.storage-addon-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent, #4f6ef7); color: #fff; padding: 3px 12px; border-radius: 12px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.storage-addon-size { font-size: 28px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.storage-addon-price { color: #475569; font-size: 14px; margin-bottom: 14px; }
.storage-addon-btn { background: var(--accent, #4f6ef7); color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; width: 100%; transition: opacity .15s; }
.storage-addon-btn:hover { opacity: .9; }
@media (max-width: 640px) {
    .storage-upgrade-content { padding: 24px 16px; }
    .storage-addon-grid { grid-template-columns: 1fr; }
}

/* Tabela compacta (ex: Cupons) */
.table-compact th, .table-compact td { padding: 8px 10px !important; font-size: 13px; }
.table-compact th { font-weight: 600; color: #64748b; letter-spacing: .3px; }

/* Botao icone (Editar/Excluir em listas) */
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; margin-left: 4px; background: transparent; border: 1px solid #e2e8f0; border-radius: 6px; cursor: pointer; color: #475569; transition: all .12s; }
.btn-icon:hover { background: #f1f5f9; color: #0f172a; border-color: #cbd5e1; }
.btn-icon-danger { color: #dc2626; }
.btn-icon-danger:hover { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* Tooltip help (?) — desktop hover + mobile tap */
.tooltip-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-secondary, #e2e8f0);
    color: var(--text-muted, #64748b);
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    margin-left: 4px;
    position: relative;
    user-select: none;
    flex-shrink: 0;
}
.tooltip-help::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    width: max-content;
    max-width: 240px;
    line-height: 1.4;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 1000;
}
.tooltip-help:hover::after,
.tooltip-help.open::after { opacity: 1; }

/* Phone input com codigo de pais (multi-pais) */
.phone-input-wrapper {
    display: flex;
    gap: 4px;
    align-items: stretch;
}
.phone-input-wrapper .phone-cc-select {
    flex: 0 0 auto;
    width: 140px;
    min-width: 130px;
    max-width: 150px;
    padding: 6px 22px 6px 10px;
    font-size: 13px;
    text-overflow: ellipsis;
    background-position: right 6px center;
    background-size: 12px;
}
.phone-input-wrapper .phone-cc-select option {
    font-size: 13px;
    padding: 4px 6px;
}
.phone-input-wrapper .phone-input {
    flex: 1 1 auto;
    min-width: 0;
}

/* Lista de pagamentos do split (qpdv + pdv) */
.qpdv-payment-item, .pdv-payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    font-size: 13px;
}
.qpdv-payment-item .pmt-method, .pdv-payment-item .pmt-method { font-weight: 500; }
.qpdv-payment-item .pmt-amount, .pdv-payment-item .pmt-amount { font-weight: 700; }
.qpdv-payment-item .pmt-mp-tag, .pdv-payment-item .pmt-mp-tag {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}
.qpdv-payment-item .pmt-remove, .pdv-payment-item .pmt-remove {
    background: none;
    border: none;
    color: var(--red-600, #dc2626);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 16px;
    line-height: 1;
    margin-left: 6px;
}
.qpdv-payment-item .pmt-remove:hover, .pdv-payment-item .pmt-remove:hover { color: #b91c1c; }
