/* ============================================================
   FORMULAS
   ============================================================ */
.formula-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 1rem;
}

.formula-container {
    background: linear-gradient(180deg, var(--surface2) 0%, var(--surface3) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.formula-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    padding: 0.875rem;
    border-bottom: 1px solid var(--border);
    animation: fade-up 0.3s ease;
}

.formula-row:last-child {
    border-bottom: none;
}

.btn-add-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text2);
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-row:hover {
    background: linear-gradient(145deg, var(--teal) 0%, var(--teal-d) 100%);
    border-color: var(--teal);
    color: #fff;
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.2);
}


/* ============================================================
   PRODUCT ANALYTICS
   ============================================================ */
.product-card {
    background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    border-color: var(--border2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.cost-breakdown-bar {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: var(--bg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cost-segment {
    height: 100%;
    position: relative;
    overflow: hidden;
    animation: segment-grow 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes segment-grow {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: var(--segment-width, 50%);
        opacity: 1;
    }
}

@keyframes segment-glow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.1);
    }
}

.cost-segment::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    animation: segment-glow 3s ease-in-out infinite;
}

/* Segment Colors with Gradients */
.cost-segment.color-teal {
    background: linear-gradient(90deg, #0d9488 0%, #14b8a6 100%);
    box-shadow: 0 0 12px rgba(13, 148, 136, 0.4);
}

.cost-segment.color-violet {
    background: linear-gradient(90deg, #7c3aed 0%, #8b5cf6 100%);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.cost-segment.color-amber {
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.4);
}

.cost-segment.color-pink {
    background: linear-gradient(90deg, #ec4899 0%, #f472b6 100%);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

.cost-segment.color-blue {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.cost-segment.color-green {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.cost-segment.color-red {
    background: linear-gradient(90deg, #f43f5e 0%, #fb7185 100%);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

.cost-segment.color-purple {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.cost-segment.color-gray {
    background: linear-gradient(90deg, #a8a29e 0%, #d6d3d1 100%);
    box-shadow: 0 0 8px rgba(168, 162, 158, 0.3);
}

.cost-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--surface3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text2);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-cost-summary {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cost-chip {
    display: flex;
    flex-direction: column;
    background: var(--surface2);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    min-width: 140px;
    box-shadow: var(--shadow-sm);
}

.chip-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text3);
    letter-spacing: 0.05em;
}

.chip-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-top: 3px;
}

.chip-value.total {
    color: var(--teal-d);
}


/* ============================================================
   PRODUCTS V2 — PREMIUM REDESIGN
   ============================================================ */

/* ── Hero Header ── */
.products-hero-header {
    position: relative;
    background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    animation: fade-up 0.5s ease;
}

.products-hero-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(13, 148, 136, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    animation: hero-glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes hero-glow-pulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.products-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.products-hero-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.products-hero-icon-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.products-hero-icon-ring {
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-md);
    background: conic-gradient(#7c3aed, #0d9488, #d97706, #7c3aed);
    opacity: 0.5;
    animation: ring-spin 8s linear infinite;
}

.products-hero-icon {
    position: relative;
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, #7c3aed, #6d28d9);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.products-hero-title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.035em;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.products-hero-sub {
    font-size: 0.82rem;
    color: var(--text3);
    margin: 0.25rem 0 0;
    font-weight: 500;
}

.products-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.products-action-group-secondary {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* Action Chip Button */
.products-action-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.products-action-chip i {
    font-size: 0.85rem;
}

.products-action-chip:hover {
    background: var(--surface3);
    border-color: var(--violet);
    color: var(--violet);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
}

.products-action-chip.danger:hover {
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
}

/* Add Product Button - Premium */
.products-add-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    background: linear-gradient(145deg, #7c3aed 0%, #6d28d9 100%);
    border: none;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.products-add-btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.products-add-btn:hover .products-add-btn-glow {
    transform: translateX(100%);
}

.products-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.products-add-btn:active {
    transform: translateY(0);
}

/* ── Search Strip ── */
.products-search-strip {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    animation: fade-up 0.5s ease 0.1s backwards;
}

.products-search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 420px;
    display: flex;
    align-items: center;
}

.products-search-icon-wrap {
    position: absolute;
    left: 0;
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text3);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s;
}

.products-search-box:focus-within .products-search-icon-wrap {
    color: var(--violet);
}

.products-search-box input {
    width: 100%;
    padding: 0.7rem 4rem 0.7rem 2.6rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.products-search-box input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08), 0 4px 16px rgba(124, 58, 237, 0.06);
    background: var(--surface);
}

.products-search-box input::placeholder {
    color: var(--text3);
    font-weight: 400;
}

.products-search-shortcut {
    position: absolute;
    right: 12px;
    padding: 0.2rem 0.5rem;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text3);
    letter-spacing: 0.02em;
    pointer-events: none;
}

.products-filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.products-pill-select {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.products-pill-select>i {
    position: absolute;
    left: 12px;
    font-size: 0.8rem;
    color: var(--text3);
    pointer-events: none;
    z-index: 1;
}

.products-pill-select select {
    padding: 0.55rem 2rem 0.55rem 2.2rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2378716c' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    padding-right: 26px;
    outline: none;
}

.products-pill-select select:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.products-pill-select select:hover {
    border-color: var(--violet);
}

/* ── Products Grid Container ── */
.products-grid-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Product Card V2 ── */
.pv2-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: pv2-card-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) var(--card-delay, 0s) backwards;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@keyframes pv2-card-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.pv2-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* Card Header */
.pv2-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--border);
}

.pv2-header-left {
    flex: 1;
    min-width: 0;
}

.pv2-product-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.pv2-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.45rem;
}

.pv2-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.2em 0.7em;
    border-radius: 100px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pv2-badge-category {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.pv2-badge-trading {
    background: linear-gradient(135deg, var(--teal-pale), var(--teal-pale2));
    color: var(--teal-d);
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.pv2-badge-mrp {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    color: #be185d;
    border: 1px solid #fbcfe8;
}

/* Action Buttons */
.pv2-header-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.pv2-action-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.pv2-action-duplicate:hover {
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.2);
    color: #0d9488;
}

.pv2-action-edit:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
    color: #7c3aed;
}

.pv2-action-delete:hover {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ── Visibility Toggle Switch ── */
.pv2-vis-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    user-select: none;
    padding: 0.3rem 0.6rem;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: var(--surface2);
    transition: all 0.22s ease;
    height: 34px;
}

.pv2-vis-toggle:hover {
    border-color: rgba(124, 58, 237, 0.3);
    background: var(--surface3);
}

.pv2-vis-toggle input[type="checkbox"] {
    display: none;
}

.pv2-vis-slider {
    position: relative;
    width: 34px;
    height: 18px;
    background: #d1d5db;
    border-radius: 100px;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.pv2-vis-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.pv2-vis-toggle input:checked ~ .pv2-vis-slider {
    background: linear-gradient(135deg, #10b981, #059669);
}

.pv2-vis-toggle input:checked ~ .pv2-vis-slider::after {
    transform: translateX(16px);
    box-shadow: 0 1px 6px rgba(16,185,129,0.35);
}

.pv2-vis-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text3);
    letter-spacing: 0.02em;
    min-width: 32px;
    transition: color 0.2s ease;
}

.pv2-vis-toggle:has(input:checked) .pv2-vis-label {
    color: #059669;
}

/* Hidden card dimming */
.pv2-card-hidden {
    opacity: 0.58;
    border-style: dashed;
    border-color: var(--border);
}

.pv2-card-hidden .pv2-card-header {
    background: repeating-linear-gradient(
        -45deg,
        var(--surface2),
        var(--surface2) 8px,
        var(--surface3) 8px,
        var(--surface3) 16px
    );
}

.pv2-card-hidden:hover {
    opacity: 0.78;
}

/* Body Layout */
.pv2-body {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
}

.pv2-image-frame {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: #fff;
}

.pv2-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pv2-image-frame:hover img {
    transform: scale(1.06);
}

.pv2-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 1.5rem;
}

.pv2-image-frame:hover .pv2-image-overlay {
    opacity: 1;
}

.pv2-image-frame {
    cursor: pointer;
}

/* ── Image Lightbox (Fullscreen Preview) ── */
.img-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.img-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.img-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.img-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.img-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
}

