﻿/* ============================================
   Noor Al-Rahma Modern Theme
   ============================================ */

:root {
    --nr-primary: #0d9488;
    --nr-primary-dark: #0f766e;
    --nr-primary-light: #14b8a6;
    --nr-accent: #f0fdfa;
    --nr-dark: #134e4a;
    --nr-bg: #f8fffe;
    --nr-card: #ffffff;
    --nr-text: #1e293b;
    --nr-text-muted: #64748b;
    --nr-border: #e2e8f0;
    --nr-gold: #d4a843;
    --nr-gold-light: #fef9ef;
    --nr-success: #10b981;
    --nr-warning: #f59e0b;
    --nr-danger: #ef4444;
    --nr-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --nr-shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --nr-shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --nr-radius: 0.75rem;
    --nr-radius-sm: 0.5rem;
}

/* Global */
body {
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    background-color: var(--nr-bg);
    color: var(--nr-text);
    line-height: 1.7;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--nr-primary); border-radius: 4px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
}

/* ============================================
   Public Site Styles
   ============================================ */

/* Navbar */
.nr-navbar {
    background: linear-gradient(135deg, var(--nr-dark) 0%, var(--nr-primary-dark) 100%);
    padding: 0.75rem 0;
    box-shadow: var(--nr-shadow-md);
}

.nr-navbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: -0.5px;
}

.nr-navbar .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--nr-radius-sm);
    transition: all 0.3s ease;
}

.nr-navbar .nav-link:hover,
.nr-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.15);
}

/* Hero Section */
.nr-hero {
    background: linear-gradient(135deg, var(--nr-dark) 0%, var(--nr-primary-dark) 50%, var(--nr-primary) 100%);
    padding: 4rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.nr-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
    border-radius: 50%;
}

.nr-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.nr-hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Cards */
.nr-card {
    background: var(--nr-card);
    border: 1px solid var(--nr-border);
    border-radius: var(--nr-radius);
    box-shadow: var(--nr-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.nr-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--nr-shadow-md);
}

.nr-card-header {
    background: linear-gradient(135deg, var(--nr-primary) 0%, var(--nr-primary-dark) 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.nr-card-body {
    padding: 1.5rem;
}

/* Sidebar */
.nr-sidebar-block {
    background: var(--nr-card);
    border: 1px solid var(--nr-border);
    border-radius: var(--nr-radius);
    box-shadow: var(--nr-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.nr-sidebar-title {
    background: linear-gradient(135deg, var(--nr-primary) 0%, var(--nr-primary-dark) 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.nr-sidebar-content {
    padding: 1rem 1.25rem;
}

.nr-sidebar-content .list-group-item {
    border: none;
    padding: 0.6rem 1rem;
    font-weight: 600;
    color: var(--nr-text);
    border-radius: var(--nr-radius-sm) !important;
    transition: all 0.2s ease;
}

.nr-sidebar-content .list-group-item:hover,
.nr-sidebar-content .list-group-item.active {
    background: var(--nr-accent);
    color: var(--nr-primary-dark);
}

/* Hadith Box */
.nr-hadith {
    background: var(--nr-gold-light);
    border-right: 4px solid var(--nr-gold);
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 2;
    color: #78350f;
    border-radius: 0 var(--nr-radius-sm) var(--nr-radius-sm) 0;
}

/* Footer */
.nr-footer {
    background: linear-gradient(135deg, var(--nr-dark) 0%, var(--nr-primary-dark) 100%);
    color: rgba(255,255,255,.8);
    padding: 2rem 0;
}

.nr-footer a {
    color: var(--nr-primary-light);
    text-decoration: none;
}

.nr-footer a:hover {
    color: #fff;
}

/* Services List */
.nr-services-list {
    list-style: none;
    padding: 0;
}

.nr-services-list li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    font-weight: 500;
}

.nr-services-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--nr-primary);
}

/* ============================================
   Admin / Team Styles
   ============================================ */

/* Admin Navbar */
.nr-admin-navbar {
    background: linear-gradient(135deg, var(--nr-dark) 0%, var(--nr-primary-dark) 100%);
    padding: 0;
    box-shadow: var(--nr-shadow-md);
    min-height: auto;
}

.nr-admin-navbar .navbar-brand {
    padding: 0.5rem 1rem;
}

.nr-admin-navbar .navbar-brand img {
    height: 50px;
    border-radius: var(--nr-radius-sm);
}

.nr-admin-navbar .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.25rem !important;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nr-admin-navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,.1);
    border-bottom-color: var(--nr-primary-light);
}

/* Admin Content */
.nr-admin-content {
    background: var(--nr-bg);
    min-height: calc(100vh - 140px);
    padding: 1.5rem 0;
}

/* Admin Footer */
.nr-admin-footer {
    background: var(--nr-dark);
    color: rgba(255,255,255,.6);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Tables (GridView) */
.table-modern {
    border-radius: var(--nr-radius);
    overflow: hidden;
    box-shadow: var(--nr-shadow);
    border: 1px solid var(--nr-border);
}

.table-modern th {
    background: linear-gradient(135deg, var(--nr-primary) 0%, var(--nr-primary-dark) 100%) !important;
    color: #fff !important;
    font-weight: 700;
    padding: 0.875rem 1rem !important;
    border: none !important;
    font-size: 0.95rem;
    white-space: nowrap;
}

.table-modern th a {
    color: #fff !important;
    text-decoration: none !important;
}

.table-modern th a:hover {
    color: #e2e8f0 !important;
    text-decoration: underline !important;
}

.table-modern td {
    padding: 0.75rem 1rem !important;
    vertical-align: middle !important;
    border-color: var(--nr-border) !important;
}

.table-modern tbody tr {
    transition: background 0.2s ease;
}

.table-modern tbody tr:hover {
    background: var(--nr-accent) !important;
}

.table-modern tbody tr:nth-child(even) {
    background-color: #f8fffe;
}

/* Action Buttons in Grid */
.nr-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--nr-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--nr-radius-sm);
    transition: all 0.2s ease;
}

