﻿.weights-table-wrapper {
    width: 100%;
    overflow-x: auto; /* mobile horizontal scroll */
}

.weights-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

    .weights-table thead {
        background: #156cf0;
        color: #fff;
    }

    .weights-table th,
    .weights-table td {
        padding: 12px 16px;
        text-align: center;
        border-bottom: 1px solid #e6e6e6;
    }

    .weights-table tr:hover {
        background: #f7faff;
    }

.add-to-cart-btn {
    background: #156cf0;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

    .add-to-cart-btn:hover {
        background: #0d4ead;
    }

.open-weight-popup {
    background: #156cf0;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

    .open-weight-popup:hover {
        background: #0d4ead;
    }

/* Popup Overlay */
.qty-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal Box */
.qty-modal-content {
    background: #fff;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Texts */
.qty-modal-body p {
    margin: 8px 0;
    font-size: 15px;
}

.total-box {
    margin-top: 15px;
    font-size: 18px;
}

/* Buttons */
.qty-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
}

.cancel-btn {
    background: #ccc;
}

.add-btn {
    background: #156cf0;
    color: white;
}


/* Item properties */
.weights-vertical-wrapper {
    display: block;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

/* Card */
.weight-vertical-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Properties Table */
.weight-vertical-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed; /* 🔑 IMPORTANT */
}

    /* LEFT COLUMN (LABELS) */
    .weight-vertical-table th {
        background: #156cf0;
        color: #fff;
        text-align: left;
        font-weight: 600;
        padding: 10px 12px;
        width: 20%; /* smaller & fixed */
        border-bottom: 1px solid rgba(255,255,255,0.15);
        vertical-align: top;
    }

    /* RIGHT COLUMN (VALUES) */
    .weight-vertical-table td {
        padding: 10px 14px;
        color: #333;
        border-bottom: 1px solid #e5e5e5;
        width: auto; /* 🔑 let it fill remaining space */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Remove border from last row */
    .weight-vertical-table tr:last-child th,
    .weight-vertical-table tr:last-child td {
        border-bottom: none;
    }

/* Action row */
.weight-action {
    text-align: center;
    padding: 16px;
    background: #f8f9fb;
}

    /* Button */
    .weight-action .add-to-cart-btn {
        padding: 10px 22px;
        background: #156cf0;
        color: #fff;
        border: none;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 600;
    }
        /* Citations List */
    .citations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* PDF Card */
.citation-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f9fafc;
    border: 1px solid #e5e8ee;
    text-decoration: none;
    transition: 0.25s ease;
}

    .citation-card:hover {
        background: #eef3ff;
        border-color: #156cf0;
        transform: translateY(-2px);
    }

/* PDF Icon */
.citation-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #156cf0;
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text */
.citation-info {
    display: flex;
    flex-direction: column;
}

.citation-title {
    font-size: 14px;
    font-weight: 600;
    color: #191919;
}

.citation-action {
    font-size: 13px;
    color: #156cf0;
}