.img-lightbox-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-lightbox-overlay.active .img-lightbox-content {
    transform: scale(1);
}

.img-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    background: #fff;
}

.img-lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.01em;
}

/* Navigation Arrows — positioned on the overlay (not inside image) */
.img-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.img-lightbox-prev { left: 24px; }
.img-lightbox-next { right: 24px; }

.img-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}

.img-lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Counter + Caption info area */
.img-lightbox-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.img-lightbox-counter {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .img-lightbox-prev { left: 10px; }
    .img-lightbox-next { right: 10px; }
    .img-lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
}



.pv2-body-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pv2-details-block {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: rgba(124, 58, 237, 0.04);
    border-radius: var(--radius-md);
    border-left: 3px solid #7c3aed;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text2);
}

.pv2-details-block>i {
    color: #7c3aed;
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Metrics Row */
.pv2-metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.pv2-metric {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.pv2-metric:hover {
    border-color: var(--border2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pv2-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pv2-metric-data {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pv2-metric-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text3);
    white-space: nowrap;
}

.pv2-metric-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-top: 1px;
}

.pv2-metric-total {
    background: linear-gradient(145deg, rgba(13, 148, 136, 0.06) 0%, rgba(13, 148, 136, 0.02) 100%);
    border-color: rgba(13, 148, 136, 0.15);
}

.pv2-metric-total-val {
    color: var(--teal-d) !important;
    font-size: 1.1rem !important;
}

/* ── Cost Breakdown Bar V2 ── */
.pv2-breakdown-section {
    padding: 0 1.5rem 1rem;
}

/* ── Cost Breakdown Bar (Unique Pill Design) ── */
.pv2-bar-wrap {
    padding: 0 0 1rem;
}

.pv2-bar {
    display: flex;
    width: 100%;
    gap: 3px;
    height: 14px;
    align-items: center;
}

.pv2-segment {
    height: 100%;
    position: relative;
    border-radius: 100px;
    animation: pv2-seg-grow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    overflow: hidden;
}

.pv2-segment::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: pv2-shimmer 2.5s ease-in-out infinite;
    animation-delay: inherit;
}

.pv2-segment:hover,
.pv2-segment.pv2-hover-active {
    transform: scaleY(1.6);
    filter: brightness(1.1) saturate(1.2);
    z-index: 2;
}

@keyframes pv2-seg-grow {
    from {
        width: 0;
        opacity: 0;
        border-radius: 100px;
    }
    to {
        width: var(--seg-w, 50%);
        opacity: 1;
        border-radius: 100px;
    }
}

@keyframes pv2-shimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.pv2-seg-teal {
    background: linear-gradient(135deg, #0d9488, #2dd4bf);
    box-shadow: 0 2px 8px rgba(13,148,136,0.35);
}
.pv2-seg-violet {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    box-shadow: 0 2px 8px rgba(124,58,237,0.35);
}
.pv2-seg-amber {
    background: linear-gradient(135deg, #d97706, #fbbf24);
    box-shadow: 0 2px 8px rgba(217,119,6,0.35);
}
.pv2-seg-pink {
    background: linear-gradient(135deg, #ec4899, #f9a8d4);
    box-shadow: 0 2px 8px rgba(236,72,153,0.35);
}
.pv2-seg-blue {
    background: linear-gradient(135deg, #3b82f6, #93c5fd);
    box-shadow: 0 2px 8px rgba(59,130,246,0.35);
}
.pv2-seg-green {
    background: linear-gradient(135deg, #10b981, #6ee7b7);
    box-shadow: 0 2px 8px rgba(16,185,129,0.35);
}
.pv2-seg-red {
    background: linear-gradient(135deg, #f43f5e, #fda4af);
    box-shadow: 0 2px 8px rgba(244,63,94,0.35);
}
.pv2-seg-purple {
    background: linear-gradient(135deg, #8b5cf6, #c4b5fd);
    box-shadow: 0 2px 8px rgba(139,92,246,0.35);
}
.pv2-seg-gray {
    background: linear-gradient(135deg, #78716c, #d6d3d1);
    box-shadow: 0 2px 8px rgba(120,113,108,0.25);
}

/* Legend Row */
.pv2-legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pv2-legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.7rem;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.pv2-legend-chip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--chip-color, var(--border));
    border-radius: 3px 0 0 3px;
}

.pv2-legend-chip:hover,
.pv2-legend-chip.pv2-hover-active {
    background: var(--surface3);
    border-color: var(--chip-color, var(--border2));
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.pv2-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
}

.pv2-legend-name {
    font-weight: 600;
    color: var(--text2);
}

.pv2-legend-pct {
    font-weight: 800;
    color: var(--chip-color, var(--text3));
    font-size: 0.65rem;
    background: var(--chip-color-bg, var(--surface3));
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* ── Formula Section (Collapsible) ── */
.pv2-formula-section {
    border-top: 1px solid var(--border);
}

.pv2-formula-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text2);
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.pv2-formula-toggle:hover {
    background: var(--surface2);
    color: var(--text);
}

.pv2-formula-toggle-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pv2-formula-toggle-left>i {
    color: var(--violet);
    font-size: 0.95rem;
}

.pv2-formula-count {
    padding: 0.15em 0.6em;
    background: var(--surface3);
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text3);
}

.pv2-formula-chevron {
    font-size: 0.85rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pv2-formula-section.open .pv2-formula-chevron {
    transform: rotate(180deg);
}

.pv2-formula-table-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pv2-formula-section.open .pv2-formula-table-wrap {
    max-height: var(--formula-h, 9999px);
}

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

.pv2-formula-table thead th {
    padding: 0.65rem 1.5rem;
    background: var(--surface3);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text3);
    border-bottom: 1px solid var(--border);
}

.pv2-formula-table thead th:last-child {
    text-align: right;
}

.pv2-formula-table tbody td {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text2);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.pv2-formula-table tbody tr:last-child td {
    border-bottom: none;
}

.pv2-formula-row:hover td {
    background: rgba(124, 58, 237, 0.02);
}

.pv2-material-cell {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.pv2-material-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pv2-qty-badge {
    display: inline-block;
    padding: 0.15em 0.55em;
    background: var(--surface3);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text2);
}

.pv2-rate-cell {
    color: var(--text3);
    font-weight: 500;
}

.pv2-total-cell {
    text-align: right;
    font-weight: 800 !important;
    color: var(--text) !important;
}

/* No Formula State */
.pv2-no-formula {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text3);
    font-size: 0.82rem;
    font-weight: 500;
}

.pv2-no-formula>i {
    color: #d97706;
    font-size: 1rem;
}

/* ── Detail Tags (HSN, Unit, MOQ, Brand, etc.) ── */
.pv2-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--border);
}

.pv2-detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text2);
    transition: all 0.2s ease;
}

.pv2-detail-tag:hover {
    background: var(--surface3);
    border-color: var(--border2);
}

.pv2-detail-tag i {
    font-size: 0.75rem;
    color: var(--text3);
    flex-shrink: 0;
}

.pv2-detail-tag strong {
    font-weight: 700;
    color: var(--text3);
    margin-right: 0.1rem;
}

/* ── Slab / Bulk Pricing Section ── */
.pv2-slab-section {
    border-top: 1px solid var(--border);
}

.pv2-slab-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text2);
}

