/* ===== Zoho Items – Card Layout (Dark) ===== */
.product-card-wrapper {
    margin: 10px 0;
    overflow-y: auto;
    position: relative;
}

.product-card-wrapper-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-card {
    background: #0b0b0d;
    color: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #15151a;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.logo-wrapper img {
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
}

.exw-info .label {
    font-size: 11px;
    color: #cfcfd6;
    letter-spacing: 0.06em;
}

.exw-info .value {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.card-body {
    margin-top: 6px;
    margin-bottom: 8px;
}

.card-body p {
    line-height: 1.35;
    color: #f5f6fb;
    font-weight: 600;
    margin: 0;
}

.card-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    align-items: start;
}

.footer-info .label {
    font-size: 11px;
    color: #cfcfd6;
}

.footer-info .value {
    margin-top: 3px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.footer-info .value.small-text {
    font-size: 11px;
}

.no-items-message {
    text-align: center;
    color: #cfcfd6;
    padding: 20px;
    background: #0b0b0d;
    border-radius: 12px;
}

/* Scrollbar styling */
.product-card-wrapper::-webkit-scrollbar {
    width: 10px;
}

.product-card-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.product-card-wrapper::-webkit-scrollbar-thumb {
    background-color: #888888;
    border-radius: 5px;
}

.product-card-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #555555;
}

.product-card-wrapper-inner .product-card:last-child {
    margin-bottom: 64px !important;
}

/* Hide the old table styles if any render elsewhere on the page */
.zoho-items-table-container, .zoho-items-table {
    display: none !important;
}

/* Loading state */
.product-card-wrapper.loading {
    opacity: 0.7;
    pointer-events: none;
}

.product-card-wrapper.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #cfcfd6;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card {
        padding: 12px;
    }
    
    .card-footer {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .footer-info .value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 10px;
    }
    
    .card-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }
}