/* NTS Special Offer Products Styles */

.nts-special-offers-container {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.nts-special-offers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    /* Spacing between rows */
}

.nts-special-offers-table thead th {
    text-align: left;
    padding: 0 20px 10px 20px;
    color: #8898aa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.nts-product-row {
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    /* Rounded corners for the row */
}

/* To simulate border-radius on tr, we apply it to first and last td */
.nts-product-row td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.nts-product-row td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.nts-product-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.nts-product-row td {
    padding: 20px;
    vertical-align: middle;
    color: #525f7f;
}

.nts-product-image img {
    border-radius: 6px;
    max-width: 80px;
    height: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nts-product-title a {
    color: #32325d;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.nts-product-title a:hover {
    color: #5e72e4;
}

.nts-product-desc {
    font-size: 0.95rem;
    color: #8898aa;
    max-width: 300px;
}

.nts-product-short-desc {
    font-size: 0.90rem;
    color: #525f7f;
    max-width: 250px;
}

.nts-product-price {
    font-weight: 600;
    white-space: nowrap;
}

.nts-old-price {
    text-decoration: line-through;
    color: #adb5bd;
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.nts-new-price {
    color: #2dce89;
    /* Success Green */
    font-size: 1.15rem;
    display: block;
}

.nts-qty-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
    color: #525f7f;
}

.nts-qty-input:focus {
    outline: none;
    border-color: #5e72e4;
}

.nts-product-action {
    min-width: 140px;
    /* Ensure space for button and message */
}

.nts-action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nts-add-to-cart-btn {
    background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
    margin-bottom: 5px;
}

.nts-add-to-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.nts-add-to-cart-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.nts-message {
    font-size: 0.85rem;
    color: #2dce89;
    font-weight: 600;
    display: none;
    margin-top: 5px;
    text-align: center;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .nts-special-offers-table thead {
        display: none;
    }

    .nts-product-row {
        display: block;
        margin-bottom: 20px;
    }

    .nts-product-row td {
        display: block;
        text-align: right;
        padding: 10px 20px;
        border-bottom: 1px solid #f6f9fc;
    }

    .nts-product-row td:last-child {
        border-bottom: none;
    }

    .nts-product-row td:before {
        content: attr(data-label);
        /* Requires data-label attr in PHP if we wanted perfect responsive labels, for now just stacking */
        float: left;
        font-weight: 600;
        color: #8898aa;
    }

    .nts-product-image {
        text-align: center !important;
    }

    .nts-product-title a {
        display: block;
        text-align: center;
    }

    .nts-action-wrapper {
        align-items: center;
    }
}