.pv2-slab-header > i {
    color: #d97706;
    font-size: 0.95rem;
}

.pv2-slab-count {
    padding: 0.15em 0.6em;
    background: var(--surface3);
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text3);
    margin-left: auto;
}

.pv2-slab-table-wrap {
    padding: 0 1.5rem 1rem;
}

.pv2-slab-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pv2-slab-table thead th {
    padding: 0.6rem 1rem;
    background: var(--surface3);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text3);
    border-bottom: 1px solid var(--border);
}

.pv2-slab-table tbody td {
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    color: var(--text2);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.pv2-slab-table tbody tr:last-child td {
    border-bottom: none;
}

.pv2-slab-table tbody tr:hover td {
    background: rgba(217, 119, 6, 0.03);
}

.pv2-slab-table tbody td strong {
    font-weight: 800;
    color: var(--text);
}

@media (max-width: 768px) {
    .pv2-detail-tags {
        padding: 0.75rem 1.25rem;
    }

    .pv2-slab-header {
        padding: 0.75rem 1.25rem;
    }

    .pv2-slab-table-wrap {
        padding: 0 1.25rem 1rem;
    }
}

/* ── Empty State ── */
.products-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
    border: 1px dashed var(--border2);
    border-radius: var(--radius-xl);
    text-align: center;
    animation: fade-up 0.6s ease;
}

