/* National Water Pool Products & Inquiry Modal Styles (Light Theme) */
.nwp-products-wrapper {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    margin: 30px 0;
}

/* Category Filter Tabs */
.nwp-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    justify-content: center;
}

.nwp-filter-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nwp-filter-btn:hover {
    background: #f0f9ff;
    color: #0284c7;
    border-color: #bae6fd;
}

.nwp-filter-btn.active {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

/* Products Grid */
.nwp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Product Card */
.nwp-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.nwp-product-card:hover {
    transform: translateY(-6px);
    border-color: #7dd3fc;
    box-shadow: 0 16px 30px -10px rgba(2, 132, 199, 0.18);
}

/* Card Media */
.nwp-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.nwp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nwp-product-card:hover .nwp-card-media img {
    transform: scale(1.06);
}

.nwp-badge-stock {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nwp-badge-stock.in-stock {
    background: rgba(236, 253, 245, 0.9);
    color: #059669;
    border: 1px solid #a7f3d0;
}

.nwp-badge-stock.order {
    background: rgba(254, 243, 199, 0.9);
    color: #d97706;
    border: 1px solid #fde68a;
}

.nwp-badge-sku {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
    font-size: 10px;
    font-family: monospace;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Card Body */
.nwp-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nwp-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.nwp-card-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px 0;
    line-height: 1.5;
    flex-grow: 1;
}

/* Specifications Bullets */
.nwp-card-specs {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.nwp-card-specs li {
    font-size: 12px;
    color: #334155;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nwp-card-specs li:last-child {
    margin-bottom: 0;
}

/* Card Footer */
.nwp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    gap: 12px;
}

.nwp-card-price {
    display: flex;
    flex-direction: column;
}

.nwp-price-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nwp-price-val {
    font-size: 18px;
    font-weight: 800;
    color: #0284c7;
    font-family: 'Outfit', sans-serif;
}

/* Inquire Button */
.nwp-inquire-btn {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nwp-inquire-btn:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

/* MODAL STYLING */
.nwp-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.nwp-modal-box {
    background: #ffffff;
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
    animation: nwpModalFadeIn 0.25s ease-out;
}

@keyframes nwpModalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.nwp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 16px;
    transition: all 0.2s;
    z-index: 10;
}

.nwp-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.nwp-modal-header {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 24px 28px;
    border-bottom: 1px solid #bae6fd;
}

.nwp-modal-tag {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.nwp-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    padding-right: 30px;
}

.nwp-modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.nwp-modal-sku {
    color: #64748b;
    font-family: monospace;
}

.nwp-modal-price {
    font-weight: 700;
    color: #0284c7;
    font-size: 14px;
}

/* Modal Form */
.nwp-modal-form {
    padding: 24px 28px;
}

.nwp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.nwp-form-group {
    margin-bottom: 14px;
}

.nwp-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.nwp-form-group input,
.nwp-form-group textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    color: #0f172a;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.nwp-form-group input:focus,
.nwp-form-group textarea:focus {
    border-color: #0284c7;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.nwp-notice {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.nwp-notice.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.nwp-notice.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Action Buttons */
.nwp-form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.nwp-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nwp-submit-btn:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
}

.nwp-wa-btn {
    width: 100%;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.nwp-wa-btn:hover {
    background: #059669;
    color: #ffffff;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .nwp-products-grid {
        grid-template-columns: 1fr;
    }
    .nwp-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
