:root {
    --cppe-qty-btn-size: 36px;
}

.qty-btn {
    width: var(--cppe-qty-btn-size) !important;
    height: var(--cppe-qty-btn-size) !important;
    min-width: unset !important;
    padding: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    line-height: 1 !important;
}

.main-content {
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
}

@media (max-width: 1024px) {
    .main-content {
        margin-bottom: 30px !important;
        padding-bottom: 24px !important;
    }
}

.product-card {
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s ease !important;
    overflow: hidden !important;
}

.product-card:hover {
    transform: translateY(-4px) !important;
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: #00f0ff !important;
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.15) !important;
}

.product-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.product-card .product-image {
    min-height: 120px !important;
}

.product-card .product-name {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.3px !important;
    margin-bottom: 6px !important;
}

.product-card .product-price {
    color: #00ffcc !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.4) !important;
    letter-spacing: 0.02em !important;
}

.product-card .product-stock,
.product-card .stock-label,
.product-card .stock-count {
    color: #94a3b8 !important;
    font-size: 11px !important;
}

.report-card .label,
.report-card .value {
    color: #ffffff !important;
}

.report-fallback-banner {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.18);
    color: #e0f7fa;
    font-size: 13px;
}

.report-chart {
    margin-top: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.report-chart .chart-title {
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b2ebf2;
    margin-bottom: 12px;
}

.report-chart .chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-height: 220px;
}

.report-chart .chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 36px;
}

.report-chart .chart-bar-fill {
    width: 100%;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, #00ff9d 0%, #00b0ff 100%);
    transition: height 0.3s ease;
}

.report-chart .chart-bar-label {
    color: #cfd8dc;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
}

.product-item-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 12px 12px 32px 12px !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
}

.product-item-card h4 {
    margin-top: 4px !important;
    margin-bottom: 6px !important;
    transform: translateY(-32px) !important;
    font-size: 13px !important;
    line-height: 0.8 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.product-item-card .price {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #00ffcc !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    transform: translateY(-30px) !important;
    text-shadow: none !important;
    margin-top: auto !important;
}

.product-item-card .stock,
.product-item-card span[class*="stock"] {
    transform: translateY(-28px) !important;
}

div.cppe-catalog-grid div.product-item-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 12px 12px 16px 12px !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
}

.cppe-catalog-grid .product-item-card h4 {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin: 2px 0 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transform: translateY(-32px) !important;
}

.cppe-catalog-grid .product-item-card .price,
[data-category] .price {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #00ffcc !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    transform: translateY(-30px) !important;
    text-shadow: none !important;
    margin-top: auto !important;
}

.cppe-catalog-grid .product-item-card .stock,
.cppe-catalog-grid .product-item-card span[class*="stock"],
[data-category] .product-item-card span[class*="stock"] {
    transform: translateY(-28px) !important;
}