.products-empty-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #ede9fe, #ddd6fe);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #7c3aed;
    margin-bottom: 1.5rem;
}

.products-empty-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    border: 2px solid rgba(124, 58, 237, 0.2);
    animation: empty-pulse 2s ease-in-out infinite;
}

@keyframes empty-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.08);
        opacity: 0;
    }
}

.products-empty-state h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.products-empty-state p {
    font-size: 0.88rem;
    color: var(--text3);
    margin: 0 0 1.5rem;
    max-width: 340px;
}

.products-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(145deg, #7c3aed, #6d28d9);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.products-empty-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

/* ── Responsive — Products V2 ── */
@media (max-width: 900px) {
    .products-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .products-action-group-secondary {
        width: 100%;
        flex-wrap: wrap;
    }

    .products-add-btn {
        width: 100%;
        justify-content: center;
    }

    .products-search-strip {
        flex-direction: column;
    }

    .products-search-box {
        max-width: 100%;
    }

    .products-filter-pills {
        width: 100%;
    }

    .products-pill-select {
        flex: 1;
    }

    .products-pill-select select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .pv2-body {
        flex-direction: column-reverse;
        padding: 1.25rem;
    }

    .pv2-image-frame {
        width: 100%;
        height: 200px;
    }

    .pv2-metrics-row {
        grid-template-columns: 1fr;
    }

    .pv2-card-header {
        padding: 1rem 1.25rem;
    }

    .pv2-formula-toggle {
        padding: 0.75rem 1.25rem;
    }

    .pv2-formula-table thead th,
    .pv2-formula-table tbody td {
        padding: 0.65rem 1rem;
    }

    .pv2-breakdown-section {
        padding: 0 1.25rem 1rem;
    }

    .products-hero-header {
        padding: 1.25rem;
    }

    .products-hero-title {
        font-size: 1.35rem;
    }

    .products-action-chip span {
        display: none;
    }
}

@media (max-width: 480px) {
    .pv2-product-name {
        font-size: 1.1rem;
    }

    .pv2-metric {
        padding: 0.6rem 0.7rem;
    }

    .pv2-metric-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 0.8rem;
    }

    .pv2-metric-value {
        font-size: 0.95rem;
    }

    .products-hero-icon-wrap {
        width: 44px;
        height: 44px;
    }

    .products-hero-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .products-hero-title {
        font-size: 1.15rem;
    }
}