.nr-action-link:hover {
    background: var(--nr-accent);
    color: var(--nr-primary-dark);
}

.nr-delete-link {
    color: var(--nr-danger) !important;
}

.nr-delete-link:hover {
    background: #fef2f2 !important;
}

/* Forms */
.nr-form-control {
    border: 2px solid var(--nr-border);
    border-radius: var(--nr-radius-sm);
    padding: 0.625rem 1rem;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.nr-form-control:focus {
    border-color: var(--nr-primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,.15);
    outline: none;
}

.nr-form-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--nr-text);
    margin-bottom: 0.375rem;
    display: block;
}

/* Buttons */
.nr-btn {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    padding: 0.625rem 1.5rem;
    border-radius: var(--nr-radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nr-btn-primary {
    background: linear-gradient(135deg, var(--nr-primary) 0%, var(--nr-primary-dark) 100%);
    color: #fff;
}

.nr-btn-primary:hover {
    background: linear-gradient(135deg, var(--nr-primary-dark) 0%, var(--nr-dark) 100%);
    transform: translateY(-1px);
    box-shadow: var(--nr-shadow-md);
}

.nr-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.nr-btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.nr-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.nr-btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.nr-btn-outline {
    background: transparent;
    border: 2px solid var(--nr-primary);
    color: var(--nr-primary);
}

.nr-btn-outline:hover {
    background: var(--nr-primary);
    color: #fff;
}

/* Quick Action Cards */
.nr-quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--nr-card);
    border: 1px solid var(--nr-border);
    border-radius: var(--nr-radius);
    text-decoration: none;
    color: var(--nr-text);
    transition: all 0.2s ease;
    box-shadow: var(--nr-shadow);
}

.nr-quick-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--nr-shadow-md);
    border-color: var(--nr-primary);
    color: var(--nr-primary-dark);
}

