.cpg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cpg-item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cpg-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cpg-image img {
    border-radius: 10px;
    margin-bottom: 15px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Hide out-of-stock notice only for Uno and Supra */
.woocommerce div.product .variations_form .stock.out-of-stock {
    display: none !important;
}

.cpg-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin: 10px 0;
}

.cpg-price {
    font-size: 16px;
    color: #009688;
    margin-bottom: 10px;
}

.cpg-button {
    display: inline-block;
    background: #009688;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.added_to_cart  {
    display: inline-block;
    background: #009688;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cpg-button:hover, .cpg-button:active , .cpg-button:focus {
    background: #00796B;
}

.added_to_cart:hover, .added_to_cart:active , .added_to_cart:focus {
    background: #00796B;
}



.cpg-featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e91e63;
    color: white;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10;
    pointer-events: none;
}

/* Make product card position relative so badge can position absolute */
.cpg-item {
    position: relative;  /* Add this if not present */
}


.nist-cart-subtotals, .nist-cart-header {
    color:black !important;
}

.labelsdescription {
    display: block;
    margin-top: 4px;
    font-size: 0.9rem;       /* slightly smaller than main text */
    color: #555;             /* softer grey for readability */
    font-style: italic;      /* gives it a gentle hint look */
    line-height: 1.4;        /* improves readability */
}

.labelquestion {
    font-weight: bold;
}


.nist-price-list-download a {
    display: inline-block;
    padding: 12px 22px;
    background: linear-gradient(135deg, #0073aa, #005177);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.nist-price-list-download a:hover {
    color: #fff;
    background: linear-gradient(135deg, #005177, #003d5c);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.nist-price-list-download {
    margin: 20px 0;
    text-align: center;
}

.nist-cart-buttons {
    display: flex;            /* make it a flex container */
    flex-wrap: wrap;        /* buttons wrap if screen is too small */
    justify-content: center;/* center horizontally */
    gap: 10px;              /* space between buttons */
}

.nist-cart-buttons .btn {
    min-width: 150px;       /* optional: all buttons same width */
    color: white;
    background: #009688;
    border: none;
}

.nist-cart-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 5px solid #00acc1; /* turquoise accent */
    background-color: #e0f7fa;      /* light turquoise */
    color: #006064;                  /* dark turquoise text */
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Optional: fade in/out when showing/hiding via JS */
.nist-cart-message.show {
    opacity: 1;
    transform: translateY(0);
}

.nist-cart-message.hide {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}