/* ═══════════════════════════════════════════
   VARIANT LIST — Product Card Body
   ═══════════════════════════════════════════ */
.pv2-variant-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Variant list header */
.pv2-vlist-hdr {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text3);
    background: linear-gradient(135deg, var(--surface2), var(--surface3));
    border-bottom: 1px solid var(--border);
}

.pv2-vlist-hdr > i {
    color: #7c3aed;
    font-size: 0.78rem;
}

.pv2-vlist-badge {
    margin-left: auto;
    background: rgba(124,58,237,0.1);
    color: #7c3aed;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.1em 0.55em;
    border-radius: 100px;
    border: 1px solid rgba(124,58,237,0.15);
}

/* Variant row */
.pv2-vrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: background 0.18s ease, border-left-color 0.18s ease;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    border-left: 3px solid transparent;
    position: relative;
}

.pv2-vrow:last-child {
    border-bottom: none;
}

.pv2-vrow:hover {
    background: var(--surface2);
}

.pv2-vrow.active {
    background: linear-gradient(90deg, rgba(124,58,237,0.07) 0%, rgba(124,58,237,0.01) 100%);
    border-left-color: #7c3aed;
    box-shadow: inset 0 0 0 1px rgba(124,58,237,0.06);
}

/* Radio dot */
.pv2-vrow-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.pv2-vrow.active .pv2-vrow-dot {
    border-color: #7c3aed;
    background: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.16), 0 0 8px rgba(124,58,237,0.25);
}