.nr-quick-action .icon {
    width: 48px;
    height: 48px;
    border-radius: var(--nr-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.nr-quick-action .icon-primary {
    background: var(--nr-accent);
    color: var(--nr-primary);
}

.nr-quick-action .icon-success {
    background: #ecfdf5;
    color: #10b981;
}

.nr-quick-action .icon-warning {
    background: #fffbeb;
    color: #f59e0b;
}

.nr-quick-action .label {
    font-weight: 700;
    font-size: 1rem;
}

/* Status Badge */
.nr-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.nr-badge-new {
    background: #dbeafe;
    color: #1d4ed8;
}

.nr-badge-medicine {
    background: #fef3c7;
    color: #b45309;
}

.nr-badge-closed {
    background: #dcfce7;
    color: #166534;
}

/* Popup Pages */
.nr-popup-body {
    background: var(--nr-bg);
    padding: 1.5rem;
}

.nr-popup-header {
    background: linear-gradient(135deg, var(--nr-primary) 0%, var(--nr-primary-dark) 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Patient Info Card */
.nr-patient-info {
    background: var(--nr-accent);
    border: 1px solid rgba(13,148,136,.2);
    border-radius: var(--nr-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.nr-patient-info dt {
    color: var(--nr-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

.nr-patient-info dd {
    color: var(--nr-text);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Loading Spinner */
.nr-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fffbeb;
    border-radius: var(--nr-radius-sm);
    color: #b45309;
    font-weight: 600;
}

.nr-loading img {
    width: 24px;
    height: 24px;
}

/* Quran Verse */
.nr-quran {
    background: linear-gradient(135deg, var(--nr-gold-light), #fff);
    border: 1px solid rgba(212,168,67,.3);
    border-radius: var(--nr-radius);
    padding: 2rem;
    text-align: center;
    font-size: 1.3rem;
    line-height: 2.2;
    color: #78350f;
    font-family: 'Amiri', 'Tajawal', serif;
}

/* Login Page */
.nr-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--nr-dark) 0%, var(--nr-primary-dark) 50%, var(--nr-primary) 100%);
    padding: 2rem;
}

.nr-login-card {
    background: #fff;
    border-radius: var(--nr-radius);
    box-shadow: var(--nr-shadow-lg);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}

.nr-login-header {
    background: linear-gradient(135deg, var(--nr-primary) 0%, var(--nr-primary-dark) 100%);
    padding: 2rem;
    text-align: center;
}

.nr-login-header img {
    max-width: 240px;
    border-radius: var(--nr-radius-sm);
}

.nr-login-body {
    padding: 2rem;
}

/* DataList Items */
.nr-datalist-item {
    background: var(--nr-card);
    border: 1px solid var(--nr-border);
    border-radius: var(--nr-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--nr-shadow);
}

/* Checkbox List */
.nr-checkbox-list label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: var(--nr-card);
    border: 1px solid var(--nr-border);
    border-radius: var(--nr-radius-sm);
    margin: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.nr-checkbox-list label:hover {
    border-color: var(--nr-primary);
    background: var(--nr-accent);
}

.nr-checkbox-list input[type="checkbox"]:checked + label,
.nr-checkbox-list label:has(input:checked) {
    background: var(--nr-accent);
    border-color: var(--nr-primary);
    color: var(--nr-primary-dark);
}

/* Print Styles */
@media print {
    .nr-admin-navbar, .nr-admin-footer, .nr-navbar, .nr-footer,
    .no-print { display: none !important; }
    body { background: #fff; }
    .nr-card { box-shadow: none; border: 1px solid #ddd; }
}

/* Responsive */
@media (max-width: 768px) {
    .nr-hero h1 { font-size: 1.75rem; }
    .nr-hero .lead { font-size: 1rem; }
    .nr-admin-navbar .nav-link { padding: 0.75rem 1rem !important; }
    .table-modern td, .table-modern th { padding: 0.5rem !important; font-size: 0.85rem; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nr-animate {
    animation: fadeInUp 0.5s ease forwards;
}

/* Utility */
.text-gold { color: var(--nr-gold); }
.bg-gold-light { background: var(--nr-gold-light); }
.border-primary { border-color: var(--nr-primary) !important; }

/* ============================================
   Online Shop Styles
   ============================================ */

/* Product Card */
.nr-product-card {
    background: var(--nr-card);
    border: 1px solid var(--nr-border);
    border-radius: var(--nr-radius);
    box-shadow: var(--nr-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nr-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nr-shadow-lg);
}

.nr-product-img-wrap {
    position: relative;
    background: #f8fffe;
    overflow: hidden;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.nr-product-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.nr-product-card:hover .nr-product-img {
    transform: scale(1.05);
}

.nr-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nr-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.nr-product-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nr-product-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--nr-text);
    margin-bottom: 0.4rem;
}

.nr-product-desc {
    color: var(--nr-text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nr-product-price {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--nr-primary-dark);
}

.nr-add-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cart Summary Bar */
.nr-cart-bar {
    background: var(--nr-accent);
    border: 1px solid rgba(13,148,136,.2);
    border-radius: var(--nr-radius-sm);
    padding: 0.75rem 1.25rem;
}

/* Quantity Buttons */
.nr-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--nr-border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--nr-text);
    transition: all 0.2s ease;
    padding: 0;
}

.nr-qty-btn:hover {
    border-color: var(--nr-primary);
    color: var(--nr-primary);
    background: var(--nr-accent);
}

.nr-qty-display {
    display: inline-block;
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

/* Toast Notification */
.nr-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--nr-dark);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--nr-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: var(--nr-shadow-lg);
    white-space: nowrap;
}

.nr-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive Shop */
@media (max-width: 576px) {
    .nr-product-img-wrap { height: 160px; }
    .nr-product-body { padding: 0.75rem 1rem; }
}

/* ============================================
   Cart Floating Button & Drawer
   ============================================ */
.nr-cart-float {
    position: fixed;
    top: 18px;
    left: 24px;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--nr-primary);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(13,148,136,.4);
    text-decoration: none;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.nr-cart-float:hover {
    background: var(--nr-primary-dark);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(13,148,136,.5);
}
.nr-cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: .7rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    color: #fff;
    background: #ef4444;
    border-radius: 10px;
    border: 2px solid #fff;
    animation: nrBadgePop .3s ease;
}
@keyframes nrBadgePop {
    0% { transform: scale(0); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Overlay */
.nr-cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.nr-cart-overlay.open { opacity: 1; visibility: visible; }

/* Drawer */
.nr-cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,.15);
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.nr-cart-drawer.open { transform: translateX(0); }

.nr-cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--nr-border);
    background: var(--nr-accent);
}
.nr-cart-drawer-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nr-dark);
}
.nr-cart-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--nr-muted);
    cursor: pointer;
    transition: color .2s;
}
.nr-cart-close:hover { color: #ef4444; }

.nr-cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

/* Empty */
.nr-cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--nr-muted);
}
.nr-cart-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: .3;
}
.nr-cart-empty p { font-size: 1rem; margin: 0; }

