/*
 * Newwebapp - Modern E-Commerce Custom CSS
 * Supplemental styles loaded via /$pluginName/assets/css/style.css
 */

/* Product Detail Page */
.nw-product-detail-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.nw-product-detail-img img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}
.nw-product-detail .product-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
}
.nw-product-detail .product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2563eb;
}
.nw-product-detail .product-desc {
    color: #475569;
    line-height: 1.7;
}
.nw-qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nw-qty-control button {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.nw-qty-control button:hover {
    border-color: #2563eb;
    color: #2563eb;
}
.nw-qty-control input {
    width: 48px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    padding: 4px;
}

/* Category Page */
.nw-category-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    padding: 40px 0 24px;
    margin-bottom: 32px;
}
.nw-category-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Trials Page */
.nw-trial-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
}
.nw-trial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.13);
}
.nw-trial-card img {
    width: 100%; height: 200px;
    object-fit: cover;
}
.nw-trial-badge {
    background: #f59e0b;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.btn-trial {
    background: linear-gradient(90deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    width: 100%;
    transition: opacity .2s;
}
.btn-trial:hover { opacity: .88; color: #fff; }

/* Invoice Page */
.nw-invoice-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
    padding: 32px;
}

/* Success / Error Pages */
.nw-status-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nw-status-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
}
.nw-status-icon.success {
    background: #dcfce7; color: #16a34a;
}
.nw-status-icon.error {
    background: #fee2e2; color: #dc2626;
}

/* Cart & Checkout */
.nw-cart-empty {
    padding: 60px 20px;
    text-align: center;
}
.nw-cart-empty i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

/* Login Modal override */
.modal .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}
.modal .modal-header {
    background: #2563eb;
    color: #fff;
    border-bottom: none;
}
.modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* About / Static Pages */
.nw-page-hero {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.nw-page-hero h1 {
    font-size: 2rem;
    font-weight: 800;
}

/* Team Cards */
.nw-team-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 28px 20px;
    text-align: center;
    transition: transform .2s;
}
.nw-team-card:hover { transform: translateY(-4px); }
.nw-team-card img {
    width: 90px; height: 90px;
    border-radius: 50%; object-fit: cover;
    margin-bottom: 16px;
    border: 4px solid #eff6ff;
}
.nw-team-card h5 { font-weight: 700; color: #1e293b; }
.nw-team-card .role { color: #2563eb; font-size: .85rem; font-weight: 500; }

/* Contact Form */
.nw-contact-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 32px;
}
.nw-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.nw-contact-info-item .icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: #2563eb;
    flex-shrink: 0;
}

/* Pagination */
.nw-pagination .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
}
.nw-pagination .page-link { color: #2563eb; border-radius: 8px; margin: 0 2px; }
.nw-pagination .page-link:hover { background: #eff6ff; }

/* Scroll to top button */
.nw-scroll-top {
    position: fixed;
    bottom: 80px; right: 16px;
    width: 42px; height: 42px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37,99,235,.4);
    transition: opacity .2s;
    z-index: 999;
}
.nw-scroll-top:hover { opacity: .88; }
.nw-scroll-top.visible { display: flex; }

@media (min-width: 992px) {
    .nw-scroll-top { bottom: 24px; right: 24px; }
}