.pv2-vrow.active .pv2-vrow-dot::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    display: block;
}

/* Info block */
.pv2-vrow-info {
    flex: 1;
    min-width: 0;
}

.pv2-vrow-name {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.18s ease;
}

.pv2-vrow.active .pv2-vrow-name {
    color: #6d28d9;
    font-weight: 700;
}

.pv2-vrow-meta {
    font-size: 0.67rem;
    color: var(--text3);
    font-weight: 500;
    margin-top: 2px;
    display: block;
}

/* Cost */
.pv2-vrow-cost {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text2);
    flex-shrink: 0;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    transition: color 0.18s ease;
    padding: 0.18em 0.5em;
    border-radius: 6px;
}

.pv2-vrow.active .pv2-vrow-cost {
    color: #6d28d9;
    background: rgba(124,58,237,0.08);
}

/* Breakdown section header */
.pv2-breakdown-hdr {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text3);
}

.pv2-breakdown-hdr > i {
    color: #7c3aed;
    font-size: 0.78rem;
}

/* Metrics wrapper below body (manufactured dynamic section) */
/* ── Collapsible Cost Breakdown + Metrics ── */
.pv2-cost-section {
    border-top: 1px solid var(--border);
}
.pv2-cost-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text2);
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.2s ease;
}
.pv2-cost-toggle:hover { background: var(--surface2); }
.pv2-cost-toggle-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pv2-cost-toggle-left > i { color: #0d9488; font-size: 0.95rem; }
.pv2-cost-toggle-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.pv2-cost-chevron {
    font-size: 0.85rem;
    color: var(--text3);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pv2-cost-section.open .pv2-cost-chevron { transform: rotate(180deg); }
.pv2-cost-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pv2-cost-section.open .pv2-cost-content {
    max-height: var(--cost-h, 9999px);
}

.pv2-metrics-wrap {
    padding: 0.9rem 1.5rem 1rem;
    border-top: 1px solid var(--border);
}

/* Value flash animation when variant switches */
@keyframes pv2-val-flash {
    0%   { opacity: 0.25; transform: translateY(5px) scale(0.95); }
    60%  { opacity: 1;    transform: translateY(-1px) scale(1.02); }
    100% { opacity: 1;    transform: translateY(0) scale(1); }
}

.pv2-val-flash {
    animation: pv2-val-flash 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}

@media (max-width: 768px) {
    .pv2-vrow {
        padding: 0.55rem 0.75rem;
        gap: 0.6rem;
    }
    .pv2-metrics-wrap {
        padding: 0.75rem 1.25rem 1rem;
    }
}

/* Spinner arrows removed globally via global.css */