/* Cart Item */
.nr-cart-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.nr-cart-item:last-child { border-bottom: none; }
.nr-cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #f8fafc;
}
.nr-cart-item-info { flex: 1; min-width: 0; }
.nr-cart-item-name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--nr-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nr-cart-item-price {
    font-size: .82rem;
    color: var(--nr-primary);
    font-weight: 700;
    margin-top: 2px;
}
.nr-cart-item-qty {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: 4px;
}
.nr-cart-qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    font-size: .85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    color: var(--nr-dark);
}
.nr-cart-qty-btn:hover { background: var(--nr-accent); border-color: var(--nr-primary-light); }
.nr-cart-item-qty span {
    min-width: 22px;
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
}
.nr-cart-remove {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: .9rem;
    cursor: pointer;
    padding: 4px;
    transition: color .2s;
    flex-shrink: 0;
}
.nr-cart-remove:hover { color: #ef4444; }

/* Footer */
.nr-cart-drawer-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--nr-border);
    background: #f8fafc;
}
.nr-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    color: var(--nr-dark);
    margin-bottom: .75rem;
}
.nr-cart-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: .7rem 1rem;
    background: var(--nr-primary);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}
.nr-cart-checkout-btn:hover { background: var(--nr-primary-dark); color: #fff; }

/* ============================================
   Product Detail Page (iHerb-inspired)
   ============================================ */

/* Breadcrumb */
.pdp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--nr-text-muted);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.pdp-breadcrumb a {
    color: var(--nr-primary);
    text-decoration: none;
    transition: color 0.15s;
}
.pdp-breadcrumb a:hover { color: var(--nr-primary-dark); text-decoration: underline; }
.pdp-breadcrumb-sep { font-size: 0.6rem; color: var(--nr-border); }
.pdp-breadcrumb-current { color: var(--nr-text); font-weight: 600; }

/* Main Section */
.pdp-main { margin-bottom: 2.5rem; }

/* Gallery */
.pdp-gallery {
    position: sticky;
    top: 20px;
}
.pdp-img-main {
    position: relative;
    background: #fff;
    border: 1px solid var(--nr-border);
    border-radius: var(--nr-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 340px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.pdp-img-main:hover { border-color: var(--nr-primary-light); }
.pdp-img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}
.pdp-img-main:hover .pdp-img { transform: scale(1.04); }
.pdp-img-zoom-icon {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nr-text-muted);
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.pdp-img-main:hover .pdp-img-zoom-icon { opacity: 1; }
.pdp-badge-stock {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}
.pdp-img-hint {
    text-align: center;
    padding: 8px;
    font-size: 0.72rem;
    color: var(--nr-text-muted);
}
.pdp-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--nr-border);
}
.pdp-share-label {
    font-size: 0.8rem;
    color: var(--nr-text-muted);
    font-weight: 600;
}
.pdp-share-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--nr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nr-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}
.pdp-share-icon:hover {
    background: var(--nr-primary);
    color: #fff;
    border-color: var(--nr-primary);
}

/* Info Column */
.pdp-info { padding: 0; }
.pdp-brand-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--nr-primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 4px;
    transition: color 0.15s;
}
.pdp-brand-link:hover { color: var(--nr-primary-dark); text-decoration: underline; }
.pdp-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--nr-dark);
    line-height: 1.55;
    margin: 0 0 0.75rem;
}

/* Badges / Pills */
.pdp-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.pdp-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.pdp-pill-success { background: #ecfdf5; color: #059669; }
.pdp-pill-danger { background: #fef2f2; color: #dc2626; }
.pdp-pill-nature { background: #f0fdf4; color: #16a34a; }

/* Short Description */
.pdp-short-desc {
    font-size: 0.9rem;
    color: var(--nr-text-muted);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Divider */
.pdp-divider {
    border: none;
    border-top: 1px solid var(--nr-border);
    margin: 0.75rem 0;
}

/* Price */
.pdp-price-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 1rem;
}
.pdp-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--nr-primary);
    line-height: 1;
}
.pdp-currency {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--nr-primary-dark);
}

/* Action Row */
.pdp-action-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 1rem;
}
.pdp-qty-wrap { flex-shrink: 0; }
.pdp-qty-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nr-text-muted);
    margin-bottom: 5px;
}
.pdp-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--nr-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.pdp-qty-btn {
    width: 38px;
    height: 42px;
    border: none;
    background: var(--nr-bg);
    color: var(--nr-text);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp-qty-btn:hover { background: var(--nr-border); }
.pdp-qty-input {
    width: 48px;
    height: 42px;
    border: none;
    border-right: 1px solid var(--nr-border);
    border-left: 1px solid var(--nr-border);
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    background: #fff;
    color: var(--nr-text);
}

/* Add to Cart */
.pdp-add-btn {
    flex: 1;
    background: var(--nr-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0 1.5rem;
    height: 42px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp-add-btn:hover {
    background: var(--nr-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,148,136,0.3);
}
.pdp-add-btn:active { transform: translateY(0); }
.pdp-add-btn-disabled {
    background: var(--nr-border) !important;
    color: var(--nr-text-muted) !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* Stock line */
.pdp-stock-line {
    font-size: 0.82rem;
    color: var(--nr-text-muted);
    margin-bottom: 1.25rem;
}

/* Trust Badges */
.pdp-trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 1rem;
    background: var(--nr-bg);
    border: 1px solid var(--nr-border);
    border-radius: var(--nr-radius-sm);
}
.pdp-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--nr-text-muted);
    font-weight: 600;
}
.pdp-trust-item i {
    color: var(--nr-primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ---- TABS ---- */
.pdp-tabs-section {
    margin-bottom: 2.5rem;
    background: #fff;
    border: 1px solid var(--nr-border);
    border-radius: var(--nr-radius);
    overflow: hidden;
    box-shadow: var(--nr-shadow);
}
.pdp-tabs-nav {
    display: flex;
    overflow-x: auto;
    border-bottom: 2px solid var(--nr-border);
    background: var(--nr-bg);
    gap: 0;
}
.pdp-tab-btn {
    padding: 0.85rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--nr-text-muted);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.pdp-tab-btn:hover { color: var(--nr-primary); }
.pdp-tab-btn.active {
    color: var(--nr-primary-dark);
    border-bottom-color: var(--nr-primary);
    background: #fff;
}
.pdp-tabs-content { padding: 1.5rem; }
.pdp-tab-pane { display: none; }
.pdp-tab-pane.active { display: block; }
.pdp-desc-text {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--nr-text);
}
.pdp-usage-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--nr-accent);
    padding: 1rem 1.25rem;
    border-radius: var(--nr-radius-sm);
    border: 1px solid rgba(13,148,136,0.15);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--nr-text);
}
.pdp-usage-icon {
    font-size: 1.4rem;
    color: var(--nr-primary);
    margin-top: 2px;
    flex-shrink: 0;
}
.pdp-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--nr-radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.7;
}
.pdp-warning-box i { color: #f59e0b; margin-top: 3px; flex-shrink: 0; }

/* ---- SUGGESTIONS ---- */
.pdp-suggest-section { margin-bottom: 2rem; }
.pdp-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--nr-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--nr-border);
}
.pdp-suggest-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.pdp-suggest-scroll::-webkit-scrollbar { height: 6px; }
.pdp-suggest-scroll::-webkit-scrollbar-track { background: var(--nr-bg); border-radius: 3px; }
.pdp-suggest-scroll::-webkit-scrollbar-thumb { background: var(--nr-border); border-radius: 3px; }
.pdp-suggest-scroll::-webkit-scrollbar-thumb:hover { background: var(--nr-text-muted); }
.pdp-suggest-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--nr-border);
    border-radius: var(--nr-radius-sm);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.pdp-suggest-card:hover {
    box-shadow: var(--nr-shadow-md);
    transform: translateY(-3px);
    color: inherit;
}
.pdp-suggest-img-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background: #fafbfa;
    padding: 0.75rem;
    overflow: hidden;
}
.pdp-suggest-img {
    max-width: 100%;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.pdp-suggest-info {
    padding: 0.6rem 0.75rem;
    border-top: 1px solid var(--nr-border);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pdp-suggest-name {
    font-weight: 600;
    font-size: 0.8rem;
    margin: 0 0 6px;
    color: var(--nr-text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pdp-suggest-price {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--nr-primary);
    margin-top: auto;
}

/* Lightbox */
.nr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}
.nr-lightbox.show { opacity: 1; }
.nr-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.nr-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    transition: background 0.2s;
}
.nr-lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* Shop card link */
.nr-product-name-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
.nr-product-name-link:hover,
.nr-product-name-link:hover .nr-product-name {
    color: var(--nr-primary);
}

/* ---- PDP Responsive ---- */
@media (max-width: 767px) {
    .pdp-gallery { position: static; }
    .pdp-img-main { min-height: 240px; padding: 1rem; }
    .pdp-img { max-height: 220px; }
    .pdp-title { font-size: 1.2rem; }
    .pdp-price { font-size: 1.4rem; }
    .pdp-action-row { flex-direction: column; }
    .pdp-add-btn { width: 100%; height: 46px; }
    .pdp-trust-row { grid-template-columns: 1fr; }
    .pdp-tab-btn { padding: 0.7rem 0.9rem; font-size: 0.82rem; }
    .pdp-suggest-card { flex: 0 0 150px; }
    .pdp-suggest-img-box { height: 120px; }
}
@media (max-width: 576px) {
    .pdp-img-main { min-height: 200px; }
    .pdp-img { max-height: 180px; }
    .pdp-title { font-size: 1.1rem; }
    .pdp-tabs-content { padding: 1rem; }
    .pdp-lightbox-img { max-width: 95vw; }
}
